:root {
    --primary-font: 'Roboto', sans-serif;
    --title-font: 'Cinzel', serif;
    --ui-font: 'Rajdhani', sans-serif;
    --text-color: #f0f0f0;
    --bg-dark: #000000;
    
    /* COLORES INTERCAMBIADOS */
    --fiel-color1: #29527a;
    --fiel-color2: #5c9be6;
    
    --grat-color1: #a77035;
    --grat-color2: #e0a96d;
    
    --jeke-color1: #6a1b9a;
    --jeke-color2: #d500f9;
    --jeke-color3: #ffd700;
}

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

body {
    font-family: var(--primary-font);
    color: var(--text-color);
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* ==================================== */
/* PARALLAX LAYERED BACKGROUND          */
/* ==================================== */

.parallax-bg-base {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('assets/images/bg_fire.png');
    background-size: cover;
    background-position: center;
    z-index: -4; /* Bottommost layer */
}

.floating-asset {
    position: fixed;
    top: 0;
    height: 100vh;
    object-fit: cover;
    /* Blend mode screen removes black background completely */
    mix-blend-mode: screen; 
    z-index: -3; /* Above fire base, below canvas */
    pointer-events: none;
    opacity: 0.9;
    animation: float-asset 6s ease-in-out infinite alternate;
}

.left-asset {
    left: -5vw;
    width: 45vw; /* Fills left side */
    object-position: left center;
}

.right-asset {
    right: -5vw;
    width: 45vw; /* Fills right side */
    object-position: right center;
    animation: float-asset-right 7s ease-in-out infinite alternate;
}

@keyframes float-asset {
    0% { transform: translateY(10px) rotate(-1deg) scale(1); }
    100% { transform: translateY(-60px) rotate(3deg) scale(1.05); }
}

@keyframes float-asset-right {
    0% { transform: translateY(-30px) rotate(-2deg) scale(1.02); }
    100% { transform: translateY(50px) rotate(2deg) scale(1); }
}

/* Canvas de partículas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: transparent;
    pointer-events: none;
}

/* ==================================== */
/* HEADER & HERO SECTION                */
/* ==================================== */

.hero-section {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 20px;
    text-align: center;
    z-index: 10;
}

.logo-container {
    margin-bottom: 40px;
    animation: floating 4s ease-in-out infinite;
}

.main-logo {
    max-width: 650px;
    width: 100%;
    filter: drop-shadow(0 0 25px rgba(255, 100, 0, 0.4));
}

@keyframes floating {
    0% { transform: translateY(0); filter: drop-shadow(0 0 15px rgba(255, 120, 0, 0.5)); }
    50% { transform: translateY(-10px); filter: drop-shadow(0 0 35px rgba(255, 69, 0, 0.9)); }
    100% { transform: translateY(0); filter: drop-shadow(0 0 15px rgba(255, 120, 0, 0.5)); }
}

.description-box {
    background: transparent;
    border-radius: 8px;
    padding: 35px 50px;
    max-width: 900px;
    margin-bottom: 50px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    position: relative;
    z-index: 1;
}

/* Efecto borde de fuego animado */
.description-box::before {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #ff7300, #ff0000);
    background-size: 300%;
    z-index: -2;
    animation: fireBorderAnim 4s linear infinite;
    border-radius: 10px;
    filter: blur(2px);
}

@keyframes fireBorderAnim {
    0% { background-position: 0 0; }
    100% { background-position: 300% 0; }
}

/* Fondo oscuro interno */
.description-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 20, 30, 0.85), rgba(5, 8, 12, 0.95));
    border-radius: 8px;
    z-index: -1;
    backdrop-filter: blur(12px);
}

.description-box p {
    position: relative;
    z-index: 10;
    font-family: var(--ui-font);
    font-size: 1.3rem;
    line-height: 1.7;
    color: #e0e6ed;
    font-weight: 500;
}
.description-box .highlight-text {
    color: #ffaa00;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.6);
}

.countdown-container {
    margin-bottom: 60px;
    text-align: center;
}

.countdown-container h2 {
    font-family: var(--title-font);
    color: #ffaa00;
    margin-bottom: 25px;
    font-size: 2rem;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 100, 0, 0.7);
}

