:root {
    --gold-start: #FCEABB;
    --gold-end: #F8B500;
    --gold-accent: #bf953f;
    --dark-bg: #050212;
    --card-bg: rgba(255, 255, 255, 0.03);
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent;
}

html, body {
    /* Forzamos que el alto sea siempre el total de la pantalla desde el inicio */
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    overflow: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: white;
    display: flex; 
    justify-content: center; 
    align-items: center;
    position: relative;
    /* Optimización de renderizado de fondo */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 120, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(30, 100, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, #0d0d2b 0%, #000000 100%);
    background-size: 150% 150%;
    animation: gradient-flow 15s ease infinite alternate;
}




        @keyframes gradient-flow { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }

        /* Partículas de oro */
        .particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; pointer-events: none; }
/* 1. Aseguramos que el contenedor de partículas esté por encima del fondo */
.particles { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 1; /* Subimos el nivel */
    pointer-events: none; 
}

/* 2. El contenedor principal debe estar por encima de las partículas */
.container {
    position: relative; 
    z-index: 2; /* Un nivel más arriba que las partículas */
    width: 100%; 
    max-width: 400px; 
    height: 100dvh; 
    padding: 2vh 20px;
    display: flex; 
    flex-direction: column; 
    justify-content: space-evenly; 
    align-items: center; 
    text-align: center;
    will-change: transform;
}

/* 3. Mejoramos la visibilidad de la partícula (opacidad) */
.particle { 
    position: absolute; 
    width: 3px; 
    height: 3px; 
    background: var(--gold-end); 
    border-radius: 50%; 
    opacity: 0; 
    bottom: -10px; 
    animation: float-up linear infinite;
    /* Añadimos un pequeño brillo para que resalten en el fondo oscuro */
    box-shadow: 0 0 5px var(--gold-end); 
}
        @keyframes float-up {
            0% { transform: translateY(0) scale(1); opacity: 0; }
            20% { opacity: 0.4; }
            80% { opacity: 0.4; }
            100% { transform: translateY(-110vh) scale(1.5); opacity: 0; }
        }

.container {
    position: relative; 
    z-index: 2;
    width: 100%; 
    max-width: 400px; 
    /* Usamos min-height para asegurar que ocupe espacio aunque el contenido tarde en cargar */
    height: 100dvh; 
    padding: 2vh 20px;
    display: flex; 
    flex-direction: column; 
    justify-content: space-evenly; 
    align-items: center; 
    text-align: center;
    /* Evita que los elementos "reboten" al aparecer */
    will-change: transform;
}

        .header-section { display: flex; flex-direction: column; align-items: center; gap: 1vh; }
/* Ajuste importante para el logo y evitar saltos de imagen */
.logo-area {
    min-height: 120px; /* Reserva el espacio antes de que cargue la imagen */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}
        .logo-img { height: auto; width: auto; max-height: 15vh; max-width: 180px; filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5)); }

        h1 {
            font-size: clamp(1.5rem, 3.5vh, 2rem); font-weight: 800; margin: 0; text-transform: uppercase;
            background: linear-gradient(to bottom, #fff 20%, #ffcc66 50%, #b38728 100%);
            background-clip: text; /* Propiedad Estándar */
            -webkit-background-clip: text; /* Propiedad Webkit */
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); letter-spacing: -0.5px;
        }

        .subtitle { color: rgba(255, 255, 255, 0.8); font-size: clamp(0.9rem, 1.8vh, 1.1rem); margin: 2px 0; font-weight: 500; letter-spacing: 1px; }

        .timer-box {
            background: var(--card-bg);
            border: 1px solid rgba(255, 215, 0, 0.15); border-top: 1px solid rgba(255, 215, 0, 0.3);
            border-radius: 24px; padding: 2.5vh 20px; width: 100%;
            backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.6);
            display: flex; flex-direction: column; gap: 1vh;
        }

        .timer-title { font-size: 0.7rem; color: #d4af37; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; }
        #countdown { font-size: clamp(2.5rem, 6vh, 3.5rem); font-weight: 800; color: white; margin: 0; font-variant-numeric: tabular-nums; }
        .divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); width: 80%; margin: 5px auto; }
        
        .benefits { display: flex; justify-content: center; gap: 15px; }
        .benefit-item { font-size: 0.8rem; color: #fff; display: flex; align-items: center; font-weight: 600; }
        .check { color: #F8B500; margin-right: 5px; }

        /* --- BOTÓN DE ACCIÓN --- */
        .cta-button {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 22px;
            border-radius: 18px;
            text-decoration: none;
            color: #1a0f00;
            font-weight: 900;
            font-size: 1.1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 45%, #b38728 55%, #fbf5b7 100%);
            background-size: 300% 300%;
            box-shadow: 
                0 10px 25px rgba(248, 181, 0, 0.4),
                inset 0 -4px 0 rgba(0,0,0,0.2),
                inset 0 2px 0 rgba(255,255,255,0.5);
            animation: pulse-gold 1.5s infinite, shimmer 4s infinite linear;
            overflow: hidden;
            transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .cta-button::after {
            content: '';
            position: absolute;
            top: -50%; left: -60%;
            width: 50px; height: 200%;
            background: rgba(255, 255, 255, 0.6);
            transform: rotate(30deg);
            animation: shine 3s infinite;
        }

/* Estilo para la imagen dentro del botón */
.cta-button img {
    height: 40px; /* Tamaño adecuado para el texto de 1.1rem */
    width: auto;
    margin-right: 12px; /* Espacio entre el icono y el texto */
    vertical-align: middle;
    /* Filtro para que el icono se vea más oscuro/elegante y combine con el texto */

    transition: transform 0.3s ease;
}

/* Efecto opcional: que el icono se mueva ligeramente al pasar el mouse */
.cta-button:hover img {
    transform: scale(1.1) rotate(-5deg);
}

        .cta-button:active { transform: scale(0.95); }

        .urgent-warning { margin-top: 15px; color: #ffcc66; font-size: 0.9rem; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
        .blink { animation: blinker 1s linear infinite; }

        @keyframes shine { 0% { left: -60%; } 20% { left: 140%; } 100% { left: 140%; } }
        @keyframes pulse-gold {
            0% { transform: scale(1); box-shadow: 0 10px 25px rgba(248, 181, 0, 0.4); }
            50% { transform: scale(1.05); box-shadow: 0 15px 35px rgba(248, 181, 0, 0.6); }
            100% { transform: scale(1); box-shadow: 0 10px 25px rgba(248, 181, 0, 0.4); }
        }
        @keyframes shimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
        @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
        @keyframes blinker { 50% { opacity: 0.3; } }

        @media (max-height: 650px) {
            .container { padding: 10px 20px; }
            .timer-box { padding: 15px; }
            h1 { font-size: 1.2rem; }
            #countdown { font-size: 2.2rem; }
            .cta-button { padding: 18px; font-size: 1rem; }
        }
