:root {
    /* === PALETA DE COLORES - TEMA GÁNALO TODO (Adaptada al Logo del León) === */
    
    /* COLORES BASE OSCUROS (Fondo Hexagonal) */
    --color-black-pure: #000000;
    --color-dark-black: #080a08; /* Negro con tinte verde muy profundo */
    --color-panel-bg: rgba(10, 20, 15, 0.92); /* Fondo de tarjetas */
    
    /* COLORES CLAROS Y TEXTO */
    --color-white-pure: #FFFFFF; 
    --color-light-gray: #e8f5e9; /* Blanco verdoso muy sutil */
    --color-medium-gray: #2e3d32; /* Gris oscuro verdoso */
    --color-dark-gray: #111111; 
    --color-soft-text: #a5bca5; /* Gris suave verdoso para textos secundarios */
    
    /* COLORES DE IDENTIDAD (Extraídos del Logo) */
    --color-emerald-green: #009e45; /* EL VERDE PRINCIPAL DEL LOGO */
    --color-neon-green: #00e676; /* Verde brillante para luces/brillos */
    --color-dark-green: #004d22; /* Verde bosque para sombras */
    
    --color-lion-gold: #ffab00; /* Dorado/Naranja del León */
    --color-lion-yellow: #ffcf40; /* Amarillo brillante del León */
    
    /* ESTADOS */
    --color-success: #00c853; 
    --color-danger: #d50000; 
    --color-warning: #ffab00; 
    
    /* MAPEO DE VARIABLES DEL SISTEMA */
    --primary-color: var(--color-emerald-green); /* Verde como color primario de marca */
    --secondary-color: var(--color-lion-gold); /* Dorado para acentos y dinero */
    
    --border-color: rgba(0, 158, 69, 0.3); /* Borde verde sutil */
    --border-glow: rgba(0, 158, 69, 0.6); /* Borde iluminado */
    
    --transparent-card: rgba(5, 15, 10, 0.85); /* Fondo oscuro semitransparente */
    
    --text-dark: var(--color-dark-black);
    --text-light: var(--color-soft-text); 
    --text-on-dark: var(--color-white-pure); 
    
    /* EFECTOS DE LUZ (Glow) */
    --green-glow: 0 0 15px rgba(0, 158, 69, 0.4), 0 0 30px rgba(0, 158, 69, 0.2);
    --gold-glow: 0 0 15px rgba(255, 171, 0, 0.4), 0 0 30px rgba(255, 171, 0, 0.2);
    
    /* GRADIENTES */
    /* Gradiente Principal (Verde Dinero) */
    --gradient-primary: linear-gradient(135deg, var(--color-emerald-green) 0%, #006429 100%);
    
    /* Gradiente de Acción (Dorado León - Para llamar la atención en botones de compra) */
    --gradient-cta: linear-gradient(90deg, var(--color-lion-gold) 0%, var(--color-lion-yellow) 50%, var(--color-lion-gold) 100%);
    
    --font-family: 'Poppins', sans-serif;
}

/* === ANIMACIONES (Adaptadas a Verde/Dorado) === */

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes subtle-glow {
    0% { box-shadow: 0 0 15px rgba(0, 158, 69, 0.2); }
    50% { box-shadow: 0 0 25px rgba(0, 158, 69, 0.4); }
    100% { box-shadow: 0 0 15px rgba(0, 158, 69, 0.2); }
}

@keyframes prize-glow {
    0% { box-shadow: 0 0 20px rgba(0, 158, 69, 0.4), 0 0 30px rgba(0, 158, 69, 0.3); border-color: var(--color-emerald-green); }
    50% { box-shadow: 0 0 30px rgba(0, 158, 69, 0.7), 0 0 45px rgba(0, 230, 118, 0.5); border-color: var(--color-neon-green); }
    100% { box-shadow: 0 0 20px rgba(0, 158, 69, 0.4), 0 0 30px rgba(0, 158, 69, 0.3); border-color: var(--color-emerald-green); }
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 171, 0, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(255, 171, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 171, 0, 0); }
}

