:root {
    --space-light: #0d2859;
    --space-dark: #020b1f;
    --blanco: #ffffff;
    --transparente: rgba(255, 255, 255, 0.5);
    --normal-font: 'Montserrat', sans-serif;
    --cursiva-font: 'Monsieur La Doulaise', cursive;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--blanco);
    position: relative;
    background: radial-gradient(circle at 50% 30%, var(--space-light), var(--space-dark) 80%);
}

.layout {
    max-width: 500px;
    margin: 0 auto;
    background: radial-gradient(circle at 50% 30%, var(--space-light), var(--space-dark) 80%);
    position: relative;
    overflow: hidden;
}

.layout-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: radial-gradient(1px 1px at 10% 20%, white 100%, transparent),
        radial-gradient(1px 1px at 30% 40%, white 100%, transparent),
        radial-gradient(1.5px 1.5px at 50% 10%, rgba(255, 255, 255, 0.8) 100%, transparent),
        radial-gradient(1px 1px at 70% 60%, white 100%, transparent),
        radial-gradient(2px 2px at 90% 30%, rgba(255, 255, 255, 0.9) 100%, transparent),
        radial-gradient(1px 1px at 20% 80%, white 100%, transparent),
        radial-gradient(1.5px 1.5px at 80% 90%, rgba(255, 255, 255, 0.7) 100%, transparent),
        radial-gradient(1px 1px at 45% 75%, white 100%, transparent),
        radial-gradient(2px 2px at 60% 85%, rgba(255, 255, 255, 0.8) 100%, transparent);
    background-size: 150px 150px, 200px 200px, 120px 120px, 250px 250px, 180px 180px, 220px 220px, 140px 140px, 190px 190px, 160px 160px;
    animation: twinkle 5s infinite alternate;
}

.layout-star-single {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
    /* removido background circular para usar el pseudo-elemento estrella */
}

/* pseudo-elemento que muestra la estrella */
.layout-star-single::before {
    content: '✶';
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.6);
    display: block;
    line-height: 1;
    transform-origin: center;
}

/* tamaños/posiciones (usa font-size para controlar el tamaño de la estrella) */
.star-single__small {
    top: 8%;
    right: 15%;
    font-size: 10px;
    animation-delay: 0s;
}

.star-single__medium {
    top: 20%;
    left: 20%;
    font-size: 18px;
    animation-delay: 0.6s;
}

.star-single__large {
    top: 5%;
    left: 75%;
    font-size: 28px;
    animation-delay: 1.2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

@keyframes twinkle {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Hero */
.hero {
    display: block;
    position: relative;
    max-width: 250px;
    margin: 0 auto;
    padding: 5rem 0;
    line-height: 1.2;
    z-index: 5;
}

.hero-title {
    font-size: 6rem;
    font-weight: bold;
    text-align: center;
    font-family: var(--normal-font);
}

.hero-title span {
    display: block;
    font-size: 1.3em;
    font-weight: 500;
    font-family: var(--cursiva-font);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.6);
}

.hero-content {
    max-width: 250px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5rem auto;
    text-align: center;
}

.hero-content-date,
.hero-content-time {
    display: block;
    font-size: 2rem;
    font-family: var(--normal-font);
}

.hero-content-date b,
.hero-content-time b {
    font-size: 2.5rem;
}

.hero-line {
    width: 2px;
    height: 100%;
    border-left: 1px solid var(--blanco);
}

.hero-btn {
    position: relative;
    border: 1px solid var(--blanco);
    color: var(--blanco);
    padding: 1rem 2rem;
    font-size: 2rem;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s ease-in-out;
}

.hero-btn:hover {
    background-color: var(--blanco);
    color: var(--space-dark);
}

/* Contador */
.contador {
    position: relative;
    max-width: 250px;
    margin: 0 auto;
    padding: 5rem 0;
    text-align: center;
    z-index: 5;
}

.contador-title {
    position: relative;
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--normal-font);
    z-index: 5;
}

.contador-tiempo {
    position: relative;
    width: 100%;
    margin: 2rem auto;
    display: flex;
    justify-content: space-between;
    z-index: 5;
}

.contador-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--normal-font);
    text-align: center;
}

.contador-dias,
.contador-horas,
.contador-minutos,
.contador-segundos {
    display: block;
    line-height: 1;
    font-size: 3rem;
    padding: 1rem;
    font-family: var(--cursiva-font);
    text-align: center;
    border: 1px solid var(--blanco);
}

.contador-message {
    display: block;
    font-family: var(--cursiva-font);
    margin-top: 2rem;
    font-size: 5rem;
    font-weight: bold;
    letter-spacing: 3px;
}

/* Nueva sección: frase centrada */
.phrase {
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1rem;
    background-color: var(--blanco);
    color: var(--space-dark);
    /* padding: 3.5rem 1.2rem; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    /* border-radius: 10px; */
    /* Sombreado interno */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) inset;
    z-index: 20; /* cambiado: asegurar que quede por encima de la esfera */
    position: relative; /* asegurarse de que exista contexto de apilamiento */
}

/* adorno sutil arriba del texto */
.phrase::before {
    content: '✿';
    color: rgba(10, 5, 69, 0.7);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.08);
}

/* texto principal de la frase */
.phrases-text {
    font-family: var(--normal-font);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    text-align: center;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    text-transform: uppercase;
    /* conserva estilo actual */
}

