/* Etiqueta 'Máquina de la suerte' en modal (fondo blanco) */
.lucky-label {
    color: #1c1c1c;
    font-weight: 700;
    background: #fff3cd; /* amarillo suave para destacar sobre blanco */
    border: 1px solid #ffe08a;
    padding: 4px 8px;
    border-radius: 6px;
}
:root {
    /* Nueva paleta basada en gris oscuro y dorado */
    --color-bg: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1f1f1f 100%); /* Fondo principal gris oscuro */
    --color-header-footer: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%); /* Header y Footer gris oscuro */
    --color-cta: #2ecc71; /* Botones principales (mantener verde) */
    --color-secondary: #6b6b6b; /* Gris medio para elementos secundarios */
    --color-accent: #d4af37; /* Dorado elegante */
    --color-accent-dark: #b8941f; /* Dorado más oscuro para degradados */
    --color-accent-light: #f4e4bc; /* Dorado claro para acentos suaves */
    --color-muted: #8a8a8a; /* Gris claro para textos secundarios */
    --color-white: #f8f8f8; /* Blanco roto */
    --color-off-white: #f5f5f5; /* Blanco roto más suave */
    --color-dark: #0f0f0f; /* Negro profundo */
    --color-earth: #8b7355; /* Tono tierra suave */
    --color-earth-light: #a68b5b; /* Tono tierra claro */
    --color-glass: rgba(248, 248, 248, 0.1); /* Efecto cristal con blanco roto */
    --color-glass-border: rgba(248, 248, 248, 0.2);
    --radius: 20px;
    --radius-small: 12px;
    --shadow: 0 20px 60px rgba(0,0,0,0.5);
    --shadow-hover: 0 30px 80px rgba(0,0,0,0.7);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.3);
    --blur: blur(10px);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--color-white);
    background: var(--color-bg);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
    letter-spacing: 0.3px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Efectos de partículas de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(248, 248, 248, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(139, 115, 85, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

/* Partículas adicionales */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 100px 150px, rgba(212, 175, 55, 0.4), transparent),
        radial-gradient(1px 1px at 200px 300px, rgba(248, 248, 248, 0.3), transparent),
        radial-gradient(1px 1px at 300px 100px, rgba(139, 115, 85, 0.3), transparent),
        radial-gradient(2px 2px at 400px 250px, rgba(212, 175, 55, 0.2), transparent);
    pointer-events: none;
    z-index: -1;
    animation: sparkle 8s linear infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Scrollbar estética para tema oscuro */
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-thumb { 
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%); 
    border-radius: 10px; 
    border: 2px solid var(--color-dark);
    transition: all 0.3s ease;
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
*::-webkit-scrollbar-track { 
    background: var(--color-secondary);
    border-radius: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    transition: all 0.3s ease;
}

/* Efectos de entrada suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Clases de animación */
.animate-fade-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Header */
.header {
    background: var(--color-header-footer);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--color-glass-border);
    box-shadow: var(--shadow), inset 0 1px 0 var(--color-glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-glass);
    z-index: -1;
}

/* Mobile hide-on-scroll behavior */
@media (max-width: 768px) {
    .header {
        transition: transform 0.25s ease;
    }
    .header.is-hidden {
        transform: translateY(-100%);
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

/* Toggle de navegación móvil (eliminado por solicitud del usuario) */

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

.logo i {
    font-size: 2.5rem;
    color: var(--color-accent);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 4px 14px rgba(212, 175, 55, 0.35);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { text-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 4px 14px rgba(212, 175, 55, 0.35); }
    to { text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 6px 20px rgba(212, 175, 55, 0.5); }
}

.logo h1 {
    color: var(--color-white);
    font-weight: 800;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-dark);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(248, 248, 248, 0.2);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(248, 248, 248, 0.3), transparent);
    transition: left 0.6s;
}

.nav-link:hover {
    background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link i {
    font-size: 1rem;
}

/* Estado actual/accesible */
.nav-link[aria-current="page"] {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.1);
    animation: activeNavGlow 2s ease-in-out infinite alternate;
}

@keyframes activeNavGlow {
    from { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.1); }
    to { box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.6), inset 0 0 30px rgba(212, 175, 55, 0.2); }
}

.nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5);
}

