


/* ── 01. FUENTES Y RESET ─────────────────────────────────── */
@font-face {
    font-family: 'MarioFont';
    src: url('../font/SuperMario256.ttf') format('truetype');
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Press+Start+2P&display=swap');

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


/* ── 02. VARIABLES ───────────────────────────────────────── */
:root {
    /* Paleta Mario refinada */
    --mario-red:      #e63946;
    --mario-red-dk:   #b8232f;
    --mario-blue:     #2563eb;
    --mario-blue-dk:  #1d4ed8;
    --mario-sky:      #7dd3fc;
    --mario-sky-lt:   #bae6fd;
    --mario-yellow:   #fcd34d;
    --mario-yellow-dk:#f59e0b;
    --mario-green:    #16a34a;
    --mario-green-lt: #22c55e;
    --mario-brown:    #92400e;

    /* Neutros */
    --dark:           #0f172a;
    --ink:            #1e293b;
    --muted:          #64748b;
    --white:          #ffffff;
    --cream:          #fffbeb;

    /* Superficies / glass */
    --surface:        rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-dark:   rgba(15, 23, 42, 0.55);
    --glass-border:   rgba(255, 255, 255, 0.45);
    --glass-blur:     16px;

    /* Sombras */
    --shadow-sm:  0 2px 6px rgba(15, 23, 42, 0.08);
    --shadow-md:  0 10px 25px -8px rgba(15, 23, 42, 0.18);
    --shadow-lg:  0 25px 50px -12px rgba(15, 23, 42, 0.28);
    --shadow-xl:  0 35px 70px -20px rgba(15, 23, 42, 0.35);
    --shadow-glow:0 0 40px rgba(252, 211, 77, 0.45);

    /* Gradientes */
    --grad-sky:    linear-gradient(180deg, #93c5fd 0%, #bfdbfe 60%, #e0f2fe 100%);
    --grad-hero:   linear-gradient(160deg, #1e3a8a 0%, #1e40af 50%, #312e81 100%);
    --grad-night:  linear-gradient(160deg, #0f172a 0%, #1e1b4b 60%, #4c1d95 100%);
    --grad-red:    linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --grad-blue:   linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --grad-green:  linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --grad-yellow: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    --grad-card:   linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,251,235,0.9) 100%);

    /* Tipografía */
    --font-display: 'MarioFont', 'Press Start 2P', system-ui, sans-serif;
    --font-pixel:   'Press Start 2P', monospace;
    --font-body:    'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Radios */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 28px;
    --r-full: 999px;

    /* Transiciones */
    --t-fast:   180ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-base:   280ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-spring: 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ── 03. TIPOGRAFÍA Y BASE ───────────────────────────────── */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--grad-sky);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: 0.02em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a { color: inherit; text-decoration: none; }


/* ── 04. FONDO ANIMADO (MUNDO MARIO) ─────────────────────── */
.mundo-mario {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Nubes suaves */
.nube {
    position: absolute;
    font-size: clamp(2rem, 4vw, 3.2rem);
    opacity: 0.85;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.6));
    animation: nubeDeriva linear infinite;
}
.nube-1 { top:  8%; left: -10%; animation-duration: 60s; }
.nube-2 { top: 22%; left: -10%; animation-duration: 80s; animation-delay: -20s; font-size: 2.4rem; }
.nube-3 { top: 38%; left: -10%; animation-duration: 70s; animation-delay: -40s; }
.nube-4 { top: 55%; left: -10%; animation-duration: 90s; animation-delay: -55s; font-size: 2rem; }

@keyframes nubeDeriva {
    from { transform: translateX(0); }
    to   { transform: translateX(120vw); }
}

/* Bloques ? con estética refinada */
.bloque {
    position: absolute;
    width: clamp(46px, 5vw, 64px);
    aspect-ratio: 1;
    background: var(--grad-yellow);
    border-radius: var(--r-sm);
    border: 2px solid rgba(146, 64, 14, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    color: var(--mario-brown);
    box-shadow:
        inset 0 -6px 0 rgba(146, 64, 14, 0.25),
        inset 0 4px 0 rgba(255, 255, 255, 0.45),
        0 12px 30px -8px rgba(245, 158, 11, 0.55);
    animation: bloqueFloat ease-in-out infinite;
}
.bloque-1 { top: 15%; right: 8%;  animation-duration: 5s; }
.bloque-2 { top: 45%; right: 15%; animation-duration: 6s; animation-delay: -2s; }
.bloque-3 { top: 28%; left: 5%;   animation-duration: 4.5s; animation-delay: -1s; }

@keyframes bloqueFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-16px) rotate(2deg); }
}