/* Mapa */
.mapa {
    position: relative;
    display: block;
    max-width: 250px;
    margin: 0 auto;
    padding-top: 5rem;
    text-align: center;
    z-index: 5;
}

.mapa-title {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--normal-font);
    margin: 3rem 0;
    position: relative;
    z-index: 5;
}

.mapa-options__title {
    position: relative;
    display: block;
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--normal-font);
    z-index: 5;
}

.mapa iframe {
    position: relative;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.mapa-options {
    display: block;
    width: 100%;
    margin: 3rem auto;
}

.mapa-options__title {
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--normal-font);
}

.mapa-options__subtitle {
    font-size: 2rem;
    font-weight: normal;
    font-family: var(--normal-font);
}

.mapa-direccion {
    font-size: 1.2rem;
    font-weight: normal;
    font-family: var(--normal-font);
    margin-top: 1rem;
}

.mapa-options__links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.mapa-options__links img {
    width: 80px;
    height: 80px;
    margin: 0 1rem;
    transition: all 0.3s ease-in-out;
}

.mapa-options__links img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Confirmacion */
.confirmacion {
    position: relative;
    max-width: 250px;
    margin: 0 auto;
    padding: 2rem 0;
    text-align: center;
    z-index: 5;
}

.confirmacion-title {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--normal-font);
    margin: 2rem 0;
    position: relative;
    z-index: 5ß;
}

.confirmacion-btn {
    position: relative;
    z-index: 5;
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--space-dark);
    color: var(--blanco);
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid var(--blanco);
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.confirmacion-btn:hover {
    background-color: var(--blanco);
    color: var(--space-dark);
}

.confirmacion-content {
    margin-top: 2rem;
}

.confirmacion-fecha {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    font-family: var(--normal-font);
}

.confirmacion-message {
    display: block;
    font-family: var(--cursiva-font);
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.confirmacion-fecha {
    font-size: 1.3rem;
}

.confirmacion-message {
    display: block;
    font-family: var(--cursiva-font);
    margin-top: 5rem;
    font-size: 3.4rem;
    letter-spacing: 1px;
    font-weight: normal;
    text-align: center;
}

.esfera-disco {
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    margin-top: 40px;
    position: absolute;
    z-index: 1;
}

.disco-ball {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background-color: #a49f9f;
    z-index: 1;
    margin: 0 10rem 0 10rem;

    /* 
               Magia CSS: Capas superpuestas
               1. Sombra volumétrica 3D principal
               2. Cuadrícula Horizontal de espejos
               3. Cuadrícula Vertical de espejos
               4-6. Reflejos de colores neón simulando luces del club (Cian, Magenta, Morado)
            */
    background-image:
        radial-gradient(circle at 35% 35%, #6b6d8bf2 0%, transparent 45%, rgba(0, 0, 0, 0.85) 95%),
        repeating-linear-gradient(to bottom, transparent, transparent 14px, rgba(0, 0, 0, 0.6) 14px, rgba(0, 0, 0, 0.6) 16px),
        repeating-linear-gradient(to right, transparent, transparent 14px, rgba(0, 0, 0, 0.6) 14px, rgba(0, 0, 0, 0.6) 16px),
        radial-gradient(circle at 80% 40%, rgba(13, 2, 82, 0.8) 0%, transparent 55%),
        radial-gradient(circle at 20% 70%, rgba(124, 137, 169, 0.8) 0%, transparent 55%),
        radial-gradient(circle at 50% 90%, rgba(22, 20, 23, 0.396) 0%, transparent 60%);

    /* Sombras: Interiores para acentuar la curvatura esférica, exteriores para el aura brillante */
    box-shadow:
        inset 0 0 35px rgba(0, 0, 0, 0.9),
        inset -20px -20px 50px rgba(0, 0, 0, 0.9),
        inset 10px 10px 30px rgba(33, 31, 31, 0.6),
        0 0 50px rgba(243, 243, 244, 0.176),
        0 0 100px rgba(2, 32, 116, 0.711);

    z-index: 1;
    animation: spin-texture 15s linear infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(30px);
    }
}

@keyframes spin-texture {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    }

    100% {
        /* 
                  Dejamos fijas las luces y solo movemos la cuadrícula vertical (capa 3). 
                  14px + 2px = 16px por celda. Desplazar 160px genera un bucle óptico perfecto.
                */
        background-position: 0 0, 0 0, 160px 0, 0 0, 0 0, 0 0;
    }
}

/* Estilos para botón flotante de audio (colócalo al final o donde lo prefieras) */
.audio-toggle{
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

/* foco accesible */
.audio-toggle:focus{
    outline: 2px solid rgba(255,255,255,0.14);
    transform: translateY(-2px);
}

/* estados visuales */
.audio-toggle:hover{ transform: translateY(-3px); }
.audio-toggle.muted{ background: rgba(0,0,0,0.35); opacity: 0.9; }

/* alternar iconos */
.audio-toggle .icon-unmuted{ display: inline-block; }
.audio-toggle .icon-muted{ display: none; }

.audio-toggle.muted .icon-unmuted{ display: none; }
.audio-toggle.muted .icon-muted{ display: inline-block; }

/* pequeño ajuste en pantallas pequeñas */
@media (max-width:420px){
    .audio-toggle{ width:42px; height:42px; right:0.75rem; bottom:0.75rem; }
}