@keyframes gold-pulse {
    0% { box-shadow: 0 0 15px rgba(255, 171, 0, 0.3); }
    50% { box-shadow: 0 0 25px rgba(255, 171, 0, 0.6); }
    100% { box-shadow: 0 0 15px rgba(255, 171, 0, 0.3); }
}

@keyframes scale-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes gold-shine {
    0% { filter: brightness(1) drop-shadow(0 0 5px rgba(255, 171, 0, 0.5)); }
    50% { filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 171, 0, 0.7)); }
    100% { filter: brightness(1) drop-shadow(0 0 5px rgba(255, 171, 0, 0.5)); }
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--color-dark-black); 
    color: var(--text-on-dark); 
    line-height: 1.6;

    background-image: url('fondo.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
}

/* Capa oscura para mejorar legibilidad sobre los hexágonos */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 30, 15, 0.5), rgba(0, 0, 0, 0.85));
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
}

/* === HEADER === */
.header {
    background: rgba(0, 0, 0, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 158, 69, 0.15);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 70px;
}

.logo {
    margin-top: 65px; 
    height: 160px;
    width: 160px;
    object-fit: contain;
    transition: transform .2s ease;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
}

/* === CARDS (Contenedores) === */
.card {
    background: var(--transparent-card);
    border-radius: 18px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 158, 69, 0.1);
    border: 1px solid rgba(0, 158, 69, 0.25); 
    transition: all .3s ease;
    color: var(--text-on-dark);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 158, 69, 0.2), 0 0 15px rgba(0, 158, 69, 0.1); 
    border-color: var(--color-neon-green);
}

/* === TITULOS === */
.hero-title {
    background-image: linear-gradient(90deg, #fff, var(--color-neon-green)); /* Blanco a Verde Neón */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-white-pure);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: .6rem;
    text-shadow: 0 0 15px rgba(0, 158, 69, 0.5), 0 0 30px rgba(0, 158, 69, 0.3);
    -webkit-text-stroke: 1px rgba(0, 158, 69, 0.3);
    text-stroke: 1px rgba(0, 158, 69, 0.3);
    text-align: center; 
}

.hero-title span {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    color: var(--color-lion-gold); /* Acentos en dorado como el león */
    -webkit-text-fill-color: var(--color-lion-gold);
}

/* === BOTONES === */
.btn {
    padding: .9rem 1.3rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Botón Principal (Dorado León para Acción) */
.btn-primary {
    background: var(--gradient-cta);
    color: #3e2700; /* Texto oscuro para contraste sobre dorado */
    box-shadow: 0 0 20px rgba(255, 171, 0, 0.4); 
    text-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* ANIMACIÓN APLICADA AL BOTÓN PRINCIPAL */
    animation: gold-pulse 2s infinite ease-in-out, scale-pulse 2.5s infinite ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-3px); 
    filter: saturate(1.3) brightness(1.1);
    box-shadow: 0 8px 25px rgba(255, 171, 0, 0.5);
}

/* === IMAGEN PREMIO === */
.prize-image {
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 18px;
    border: 2px solid var(--color-emerald-green); 
    animation: prize-glow 4s infinite ease-in-out;
    margin-bottom: 1rem;
    transform: scale(1.0); 
    -webkit-box-reflect: none;
    box-reflect: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* === GRID DE TICKETS === */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
    gap: .5rem;
}

.ticket-number {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 900;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s ease;
    border: 2px solid transparent;
    user-select: none;
    color: var(--color-white-pure);
}

/* Ticket Disponible - Transparente con borde sutil */
.ticket-number.available {
    background-color: rgba(255, 255, 255, 0.05); 
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-soft-text);
}

.ticket-number.available:hover {
    border-color: var(--color-emerald-green);
    transform: translateY(-3px) scale(1.05);
    background-color: rgba(0, 158, 69, 0.2); 
    color: var(--color-white-pure);
    box-shadow: 0 4px 12px rgba(0, 158, 69, 0.2);
}