/* Hongos */
.hongo {
    position: absolute;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    filter: drop-shadow(0 6px 14px rgba(231, 57, 70, 0.35));
    animation: hongoFloat ease-in-out infinite;
}
.hongo-1 { top: 70%; left: 6%;  animation-duration: 7s; }
.hongo-2 { top: 22%; right: 4%; animation-duration: 8s; animation-delay: -3s; }

@keyframes hongoFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-12px) rotate(6deg); }
}

/* Estrellas */
.estrella-bg {
    position: absolute;
    opacity: 0.7;
    filter: drop-shadow(0 0 12px rgba(252, 211, 77, 0.6));
    animation: estrellaGiro linear infinite;
}
.e1 { top:  6%; left: 60%; font-size: 2rem;   animation-duration: 12s; }
.e2 { top: 80%; right: 10%; font-size: 1.6rem; animation-duration: 9s;  animation-delay: -3s; }
.e3 { top: 55%; left: 3%;  font-size: 2.2rem; animation-duration: 14s; animation-delay: -5s; }

@keyframes estrellaGiro {
    from { transform: rotate(0) scale(1); }
    50%  { transform: rotate(180deg) scale(1.2); }
    to   { transform: rotate(360deg) scale(1); }
}

/* Suelo — banda sutil */
.suelo {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 56px;
    display: flex;
    background: linear-gradient(180deg, #d97706 0%, #92400e 60%, #78350f 100%);
    border-top: 3px solid rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.18);
}
.suelo-bloque {
    flex: 1;
    min-width: 40px;
    border-right: 1px dashed rgba(0, 0, 0, 0.15);
    position: relative;
}
.suelo-bloque::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 14px;
    background: rgba(0, 0, 0, 0.18);
}


/* ── 05. LAYOUT GENERAL ──────────────────────────────────── */
.seccion-bloque {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
    position: relative;
    z-index: 10;
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 60px);
    gap: clamp(24px, 4vw, 48px);
}

.seccion-presentacion {
    align-items: center;
}


/* ── 06. SECCIÓN 1 — HERO / BIENVENIDA ───────────────────── */
.panel-imagen-hero {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--grad-hero);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 5vw, 64px) 24px;
    isolation: isolate;
}

/* Brillos radiales */
.panel-imagen-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(252, 211, 77, 0.22), transparent 45%),
        radial-gradient(circle at 80% 85%, rgba(239, 68, 68, 0.18), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Grilla técnica sutil */
.panel-imagen-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.panel-decoracion {
    display: flex;
    gap: 18px;
    font-size: 1.7rem;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: decoFloat 3s ease-in-out infinite;
}

@keyframes decoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.hero-img-wrap {
    position: relative;
    width: clamp(180px, 22vw, 260px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    animation: heroFloat 4s ease-in-out infinite;
}

.hero-img-wrap::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle, rgba(252,211,77,0.35) 0%, transparent 60%);
    z-index: -1;
    animation: heroAura 4s ease-in-out infinite;
}