/* Resaltado especial para Métodos de Pago */
.nav-link.pay-highlight {
    background: linear-gradient(135deg, #25D366 0%, #1ebe57 100%);
    color: #ffffff;
    border: 2px solid #1ebe57;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    font-weight: 800;
    position: relative;
    overflow: hidden;
}

.nav-link.pay-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.nav-link.pay-highlight:hover::before {
    left: 100%;
}

.nav-link.pay-highlight i { 
    color: #ffffff;
    animation: payIconBounce 2s ease-in-out infinite;
}

@keyframes payIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-link.pay-highlight:hover {
    background: linear-gradient(135deg, #1ebe57 0%, #25D366 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.5);
}

/* Main Content */
.main {
    padding: 1rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 5rem;
    color: var(--color-dark);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 50%, var(--color-accent) 100%);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    border-radius: var(--radius);
    padding: 4rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow), var(--shadow);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(248, 248, 248, 0.1) 0%, transparent 70%);
    animation: heroShine 8s linear infinite;
}

@keyframes heroShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero h2 {
    font-size: 3.8rem;
    margin-bottom: 2rem;
    font-weight: 900;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--color-dark) 0%, #2d2d2d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Rifas Section */
.rifas-section h3 {
    color: var(--color-white);
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    position: relative;
    font-weight: 700;
}

.rifas-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    border-radius: 2px;
    animation: titleUnderline 2s ease-in-out infinite alternate;
}

@keyframes titleUnderline {
    from { width: 60px; opacity: 0.7; }
    to { width: 100px; opacity: 1; }
}

.rifas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 0 10px;
}

.rifa-card {
    background: linear-gradient(145deg, #2a2a2a 0%, #1e1e1e 100%);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(248, 248, 248, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.rifa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-accent), transparent, var(--color-accent-dark));
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rifa-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--shadow-hover), var(--shadow-glow);
}

.rifa-card:hover::before {
    opacity: 1;
}

.rifa-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(248, 248, 248, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.rifa-card:hover::after {
    animation: cardShine 1.5s ease-in-out;
}

@keyframes cardShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.rifa-image {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #2b2b2b 0%, #1f1f1f 50%, #2b2b2b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rifa-card:hover .rifa-image {
    transform: scale(1.05);
}

.rifa-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.rifa-content {
    padding: 2rem 1.5rem;
    text-align: center;
    color: #e0e0e0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    position: relative;
}

.rifa-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    border-radius: 2px;
}

.rifa-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

.rifa-card:hover .rifa-title {
    transform: translateY(-2px);
}

.rifa-description {
    color: #d0d0d0;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    padding: 0 10px;
}

.rifa-details {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(139, 115, 85, 0.1) 100%);
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.rifa-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.6s;
}

.rifa-card:hover .rifa-details::before {
    left: 100%;
}

.rifa-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-accent);
    text-align: center;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    animation: priceGlow 2s ease-in-out infinite alternate;
}

@keyframes priceGlow {
    from { text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
    to { text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.3); }
}

.rifa-available {
    font-size: 1rem;
    color: #28a745;
    font-weight: 600;
    text-align: center;
    background: rgba(40, 167, 69, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(40, 167, 69, 0.3);
    margin-top: 10px;
    display: inline-block;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

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

.rifa-card:hover .rifa-available {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.5);
    transform: scale(1.1);
}


.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 52px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(248, 248, 248, 0.3), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-dark);
    width: 100%;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(248, 248, 248, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Efecto de ondas al hacer clic */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(248, 248, 248, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn > * {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: #2a2a2a;
    color: var(--color-white);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.btn-secondary:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.25);
}

/* WhatsApp button brand color */
#exitoWhatsappBtn {
    background: #25D366;
    color: #ffffff;
    border: 2px solid #1ebe57; /* borde más oscuro para definición */
    outline: none;
}
#exitoWhatsappBtn:hover {
    background: #1ebe57;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.35);
}
#exitoWhatsappBtn:focus {
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
}
#exitoWhatsappBtn i {
    color: #ffffff;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--color-off-white);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    color: var(--color-dark);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-muted);
}

.modal-header h3 {
    color: var(--color-dark);
    font-size: 1.5rem;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-secondary);
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--color-off-white);
    color: var(--color-dark);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-muted);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Boletos Grid Compra */
.boletos-grid-compra {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--color-white); /* blanco roto para la lista */
    border-radius: var(--radius);
    border: 1px solid var(--color-muted);
    margin-bottom: 1rem;
}

.boleto-item-compra {
    background: var(--color-white); /* blanco roto para cada boleto */
    border: 2px solid var(--color-dark); /* borde negro */
    border-radius: 10px;
    padding: 10px 5px;
    text-align: center;
    font-weight: bold;
    color: var(--color-dark); /* texto negro */
    cursor: pointer;
    transition: all 0.3s ease;
}

