/* ============================================
   LILA: EL JUEGO DE LA EXISTENCIA
   Ultra-Minimalist One-Pager
   Bioluminescent Aesthetic
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Void Palette — Deep Indigo Abyss */
    --void-deep: #050510;
    --void-mid: #0a0a1a;
    --void-surface: #10102a;
    --indigo-rich: #1a1a45;
    --indigo-glow: #2a2a6a;

    /* Bioluminescent Colors */
    --bio-cyan: rgba(80, 200, 255, 0.8);
    --bio-magenta: rgba(200, 80, 255, 0.7);
    --bio-gold: rgba(255, 220, 100, 0.8);
    --bio-green: rgba(80, 255, 180, 0.6);

    /* Text Colors */
    --text-pure: #ffffff;
    --text-light: #e0e0f0;
    --text-mist: #9090b0;
    --text-whisper: #606080;

    /* Accent */
    --accent-gold: #f0e68c;
    --accent-glow: rgba(240, 230, 140, 0.4);

    /* Typography */
    --font-display: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.6s ease;
    --transition-slow: 1.2s ease;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 2;
    color: var(--text-light);
    background: var(--void-deep);
    overflow-x: hidden;
}

/* ============================================
   BIOLUMINESCENT PARTICLES
   ============================================ */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle var(--duration) ease-in-out infinite;
    filter: blur(1px);
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: var(--opacity);
    }

    25% {
        transform: translateY(-30px) translateX(10px) scale(1.1);
        opacity: calc(var(--opacity) * 1.3);
    }

    50% {
        transform: translateY(-50px) translateX(-5px) scale(0.9);
        opacity: var(--opacity);
    }

    75% {
        transform: translateY(-20px) translateX(-15px) scale(1.05);
        opacity: calc(var(--opacity) * 0.8);
    }
}

/* Mute Button */
.mute-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid rgba(150, 200, 255, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-pure);
    transition: all var(--transition-medium);
    backdrop-filter: blur(10px);
}

.mute-button:hover {
    background: rgba(30, 30, 50, 0.9);
    border-color: rgba(150, 200, 255, 0.6);
    transform: scale(1.1);
}

.mute-button:active {
    transform: scale(0.95);
}

.mute-button.muted .sound-waves {
    opacity: 0.3;
}

.mute-button.muted::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: var(--text-pure);
    transform: rotate(-45deg);
}

/* ============================================
   CENTRAL MANDALA (Fixed Position)
   ============================================ */

.mandala-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 600px);
    height: min(90vw, 600px);
    z-index: 15;
    pointer-events: none;
    opacity: 0.15;
    transition: opacity var(--transition-slow);
}

/* .mandala-container.active opacity is controlled by JavaScript based on scroll position */

/* Central Sigil */
.central-sigil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 1s ease;
}

.sigil-core {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(200, 150, 255, 0.5));
    animation: sigilBreath 8s ease-in-out infinite;
    transform: scale(1);
    transition: transform 0.8s ease-out, filter 0.8s ease-out;
    will-change: transform, filter;
}

/* Active state - rainbow glow, NO constant vibration */
.central-sigil.active {
    /* Base transform para que las animaciones funcionen correctamente */
    transform: translate(-50%, -50%);
}

.central-sigil.active .sigil-core {
    transform: scale(1.5);
    animation: sigilRainbow 3s ease-in-out infinite;
    animation-delay: 0.8s;
    /* Delay rainbow animation to allow scale transition to complete */
    opacity: 1 !important;
}

/* Buildup gradual de sacudones pequeños antes del pulso */
.central-sigil.active.shake-buildup {
    animation: shakeBuildup 6s ease-in-out forwards;
}

/* Sacudón fuerte con la onda */
.central-sigil.active.wave-pulse {
    animation: shakeBig 0.4s ease-out;
}

/* Dance wave rings */
.central-sigil.active::before,
.central-sigil.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
}

/* Ondas inactivas por defecto - solo se activan con el audio */
.central-sigil.active::before,
.central-sigil.active::after {
    animation: none;
    width: 80%;
    height: 80%;
    opacity: 0;
}

/* Cuando suena el audio, las ondas se activan via JavaScript */
.central-sigil.active.wave-pulse::before {
    animation: danceWave 2s ease-out forwards;
}

.central-sigil.active.wave-pulse::after {
    animation: danceWave 2s ease-out 0.3s forwards;
}