/* Ticket Seleccionado - Dorado Vibrante (Ganador) */
.ticket-number.selected {
    background: var(--gradient-cta);
    color: #3e2700;
    transform: translateY(-3px) scale(1.05);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 171, 0, 0.5);
    animation: subtle-glow 2s infinite ease-in-out;
}

/* Ticket Ocupado */
.ticket-number.occupied {
    background: #1a1a1a;
    color: #444;
    cursor: not-allowed;
    opacity: .7;
    border: 1px solid #333;
}

/* === SELECTOR DE CANTIDAD === */
.quantity-selector-wrapper {
    display: grid;
    gap: .75rem;
    justify-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.btn-quantity {
    background: rgba(0, 0, 0, 0.5); 
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-quantity:hover {
    background: var(--primary-color);
    color: var(--color-white-pure);
    box-shadow: 0 0 10px rgba(0, 158, 69, 0.4);
}

#randomQuantity {
    background: transparent;
    border: none;
    color: var(--color-white-pure); 
    font-size: 2.2rem;
    font-weight: 800;
    width: 80px;
    text-align: center;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
}

#randomQuantity::-webkit-outer-spin-button,
#randomQuantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bulk-add-buttons {
    display: flex;
    gap: .5rem;
    justify-content: center;
}

.btn-bulk-add {
    background: rgba(0, 0, 0, 0.5); 
    border: 2px solid rgba(0, 158, 69, 0.4); 
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-bulk-add:hover {
    border-color: var(--primary-color);
    color: var(--color-white-pure); 
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 158, 69, 0.3);
}

/* === BARRA INFERIOR DE SELECCIÓN === */
.selection-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    transform: translateY(100%);
    transition: transform .3s ease;
}

.selection-bar-container.visible {
    transform: translateY(0);
}

.selection-bar {
    background: rgba(5, 10, 5, 0.95); /* Muy oscuro */
    padding: .85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, .8);
    border-top: 2px solid var(--primary-color);
    backdrop-filter: blur(10px);
}

.selection-info p {
    color: var(--color-white-pure); 
}

.selection-info small {
    color: var(--color-soft-text);
}

/* === SECCIONES CONFIANZA/FAQ === */
.trust-item,
.step,
.faq details {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--color-white-pure); 
}

.trust-item:hover,
.step:hover,
.faq details:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 158, 69, 0.15);
    border-color: var(--primary-color);
}

.trust-item,
.step,
.faq details {
    background: rgba(255, 255, 255, 0.03); /* Casi transparente */
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.faq summary {
    font-weight: 800;
    list-style: none;
    cursor: pointer;
    color: var(--color-white-pure); 
}

.faq summary::-webkit-details-marker {
    display: none;
}

/* === INPUTS DE FORMULARIO === */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro input */
    color: var(--color-white-pure);
    transition: border-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 10px rgba(0, 158, 69, 0.2);
}

input[type="file"] {
    padding: 0.6rem;
    background-color: rgba(0, 0, 0, 0.6); 
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--text-on-dark);
}

.header-left,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right {
    justify-content: flex-end;
}

.raffle-dropdown {
    border: 2px solid rgba(0, 158, 69, 0.4); 
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(0,0,0,0.8); 
    color: var(--color-white-pure); 
    font-family: var(--font-family);
    font-size: 14px;
}

/* === MENÚ HAMBURGUESA === */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 26px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px rgba(0, 158, 69, 0.5);
}

.hamburger-menu.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-rifa-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--color-dark-black); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    z-index: 999;
    padding: 16px;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid var(--primary-color);
}

.mobile-rifa-menu.open {
    display: block;
}

.admin-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white-pure); 
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0,0,0,0.5); 
    border: 1px solid rgba(0, 158, 69, 0.4);
    transition: all 0.2s ease;
}

.admin-link:hover {
    background: rgba(0, 158, 69, 0.1); 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

/* === BARRA ANUNCIO (Cinta) === */
.announcement {
    background: linear-gradient(90deg, 
        var(--color-black-pure) 0%,
        var(--color-dark-green) 45%,
        var(--color-emerald-green) 55%,
        var(--color-black-pure) 100%
    );
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    color: var(--color-white-pure);
    box-shadow: 0 0 15px var(--primary-color);
    z-index: 1;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--color-neon-green);
}