.hero-img-wrap::after {
    content: '';
    position: absolute;
    bottom: -8%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 16px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.5) 0%, transparent 70%);
    filter: blur(4px);
    animation: sombra 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-18px); }
}
@keyframes heroAura {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}
@keyframes sombra {
    0%, 100% { transform: translateX(-50%) scaleX(1);   opacity: 0.45; }
    50%      { transform: translateX(-50%) scaleX(0.65); opacity: 0.2; }
}

.hero-img-wrap img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45));
    image-rendering: auto;
}

.hero-nombre {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    color: var(--mario-yellow);
    margin-top: 28px;
    text-shadow:
        2px 2px 0 var(--mario-red-dk),
        4px 4px 0 rgba(0,0,0,0.4),
        0 0 32px rgba(252, 211, 77, 0.4);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: pulsaNombre 2.5s ease-in-out infinite;
}

@keyframes pulsaNombre {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

.hero-nivel {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--grad-red);
    padding: 10px 22px;
    border-radius: var(--r-full);
    box-shadow: 0 8px 20px -4px rgba(220, 38, 38, 0.6), inset 0 1px 0 rgba(255,255,255,0.3);
}

.hero-nivel button{
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.25em;

    text-decoration: none;
    border: none;
    background: transparent;
}

@keyframes blinkLevel {
    0%, 90%, 100% { opacity: 1; transform: scale(1); }
    95%           { opacity: 0.85; transform: scale(0.98); }
}


/* Panel texto (lado derecho) */
.panel-texto {
    flex: 1;
    padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--r-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.panel-bienvenida { background: var(--surface); }

.titulo-seccion {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--r-full);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.7);
}

.titulo-icono {
    font-size: 1.6rem;
    animation: iconoBounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes iconoBounce {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-6px) rotate(8deg); }
}

.titulo-seccion h2 {
    font-size: clamp(1rem, 2.2vw, 1.5rem);
    color: var(--mario-red);
    text-shadow: 2px 2px 0 rgba(184, 35, 47, 0.25);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
}

.tarjeta-mensaje {
    background: var(--grad-card);
    border: 1px solid rgba(252, 211, 77, 0.5);
    padding: clamp(24px, 3vw, 36px);
    width: 100%;
    max-width: 560px;
    border-radius: var(--r-lg);
    box-shadow:
        0 20px 40px -16px rgba(245, 158, 11, 0.35),
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    backdrop-filter: blur(8px);
}

.tarjeta-mensaje::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(245, 158, 11, 0.35);
    border-radius: calc(var(--r-lg) - 8px);
    pointer-events: none;
}

.msg-grande {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.9vw, 1.35rem);
    color: var(--mario-red);
    text-shadow: 2px 2px 0 rgba(184, 35, 47, 0.2);
    letter-spacing: 0.1em;
    margin-bottom: 14px !important;
    animation: pulsaNombre 3s ease-in-out infinite;
}

.separador-pixel {
    height: 6px;
    background: linear-gradient(
        90deg,
        var(--mario-red) 0%, var(--mario-red) 25%,
        var(--mario-yellow) 25%, var(--mario-yellow) 50%,
        var(--mario-blue) 50%, var(--mario-blue) 75%,
        var(--mario-green) 75%, var(--mario-green) 100%
    );
    margin: 18px auto;
    width: 80%;
    border-radius: var(--r-full);
    opacity: 0.85;
}

.tarjeta-mensaje p {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.8;
    color: var(--ink);
    font-family: var(--font-body);
    margin-bottom: 8px;
}

.nombre-destacado {
    font-family: var(--font-display) !important;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem) !important;
    color: var(--mario-blue) !important;
    text-shadow: 2px 2px 0 rgba(29, 78, 216, 0.25);
    letter-spacing: 0.08em;
    margin: 8px 0 !important;
}

.vida-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    background: var(--dark);
    padding: 12px 24px;
    border-radius: var(--r-full);
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    border: 1px solid rgba(252, 211, 77, 0.4);
}