/* Buildup: sacudones pequeños que van creciendo gradualmente */
@keyframes shakeBuildup {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Primer sacudón sutil - 1s */
    12% {
        transform: translate(-50%, -50%) rotate(0.3deg);
    }

    13% {
        transform: translate(-50%, -50%) rotate(-0.3deg);
    }

    14% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Segundo sacudón - 2s */
    25% {
        transform: translate(-50%, -50%) rotate(0.5deg);
    }

    26% {
        transform: translate(-50%, -50%) rotate(-0.5deg);
    }

    27% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Tercer sacudón - 3s */
    38% {
        transform: translate(-50%, -50%) rotate(0.8deg);
    }

    39% {
        transform: translate(-50%, -50%) rotate(-0.8deg);
    }

    40% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Cuarto sacudón - 4s */
    50% {
        transform: translate(-50%, -50%) rotate(1deg);
    }

    51% {
        transform: translate(-50%, -50%) rotate(-1deg);
    }

    52% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Quinto sacudón más fuerte - 5s */
    63% {
        transform: translate(-50%, -50%) rotate(1.3deg);
    }

    64% {
        transform: translate(-50%, -50%) rotate(-1.3deg);
    }

    65% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    /* Sexto sacudón - anticipación del pulso - 6s */
    75% {
        transform: translate(-50%, -50%) rotate(1.5deg);
    }

    76% {
        transform: translate(-50%, -50%) rotate(-1.5deg);
    }

    77% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

/* Sacudón grande único con la onda */
@keyframes shakeBig {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    20% {
        transform: translate(-50%, -50%) rotate(3deg) scale(1.02);
    }

    40% {
        transform: translate(-50%, -50%) rotate(-3deg) scale(1.02);
    }

    60% {
        transform: translate(-50%, -50%) rotate(2deg) scale(1.01);
    }

    80% {
        transform: translate(-50%, -50%) rotate(-1deg) scale(1);
    }

    100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
}

@keyframes danceWave {
    0% {
        width: 80%;
        height: 80%;
        opacity: 0.6;
    }

    100% {
        width: 250%;
        height: 250%;
        opacity: 0;
    }
}

@keyframes sigilBreath {

    0%,
    100% {
        filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(150, 100, 255, 0.4));
    }

    50% {
        filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(100, 200, 255, 0.6));
    }
}

@keyframes sigilRainbow {
    0% {
        filter: brightness(0) invert(1) drop-shadow(0 0 40px rgba(255, 100, 100, 1)) drop-shadow(0 0 80px rgba(255, 100, 100, 0.8)) drop-shadow(0 0 120px rgba(255, 100, 100, 0.5));
    }

    16% {
        filter: brightness(0) invert(1) drop-shadow(0 0 40px rgba(255, 200, 100, 1)) drop-shadow(0 0 80px rgba(255, 200, 100, 0.8)) drop-shadow(0 0 120px rgba(255, 200, 100, 0.5));
    }

    33% {
        filter: brightness(0) invert(1) drop-shadow(0 0 40px rgba(100, 255, 150, 1)) drop-shadow(0 0 80px rgba(100, 255, 150, 0.8)) drop-shadow(0 0 120px rgba(100, 255, 150, 0.5));
    }

    50% {
        filter: brightness(0) invert(1) drop-shadow(0 0 40px rgba(100, 200, 255, 1)) drop-shadow(0 0 80px rgba(100, 200, 255, 0.8)) drop-shadow(0 0 120px rgba(100, 200, 255, 0.5));
    }

    66% {
        filter: brightness(0) invert(1) drop-shadow(0 0 40px rgba(150, 100, 255, 1)) drop-shadow(0 0 80px rgba(150, 100, 255, 0.8)) drop-shadow(0 0 120px rgba(150, 100, 255, 0.5));
    }

    83% {
        filter: brightness(0) invert(1) drop-shadow(0 0 40px rgba(255, 100, 200, 1)) drop-shadow(0 0 80px rgba(255, 100, 200, 0.8)) drop-shadow(0 0 120px rgba(255, 100, 200, 0.5));
    }

    100% {
        filter: brightness(0) invert(1) drop-shadow(0 0 40px rgba(255, 100, 100, 1)) drop-shadow(0 0 80px rgba(255, 100, 100, 0.8)) drop-shadow(0 0 120px rgba(255, 100, 100, 0.5));
    }
}

/* Orbital Rings */
.orbital-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 75%;
    border: 1px solid rgba(150, 150, 255, 0.15);
    border-radius: 50%;
    animation: ringRotate 60s linear infinite;
}

.orbital-ring-2 {
    width: 90%;
    height: 90%;
    border-color: rgba(100, 200, 255, 0.1);
    animation-direction: reverse;
    animation-duration: 90s;
}

@keyframes ringRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Orbital Icons Container */
.orbital-icons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
}

