/* =========================================
   1. RESET Y CONFIGURACIÓN GLOBAL (MÁS NEGRO)
   ========================================= */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scrollbar-width: none; /* Oculta scroll en Firefox */
}

*::-webkit-scrollbar {
    display: none; /* Oculta scroll en Chrome/Safari */
}

:root {
    /* FONDO TOTALMENTE NEGRO para máximo contraste con el verde */
    --bg-dark: #000000; 
    --accent-blue: #007bff;
    --success-green: #00ff88;
    --card-bg: #111418; /* Tarjetas ligeramente más oscuras */
}

body {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* =========================================
   2. NAVBAR (GLASSMORPHISM SOBRE NEGRO)
   ========================================= */
.navbar-minimal {
    background: rgba(0, 0, 0, 0.85); /* Negro con transparencia */
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1030;
}

.btn-back-minimal {
    color: #a0a0a0; /* Gris más claro para que se vea */
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.btn-back-minimal:hover {
    color: var(--accent-blue);
    transform: translateX(-5px);
}

/* =========================================
   3. HERO SECTION (TÍTULOS IMPACTANTES)
   ========================================= */
.hero-vouchers {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-vouchers h1 {
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 4rem);
    letter-spacing: -2px;
    /* Degradado blanco a azul sobre fondo negro */
    background: linear-gradient(135deg, #ffffff 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

/* =========================================
   4. GRILLA DE VOUCHERS (MASONRY COMPACTO)
   ========================================= */
#voucher-container {
    columns: 2;
    column-gap: 20px;
    padding-bottom: 20px; /* Reducido para evitar el "hueco" negro */
}

@media (min-width: 768px) { #voucher-container { columns: 3; } }
@media (min-width: 1200px) { #voucher-container { columns: 4; } }

/* =========================================
   5. TARJETAS DE VOUCHER (ESTILO E IMAGEN)
   ========================================= */
.voucher-link {
    text-decoration: none;
    display: block;
    break-inside: avoid;
    margin-bottom: 25px;
    opacity: 0; 
    transform: translateY(20px);
}

.voucher-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.voucher-item:hover {
    transform: scale(1.03);
    /* EL VERDE RESALTA MÁS AL HOVER SOBRE NEGRO */
    border-color: var(--success-green);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.25); /* Mayor glow azul */
}

.voucher-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(15%);
    transition: 0.4s;
}

/* =========================================
   6. ETIQUETA VERDE RESALTADA (SUBIDA Y MÁS BRILLO)
   ========================================= */
.status-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    /* Reducimos padding-bottom para subir la etiqueta "un poquito más" */
    padding: 20px 15px 10px; /* Reducido de 12px a 10px */
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge-glow {
    /* Fondo verde con más opacidad para que resalte */
    background: rgba(0, 255, 136, 0.15); 
    border: 1px solid rgba(0, 255, 136, 0.5); /* Borde más brillante */
    color: var(--success-green);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    /* Efecto de pulso más fuerte sobre negro */
    animation: pulse-border 1.5s infinite; /* Más rápida la animación */
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(0, 255, 136, 0); } /* Mayor expansión */
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* =========================================
   7. PERSONALIZACIÓN DE LIGHTBOX (VISOR)
   ========================================= */
.lightboxOverlay { 
    backdrop-filter: blur(10px); 
    /* Fondo totalmente negro al abrir el visor */
    background: rgba(0, 0, 0, 0.95) !important; 
}

.lb-image { 
    border: 4px solid #ffffff; 
    border-radius: 12px; 
}

.lb-nav a.lb-close {
    background-color: var(--accent-blue) !important;
    border-radius: 50%;
    opacity: 1 !important;
    top: -20px;
    right: -20px;
    border: 2px solid white;
}

/* =========================================
   8. FOOTER (COMPACTO Y VISIBLE EN BLANCO)
   ========================================= */
footer {
    /* Negro puro para el footer */
    background: #000000; 
    padding: 15px 0; /* Padding mínimo para quitar espacio */
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 20px;
}

footer p {
    color: #ffffff !important; /* Blanco total para el RUC */
    margin-bottom: 4px !important;
    font-size: 0.9rem;
    font-weight: 600;
}

footer .small {
    font-size: 0.75rem;
    color: #ffffff !important; /* Blanco total para los derechos */
    opacity: 0.8;
}