:root {
    /* === PALETA DE COLORES - TEMA AZUL Y ORO PREMIUM (BASADO EN LOGO) === */
    --color-dark-blue: #001229;     /* Azul marino profundo para el fondo principal */
    --color-medium-blue: #001D3D;    /* Azul para tarjetas y elementos */
    --color-metallic-gold: #C0A46F; /* Dorado elegante, se puede ajustar */
    --color-vibrant-gold: #FFD700;   /* Dorado más brillante para acentos */
    --color-card-bg: rgba(0, 29, 61, 0.9); /* Azul translúcido para tarjetas */
    --color-text-light: #B0C4DE;     /* Gris azulado claro para texto secundario */
    --color-text-main: #FFFFFF;      /* Blanco puro para texto principal */
    --color-white: #FFFFFF;
    --color-success: #25D366; /* Verde sólido para éxito (mantenido por convención) */
    --color-danger: #FF3B3F; /* Rojo vibrante para peligro (mantenido por convención) */
    --color-warning: #FFC94A; /* Amarillo brillante para advertencias (mantenido por convención) */
    
    --primary-color: var(--color-metallic-gold);
    --secondary-color: var(--color-vibrant-gold);
    --border-color: rgba(192, 164, 111, 0.25); /* Borde dorado translúcido */
    --card-background: var(--color-card-bg);
    --text-dark: var(--color-text-main);
    
    /* Efecto de resplandor dorado sutil para elementos clave (sin cambios, sigue siendo relevante) */
    --gold-glow: 0 0 15px rgba(255, 215, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.2);
    
    /* Gradiente para botones y títulos, inspirado en tu logo (sin cambios, sigue siendo relevante) */
    --gradient-cta: linear-gradient(90deg, var(--color-metallic-gold), var(--color-vibrant-gold));
    
    --font-family: 'Poppins', sans-serif;
}

@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 25px rgba(192, 164, 111, 0.45); }
    50% { box-shadow: 0 0 35px rgba(192, 164, 111, 0.6); }
    100% { box-shadow: 0 0 25px rgba(192, 164, 111, 0.45); }
}

@keyframes prize-glow {
    0% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.9), 0 0 60px rgba(255, 215, 0, 0.7); }
    100% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4); }
}

@keyframes flow {
    0% { background-position: 0% 0; }
    100% { background-position: 100% 0; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(192, 164, 111, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(192, 164, 111, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 164, 111, 0); }
}

@keyframes gold-pulse {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 35px rgba(255, 215, 0, 0.7); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes gold-shine {
    0% { filter: brightness(1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }
    50% { filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 215, 0, 0.7)); }
    100% { filter: brightness(1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--color-dark-blue);
    color: var(--color-text-main);
    line-height: 1.6;

    /* ==== ESTILOS PARA LA IMAGEN DE FONDO DE PÁGINA ==== */
    background-image: url('/public/assets/images/fondo.webp');
    background-size: cover;
    background-repeat: repeat;
    background-attachment: fixed;
    background-position: center center;
    background-color: var(--color-dark-blue);
}

/* Overlay azul para mejorar la legibilidad y hacer el fondo más lejano */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 18, 41, 0.85); /* Overlay azul oscuro */
    z-index: -1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
}

.header {
    background: rgba(0, 29, 61, 0.8); /* Fondo de cabecera azul translúcido */
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 70px;
}

.logo {
    height: 120px;
    width: 120px;
    object-fit: contain;
    transition: transform .2s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(-3deg);
}

.card {
    background: var(--card-background);
    border-radius: 18px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all .3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.1), 0 0 20px rgba(255, 215, 0, 0.08);
    border-color: var(--primary-color);
}

.hero-title {
    background-image: var(--gradient-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-vibrant-gold);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: .6rem;
    /* Resplandor dorado impactante */
    text-shadow: 0 0 25px var(--color-vibrant-gold), 0 0 50px var(--color-vibrant-gold), 0 0 75px var(--color-vibrant-gold);
    animation: gold-shine 4s infinite linear;
}