/* Individual Orbital Icons */
.orbital-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    transition: all var(--transition-medium);
    opacity: 0.75;
    cursor: pointer;
    pointer-events: none;
    border-radius: 50%;
    background: transparent;
    will-change: transform, opacity;
}

/* Solo clickeable en la sección mapa (cuando mandala está activo pero NO en footer) */
.mandala-container.clickable .orbital-icon {
    pointer-events: auto;
}

.orbital-icon:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
}

.orbital-icon.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
}

/* Los iconos orbitales sin vibración constante */
.mandala-container.active .orbital-icon {
    opacity: 0.9 !important;
    /* Sin animación constante - solo con el pulso sincronizado */
}

/* Sacudón fuerte de iconos con la onda */
.mandala-container.active.wave-sync .orbital-icon {
    animation: iconShakeBig 0.5s ease-out;
}

/* Wave ring from each icon - inactivo por defecto */
.mandala-container.active .orbital-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(100, 200, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: none;
    opacity: 0;
    width: 60px;
    height: 60px;
}

/* Ondas de iconos sincronizadas con el audio */
.mandala-container.active.wave-sync .orbital-icon::before {
    animation: iconWave 2s ease-out forwards;
}

/* Sacudón grande de iconos sincronizado con la onda */
@keyframes iconShakeBig {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    25% {
        transform: translate(-50%, -50%) scale(1.15) rotate(5deg);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(-3deg);
    }

    75% {
        transform: translate(-50%, -50%) scale(1.05) rotate(2deg);
    }

    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

@keyframes iconWave {

    0%,
    95%,
    100% {
        width: 60px;
        height: 60px;
        opacity: 0;
    }

    5% {
        width: 70px;
        height: 70px;
        opacity: 0.7;
    }

    15% {
        width: 140px;
        height: 140px;
        opacity: 0;
    }
}

/* Icon positioning (8 points around circle) */
.icon-1 {
    top: 2%;
    left: 50%;
}

/* Top */
.icon-2 {
    top: 15%;
    left: 85%;
}

/* Top Right */
.icon-3 {
    top: 50%;
    left: 98%;
}

/* Right */
.icon-4 {
    top: 85%;
    left: 85%;
}

/* Bottom Right */
.icon-5 {
    top: 98%;
    left: 50%;
}

/* Bottom */
.icon-6 {
    top: 85%;
    left: 15%;
}

/* Bottom Left */
.icon-7 {
    top: 50%;
    left: 2%;
}

/* Left */
.icon-8 {
    top: 15%;
    left: 15%;
}

/* Top Left */

.icon-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bio-cyan) 0%, var(--bio-magenta) 40%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    filter: blur(15px);
    z-index: 0;
}

.orbital-icon.active .icon-glow {
    opacity: 0.9;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

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

    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

/* Icon Images */
.icon-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: all var(--transition-medium);
    filter: brightness(1.1) saturate(1);
    border-radius: 50%;
}

.orbital-icon:hover .icon-img {
    filter: brightness(1.1) saturate(1.1) drop-shadow(0 0 8px rgba(150, 200, 255, 0.6));
}

.orbital-icon.active .icon-img {
    filter: brightness(1.3) saturate(1.2) drop-shadow(0 0 15px rgba(150, 200, 255, 0.9));
}

.icon-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-whisper);
    margin-top: 8px;
    opacity: 0;
    transition: opacity var(--transition-fast), color var(--transition-fast);
    position: relative;
    z-index: 20;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

/* Mostrar label en hover Y cuando está activo */
.orbital-icon:hover .icon-label,
.orbital-icon.active .icon-label {
    opacity: 1;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(240, 230, 140, 0.5);
}

/* ============================================
   SCROLLING CONTENT
   ============================================ */

.content {
    position: relative;
    z-index: 10;
}

/* Mapa Section */
.mapa {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
}

.mapa-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-pure);
    margin-bottom: var(--space-md);
    text-align: center;
}

.mapa-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text-mist);
    letter-spacing: 0.05em;
    text-align: center;
    opacity: 0.7;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    position: relative;
}

.epigraph {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 300;
    color: var(--text-mist);
    max-width: 500px;
    margin-bottom: var(--space-lg);
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1.5s ease 0.3s forwards;
}

.title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    background: linear-gradient(135deg,
            #ff6b6b 0%,
            #feca57 15%,
            #48dbfb 30%,
            #ff9ff3 45%,
            #54a0ff 60%,
            #5f27cd 75%,
            #ff6b6b 90%,
            #feca57 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowShift 8s ease-in-out infinite, fadeInUp 1.5s ease 0.6s forwards;
    opacity: 0;
    margin-bottom: var(--space-xs);
}

@keyframes rainbowShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.subtitle {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-mist);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 1.5s ease 0.9s forwards;
}