.announcement-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 8px 0;
}

.announcement-inner > * {
    position: relative;
    z-index: 2;
    color: var(--color-white-pure);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    padding: 0 14px;
    font-weight: 700;
}

.announcement-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, 0.2); 
    pointer-events: none;
}

.logo-container {
    position: relative;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -30px;
}

.logo {
    max-width: 180px;
    height: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)); 
}

.kicker {
    color: var(--primary-color); 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .85rem;
    margin-bottom: .75rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kicker i {
    color: var(--primary-color);
}

.hero-sub {
    color: var(--color-soft-text);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.btn:disabled {
    background-color: var(--color-medium-gray);
    color: var(--color-soft-text);
    cursor: not-allowed;
    filter: none;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    opacity: 1;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--color-white-pure);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 158, 69, 0.4); 
    transform: translateY(-2px);
}

/* === BARRA DE PROGRESO === */
.progress-bar-container {
    background-color: rgba(255,255,255,0.1);
    border-radius: 999px;
    height: 1.2rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--primary-color);
}

.progress-bar {
    height: 100%;
    /* Gradiente Verde Vibrante */
    background: linear-gradient(90deg, var(--color-neon-green), var(--primary-color));
    border-radius: 999px;
    transition: width .5s ease;
    box-shadow: 0 0 10px rgba(0, 158, 69, 0.5);
}

.progress-text {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--color-white-pure);
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.selection-info small {
    color: var(--color-soft-text);
    display: block;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selection-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.cta-sticky {
    top: 71px;
    z-index: 900;
    margin-bottom: 1rem;
    position: sticky;
}

.cta-sticky .bar {
    background: rgba(10, 20, 15, 0.9); 
    border: 1px solid rgba(0, 158, 69, 0.3);
    border-radius: 12px;
    padding: .75rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    color: var(--text-on-dark); 
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    backdrop-filter: blur(5px);
}

.cta-sticky .bar .left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--text-on-dark);
}

.cta-sticky .bar .pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-lion-gold);
    box-shadow: 0 0 0 0 rgba(255, 171, 0, 0.7);
    animation: pulse 2s infinite;
}

.trust-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

.trust-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.step .n {
    font-weight: 900;
    color: var(--primary-color);
}

.faq {
    display: grid;
    gap: .5rem;
}

.faq p {
    color: var(--text-light); 
    margin-top: .5rem;
}

/* === WHATSAPP FLOTANTE === */
.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    right: 25px;
    background-color: var(--color-success);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    bottom: 25px;
    border: 2px solid #fff;
}

.whatsapp-flotante.raised {
    bottom: 100px;
}

.whatsapp-flotante:hover {
    transform: translateY(-5px) scale(1.05);
    color: #fff;
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
}

/* === MODALES === */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.visible {
    opacity: 1;
    display: flex;
}

.modal-content {
    background: #0a0e0b; /* Fondo sólido muy oscuro */
    margin: auto;
    padding: 1.5rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 158, 69, 0.2);
    border: 1px solid var(--primary-color);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    color: var(--text-on-dark);
}

.modal.visible .modal-content {
    transform: scale(1);
}

.close-button {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: var(--color-white-pure);
    background: var(--color-dark-green); 
    border-radius: 50%;
    border: 1px solid var(--primary-color);
}

.close-button:hover {
    background: var(--primary-color);
}

#paymentOptionsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.payment-method-option input[type="radio"] {
    display: none;
}

.payment-method-label {
    background-color: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 90px;
    padding: 0.75rem;
}

.payment-method-icon {
    height: 25px;
    max-width: 55px;
    width: auto;
    object-fit: contain;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.5));
}

.payment-method-label span {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-white-pure); 
}

.payment-method-label:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 158, 69, 0.2);
}