.hero-title span {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.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;
}

.btn-primary {
    background: var(--gradient-cta);
    color: #000;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    /* Animación sutil de pulso en el brillo */
    animation: gold-pulse 2s infinite ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    filter: saturate(1.5) brightness(1.1);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.5);
}

.prize-image {
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 18px;
    border: 2px solid transparent;
    animation: prize-glow 4s infinite ease-in-out;
    margin-bottom: 1rem;
    transform: scale(1.15);
    /* Efecto de reflejo debajo de la imagen */
    -webkit-box-reflect: below 0px linear-gradient(transparent, transparent 70%, rgba(255,255,255,0.1));
    box-reflect: below 0px linear-gradient(transparent, transparent 70%, rgba(255,255,255,0.1));
}

.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-text-main);
}

.ticket-number.available {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

.ticket-number.available:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    background-color: rgba(192, 164, 111, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.ticket-number.selected {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px) scale(1.05);
    border-color: var(--primary-color);
    animation: subtle-glow 2s infinite ease-in-out;
}

.ticket-number.occupied {
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text-light);
    cursor: not-allowed;
    opacity: .85;
}

.quantity-selector-wrapper {
    display: grid;
    gap: .75rem;
    justify-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.btn-quantity {
    background: transparent;
    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: #000;
}

#randomQuantity {
    background: transparent;
    border: none;
    color: var(--color-text-main);
    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(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    color: var(--color-text-light);
    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-text-main);
}

.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: var(--color-card-bg);
    padding: .85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .3);
    border-top: 2px solid var(--primary-color);
}

.selection-info p {
    color: var(--color-text-main);
}

.trust-item,
.step,
.faq details {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-item:hover,
.step:hover,
.faq details:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.trust-item,
.step,
.faq details {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.faq summary {
    font-weight: 800;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

input[type="file"] {
    padding: 0.6rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 10px;
}

.header-left,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right {
    justify-content: flex-end;
}

.raffle-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.raffle-dropdown {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    font-family: var(--font-family);
    font-size: 14px;
}

.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(--color-text-main);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.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(--card-background);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 999;
    padding: 16px;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid var(--border-color);
}

.mobile-rifa-menu.open {
    display: block;
}

.admin-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-main);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.admin-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.announcement {
    position: relative;
    background-image: url('../images/glitter.webp');

    /* --- CORRECCIÓN AQUÍ --- */
    background-size: cover; /* Escala la imagen para cubrir todo el contenedor */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    
    min-height: 48px;
    display: flex;
    align-items: center;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    z-index: 1;
    overflow: hidden;
    background-color: #222; /* Color de fondo mientras carga la imagen */
    width: 100%;
    /* height: 100%; puede ser innecesario si ya usas min-height */
}

.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-text-main);
    text-shadow: 0 2px 8px #000, 0 0 6px rgba(255, 255, 255, 0.9);
    padding: 0 14px;
}

.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(--color-text-light);
    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-text-light);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.btn:disabled {
    background-color: #333;
    color: #666;
    cursor: not-allowed;
    filter: none;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--color-text-main);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.progress-bar-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    height: 1.2rem;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 999px;
    transition: width .5s ease;
}

.progress-text {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--color-text-main);
}

.selection-info small {
    color: var(--color-text-light);
    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 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: .75rem 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-sticky .bar .left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.cta-sticky .bar .pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 0 rgba(192, 164, 111, 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(--color-text-light);
    margin-top: .5rem;
}

.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    right: 25px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    bottom: 25px;
}

.whatsapp-flotante.raised {
    bottom: 100px;
}

.whatsapp-flotante:hover {
    transform: translateY(-5px) scale(1.05);
    color: #fff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.visible {
    opacity: 1;
    display: flex;
}

.modal-content {
    background: var(--card-background);
    margin: auto;
    padding: 1.5rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.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-text-light);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

#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 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 90px;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.payment-method-icon {
    height: 25px;
    max-width: 55px;
    width: auto;
    object-fit: contain;
    margin-bottom: 5px;
}