.vida-counter span:not(.vida-texto) {
    animation: heartbeat 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.6));
}
.vida-counter span:nth-child(2) { animation-delay: 0.2s; }
.vida-counter span:nth-child(3) { animation-delay: 0.4s; }

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    30%      { transform: scale(1.18); }
    60%      { transform: scale(1); }
}

.vida-texto {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--mario-yellow);
    letter-spacing: 0.2em;
    margin-left: 8px;
}


/* ── 07. DIVISOR MUNDO ───────────────────────────────────── */
.divisor-mundo {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    background: linear-gradient(180deg, var(--mario-green-lt) 0%, var(--mario-green) 100%);
    padding: 12px 40px;
    position: relative;
    z-index: 10;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -3px 0 rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(22, 163, 74, 0.25);
}

.divisor-texto {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--white);
    letter-spacing: 0.3em;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    padding-bottom: 6px;
}

.tubo {
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.tubo-cabeza {
    width: 54px;
    height: 18px;
    background: linear-gradient(180deg, var(--mario-green-lt), var(--mario-green));
    border-radius: 6px 6px 0 0;
    box-shadow:
        inset -6px 0 0 rgba(0,0,0,0.18),
        inset 4px 2px 0 rgba(255,255,255,0.3);
}

.tubo-cuerpo {
    width: 42px;
    height: 28px;
    background: linear-gradient(180deg, var(--mario-green), #0d8838);
    box-shadow:
        inset -4px 0 0 rgba(0,0,0,0.2),
        inset 3px 0 0 rgba(255,255,255,0.15);
}


/* ── 08. SECCIÓN 2 — UBICACIÓN ───────────────────────────── */
.seccion-ubicacion {
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(186, 230, 253, 0.4) 100%);
}

.panel-ubicacion {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}

.tarjeta-ubicacion {
    background: var(--grad-card);
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: clamp(24px, 3vw, 32px);
    margin-bottom: 24px;
    border-radius: var(--r-lg);
    box-shadow:
        0 20px 40px -16px rgba(37, 99, 235, 0.3),
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    transition: transform var(--t-base), box-shadow var(--t-base);
}
.tarjeta-ubicacion:hover {
    transform: translateY(-4px);
    box-shadow:
        0 28px 50px -16px rgba(37, 99, 235, 0.4),
        var(--shadow-lg);
}

.ubicacion-icono {
    font-size: 2.6rem;
    filter: drop-shadow(0 6px 12px rgba(37, 99, 235, 0.35));
    animation: iconoBounce 2.5s ease-in-out infinite;
}

.ubicacion-nombre {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: var(--mario-blue-dk);
    letter-spacing: 0.08em;
    text-align: center;
}

.mapa {
    width: 100%;
    margin: 8px 0;
    border-radius: var(--r-lg);
    box-shadow:
        0 25px 50px -16px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    background: var(--white);
}

.mapa iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: none;
}

.mapa-btns {
    display: flex;
    gap: 1px;
    background: rgba(15, 23, 42, 0.1);
}

.subtitulo-espera {
    margin-top: 32px;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--mario-red);
    text-shadow: 2px 2px 0 rgba(184, 35, 47, 0.25);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    animation: pulsaNombre 2.5s ease-in-out infinite;
}


/* ── 09. SECCIÓN 3 — CONTADOR ────────────────────────────── */
.seccion-contador {
    padding: 0;
    min-height: 100vh;
}

.panel-contador {
    width: 100%;
    background: var(--grad-night);
    color: var(--white);
    padding: clamp(60px, 8vw, 100px) clamp(28px, 5vw, 80px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.panel-contador::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(252, 211, 77, 0.18), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(239, 68, 68, 0.15), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.12), transparent 60%);
    z-index: -1;
}

.panel-contador::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.6) 50%, transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(252,211,77,0.5) 50%, transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.7) 50%, transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(186, 230, 253, 0.6) 50%, transparent),
        radial-gradient(2px 2px at 90% 50%, rgba(255,255,255,0.4) 50%, transparent);
    background-size: 400px 400px;
    opacity: 0.7;
    z-index: -1;
}