/* Radio Seleccionado */
.payment-method-option input[type="radio"]:checked + .payment-method-label {
    border-color: var(--primary-color);
    background-color: rgba(0, 158, 69, 0.15); 
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0, 158, 69, 0.3); 
    color: var(--color-white-pure);
}

.payment-method-option input[type="radio"]:checked + .payment-method-label span {
    color: var(--color-white-pure) !important; 
}

#paymentInstructionsContainer {
    background-color: rgba(0, 0, 0, 0.5);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--text-on-dark); 
}

.custom-modal-button {
    background: var(--gradient-cta);
    color: #3e2700;
    font-weight: 700;
}

#top-buyers-section .buyer-item {
    background-color: rgba(0,0,0,0.5);
    border: 1px solid rgba(0, 158, 69, 0.3);
    color: var(--text-on-dark);
}

.buyer-item .trophy-icon.gold {
    color: var(--color-lion-gold);
    filter: drop-shadow(0 0 5px rgba(255, 171, 0, 0.5));
}

.buyer-item .trophy-icon.silver {
    color: #b0b0b0;
}

.buyer-item .trophy-icon.bronze {
    color: #CD7F32;
}

.d-flex {
    display: flex;
}

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

.flex-column {
    flex-direction: column;
}

.gap-3 {
    gap: 1rem;
}

.text-center {
    text-align: center;
}

/* === CUSTOM MODAL === */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal.is-visible {
    display: flex;
    opacity: 1;
}

.custom-modal-content {
    background: #0a0e0b;
    border: 1px solid var(--primary-color);
    border-radius: 1rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 2rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 0 50px rgba(0, 158, 69, 0.3);
    color: var(--text-on-dark);
}

.custom-modal.is-visible .custom-modal-content {
    transform: scale(1);
}

.custom-modal-close-button {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    color: var(--primary-color);
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
}

.custom-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 158, 69, 0.5);
}

.custom-modal-message {
    color: var(--color-soft-text);
    margin-bottom: 1.5rem;
}

.custom-modal-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.custom-modal-icon-container {
    height: 80px;
    margin-bottom: 1rem;
}

.custom-modal-icon-success {
    width: 80px;
    height: 80px;
    display: inline-block;
}

.custom-modal-icon-success-circle {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: var(--color-success);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.custom-modal-icon-success-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: var(--color-success);
    fill: none;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.custom-modal-icon-error .custom-modal-icon-success-circle {
    stroke: var(--color-danger);
}

.custom-modal-icon-error .custom-modal-icon-success-check {
    stroke: var(--color-danger);
}

/* === BADGES DE ESTADO === */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-dark-black);
    text-transform: capitalize;
}

.status-badge.pagado,
.status-badge.Aprobado {
    background-color: rgba(0, 200, 83, 0.2);
    color: #00e676;
    border: 1px solid #00e676;
}

.status-badge.apartado,
.status-badge.Por.Revisar {
    background-color: rgba(255, 171, 0, 0.2);
    color: #ffab00;
    border: 1px solid #ffab00;
}

.status-badge.activa {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 158, 69, 0.4);
}

.status-badge.finalizada {
    background-color: var(--color-medium-gray);
    color: var(--text-on-dark);
}

.status-badge.cancelada {
    background-color: var(--color-danger);
}

.pre-purchase-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pre-purchase-actions .btn-outline {
    grid-column: 1 / -1;
}

.social-proof {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 1rem;
    color: var(--color-soft-text); 
    font-weight: 600;
}

.social-proof .badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(0, 158, 69, 0.3); 
    color: var(--primary-color); 
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-top: 1.5rem;
}

.kpi {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 158, 69, 0.3);
    padding: .75rem 1rem;
    border-radius: 12px;
    text-align: center;
    color: var(--text-on-dark);
}

.kpi .num {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(0, 158, 69, 0.5);
}

.kpi .lbl {
    color: var(--color-soft-text);
    font-size: .85rem;
}