.payment-method-label span {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-main);
}

.payment-method-label:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.payment-method-option input[type="radio"]:checked + .payment-method-label {
    border-color: var(--primary-color);
    background-color: rgba(192, 164, 111, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(192, 164, 111, 0.4);
}

#paymentInstructionsContainer {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.custom-modal-button {
    background: var(--primary-color);
    color: #000;
}

#top-buyers-section .buyer-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--color-text-main);
}

.buyer-item .trophy-icon.gold {
    color: var(--primary-color);
}

.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 {
    display: none;
    position: fixed;
    z-index: 3000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    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: var(--card-background);
    border: 1px solid var(--border-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 20px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
}

.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(--color-text-light);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.custom-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.custom-modal-message {
    color: var(--color-text-light);
    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: #4CAF50;
    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: #4CAF50;
    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(--danger-color);
}

.custom-modal-icon-error .custom-modal-icon-success-check {
    stroke: var(--danger-color);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: capitalize;
}

.status-badge.pagado,
.status-badge.Aprobado {
    background-color: var(--color-success);
}

.status-badge.apartado,
.status-badge.Por.Revisar {
    background-color: var(--color-warning);
    color: #333;
}

.status-badge.activa {
    background-color: #3182CE;
}

.status-badge.finalizada {
    background-color: var(--color-text-light);
}

.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-text-light);
    font-weight: 600;
}

.social-proof .badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--color-text-main);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-top: 1.5rem;
}

.kpi {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: .75rem 1rem;
    border-radius: 12px;
    text-align: center;
}

.kpi .num {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.kpi .lbl {
    color: var(--color-text-light);
    font-size: .85rem;
}

footer {
    background: var(--color-dark-blue);
    color: var(--color-text-main);
    text-align: center;
    padding: 24px;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}

.footer-socials a img {
    width: 32px;
    height: 32px;
    filter: brightness(0.8) invert(1);
    transition: transform 0.2s ease;
}

.footer-socials a img:hover {
    transform: scale(1.1);
    filter: brightness(1) invert(0);
}

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-text-light);
    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-text-main);
}

.buyer-item small {
    color: var(--color-text-light);
    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);
}

.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 (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 15px var(--color-vibrant-gold), 0 0 30px var(--color-vibrant-gold);
    }
    .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 var(--border-color);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.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;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-transform: capitalize;
}

.status-badge.pagado {
    background-color: var(--color-success);
}

.status-badge.apartado {
    background-color: var(--color-warning);
    color: #333;
}

.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 var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.pagination-btn.current {
    background: var(--gradient-cta);
    color: #000;
    border-color: transparent;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    grid-column: 3 / 4;
}

.pagination-info {
    text-align: center;
    color: var(--color-text-light);
    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;

    /* Efecto de reflejo */
    -webkit-box-reflect: below 0px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(70%, transparent), to(rgba(255,255,255,0.3)));
    -moz-box-reflect: below 0px linear-gradient(transparent, transparent 70%, rgba(255,255,255,0.3));
    box-reflect: below 0px linear-gradient(transparent, transparent 70%, rgba(255,255,255,0.3));

    /* Sombra para ambos botones, puedes ajustar */
    filter: drop-shadow(0px 5px 15px rgba(0, 0, 0, 0.6));
}

.prize-image {
    transform: scale(1.1);
}

.designer-credit a {
    background: linear-gradient(90deg, var(--color-metallic-gold), var(--color-vibrant-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    background-size: 200% 100%;
    text-decoration: none;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.7),
        0 0 5px rgba(255, 255, 255, 0.5);

}

.numeros-boletos {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    background-color: rgba(192, 164, 111, 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: rgba(0, 29, 61, 0.9);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.winner-item-final:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    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(--color-text-main, #FFF);
}
.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, #004D99);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}
.winner-owner-final {
    font-size: 0.8rem;
    text-align: center;
    color: var(--color-text-light, #A0A0A0);
    margin-top: 0.25rem;
}