@keyframes starfield {
    to { background-position: 400px 400px, -400px -400px, 200px -200px, -200px 200px, 0 400px; }
}

.titulo-blanco {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}
.titulo-blanco h2 {
    color: var(--mario-yellow) !important;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5) !important;
}

.fecha-grande {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px 48px;
    border-radius: var(--r-lg);
    position: relative;
    box-shadow: 0 20px 40px -16px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}

.fecha-grande::before,
.fecha-grande::after {
    content: '★';
    font-size: 1.6rem;
    color: var(--mario-yellow);
    position: absolute;
    filter: drop-shadow(0 0 8px rgba(252, 211, 77, 0.6));
    animation: estrellaGiro 8s linear infinite;
}
.fecha-grande::before { left: 14px; }
.fecha-grande::after  { right: 14px; }

.fecha-dia {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.2rem);
    color: var(--mario-yellow);
    text-shadow:
        3px 3px 0 var(--mario-red-dk),
        6px 6px 0 rgba(0, 0, 0, 0.5),
        0 0 30px rgba(252, 211, 77, 0.5);
    line-height: 1;
}

.fecha-textos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.fecha-mes {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--mario-yellow);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
    letter-spacing: 0.15em;
}

.fecha-subtexto {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--mario-sky-lt);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 500;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.tiempo {
    background: linear-gradient(160deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(252, 211, 77, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--r-md);
    padding: 20px 24px;
    min-width: 92px;
    text-align: center;
    position: relative;
    box-shadow:
        0 12px 30px -8px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform var(--t-spring), border-color var(--t-base);
}
.tiempo:hover {
    transform: translateY(-6px);
    border-color: var(--mario-yellow);
}

.tiempo span {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3.4rem);
    color: var(--mario-yellow);
    text-shadow:
        2px 2px 0 var(--mario-red-dk),
        4px 4px 0 rgba(0, 0, 0, 0.5);
    line-height: 1;
    animation: tick 1s ease-out infinite;
}

.tiempo p {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--mario-sky-lt);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 10px;
    font-weight: 600;
}

.tiempo-sep {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: var(--mario-yellow);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
    animation: parpadeo 1s ease-in-out infinite;
    margin-bottom: 22px;
    opacity: 0.8;
}

@keyframes parpadeo {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

.evento-en-curso {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--mario-yellow);
    text-shadow: 3px 3px 0 var(--mario-red-dk), 6px 6px 0 #000;
    animation: blinkLevel 1s ease-in-out infinite;
    letter-spacing: 0.15em;
    padding: 24px;
}

/* Barra de puntos */
.puntos-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 440px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 22px;
    border-radius: var(--r-full);
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--mario-yellow);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}


/* ── 10. BOTONES (SISTEMA) ───────────────────────────────── */

/* Botón base — link/mapa */
.btn-mapa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    background: var(--grad-blue);
    padding: 14px 26px;
    border-radius: var(--r-full);
    box-shadow:
        0 10px 20px -6px rgba(37, 99, 235, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.btn-mapa::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.3) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform 600ms;
}
.btn-mapa:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 30px -8px rgba(37, 99, 235, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-mapa:hover::before { transform: translateX(100%); }
.btn-mapa:active { transform: translateY(-1px); }

/* Botones del mapa (segmento inferior) */
.mapa-btns .btn-mapa,
.mapa-btns .btn-calendario {
    flex: 1;
    border-radius: 0;
    padding: 16px 12px;
    font-size: 0.82rem;
    box-shadow: none;
}
.mapa-btns .btn-mapa { background: var(--grad-blue); }
.mapa-btns .btn-mapa:hover { filter: brightness(1.1); transform: none; }

.btn-calendario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    background: var(--grad-green);
    padding: 16px 12px;
    text-align: center;
    transition: filter var(--t-fast);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    border: none;
}
.btn-calendario:hover { filter: brightness(1.12); }

