/* =====================================================
   ESPEJO ASTRAL - VERSION PREMIUM
   Reemplaza tu espejo.css completo
===================================================== */

.espejo-body{
    margin:0;
    padding:0;
    color:#f5f5f5;
    font-family:'Lora', serif;
    background:
        radial-gradient(circle at top right, rgba(212,175,55,.08), transparent 25%),
        radial-gradient(circle at bottom left, rgba(70,90,160,.10), transparent 25%),
        linear-gradient(135deg,#050505 0%, #101010 45%, #0a0a0a 100%);
    min-height:100vh;
    overflow-x:hidden;
}


/* =========================================
   CONTENEDOR GENERAL
========================================= */

.espejo-main{
    min-height:calc(100vh - 80px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px 20px;
}


/* =========================================
   PANEL ENTRADA
========================================= */

.input-section,
.result-section{
    width:100%;
    max-width:720px;
}

.input-section{
    text-align:center;
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(212,175,55,.15);
    backdrop-filter:blur(8px);
    border-radius:22px;
    padding:50px 35px;
    box-shadow:
        0 15px 45px rgba(0,0,0,.35),
        inset 0 0 0 1px rgba(255,255,255,.02);
}


/* =========================================
   TITULOS
========================================= */

.cinzel-title{
    font-family:'Cinzel', serif;
    font-size:clamp(2rem,5vw,3.3rem);
    margin:0 0 15px;
    color:#d4af37;
    letter-spacing:1px;
}

.input-section p{
    max-width:560px;
    margin:0 auto;
    line-height:1.7;
    color:rgba(255,255,255,.84);
    font-size:1.05rem;
}


/* =========================================
   FORMULARIO
========================================= */

.form-mistico{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:18px;
    margin-top:35px;
}

.input-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.input-group label{
    font-size:.9rem;
    color:#d4af37;
    letter-spacing:.5px;
}

.input-group input{
    width:90px;
    height:56px;
    border-radius:14px;
    border:1px solid rgba(212,175,55,.35);
    background:rgba(255,255,255,.03);
    color:#fff;
    text-align:center;
    font-size:1.3rem;
    outline:none;
    transition:.25s ease;
}

.input-group input:focus{
    border-color:#d4af37;
    box-shadow:0 0 0 4px rgba(212,175,55,.12);
    transform:translateY(-1px);
}


/* =========================================
   BOTONES
========================================= */

.btn-revelar,
.btn-reset{
    border:none;
    cursor:pointer;
    border-radius:14px;
    padding:14px 24px;
    font-family:'Cinzel', serif;
    font-size:.95rem;
    letter-spacing:.4px;
    transition:.25s ease;
}

.btn-revelar{
    background:linear-gradient(135deg,#d4af37,#f1d67b);
    color:#111;
    min-width:220px;
    box-shadow:0 10px 25px rgba(212,175,55,.18);
}

.btn-revelar:hover{
    transform:translateY(-2px);
    box-shadow:0 15px 30px rgba(212,175,55,.28);
}

.btn-reset{
    background:transparent;
    color:#fff;
    border:1px solid rgba(255,255,255,.16);
    margin-top:22px;
}

.btn-reset:hover{
    border-color:#d4af37;
    color:#d4af37;
}


/* =========================================
   TARJETA RESULTADO
========================================= */

.tarjeta-astral{
    text-align:center;
    padding:45px 35px;
    border-radius:24px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(212,175,55,.20);
    backdrop-filter:blur(10px);
    box-shadow:
        0 20px 60px rgba(0,0,0,.40),
        inset 0 0 0 1px rgba(255,255,255,.02);
    animation:fadeUp .9s ease;
}

.signo-titulo{
    margin:0 0 10px;
    font-family:'Cinzel', serif;
    color:#d4af37;
    font-size:clamp(1.7rem,4vw,2.5rem);
}

.interpretacion-texto{
    line-height:1.8;
    color:rgba(255,255,255,.88);
    font-size:1.05rem;
    margin:18px auto 25px;
    max-width:520px;
}


/* =========================================
   CANVAS CONSTELACION
========================================= */

#canvas-container{
    margin:20px auto 10px;
    width:100%;
    display:flex;
    justify-content:center;
}

#constelacion-canvas{
    width:300px;
    max-width:100%;
    height:auto;
    border-radius:16px;
    background:
        radial-gradient(circle at center, rgba(255,255,255,.04), transparent 65%);
}


/* =========================================
   ENLACE ATLAS
========================================= */

#vinculo-atlas{
    margin-top:15px;
}

#vinculo-atlas p{
    color:rgba(255,255,255,.75);
    margin-bottom:12px;
}

#vinculo-atlas .card{
    display:inline-block;
    text-decoration:none;
    color:#fff;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(212,175,55,.25);
    padding:16px 28px;
    border-radius:16px;
    transition:.25s ease;
}

#vinculo-atlas .card:hover{
    transform:translateY(-2px);
    border-color:#d4af37;
    box-shadow:0 12px 25px rgba(212,175,55,.12);
}

#vinculo-atlas h3{
    margin:0;
    font-family:'Cinzel', serif;
    font-size:1.1rem;
    color:#d4af37;
}


/* =========================================
   ANIMACIONES
========================================= */

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(18px) scale(.98);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width:640px){

    .input-section,
    .tarjeta-astral{
        padding:28px 18px;
        border-radius:18px;
    }

    .form-mistico{
        flex-direction:column;
        align-items:center;
    }

    .input-group input{
        width:120px;
    }

    .btn-revelar{
        width:100%;
        max-width:280px;
    }

    .btn-reset{
        width:100%;
    }

    .interpretacion-texto{
        font-size:1rem;
    }
}
/* ==========================================================================
   Solución de Contraste Adaptativo para el Botón Espejo Astral
   ========================================================================== */

/* Color para Computador (Texto oscuro sobre fondo dorado) */
.btn-espejo-home, 
a.btn-espejo-home {
    color: #1a1a2e; 
    text-decoration: none;
    font-weight: bold;
}

/* Color para Celular (Texto dorado sobre fondo oscuro de la web) */
@media (max-width: 768px) {
    .btn-espejo-home, 
    a.btn-espejo-home,
    a.btn-espejo-home:visited,
    a.btn-espejo-home:active {
        color: #dfb76c;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
}