/* === FOOTER === */
footer {
    background: #000; 
    color: var(--color-soft-text); 
    text-align: center;
    padding: 24px;
    margin-top: 50px;
    border-top: 1px solid var(--primary-color);
}

.footer-socials a img {
    width: 32px;
    height: 32px;
    filter: invert(1) brightness(1); /* Iconos blancos */
    transition: transform 0.2s ease;
}

.footer-socials a img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 5px var(--primary-color));
}

footer .footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

footer .footer-links {
    margin-bottom: 1rem;
}

footer .footer-links a {
    color: var(--color-white-pure);
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    font-weight: 600;
}

footer .footer-links a:hover {
    color: var(--primary-color);
}

.buyer-item .rank-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.flex-grow-1 {
    flex-grow: 1;
    text-align: left;
}

.buyer-item h6 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
    color: var(--color-white-pure);
}

.buyer-item small {
    color: var(--color-soft-text);
    font-size: 0.9rem;
}

#verificationResult .verification-info {
    text-align: center;
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    color: var(--color-white-pure);
}

.split-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.split-hero > .left,
.split-hero > .right {
    flex: 1;
    min-width: 300px;
}

.split-hero > .hero-title {
    width: 100%;
    flex-basis: 100%;
}

/* === MEDIA QUERIES === */
@media (max-width: 980px) {
    .split-hero {
        flex-direction: column;
        gap: 1.5rem;
    }
    .split-hero .hero-title {
        order: 1;
        text-align: center;
    }
    .split-hero .right {
        order: 2;
        margin: 0 auto;
    }
    .split-hero .left {
        order: 3;
        text-align: center;
    }
    .hero-ctas,
    .social-proof {
        justify-content: center;
    }
    .prize-image {
        margin: 0;
        max-width: 100%;
        height: auto;
        -webkit-box-reflect: none;
        box-reflect: none;
    }
    .trust-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .raffle-selector {
        display: none;
    }
    .hamburger-menu {
        display: flex;
    }
    .header-content {
        display: flex;
        justify-content: space-between;
    }
    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .card {
        padding: 1.25rem;
    }
    .hero-title {
        font-size: 1.8rem;
        text-shadow: 0 0 10px rgba(0, 158, 69, 0.5);
    }
    .btn {
        padding: .8rem 1.2rem;
        font-size: .95rem;
    }
    .announcement-inner strong:nth-of-type(2) {
        display: none;
    }
    .cta-sticky .bar .left {
        display: none;
    }
    .cta-sticky .bar {
        justify-content: center;
    }
    .steps-grid,
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .tickets-grid {
        grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
        gap: 6px;
    }
    .selection-bar {
        flex-direction: column;
        gap: .75rem;
        padding: .85rem;
    }
    .selection-actions {
        width: 100%;
        display: grid;
        grid-template-columns: auto 1fr 1fr;
    }
    .whatsapp-flotante.raised {
        bottom: 120px;
    }

    .hero-section-card {
        padding: 0;
    }

    .hero-section-card .split-hero {
        padding: 1.25rem 0;
    }

    .prize-image {
        width: 100%;
        max-width: none;
        height: auto;
        border-radius: 0;
        margin-bottom: 0;
        transform: none;
    }

    /* === Ajustes para botones flotantes en móvil === */
    .button-image {
        width: 60px;
        height: 40px;
    }
}

@keyframes billFall {
    0% { transform: translateY(-100%) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(100vh) translateX(var(--horizontal-drift, 200px)) rotate(180deg); opacity: 0; }
}

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

.bill-item {
    position: absolute;
    width: 300px;
    height: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
}

canvas.confetti-canvas,
canvas[style*="z-index"] {
    z-index: 4000 !important;
    pointer-events: none;
    position: fixed !important;
}

.ticket-verification-item {
    border: 1px solid rgba(0, 158, 69, 0.3);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    color: var(--text-on-dark); 
    background: rgba(0,0,0,0.5);
}

.ticket-verification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ticket-verification-numbers {
    font-weight: 600;
    color: var(--primary-color);
    word-wrap: break-word;
    margin: 0;
}

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.pagination-controls {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
}