/* Botón CTA principal */
.btn-asist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 44px;
    background: var(--grad-red);
    color: var(--white);
    border: none;
    border-radius: var(--r-full);
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    box-shadow:
        0 18px 36px -10px rgba(220, 38, 38, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 0 4px rgba(252, 211, 77, 0.35);
    transition: transform var(--t-spring), box-shadow var(--t-base);
    animation: pulsaBtn 2.6s ease-in-out infinite;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}
.btn-asist::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.3) 50%, transparent 65%);
    transform: translateX(-100%);
    transition: transform 700ms;
}
.btn-asist:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 28px 50px -10px rgba(220, 38, 38, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 4px rgba(252, 211, 77, 0.5);
    animation: none;
}
.btn-asist:hover::before { transform: translateX(100%); }
.btn-asist:active { transform: translateY(-1px) scale(1); }

.btn-icono { font-size: 1.25rem; }

@keyframes pulsaBtn {
    0%, 100% {
        box-shadow:
            0 18px 36px -10px rgba(220, 38, 38, 0.7),
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            0 0 0 4px rgba(252, 211, 77, 0.35);
    }
    50% {
        box-shadow:
            0 22px 44px -10px rgba(220, 38, 38, 0.85),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 0 0 8px rgba(252, 211, 77, 0.25),
            0 0 40px rgba(239, 68, 68, 0.5);
    }
}


/* ── 11. MODAL ───────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeInModal 0.3s ease forwards;
}

.modal-box {
    background: var(--cream);
    border-radius: var(--r-xl);
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 56px 44px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: slideUpModal 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    overflow: hidden;
}

.modal-header-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
    background: linear-gradient(
        90deg,
        var(--mario-red) 0%, var(--mario-red) 25%,
        var(--mario-yellow) 25%, var(--mario-yellow) 50%,
        var(--mario-blue) 50%, var(--mario-blue) 75%,
        var(--mario-green) 75%, var(--mario-green) 100%
    );
}

.modal-coin {
    position: absolute;
    font-size: 30px;
    animation: coinBounce 1.4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(252, 211, 77, 0.6));
    line-height: 1;
    z-index: 2;
}
.coin-tl { top: -14px;    left: 18px;  }
.coin-tr { top: -14px;    right: 18px; animation-delay: 0.3s; }
.coin-bl { bottom: -14px; left: 18px;  animation-delay: 0.6s; }
.coin-br { bottom: -14px; right: 18px; animation-delay: 0.9s; }

.modal-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--mario-red);
    text-shadow: 2px 2px 0 rgba(184, 35, 47, 0.25);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 8px;
}

.modal-subtitle {
    font-family: var(--font-display);
    font-size: 0.72rem;
    color: var(--mario-blue);
    letter-spacing: 0.3em;
    margin-bottom: 28px;
    opacity: 0.85;
    animation: parpadeo 1.8s ease-in-out infinite;
}

.modal-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    text-align: left;
}

.modal-field label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-field input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow-sm), inset 0 1px 2px rgba(0,0,0,0.04);
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
    font-weight: 500;
}
.modal-field input:focus {
    border-color: var(--mario-red);
    box-shadow:
        0 0 0 4px rgba(231, 57, 70, 0.15),
        var(--shadow-md);
    transform: translateY(-1px);
}
.modal-field input::placeholder {
    color: var(--muted);
    font-weight: 400;
}

.modal-msg {
    font-family: var(--font-body);
    font-size: 0.85rem;
    min-height: 24px;
    margin: 8px 0 4px;
    letter-spacing: 0.02em;
    font-weight: 500;
}
.modal-msg--ok    { color: var(--mario-green); }
.modal-msg--error { color: var(--mario-red); }

.modal-btn {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-confirm,
.btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    color: var(--white);
    border: none;
    border-radius: var(--r-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
}

.btn-confirm {
    background: var(--grad-green);
    box-shadow:
        0 10px 22px -6px rgba(22, 163, 74, 0.55),
        inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-confirm:hover  { transform: translateY(-2px); box-shadow: 0 16px 28px -8px rgba(22, 163, 74, 0.65), inset 0 1px 0 rgba(255,255,255,0.3); filter: brightness(1.05); }
.btn-confirm:active { transform: translateY(0); }
.btn-confirm:disabled {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-cancel {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow:
        0 10px 22px -6px rgba(100, 116, 139, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-cancel:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 16px 28px -8px rgba(100, 116, 139, 0.6), inset 0 1px 0 rgba(255,255,255,0.3);
}

.modal-footer {
    margin-top: 24px;
    font-family: var(--font-display);
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    padding-top: 16px;
}


/* ── 12. KEYFRAMES GLOBALES ──────────────────────────────── */
@keyframes fadeInModal {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(40px) scale(0.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes coinBounce {
    0%, 100% { transform: translateY(0) rotateY(0); }
    50%      { transform: translateY(-10px) rotateY(180deg); }
}

@keyframes tick {
    0%, 80%, 100% { transform: scale(1); }
    85%           { transform: scale(1.12); }
}


/* ── 13. UTILIDADES / ACCESIBILIDAD ──────────────────────── */
:focus-visible {
    outline: 3px solid var(--mario-yellow);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

::selection {
    background: var(--mario-yellow);
    color: var(--ink);
}

/* Scrollbar elegante */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.05); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--mario-red), var(--mario-red-dk));
    border-radius: var(--r-full);
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--mario-red-dk), var(--mario-red));
    background-clip: padding-box;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms ;
        animation-iteration-count: 1 ;
        transition-duration: 0.01ms ;
        scroll-behavior: auto ;
    }
}