.tagline {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-whisper);
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeInUp 1.5s ease 1.2s forwards;
}

.scroll-hint {
    position: absolute;
    bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-whisper);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1.5s ease 1.8s forwards;
}

.scroll-hint svg {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   INVITATIONS
   ============================================ */

/* Invitations Section */
.invitations {
    position: relative;
    z-index: 10;
    padding: var(--space-xl) var(--space-md) 15vh var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.invitation {
    max-width: 600px;
    text-align: center;
    padding: var(--space-2xl) 0;
    margin: 0 auto var(--space-xl) auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.invitation.visible {
    opacity: 1;
    transform: translateY(0);
}

.invitation.leaving {
    opacity: 0.3;
    transform: scale(0.98);
}

.invitation-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.3em;
    color: var(--accent-gold);
    opacity: 0.6;
    margin-bottom: var(--space-sm);
}

.invitation-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: var(--space-md) auto;
    display: block;
    filter: brightness(1.1) saturate(1);
    border-radius: 50%;
}

.invitation-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    color: var(--text-pure);
    margin-bottom: var(--space-md);
    line-height: 1.4;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
}

.invitation-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-mist);
    line-height: 2.2;
    letter-spacing: 0.02em;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 0, 0, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */


.footer {
    position: relative;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    background: transparent;
}

.footer-prelude {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent-gold);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.footer-image-container {
    width: 100%;
    max-width: 800px;
    /* Adjust as needed */
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.95);
    transition: all 1.5s ease 0.3s;
    position: relative;
}

/* Optional: Add a nice border/glow to the image container similar to the screenshot */
.footer-image-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border: 1px solid rgba(240, 230, 140, 0.3);
    border-radius: 4px;
    /* Slight rounding if desired */
    pointer-events: none;
    opacity: 0.6;
}

.footer-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    filter: brightness(0.9) contrast(1.1);
}

.footer-whisper {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 300;
    color: var(--text-mist);
    max-width: 500px;
    line-height: 1.8;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 1s ease;
}

.footer-whisper.visible {
    opacity: 1;
}

.footer-signature {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-whisper);
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.footer-whisper.visible+.footer-signature {
    opacity: 0.6;
}

/* ============================================
   LILA CONTEXT SECTION
   ============================================ */

.lila-context {
    max-width: 700px;
    margin: var(--space-2xl) auto;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

.context-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.1em;
}

.context-text {
    margin-bottom: var(--space-md);
    line-height: 2;
    color: var(--text-light);
}

.context-text em {
    color: var(--bio-cyan);
    font-style: normal;
}

.context-text strong {
    color: var(--text-pure);
}

.cta-link {
    display: inline-block;
    margin-top: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    color: var(--bio-cyan);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border: 1px solid rgba(80, 200, 255, 0.3);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.cta-link:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(240, 230, 140, 0.2);
}

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

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .mandala-container {
        width: 100vw;
        height: 100vw;
        opacity: 0.1;
    }

    .orbital-icon {
        width: 40px;
        height: 40px;
    }

    .icon-svg {
        width: 28px;
        height: 28px;
    }

    .icon-label {
        display: none;
    }

    .invitation {
        padding: var(--space-md);
    }

    .invitations {
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .title {
        letter-spacing: 0.15em;
    }

    .subtitle {
        letter-spacing: 0.2em;
        font-size: 1rem;
    }

    .epigraph {
        font-size: 1rem;
        padding: 0 var(--space-sm);
    }

    .invitation-title {
        font-size: 1.3rem;
    }

    .invitation-text {
        font-size: 1rem;
        line-height: 2;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--void-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--indigo-rich);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--indigo-glow);
}

/* Selection */
::selection {
    background: var(--accent-gold);
    color: var(--void-deep);
}

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

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .mandala-container {
        width: min(95vw, 350px);
        height: min(95vw, 350px);
    }

    .orbital-icon {
        width: 50px;
        height: 50px;
    }

    .icon-img {
        width: 40px;
        height: 40px;
    }

    .icon-label {
        font-size: 0.45rem;
        display: none;
        /* Ocultar labels en móvil - muy pequeños */
    }

    .invitation-icon {
        width: 60px;
        height: 60px;
    }

    .hero .title {
        font-size: clamp(3rem, 15vw, 6rem);
    }

    .mapa-subtitle {
        margin-top: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .mandala-container {
        width: min(98vw, 280px);
        height: min(98vw, 280px);
    }

    .central-sigil {
        width: 40%;
        height: 40%;
    }

    .orbital-icon {
        width: 40px;
        height: 40px;
    }

    .icon-img {
        width: 32px;
        height: 32px;
    }
}