.pagination-btn,
.pagination-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border: 2px solid rgba(0, 158, 69, 0.4);
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    background: rgba(0,0,0,0.5);
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.pagination-btn.current {
    background: var(--gradient-cta);
    color: #3e2700;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(255, 171, 0, 0.4); 
    grid-column: 3 / 4;
}

.pagination-info {
    text-align: center;
    color: var(--color-soft-text); 
    font-size: 0.9rem;
}

/* === ESTILOS CONSOLIDADOS PARA LOS BOTONES FLOTANTES === */
.floating-buy-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 0;
}

#custom-buy-button-floating {
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

#custom-buy-button-floating:hover {
    transform: scale(1.05);
}

.button-image {
    width: 180px;
    height: 45px;
    object-fit: cover;
    display: block;
    border-radius: 12px;

    -webkit-box-reflect: none;
    -moz-box-reflect: none;
    box-reflect: none;

    filter: drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.4));
}

.prize-image {
    transform: scale(1.0);
}

.designer-credit a {
    background: linear-gradient(90deg, var(--color-emerald-green), var(--color-neon-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-shine 4s linear infinite;
    background-size: 200% 100%;
    text-decoration: none;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.2),
        0 0 5px rgba(0, 0, 0, 0.1);

}

.numeros-boletos {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    background-color: rgba(0, 158, 69, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    border: 1px solid var(--primary-color);
}

.winner-item-final {
    background-color: var(--transparent-card); 
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    border: 1px solid rgba(0, 158, 69, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-on-dark); 
}
.winner-item-final:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}
.winner-header-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.winner-prize-name-final {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-on-dark); 
}
.winner-status-final {
    min-width: 70px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
}
.winner-body-final {
    text-align: center;
}
.winner-number-final {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}
.winner-owner-final {
    font-size: 0.8rem;
    text-align: center;
    color: var(--color-soft-text); 
    margin-top: 0.25rem;
}	

/* ========================================================= */
/* NUEVOS ESTILOS PARA LOS BOTONES DE PRECIO (Verde/Oro) */
/* ========================================================= */

.price-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    grid-column: 1 / -1; 
}

.price-button {
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px; 
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    
    /* ANIMACIÓN APLICADA A LOS BOTONES INDIVIDUALES */
    animation: scale-pulse 2s infinite ease-in-out, gold-pulse 2s infinite ease-in-out;
    transition: all 0.3s ease;
    
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Botón COP (Acción Principal - Dorado) */
.price-button.price-cop {
    background: var(--gradient-cta);
    color: #3e2700;
    border-color: var(--color-lion-yellow);
    box-shadow: 0 0 20px rgba(255, 171, 0, 0.6);
}

.price-button.price-cop i {
    color: #3e2700;
}

/* Botón USD (Secundario - Verde Contorno) */
.price-button.price-usd {
    background: rgba(0,0,0,0.5);
    color: var(--color-white-pure);
    border-color: var(--primary-color);
}

.price-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 158, 69, 0.4);
    filter: brightness(1.2);
}

/* Asegurar que la sección de tickets en la columna derecha se vea bien */
.right > .section-title {
    margin-top: 1rem;
}

.payment-method-option input[type="radio"]:checked + .payment-method-label {
    border-color: var(--primary-color);
    background-color: rgba(0, 158, 69, 0.1); 
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0, 158, 69, 0.3); 
    color: var(--color-white-pure); 
}

.payment-method-option input[type="radio"]:checked + .payment-method-label span {
    color: var(--color-white-pure) !important; 
}

 .payment-method-option input[type="radio"]:checked + .payment-method-label span {
    color: var(--color-white-pure) !important; 
}

.payment-method-option input[type="radio"]:checked + .payment-method-label {
    border-color: var(--primary-color);
    background-color: var(--color-dark-black); 
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0, 158, 69, 0.3);
}

.payment-method-option input[type="radio"]:checked + .payment-method-label span {
    color: var(--primary-color) !important; /* TEXTO VERDE AL SELECCIONAR */
}