.countdown {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.time-box {
    background: linear-gradient(180deg, rgba(30, 35, 45, 0.9), rgba(10, 12, 18, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #ffaa00;
    border-bottom: 2px solid #ff4500;
    border-radius: 8px;
    padding: 15px 10px;
    min-width: 110px;
    box-shadow: inset 0 0 15px rgba(255, 170, 0, 0.1), 0 10px 20px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}

.time-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.time-value {
    font-family: var(--ui-font);
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.8), 0 0 30px rgba(255, 69, 0, 0.6);
}

.time-label {
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    margin-top: 8px;
    letter-spacing: 2px;
    font-weight: bold;
}

.separator {
    font-family: var(--ui-font);
    font-size: 3rem;
    font-weight: bold;
    color: #ffaa00;
    animation: blink 1s infinite;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.8);
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ==================================== */
/* PACKAGES SECTION                     */
/* ==================================== */

.packages-section {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    justify-content: center;
    align-items: stretch; /* Asegura que todas las tarjetas tengan misma altura vertical */
    max-width: 1250px;
    padding: 0 20px 60px;
    width: 100%;
    z-index: 10;
}

.card {
    background: rgba(15, 20, 30, 0.85);
    border-radius: 12px;
    width: 360px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    height: auto;
}

/* EFECTO CRISTAL / REFLEJO HOVER */
.card::before, .card-jeke-inner::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease-in-out;
    z-index: 20;
    pointer-events: none;
}
.card:hover::before, .card-jeke:hover .card-jeke-inner::before {
    left: 150%;
}

.card:hover {
    transform: translateY(-10px);
    z-index: 10;
}

/* Ocultar overflow en card (excepto Jeke que lo maneja internamente) */
.card-fiel, .card-gratificacion {
    overflow: hidden;
}

.card-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-header h3 {
    font-family: var(--title-font);
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.subtitle {
    font-family: var(--ui-font);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.card-body {
    padding: 25px 20px;
    flex-grow: 1; /* Esto hace que el body empuje al footer hacia el final y todas queden iguales */
    display: flex;
    flex-direction: column;
}

.includes-title {
    font-family: var(--ui-font);
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.includes-list {
    list-style: none;
    margin-bottom: auto; /* Empuja el div exclusive-gift hacia abajo si hay espacio extra */
}

.includes-list li {
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #cfd8dc;
}

.includes-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: currentColor;
}

.exclusive-gift {
    background: rgba(0,0,0,0.4);
    border-radius: 6px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 25px; /* Separación forzada en caso de estirarse */
}

.exclusive-gift h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 0.95rem;
    text-transform: uppercase;
    font-family: var(--ui-font);
    letter-spacing: 1px;
}

.exclusive-gift ul {
    list-style: none;
}
.exclusive-gift ul li {
    font-size: 0.9rem;
    color: #ffd700;
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    line-height: 1.3;
}
.exclusive-gift ul li::before {
    content: '🎁';
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

.card-footer {
    padding: 25px 20px;
    text-align: center;
    background: rgba(0,0,0,0.6);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.prices {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.regular-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.95rem;
}

.presale-price {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    font-family: var(--ui-font);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}
.presale-price small {
    display: block;
    font-family: var(--primary-font);
    font-size: 0.8rem;
    font-weight: normal;
    color: #ccc;
    margin-top: 5px;
}

.buy-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 6px;
    font-family: var(--title-font);
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.buy-btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}
.buy-btn:hover::after {
    opacity: 1;
    left: 100%;
}

/* === CARD FIEL === */
.card-fiel {
    border: 2px solid var(--fiel-color1);
    box-shadow: 0 0 20px rgba(41, 82, 122, 0.3);
}
.card-fiel:hover {
    box-shadow: 0 0 35px rgba(92, 155, 230, 0.5);
}
.card-fiel .card-header {
    background: linear-gradient(135deg, #0f1724, var(--fiel-color1));
}
.card-fiel .subtitle, .card-fiel .includes-list li::before {
    color: var(--fiel-color2);
}
.btn-fiel {
    background: linear-gradient(90deg, var(--fiel-color1), var(--fiel-color2));
    box-shadow: 0 5px 15px rgba(41, 82, 122, 0.5);
}
.btn-fiel:hover {
    box-shadow: 0 5px 25px rgba(92, 155, 230, 0.8);
    transform: scale(1.05);
}

/* === CARD GRATIFICACIÓN === */
.card-gratificacion {
    border: 2px solid var(--grat-color1);
    box-shadow: 0 0 20px rgba(167, 112, 53, 0.3);
}
.card-gratificacion:hover {
    box-shadow: 0 0 35px rgba(224, 169, 109, 0.5);
}
.card-gratificacion .card-header {
    background: linear-gradient(135deg, #24190f, var(--grat-color1));
}
.card-gratificacion .subtitle, .card-gratificacion .includes-list li::before {
    color: var(--grat-color2);
}
.btn-gratificacion {
    background: linear-gradient(90deg, var(--grat-color1), var(--grat-color2));
    box-shadow: 0 5px 15px rgba(167, 112, 53, 0.5);
}
.btn-gratificacion:hover {
    box-shadow: 0 5px 25px rgba(224, 169, 109, 0.8);
    transform: scale(1.05);
}

/* === CARD GRAN JEKE === */
.card-jeke {
    background: transparent;
    position: relative;
    padding: 6px; /* Aumentado a 6px para un borde mucho más visible y llamativo */
    border-radius: 15px;
    z-index: 1;
    transform: scale(1.05);
    overflow: hidden; /* Contiene el gradiente rotatorio */
}
.card-jeke:hover {
    transform: scale(1.08);
}

/* Borde Neón Brillante en movimiento */
.card-jeke::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 250%; height: 250%;
    /* Añadidos colores blancos para emular luz central incandescente */
    background: conic-gradient(
        from 0deg, 
        transparent 0%, 
        #fff 15%, 
        var(--jeke-color2) 25%, 
        transparent 40%, 
        transparent 50%, 
        #fff 65%, 
        #00e5ff 75%, 
        transparent 90%
    );
    animation: spinNeon 3s linear infinite; /* Un poco más rápido para mayor impacto */
    transform-origin: center center;
    transform: translate(-50%, -50%);
    z-index: -2;
    pointer-events: none;
}
@keyframes spinNeon {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Sombra interior para acoplar el borde (para suavizar cortes si los hay) */
.card-jeke::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    border-radius: 15px;
    z-index: -1;
    box-shadow: inset 0 0 25px rgba(213, 0, 249, 0.8); /* Glow morado interno */
}

/* Inner Container */
.card-jeke-inner {
    background: linear-gradient(45deg, rgba(15,20,30,0.95), rgba(70, 15, 100, 0.8), rgba(15,20,30,0.95), rgba(40, 5, 80, 0.9));
    background-size: 300% 300%;
    animation: movingGradientBg 8s ease infinite;
    border-radius: 10px; /* Un poco más curvo en el interior respecto a los 6px del borde */
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(213, 0, 249, 0.4);
}
@keyframes movingGradientBg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-jeke .card-header {
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(213, 0, 249, 0.5); /* Borde divisor más visible */
}
.card-jeke .subtitle, .card-jeke .includes-list li::before {
    color: var(--jeke-color2);
    text-shadow: 0 0 10px rgba(213, 0, 249, 0.8);
}
.card-jeke .includes-list li {
    font-size: 0.85rem; /* Fuente más pequeña para igualar tamaño vertical */
    margin-bottom: 8px; /* Menos espacio entre items */
}
.btn-jeke {
    background: linear-gradient(90deg, var(--jeke-color1), var(--jeke-color2));
    box-shadow: 0 5px 25px rgba(213, 0, 249, 0.6);
    border: 1px solid #fff; /* Borde blanco para resaltar */
}
.btn-jeke:hover {
    box-shadow: 0 5px 45px rgba(213, 0, 249, 1);
    transform: scale(1.05);
}

/* ==================================== */
/* INFO EXTRA Y FOOTER                  */
/* ==================================== */

.extra-info-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    z-index: 10;
}

.extra-info {
    max-width: 800px;
    background: rgba(10, 15, 20, 0.85);
    border-left: 4px solid #ffaa00;
    padding: 25px;
    margin-bottom: 50px;
    border-radius: 4px 8px 8px 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}
.extra-info p {
    font-family: var(--ui-font);
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e0e0e0;
}
.extra-info .highlight {
    color: #00ff00;
    font-weight: bold;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(0,255,0,0.3);
}

footer {
    width: 100%;
    text-align: center;
    padding: 30px;
    background: rgba(0,0,0,0.95);
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

@media (max-width: 1200px) {
    .card-jeke {
        transform: scale(1);
    }
    .card-jeke:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .countdown {
        flex-wrap: wrap;
    }
    .main-logo {
        max-width: 90%;
    }
    .card {
        width: 100%;
        max-width: 400px;
    }
}