/* ── 14. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .panel-imagen-hero { flex: 0 0 40%; }
    .seccion-bloque { gap: 28px; }
}

@media (max-width: 860px) {
    .seccion-presentacion {
        flex-direction: column;
    }
    .panel-imagen-hero {
        flex: 0 0 auto;
        width: 100%;
        min-height: 50vh;
        padding: 48px 24px;
    }
    .panel-texto {
        width: 100%;
        padding: 40px 28px;
    }
    .seccion-bloque {
        padding: 36px 20px;
        gap: 24px;
    }
    .divisor-mundo { padding: 10px 24px; gap: 16px; }
    .bloque { display: none; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }

    .panel-imagen-hero { min-height: 44vh; padding: 36px 20px; border-radius: var(--r-lg); }
    .panel-texto       { padding: 32px 20px; border-radius: var(--r-lg); }

    .hero-img-wrap { width: 170px; }
    .hero-nombre   { margin-top: 18px; }

    .titulo-seccion { padding: 8px 16px; gap: 10px; margin-bottom: 24px; }
    .tarjeta-mensaje { padding: 22px 18px; }

    .countdown { gap: 8px; }
    .tiempo { min-width: 70px; padding: 14px 12px; }
    .tiempo-sep { font-size: 1.6rem; margin-bottom: 16px; }

    .fecha-grande { padding: 18px 32px; gap: 16px; }
    .fecha-grande::before, .fecha-grande::after { display: none; }

    .mapa iframe { height: 240px; }
    .mapa-btns { flex-direction: column; }

    .btn-asist { padding: 16px 28px; }

    .modal-box { padding: 44px 24px 28px; }
    .modal-btn { flex-direction: column; }
    .btn-confirm, .btn-cancel { width: 100%; }
}

@media (max-width: 380px) {
    .tiempo span { font-size: 1.6rem; }
    .fecha-dia   { font-size: 2.6rem; }
    .modal-title { font-size: 0.88rem; }
    .panel-decoracion { font-size: 1.3rem; gap: 12px; }
}
