/* ==========================================
   ESTILOS GLOBALES
   ========================================== */
   * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
   html { scroll-behavior: smooth; }
   body { background-color: #090F1C; color: #f8fafc; overflow-x: hidden; }
   
   /* ==========================================
      NAVBAR (Menú Superior)
      ========================================== */
   .navbar { background-color: #0B1325; border-bottom: 1px solid #1c2b4a; position: sticky; top: 0; z-index: 100; padding: 15px 0; }
   .nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; flex-wrap: wrap; gap: 15px; }
   .logo h2 { font-style: italic; font-weight: 900; color: white; letter-spacing: 1px; cursor: pointer; }
   .nav-links { list-style: none; display: flex; gap: 20px; }
   .nav-links a { color: #8A99B8; text-decoration: none; font-weight: 600; transition: color 0.3s; font-size: 0.9rem; text-transform: uppercase; }
   .nav-links a:hover, .nav-links a.activo { color: white; border-bottom: 2px solid #3b82f6; padding-bottom: 5px; }
   
   /* ==========================================
      VISTA 1: CATÁLOGO DE RIFAS
      ========================================== */
   .vista-activa { animation: fadeIn 0.4s ease-out; }
   .catalogo-header { text-align: center; padding: 60px 20px 40px; background: linear-gradient(180deg, #0B1325 0%, #090F1C 100%); border-bottom: 1px dashed #1F2E4D; }
   .catalogo-header h1 { font-size: 2.5rem; color: white; font-weight: 900; letter-spacing: 1px; margin-bottom: 10px; }
   .catalogo-header h1 span { color: #F59E0B; }
   .catalogo-header p { color: #8A99B8; font-size: 1.1rem; }
   
   .contenedor-catalogo { max-width: 1200px; margin: 50px auto; padding: 0 20px; }
   .catalogo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
   
   .tarjeta-rifa { background: #111A2E; border-radius: 15px; border: 1px solid #1F2E4D; overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; }
   .tarjeta-rifa:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.5); border-color: #3B82F6; }
   .tarjeta-img { height: 220px; background-size: cover; background-position: center; position: relative; }
   .badge-estado { position: absolute; top: 15px; left: 15px; padding: 5px 12px; border-radius: 20px; font-weight: 800; font-size: 0.8rem; color: black; letter-spacing: 1px; }
   .badge-vivo { background: #10B981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
   .badge-proximo { background: #F59E0B; }
   .tarjeta-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
   .tarjeta-info h3 { color: white; font-size: 1.4rem; margin-bottom: 5px; text-transform: uppercase; }
   .precio-boleto { color: #F59E0B; font-weight: 800; font-size: 1.1rem; margin-bottom: 20px; }
   .progreso-mini { background: #1F2E4D; height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: 8px; }
   .barra-mini { background: linear-gradient(90deg, #F59E0B, #FBBF24); height: 100%; border-radius: 5px; }
   .texto-progreso { color: #8A99B8; font-size: 0.85rem; font-weight: 600; text-align: right; margin-bottom: 25px; }
   
   .btn-participar { display: block; width: 100%; text-align: center; background: linear-gradient(90deg, #F59E0B, #D97706); color: #000; font-weight: 900; font-size: 0.9rem; padding: 15px; border-radius: 8px; cursor: pointer; border: none; transition: 0.2s; text-transform: uppercase; margin-top: auto; }
   .btn-participar:hover { transform: scale(1.02); box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
   .btn-cerrado { background: #334155; color: #94A3B8; cursor: not-allowed; box-shadow: none; }
   
   /* ==========================================
      VISTA 2: ZONA DE COMPRA Y DETALLE
      ========================================== */
   .barra-volver { max-width: 1200px; margin: 20px auto 0; padding: 0 20px; }
   .btn-volver-atras { background: transparent; color: #8A99B8; border: 1px solid #2D3F63; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: 0.3s; }
   .btn-volver-atras:hover { background: #1F2E4D; color: white; }
   
   .contenedor-principal { max-width: 1200px; margin: 20px auto 40px; padding: 0 20px; animation: fadeIn 0.4s ease-out; }
   .layout-dos-columnas { display: flex; flex-direction: column; gap: 30px; margin-bottom: 40px; }
   @media (min-width: 900px) { .layout-dos-columnas { flex-direction: row; align-items: flex-start; } }
   .columna-izquierda { flex: 1.2; width: 100%; }
   .columna-derecha { flex: 1; width: 100%; display: flex; flex-direction: column; gap: 15px; }
   
   .titulo-detalle { color: white; font-size: 2rem; text-transform: uppercase; font-weight: 900; margin-bottom: 5px; }
   .slider-contenedor { position: relative; width: 100%; height: 380px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
   .slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; }
   .slide.activo { opacity: 1; }
   .slide img { width: 100%; height: 100%; object-fit: cover; }
   .prev, .next { cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); padding: 15px; color: white; font-weight: bold; font-size: 20px; transition: 0.3s; border-radius: 0 3px 3px 0; background-color: rgba(0,0,0,0.5); border: none; }
   .next { right: 0; border-radius: 3px 0 0 3px; }
   .prev:hover, .next:hover { background-color: rgba(245,158,11,0.8); }
   
   .info-box { background: #111A2E; border: 1px solid #1F2E4D; border-radius: 8px; padding: 20px; }
   .precio-box { font-size: 1.2rem; color: #E2E8F0; text-align: center; }
   .progreso-header { display: flex; justify-content: space-between; font-weight: 800; color: #8A99B8; font-size: 0.9rem; margin-bottom: 10px; }
   .porcentaje-texto { color: #F59E0B; font-size: 1.1rem; }
   .barra-fondo { background: #1F2E4D; height: 15px; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
   .barra-relleno { background: linear-gradient(90deg, #F59E0B, #FBBF24); height: 100%; width: 0%; transition: width 1s ease-in-out; border-radius: 10px; }
   .texto-footer { font-size: 0.8rem; color: #64748B; }
   
   .premios-extra { display: flex; gap: 10px; }
   .premio-card { background: #111A2E; flex: 1; padding: 15px; border-radius: 8px; text-align: center; border: 1px solid #1F2E4D; }
   .premio-card h4 { color: #FBBF24; font-size: 0.9rem; margin-top: 5px; }
   .premio-card p { font-size: 0.8rem; color: #94A3B8; }
   
   /* SECCIÓN COMPRA (Paquetes y Manual) */
   .compra-section { background: #111A2E; padding: 30px; border-radius: 12px; border: 1px solid #1F2E4D; }
   .compra-section h2 { text-align: center; margin-bottom: 25px; font-size: 1.5rem; }
   .paquetes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; margin-bottom: 25px; }
   .btn-paquete { background: #1F2E4D; border: 2px solid #2D3F63; color: white; padding: 20px 5px; border-radius: 12px; font-size: 1.8rem; font-weight: 800; cursor: pointer; transition: 0.2s; }
   .btn-paquete span { font-size: 0.9rem; font-weight: 400; display: block; color: #94A3B8; }
   .btn-paquete:hover { background: #2D3F63; }
   .btn-paquete.activo { border-color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
   .btn-paquete.destacado { position: relative; border-color: #F59E0B; }
   .btn-paquete.destacado::after { content: 'MÁS POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #F59E0B; color: #000; font-size: 0.65rem; padding: 3px 10px; border-radius: 10px; font-weight: 800; width: 90px;}
   
   .divisor-o { text-align: center; margin: 30px 0; position: relative; }
   .divisor-o::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px dashed #2D3F63; z-index: 1; }
   .divisor-o span { background-color: #111A2E; padding: 0 15px; color: #64748B; position: relative; z-index: 2; font-size: 0.9rem; }
   .selector-manual-contenedor { display: flex; flex-direction: column; align-items: center; padding: 20px; background: #0B1325; border-radius: 12px; border: 1px solid #1F2E4D; margin-bottom: 30px; }
   .titulo-selector { font-size: 1.8rem; font-weight: 800; color: white; margin-bottom: 15px; letter-spacing: 1px; text-transform: uppercase; }
   .control-cantidad { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 15px; }
   .btn-control { width: 60px; height: 60px; border-radius: 15px; border: none; background: #1F2E4D; color: #64748B; font-size: 2rem; font-weight: bold; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.2s; }
   .btn-control:hover { background: #2D3F63; color: white; }
   .btn-control:active { transform: scale(0.95); }
   .btn-sumar { background: #F59E0B; color: #000; box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }
   .btn-sumar:hover { background: #D97706; color: #000; box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }
   .display-cantidad { display: flex; flex-direction: column; align-items: center; min-width: 80px; }
   .cantidad-numero { font-size: 3.5rem; font-weight: 800; color: white; line-height: 1; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
   .cantidad-texto { font-size: 0.9rem; color: #8A99B8; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-top: -5px; }
   .limite-transaccion { color: #8A99B8; font-size: 0.9rem; margin-bottom: 15px; }
   .total-selector { font-size: 1.5rem; color: #E2E8F0; font-weight: 600; }
   
   /* FORMULARIO Y MÉTODOS DE PAGO */
   .formulario-pago { border-top: 1px dashed #2D3F63; padding-top: 25px; }
   .input-group { margin-bottom: 15px; }
   .input-group label { display: block; margin-bottom: 5px; font-size: 0.9rem; color: #94A3B8; }
   .input-group input[type="text"], .input-group input[type="tel"] { width: 100%; padding: 12px; border-radius: 6px; border: 1px solid #2D3F63; background: #090F1C; color: white; outline: none; }
   .input-group input:focus { border-color: #3B82F6; }
   
   .modos-pago-container { margin-top: 30px; background: #0B1325; padding: 20px; border-radius: 12px; border: 1px solid #1F2E4D; }
   .modos-pago-header h3 { color: white; font-size: 1.2rem; margin-bottom: 2px; }
   .modos-pago-header p { color: #64748B; font-size: 0.9rem; margin-bottom: 20px; }
   /* Contenedor de los bancos */
.bancos-grid { 
    display: flex; 
    gap: 10px; /* Reducimos el espacio de 15px a 10px para que quepan mejor */
    justify-content: center; 
    flex-wrap: nowrap; /* Evita que los iconos salten a la siguiente línea */
    margin-bottom: 20px; 
}

/* Cajas de cada banco */
.btn-banco { 
    position: relative; 
    /* Usamos clamp para que el tamaño sea de 70px en PC, pero se encoja hasta 55px en celulares pequeños */
    width: clamp(55px, 15vw, 70px); 
    height: clamp(55px, 15vw, 70px); 
    background: #111A2E; 
    border: 2px solid #1F2E4D; 
    border-radius: 15px; 
    cursor: pointer; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: all 0.2s; 
    flex-shrink: 0; /* Asegura que mantengan su forma proporcional */
}
   .btn-banco:hover { border-color: #64748B; }
   .btn-banco.activo { border-color: #F59E0B; box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }
   .logo-banco { font-weight: 900; font-size: 1.5rem; color: white; }
   .br-logo { color: #005FA8; } .bp-logo { color: #0084C8; } .bhd-logo { color: #00A650; } .zelle-logo { color: #7413DC; font-style: italic; }
   .banco-check { position: absolute; top: -8px; right: -8px; background: #F59E0B; color: black; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: bold; display: flex; justify-content: center; align-items: center; opacity: 0; transform: scale(0); transition: all 0.2s; border: 2px solid #0B1325; }
   .btn-banco.activo .banco-check { opacity: 1; transform: scale(1); }
   .detalles-banco-card { background: #060B14; border: 1px solid #1F2E4D; border-radius: 12px; padding: 25px; text-align: center; }
   #banco-nombre { color: white; font-size: 1.2rem; margin-bottom: 15px; }
   .banco-label { color: #64748B; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 5px; font-weight: 600; }
   
   .cuenta-wrapper { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px; 
    flex-wrap: nowrap; /* 🟢 CAMBIO: 'nowrap' fuerza a que el botón SIEMPRE esté al lado del número, sin caerse abajo */
    width: 100%;
}

#banco-numero { 
    color: white; 
    font-size: clamp(1.2rem, 5vw, 2.2rem); 
    font-weight: 800; 
    letter-spacing: 1px; 
    word-break: break-all; 
    text-align: center;
    
    /* 🟢 AGREGAR ESTO PARA ALINEACIÓN PERFECTA: */
    margin: 0; 
    line-height: 1; /* Elimina el margen invisible arriba y abajo de la fuente grande */
}
   .btn-copiar { 
    background: #1F2E4D; 
    border: 1px solid #2D3F63; 
    color: white; width: 40px; height: 40px; 
    border-radius: 50%; cursor: pointer; 
    transition: 0.2s; display: flex; 
    justify-content: center; align-items: 
    center; font-size: 1.2rem; }
   .btn-copiar:hover { background: #3B82F6; border-color: #3B82F6; }
   .titular-texto { color: #F59E0B; font-size: 1.1rem; margin-bottom: 25px; }
   .banco-total-box { border: 1px solid #F59E0B; background: rgba(245, 158, 11, 0.05); padding: 15px; border-radius: 8px; color: white; font-weight: 600; font-size: 1.1rem; display: inline-block; }
   
   /* ZONA UPLOAD */
   .upload-area { background: #0B1325; border: 2px dashed #2D3F63; border-radius: 12px; padding: 30px 20px; text-align: center; cursor: pointer; transition: all 0.3s ease; margin-top: 10px; }
   .upload-area:hover { border-color: #F59E0B; background: rgba(245, 158, 11, 0.05); }
   .upload-area.archivo-cargado { border-color: #10B981; background: rgba(16, 185, 129, 0.05); }
   .upload-content { display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
   .upload-icon { font-size: 2.5rem; margin-bottom: 5px; }
   #upload-titulo { color: #E2E8F0; font-size: 1rem; font-weight: 600; }
   #upload-nombre-archivo { color: #64748B; font-size: 0.85rem; }
   
   .btn-comprar-final { width: 100%; background: linear-gradient(90deg, #F59E0B, #D97706); color: #000; font-weight: 900; font-size: 1.2rem; padding: 15px; border: none; border-radius: 8px; cursor: pointer; text-transform: uppercase; margin-top: 25px; transition: 0.2s; }
   .btn-comprar-final:hover { transform: scale(1.02); box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
   .btn-comprar-final:disabled { background: #475569; color: #94a3b8; cursor: not-allowed; box-shadow: none; transform: none; }
   
   /* PANTALLA ÉXITO */
   .pantalla-exito { text-align: center; padding: 20px 0; animation: fadeIn 0.6s ease-out; }
   .icono-exito { font-size: 5rem; margin-bottom: 10px; animation: bounce 1s infinite alternate; }
   .pantalla-exito h2 { color: #10B981; font-size: 2.2rem; margin-bottom: 10px; text-transform: uppercase; font-weight: 900; letter-spacing: 1px; }
   .pantalla-exito p { color: #E2E8F0; font-size: 1rem; }
   .titulo-boletos { color: #F59E0B; margin: 35px 0 20px; font-size: 1.3rem; letter-spacing: 2px; }
   .boletos-asignados-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 35px; }
   .boleto-ganador { background: linear-gradient(135deg, #F59E0B, #D97706); color: #000; font-size: 2rem; font-weight: 900; padding: 15px 30px; border-radius: 8px; box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3); border: 2px dashed #060B14; letter-spacing: 4px; position: relative; }
   .boleto-ganador::before, .boleto-ganador::after { content: ''; position: absolute; top: 50%; width: 15px; height: 15px; background: #111A2E; border-radius: 50%; transform: translateY(-50%); }
   .boleto-ganador::before { left: -8px; } .boleto-ganador::after { right: -8px; }
   .aviso-whatsapp-exito { background: rgba(37, 211, 102, 0.1); border: 1px solid #25D366; padding: 15px; border-radius: 8px; display: inline-block; margin-bottom: 30px; }
   .aviso-whatsapp-exito p { color: #25D366; font-weight: 600; margin: 0; }
   .btn-volver { background: transparent; border: 2px solid #3B82F6; color: #3B82F6; padding: 15px 30px; border-radius: 8px; font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
   .btn-volver:hover { background: #3B82F6; color: white; }
   
   /* ==========================================
      SECCIONES COMUNES (Ganadores, Verificar, Acerca)
      ========================================== */
   .ganadores-section { background-color: #060B14; padding: 60px 20px; text-align: center; border-top: 1px solid #1F2E4D; }
   .ganadores-section h2 { font-size: 2.2rem; color: #F59E0B; margin-bottom: 10px; text-transform: uppercase; font-weight: 900; }
   .ganadores-grid { max-width: 1100px; margin: 40px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
   .ganador-card { background: #0B1325; border: 1px solid #1F2E4D; border-radius: 12px; overflow: hidden; width: 320px; text-align: left; transition: 0.3s; }
   .ganador-card:hover { transform: translateY(-5px); border-color: #F59E0B; box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2); }
   .foto-ganador { height: 250px; background-size: cover; background-position: center; border-bottom: 4px solid #F59E0B; }
   .info-ganador { padding: 20px; }
   .info-ganador h4 { color: white; font-size: 1.2rem; margin-bottom: 5px; }
   .premio-texto { color: #10B981; font-weight: 800; font-size: 0.9rem; margin-bottom: 10px; text-transform: uppercase; }
   .boleto-texto { color: #8A99B8; font-size: 0.85rem; }
   .boleto-texto strong { color: white; background: #1F2E4D; padding: 3px 8px; border-radius: 4px; }
   
   .verificar-section { background-color: #090F1C; padding: 60px 20px; text-align: center; border-top: 1px solid #1F2E4D; }
   .verificar-section h2 { font-size: 2.2rem; margin-bottom: 10px; text-transform: uppercase; font-weight: 900; }
   .verificar-sub { color: #8A99B8; margin-bottom: 30px; font-size: 1rem; }
   .buscador-caja { max-width: 700px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px; background: #0B1325; padding: 20px; border-radius: 12px; border: 1px solid #1F2E4D; }
   .pais-select { background: #111A2E; border: 1px solid #1F2E4D; color: white; padding: 12px 15px; border-radius: 8px; display: flex; align-items: center; gap: 10px; }
   .buscador-caja input { flex: 1; min-width: 200px; padding: 12px 15px; background: #111A2E; border: 1px solid #1F2E4D; color: white; border-radius: 8px; font-size: 1rem; outline: none; }
   .buscador-caja input:focus { border-color: #3B82F6; }
   .btn-buscar { background: #3B82F6; color: white; border: none; padding: 12px 25px; border-radius: 8px; font-weight: 800; font-size: 1rem; cursor: pointer; transition: 0.2s; }
   .btn-buscar:hover { background: #2563EB; }
   .aviso-box { max-width: 700px; margin: 30px auto 0; background: #1A1A1A; border-left: 4px solid #F59E0B; padding: 20px; border-radius: 8px; display: flex; gap: 15px; text-align: left; }
   
   .acerca-section { background-color: #060B14; padding: 60px 20px; border-top: 1px solid #1F2E4D; }
   .acerca-section h2 { text-align: center; font-size: 2.2rem; margin-bottom: 40px; text-transform: uppercase; font-weight: 900; }
   .acerca-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
   .acerca-card { background: #111A2E; padding: 30px 20px; border-radius: 12px; border: 1px solid #1F2E4D; text-align: left; }
   .acerca-card h3 { font-size: 1.3rem; margin: 15px 0 10px; color: white; }
   .acerca-card p { color: #8A99B8; font-size: 0.9rem; line-height: 1.6; }
   .border-blue { border-top: 4px solid #3B82F6; } .border-yellow { border-top: 4px solid #F59E0B; }
   .border-purple { border-top: 4px solid #8B5CF6; } .border-green { border-top: 4px solid #10B981; }
   .icon-circle { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: #1F2E4D; border: 1px solid rgba(255,255,255,0.1); }
   .icon-blue { color: #3B82F6; } .icon-yellow { color: #F59E0B; } .icon-purple { color: #8B5CF6; } .icon-green { color: #10B981; }
   
   /* ==========================================
      FOOTER & WHATSAPP
      ========================================== */
   .footer-section { background-color: #03060B; border-top: 1px solid #1c2b4a; padding: 50px 20px 20px; color: #8A99B8; }
   .footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
   .footer-col { flex: 1; min-width: 250px; }
   .brand-col h2 { color: white; font-style: italic; margin-bottom: 15px; font-weight: 900; }
   .social-icons a { background: #111A2E; border: 1px solid #1F2E4D; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: white;margin-right: 5px;margin-top: 10px; display: inline-block; font-size: 0.8rem; transition: 0.3s; }
   .social-icons a:hover { background: #3B82F6; }
   .footer-col h4 { color: white; font-size: 1rem; margin-bottom: 20px; letter-spacing: 1px; }
   .links-col ul { list-style: none; }
   .links-col ul li { margin-bottom: 12px; }
   .links-col ul li a { color: #8A99B8; text-decoration: none; transition: 0.3s; }
   .links-col ul li a:hover { color: white; }
   .footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 20px; border-top: 1px solid #1F2E4D; display: flex; justify-content: space-between; font-size: 0.85rem; flex-wrap: wrap; gap: 10px; }
   .footer-bottom a { color: #8A99B8; text-decoration: none; }
   .footer-bottom a:hover { color: white; }
   
   .whatsapp-flotante { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25D366; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000; transition: transform 0.2s; }
   .whatsapp-flotante img { width: 35px; height: 35px; }
   .whatsapp-flotante:hover { transform: scale(1.1); }
   
   /* ==========================================
      ANIMACIONES Y RESPONSIVE
      ========================================== */
   @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
   @keyframes bounce { from { transform: translateY(0px); } to { transform: translateY(-10px); } }
   
/* --- BOTÓN HAMBURGUESA (Oculto en PC) --- */
.menu-toggle {
    display: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    user-select: none;
}

/* ==========================================
   ANIMACIONES Y RESPONSIVE (MÓVILES)
   ========================================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    /* Mostrar botón hamburguesa */
    .menu-toggle { display: block; }
    
    /* Convertir el menú horizontal en vertical y ocultarlo */
    .nav-links { 
        display: none; /* Oculto por defecto en móvil */
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background-color: #0B1325; 
        flex-direction: column; 
        align-items: center; 
        padding: 20px 0; 
        gap: 25px; 
        border-bottom: 1px solid #1c2b4a; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    /* Clase que Javascript activa para mostrar el menú */
    .nav-links.active { display: flex; animation: fadeIn 0.3s ease-out; }
    
    /* Ajustes visuales para móvil */
    .catalogo-header h1 { font-size: 2rem; }
    .slider-contenedor { height: 250px; }
    .titulo-detalle { font-size: 1.5rem; }
}

   /* --- ESTILOS PARA LOS LOGOS DE BANCOS EN IMAGEN --- */
.img-logo-banco {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Esto evita que el logo se estire o se deforme */
    padding: 8px; /* Le da un margen interno para que respire */
    border-radius: 12px;
    background-color: white; /* Fondo blanco por si tus logos son transparentes y no se pierdan con el fondo oscuro */
    transition: all 0.2s;
}

/* Efecto al hacer hover o seleccionar */
.btn-banco:hover .img-logo-banco {
    transform: scale(1.05);
}

/* ==========================================
   DISEÑO DEL TICKET DIGITAL (VERIFICACIÓN)
   ========================================== */
   .ticket-card {
    background: #111A2E;
    width: 100%;
    border-radius: 15px;
    border: 2px solid #F59E0B;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Parte Superior (Foto del Vehículo + Datos) */
.ticket-bg {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.ticket-bg::after {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.95));
}
.ticket-info {
    position: absolute; bottom: 15px; left: 20px; z-index: 2; color: white; text-align: left;
}
.ticket-info h3 { font-size: 1.3rem; margin-bottom: 8px; color: white; text-transform: uppercase; font-weight: 900; }
.badge-estado-ticket { background: rgba(245, 158, 11, 0.15); color: #F59E0B; border: 1px solid #F59E0B; padding: 4px 10px; border-radius: 5px; font-size: 0.8rem; display: inline-block; margin-bottom: 10px; font-weight: bold; }
.ticket-detalle { font-size: 0.85rem; color: #E2E8F0; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }

/* Parte Inferior (Números y QR) */
.ticket-stub {
    background: white;
    padding: 20px;
    border-top: 2px dashed #94A3B8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ticket-numeros { text-align: left; flex: 1; }
.ticket-numeros p { font-size: 0.75rem; color: #64748B; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.ticket-numeros h2 { font-size: 1.4rem; color: #000; font-weight: 900; letter-spacing: 1px; word-wrap: break-word; }
.qr-code-img { width: 80px; height: 80px; border-radius: 8px; border: 1px solid #E2E8F0; padding: 2px; }


/* Botón de descarga individual en cada ticket */
.btn-descargar-individual {
    width: 100%;
    background: #10B981;
    color: white;
    border: none;
    padding: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}
.btn-descargar-individual:hover {
    background: #059669;
}

/* ==========================================
   SECCIÓN DE GANADORES (CENTRADOS)
   ========================================== */
   .ganadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px; /* 🟢 Le da un respiro a los lados en celulares */
}

.ganador-card {
    background: #111A2E;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #1F2E4D;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s;
    
    /* 🟢 EL TRUCO PARA CENTRAR EN MÓVILES */
    width: 100%;
    max-width: 380px; /* Evita que la tarjeta sea más ancha que esto */
    margin: 0 auto; /* Obliga a la tarjeta a pararse en el mismísimo centro */
}

.ganador-card:hover {
    transform: translateY(-5px);
    border-color: #F59E0B;
}

.ganador-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid #F59E0B;
}

.ganador-info {
    padding: 20px;
}

.ganador-info h3 { color: #F59E0B; font-size: 1.4rem; margin-bottom: 5px; text-transform: uppercase; font-weight: 900;}
.ganador-info .premio-texto { color: white; font-size: 1.1rem; margin-bottom: 10px; font-weight: bold; }
.ganador-boleto { display: inline-block; background: rgba(16, 185, 129, 0.15); color: #10B981; padding: 5px 15px; border-radius: 8px; font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; }
.ganador-info .fecha-texto { display: block; color: #64748B; font-size: 0.85rem; }

/* ==========================================
   ESTILOS DE LOGOS
   ========================================== */
/* Logo del menú principal */
/* Logo del menú principal */
.logo-principal {
    height: 60px; 
    max-width: 280px;
    object-fit: contain;
    transition: transform 0.2s;
    /* 🟢 EL TRUCO MÁGICO: Esto hace que el fondo negro desaparezca */
    mix-blend-mode: lighten; 
}

.logo-principal:hover {
    transform: scale(1.05);
}

/* Franja superior para el logo RIFAS HUB en el Ticket Digital */
.ticket-header-logo {
    background: #111A2E; /* Lo devolvemos al azul oscuro de tu página */
    text-align: center;
    padding: 15px 10px;
    border-bottom: 3px solid #F59E0B; 
}

.ticket-logo-img {
    height: 90px; 
    max-width: 100%;
    object-fit: contain;
    /* 🟢 EL TRUCO MÁGICO APLICADO AL TICKET TAMBIÉN */
    mix-blend-mode: lighten; 
}

/* ==========================================
   ESTILOS DEL MODAL
   ========================================== */

/* 1. EL FONDO OSCURO (El imán que centra todo) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    
    /* Centrado y margen de seguridad */
    /* Nota: como en tu HTML tienes display: none, cuando lo abras con JS 
       asegúrate de ponerle display: flex; y no display: block; */
    padding: 20px;           /* 🟢 ESTO EVITA QUE TOQUE LOS BORDES DEL CELULAR */
    box-sizing: border-box;
}

/* 2. LA CAJA INTERNA (La que contiene el texto) */
.modal-content {
    background-color: #1F2E4D; 
    width: 90%;                /* 🟢 EL CAMBIO CLAVE: 90% en vez de 100% */
    max-width: 500px;          
    border-radius: 12px;
    padding: 25px;             /* Ajusté un poco el padding interno para que respire bien */
    position: relative;        
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    box-sizing: border-box;    /* 🟢 CRÍTICO: Evita que el padding haga la caja más ancha */
}

/* 3. LA "X" PARA CERRAR */
.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    color: #cbd5e1;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.cerrar-modal:hover {
    color: #F59E0B;
}

/* ==========================================
   PÁGINAS LEGALES (Términos, Privacidad, Cookies)
   ========================================== */

/* Contenedor principal de la página legal */
.seccion-legal {
    max-width: 900px;
    margin: 40px auto 80px auto; 
    padding: 0 20px;
    animation: fadeIn 0.4s ease-out; 
}

/* El botón de regresar al inicio */
.seccion-legal .btn-volver-atras {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #8A99B8;
    border: 1px solid #2D3F63;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.seccion-legal .btn-volver-atras:hover {
    background: #1F2E4D;
    color: white;
    border-color: #3b82f6;
}

/* El título principal de la página legal */
.seccion-legal h1 {
    font-size: 2.5rem;
    color: white;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-family: 'Orbitron', 'Poppins', sans-serif;
}

/* Fecha de actualización */
.seccion-legal .fecha-act {
    color: #F59E0B;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 30px;
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Subtítulos de cada sección */
.seccion-legal h4 {
    color: #3B82F6; 
    font-size: 1.25rem;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #1F2E4D;
    padding-bottom: 8px;
}

/* Párrafos y textos generales */
.seccion-legal p {
    color: #cbd5e1; 
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
    font-weight: 400;
}

/* Resaltar textos importantes con negrita */
.seccion-legal strong {
    color: white;
    font-weight: 600;
}

/* Listas (viñetas) */
.seccion-legal ul {
    padding-left: 20px;
    margin-bottom: 25px;
    color: #cbd5e1;
    list-style-type: none; 
}

.seccion-legal li {
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.7;
    position: relative;
    padding-left: 25px; 
}

/* Viñeta personalizada elegante (cuadrito naranja) */
.seccion-legal li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: #F59E0B;
    border-radius: 2px;
}

/* Cajas de alerta legal o llamadas de atención */
.seccion-legal .alerta-legal {
    background: #111A2E;
    border-left: 4px solid #F59E0B;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin: 25px 0;
    border-top: 1px solid #1F2E4D;
    border-right: 1px solid #1F2E4D;
    border-bottom: 1px solid #1F2E4D;
}

.seccion-legal .alerta-legal p {
    margin-bottom: 0;
}

/* Adaptación para pantallas pequeñas (Celulares) */
@media (max-width: 768px) {
    .seccion-legal {
        margin-top: 20px;
    }
    .seccion-legal h1 {
        font-size: 2rem;
    }
    .seccion-legal p, .seccion-legal li {
        font-size: 1rem;
    }
}