.boleto-item-compra:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.boleto-item-compra.selected {
    background: var(--color-accent); /* seleccionado: dorado */
    border-color: var(--color-accent);
    color: var(--color-dark);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.35), 0 4px 12px rgba(0,0,0,0.25);
}

/* Highlight for selected tickets in list views */
.boleto-item.selected {
    background: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: var(--color-dark) !important;
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.boleto-number {
    font-size: 0.9rem;
}

/* Compra Summary */
.compra-summary {
    background: var(--color-white);
    color: var(--color-dark);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    border: 1px solid var(--color-muted);
}

.selected-tickets h4 {
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

/* En modales, usar texto oscuro para mejor contraste sobre fondo blanco */
.modal-content .selected-tickets h4 {
    color: var(--color-dark);
}

.selected-ticket-badge {
    background: var(--color-accent);
    color: var(--color-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.subtotal {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--color-muted);
}

.subtotal h3 {
    color: var(--color-accent);
    margin: 0;
}

/* Global status badges/colors */
.status-badge { display:inline-block; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.status-LIBRE { background: #d4edda; color: #155724; }
.status-APARTADO { background: #fff3cd; color: #856404; }
.status-VENDIDO { background: #f8d7da; color: #721c24; }

/* Generic ticket backgrounds for status classes */
.boleto-item.LIBRE { background: #ffffff; border-color: #28a745; color: #155724; }
.boleto-item.APARTADO { background: #fff3cd; border-color: #ffc107; color: #856404; }
.boleto-item.VENDIDO { background: #f8d7da; border-color: #dc3545; color: #721c24; }

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid var(--color-muted);
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    min-height: 52px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    line-height: 1.5;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.resumen-compra {
    background: var(--color-white);
    color: var(--color-dark);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--color-muted);
}

.resumen-compra h4 {
    color: var(--color-dark);
    margin-bottom: 1rem;
}

.total-final {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--color-muted);
    font-size: 1.3rem;
    color: var(--color-secondary);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    position: relative;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-white);
    font-weight: 500;
    user-select: none;
}

.faq-question span {
    flex: 1;
    text-align: center;
}

.faq-question:hover {
    background: linear-gradient(135deg, #333333 0%, #1e1e1e 100%);
    transform: translateX(5px);
    border-color: rgba(212, 175, 55, 0.4);
}

.faq-question i {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--color-accent);
}

.faq-question:hover i {
    color: var(--color-accent-dark);
    transform: scale(1.2);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg) scale(1.1);
    color: var(--color-accent-dark);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #2a2a2a;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer-content {
    padding: 2rem;
    color: rgba(248, 248, 248, 0.95);
    line-height: 1.8;
    text-align: left;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
    font-weight: 400;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: var(--color-dark);
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(248, 248, 248, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(248, 248, 248, 0.3), transparent);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(248, 248, 248, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer p {
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin: 0;
    letter-spacing: 0.3px;
    line-height: 1.4;
    background: linear-gradient(135deg, var(--color-dark) 0%, #2d2d2d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.footer p::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-dark), transparent);
    border-radius: 1px;
}

/* Rifa Header Card Styles */
.rifa-header-card {
    background: linear-gradient(145deg, #2a2a2a 0%, #1e1e1e 100%);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(248, 248, 248, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
    margin-bottom: 2rem;
}

.rifa-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-accent), transparent, var(--color-accent-dark));
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rifa-header-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover), var(--shadow-glow);
}

.rifa-header-card:hover::before {
    opacity: 1;
}

.rifa-header-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(248, 248, 248, 0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.rifa-header-card:hover::after {
    animation: cardShine 1.5s ease-in-out;
}

/* Stat Item Styles */
.stat-item {
    background: linear-gradient(135deg, var(--color-glass) 0%, rgba(42, 42, 42, 0.8) 100%);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-small);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--color-white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), var(--shadow-glow);
    border-color: var(--color-accent);
}

.stat-item:hover::before {
    opacity: 0.1;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-accent);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    margin-bottom: 0.5rem;
    animation: numberGlow 2s ease-in-out infinite alternate;
}

@keyframes numberGlow {
    from { text-shadow: 0 0 15px rgba(212, 175, 55, 0.5); }
    to { text-shadow: 0 0 25px rgba(212, 175, 55, 0.8), 0 0 35px rgba(212, 175, 55, 0.3); }
}

.stat-item .stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.stat-item i {
    transition: all 0.3s ease;
}

.stat-item:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 10px currentColor);
}

/* Stats container for better layout */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en fila horizontal para desktop */
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0 1rem;
}

/* Responsive Design */
/* Elementos decorativos flotantes */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-elements::before {
    content: '✨';
    position: absolute;
    top: 20%;
    left: 10%;
    font-size: 20px;
    opacity: 0.2;
    animation: floatUp 15s linear infinite;
}

.floating-elements::after {
    content: '💎';
    position: absolute;
    top: 60%;
    right: 15%;
    font-size: 18px;
    opacity: 0.15;
    animation: floatUp 12s linear infinite reverse;
}

@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.2; }
    90% { opacity: 0.2; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Tablets - transición intermedia */
@media (max-width: 1024px) and (min-width: 769px) {
    .stats {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas para tablets */
        grid-template-rows: repeat(2, 1fr); /* 2 filas para tablets */
        gap: 1.2rem;
        padding: 0 0.8rem;
        margin: 1.8rem 0;
    }
    
    .stat-item {
        padding: 1.8rem 1.3rem;
    }
}

@media (max-width: 768px) {
    /* Revertir navegación fija como antes */

    .header .container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-link {
        flex: 1 1 auto;
        justify-content: center;
        padding: 12px 14px;
    }

    .hero h2 {
        font-size: 2.5rem;
        letter-spacing: -0.5px;
    }
    
    .hero p {
        font-size: 1.2rem;
        padding: 0 15px;
    }
    
    .rifas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 5px;
    }
    
    .rifa-details {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .cart-content {
        width: 95%;
        margin: 10px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }

    .boletos-grid-compra {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
        gap: 10px;
    }

    .boleto-item-compra {
        padding: 12px 6px;
        border-width: 3px;
    }

    .form-input {
        padding: 14px;
        font-size: 1rem;
    }

    .btn {
        padding: 14px 18px;
        font-size: 1rem;
    }

    .rifa-image {
        height: 400px !important;
        width: 320px !important;
    }
    
    .rifa-image img {
        width: 320px !important;
        height: 400px !important;
    }

    /* Pie de modal fijo en móviles para CTAs siempre visibles */
    .modal-footer {
        position: sticky;
        bottom: 0;
        background: #fff;
        border-top: 1px solid #eee;
        z-index: 2;
    }

    /* Mobile styles for rifa-header-card */
    .rifa-header-card {
        margin-bottom: 1.5rem;
        border-radius: var(--radius-small);
    }

    .rifa-header-card:hover {
        transform: translateY(-2px);
    }

    /* Mobile styles for stat-item */
    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-item .stat-number {
        font-size: 2rem;
    }

    .stat-item .stat-label {
        font-size: 0.9rem;
    }

    /* Stats grid mobile layout - 2x2 grid */
    .stats {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas para móviles */
        grid-template-rows: repeat(2, 1fr); /* 2 filas para móviles */
        gap: 1rem;
        padding: 0 0.5rem;
        margin: 1.5rem 0;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2.5rem 1.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
        letter-spacing: -0.3px;
    }
    
    .rifas-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }
    
    .rifa-card {
        margin: 0 5px;
    }
    
    .rifa-content {
        padding: 1.5rem 1rem;
    }
    
    .rifa-title {
        font-size: 1.6rem;
    }
    
    .rifa-description {
        font-size: 1rem;
        padding: 0 5px;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-link i {
        font-size: 0.9rem;
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .faq-answer-content {
        font-size: 0.95rem;
    }

    .rifa-image {
        height: 275px !important;
        width: 220px !important;
    }
    
    .rifa-image img {
        width: 220px !important;
        height: 275px !important;
    }

    .footer {
        padding: 2rem 0;
        margin-top: 3rem;
    }

    .footer p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .footer p::before {
        width: 40px;
        top: -8px;
    }

    /* Extra small mobile styles for rifa-header-card */
    .rifa-header-card {
        margin-bottom: 1rem;
        border-radius: 10px;
    }

    /* Extra small mobile styles for stat-item */
    .stat-item {
        padding: 1rem 0.8rem;
    }

    .stat-item .stat-number {
        font-size: 1.8rem;
    }

    .stat-item .stat-label {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    .stat-item i {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem !important;
    }

    /* Stats grid for very small screens - 2x2 grid compacto */
    .stats {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas para pantallas muy pequeñas */
        grid-template-rows: repeat(2, 1fr); /* 2 filas para pantallas muy pequeñas */
        gap: 0.8rem;
        padding: 0 0.3rem;
        margin: 1rem 0;
        max-width: 100%;
    }
}
