/* File: assets/css/style.css */
/* 🎨 DISEÑO MODERNO Y PREMIUM - REDISEÑO COMPLETO */

/* =========================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */
:root {
    /* ========= PALETA DE COLORES MODERNOS ========= */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;

    --secondary-color: #ec4899;
    --secondary-dark: #db2777;
    --secondary-light: #f472b6;

    --accent-color: #14b8a6;
    --accent-dark: #0d9488;

    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    /* ========= DEGRADADOS MODERNOS ========= */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-sunset: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-ocean: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-purple: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-neon: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --gradient-cosmic: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

    /* ========= SUPERFICIES ========= */
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --light-bg: #f8fafc;
    --light-surface: #ffffff;

    /* ========= TEXTOS ========= */
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #ffffff;

    /* ========= UI ========= */
    --border-color: #e2e8f0;
    --border-radius-sm: 12px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --border-radius-pill: 50rem;

    /* ========= SOMBRAS PREMIUM ========= */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --shadow-neon: 0 0 30px rgba(102, 102, 255, 0.5);
    --shadow-glow: 0 0 40px rgba(236, 72, 153, 0.4);

    /* ========= GLASSMORPHISM ========= */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-dark: rgba(15, 23, 42, 0.6);

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =========================================
   BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    position: relative;
}

/* Fondo animado con partículas */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   UTILIDADES
   ========================================= */
.text-primary {
    color: var(--primary-light) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.main-title {
    font-weight: 900;
    background: var(--gradient-cosmic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(10deg);
    }
}

.section-title {
    font-weight: 900;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
    font-size: 2.8rem;
    text-align: center;
    text-transform: uppercase;
    color: var(--text-light);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: var(--gradient-sunset);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(250, 112, 154, 0.6);
}

.main-container {
    padding-bottom: 24px;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

/* =========================================
   HEADER MODERNO CON GLASSMORPHISM
   ========================================= */
.page-header {
    background: var(--glass-dark);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.page-header.scrolled {
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 1.5rem;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05) rotate(-2deg);
}

.navbar-brand img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
    transition: var(--transition);
}

.navbar-brand img:hover {
    filter: drop-shadow(0 8px 20px rgba(255, 255, 255, 0.5));
}

.header-text-centered {
    flex-grow: 1;
    text-align: center;
    color: var(--text-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: none;
}

@media (min-width: 992px) {
    .header-text-centered {
        display: block;
    }
}

.header-text-centered .title {
    font-weight: 900;
    font-size: 1.6rem;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-text-centered .subtitle {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.2;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    padding: 0.6rem 1.5rem !important;
    border-radius: var(--border-radius-pill);
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 3px;
    background: var(--gradient-sunset);
    transition: var(--transition-bounce);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--text-light) !important;
    background: var(--glass-bg);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* =========================================
   HERO SECTION PREMIUM
   ========================================= */
.hero-section {
    background: url('../../logo/fondo.jpg') no-repeat center center;
    background-size: cover;
    padding: 3rem 0 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 50%, rgba(240, 147, 251, 0.90) 100%);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    z-index: 0;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-image:hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(236, 72, 153, 0.4);
}

.hero-title {
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-size: 3.5rem;
    letter-spacing: 2px;
    animation: float-title 3s ease-in-out infinite;
}

@keyframes float-title {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* =========================================
   BADGES Y ELEMENTOS DECORATIVOS
   ========================================= */
.badge {
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   SECCIONES DE CONTENIDO
   ========================================= */
section {
    position: relative;
    z-index: 1;
}

.price-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.price-list li {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.price-list li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.12);
}

.price-list strong {
    color: var(--secondary-light);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

/* =========================================
   TARJETAS DE PREMIOS PREMIUM
   ========================================= */
.premios-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.premios-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-sunset);
    transition: var(--transition);
}

.premios-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(236, 72, 153, 0.4);
}

.premios-card:hover::before {
    height: 100%;
    opacity: 0.1;
}

.premios-card .icon-circle {
    background: var(--gradient-primary);
    color: var(--text-light);
    width: 100px;
    height: 100px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    /* Aumentado ligeramente */
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(102, 102, 255, 0.4);
    transition: var(--transition-bounce);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.premios-card .icon-circle i {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: block;
    line-height: 1;
}

.premios-card:hover .icon-circle {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(102, 102, 255, 0.6);
}

.premios-card h4 {
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.premios-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
}

/* =========================================
   GRID DE NÚMEROS PREMIUM
   ========================================= */
.controls-container,
.number-grid {
    background: var(--glass-dark);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.number-item,
.number-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    color: var(--text-light);
    padding: 1.2rem;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    /* Ensure centering text */
    align-items: center;
    justify-content: center;
}

.number-item::before,
.number-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.number-item:hover::before,
.number-box:hover::before {
    width: 200%;
    height: 200%;
}

.number-item:hover,
.number-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 102, 255, 0.4);
    border-color: var(--primary-light);
}

.number-item.selected,
.number-box.selected {
    background: var(--gradient-secondary) !important;
    /* Force override */
    border-color: var(--secondary-light) !important;
    box-shadow: 0 10px 40px rgba(236, 72, 153, 0.6);
    animation: pulse-select 2s ease infinite;
    color: white !important;
}

@keyframes pulse-select {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.number-item.sold {
    background: rgba(255, 255, 255, 0.03);
    opacity: 0.4;
    color: #64748b;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.number-item.sold:hover {
    transform: none;
    box-shadow: none;
}

/* =========================================
   BOTONES PREMIUM
   ========================================= */
.btn {
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300%;
    height: 300%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: 0 8px 25px rgba(102, 102, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 102, 255, 0.6);
}

.btn-success {
    background: var(--gradient-ocean);
    color: var(--text-light);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(20, 184, 166, 0.6);
}

.btn-outline-primary {
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-color: transparent;
    transform: translateY(-3px);
}

/* =========================================
   FORMULARIOS PREMIUM
   ========================================= */
.form-control,
.form-select {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    padding: 0.85rem 1.2rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(102, 102, 255, 0.3),
        0 0 0 4px rgba(102, 102, 255, 0.1);
    color: var(--text-light);
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-label,
label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.highlight-label {
    color: var(--secondary-light);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

.form-check-input {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    width: 1.3em;
    height: 1.3em;
}

.form-check-input:checked {
    background: var(--gradient-primary);
    border-color: var(--primary-light);
}

.form-check-label {
    color: rgba(255, 255, 255, 0.9);
    margin-left: 0.5rem;
}

/* =========================================
   MODALES PREMIUM
   ========================================= */
.modal-content {
    background: var(--glass-dark);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    color: var(--text-light);
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem;
}

.modal-title {
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    padding: 2rem;
    background: rgba(15, 23, 42, 0.5);
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* =========================================
   CONTROLES DE CANTIDAD PREMIUM
   ========================================= */
.quantity-control-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    max-width: 260px;
    margin: 0 auto;
    width: 100%;
}

.quantity-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: 0 6px 15px rgba(102, 102, 255, 0.4);
    flex-shrink: 0;
}

.quantity-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(102, 102, 255, 0.6);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 90px;
    border: none;
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    color: black;
    background: transparent;
    padding: 0;
    margin: 0 12px;
    flex-grow: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.quantity-input:focus {
    outline: none;
}

/* Ocultar flechas de input number */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* =========================================
   INSTRUCCIONES DE PAGO PREMIUM
   ========================================= */
#payment-instructions-content {
    background: var(--glass-dark);
    backdrop-filter: blur(15px);
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    text-align: left;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

#payment-instructions-content strong {
    display: block;
    margin-bottom: 1rem;
    color: var(--secondary-light);
    font-size: 1.15em;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

.copyable-instruction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 0.9rem 1.2rem;
    margin-bottom: 0.8rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.copyable-instruction-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.instruction-value {
    flex-grow: 1;
    margin-right: 1rem;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    letter-spacing: 0.3px !important;
    word-break: break-all;
}

.btn-copy {
    background: transparent !important;
    backdrop-filter: none !important;
    color: #6366f1 !important;
    border: 1px solid #6366f1 !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
}

.btn-copy:hover {
    background: #6366f1 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.btn-copy i.text-success {
    color: var(--success-color) !important;
}

/* =========================================
   PAGINACIÓN PREMIUM
   ========================================= */
.pagination {
    gap: 0.5rem;
}

.page-link {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 0.7rem 1.2rem;
    transition: var(--transition);
    font-weight: 600;
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-light);
    box-shadow: 0 6px 20px rgba(102, 102, 255, 0.5);
}

.page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.03);
    opacity: 0.4;
}

/* =========================================
   FOOTER PREMIUM
   ========================================= */
.page-footer {
    background: var(--glass-dark);
    backdrop-filter: blur(25px);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1.5rem;
    color: var(--text-light);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-md);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    text-decoration: none;
}

.social-icon i {
    display: block;
    line-height: 1;
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.social-icon.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.social-icon.instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.facebook {
    background: linear-gradient(135deg, #1877F2 0%, #166fe5 100%);
}

.social-icon.tiktok {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

/* =========================================
   TOAST NOTIFICATIONS PREMIUM
   ========================================= */
.toast {
    background: var(--glass-dark);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.toast-header {
    background: transparent;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-light);
}

.toast-body {
    font-weight: 500;
}

/* =========================================
   FLOATING ACTION BUTTON
   ========================================= */
/* FLOATING ACTION BUTTON REMOVED BY USER REQUEST */

/* =========================================
   EFECTO DE LLUVIA PREMIUM
   ========================================= */
#rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.glis-rain {
    position: absolute;
    top: var(--y, -10vh);
    left: var(--x, 50vw);
    font-size: 2rem;
    animation: rain var(--t, 5s) linear infinite;
    opacity: 0.7;
    filter: drop-shadow(0 0 5px rgba(79, 172, 254, 0.5));
}

@keyframes rain {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* =========================================
   ANIMACIONES DE ENTRADA
   ========================================= */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   SECCIÓN DE VERIFICADOR DE BOLETOS
   ========================================= */
#verificador {
    background: var(--glass-dark);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-xl);
    padding: 3rem 0;
    margin: 2rem 0;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .premios-card {
        padding: 2rem 1.5rem;
    }

    .quantity-control-wrapper {
        max-width: 220px;
    }

    .quantity-btn {
        width: 45px;
        height: 45px;
    }

    .quantity-input {
        font-size: 1.6rem;
        width: 70px;
    }
}

/* =========================================
   UTILIDADES ADICIONALES
   ========================================= */
.text-gradient {
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.glow-effect {
    box-shadow: 0 0 30px rgba(102, 102, 255, 0.5);
}

/* =========================================
   SCROLLBAR PERSONALIZADA
   ========================================= */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* =========================================
   ESTADOS DE CARGA
   ========================================= */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* =========================================
   MEJORAS ADICIONALES DE UX
   ========================================= */
* {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: rgba(236, 72, 153, 0.5);
    color: white;
}

.custom-html-content {
    color: var(--text-light);
}

.custom-html-content h1,
.custom-html-content h2,
.custom-html-content h3 {
    color: var(--text-light);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.custom-html-content a {
    color: var(--secondary-light);
    text-decoration: none;
    transition: var(--transition);
}

.custom-html-content a:hover {
    color: var(--primary-light);
    text-shadow: 0 0 10px rgba(102, 102, 255, 0.5);
}

/* =========================================
   SECCIÓN MANUAL Y RANDOM
   ========================================= */
#section-manual,
#section-random {
    background: var(--glass-dark);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

/* =========================================
   SECCIÓN DE LOGOS (CORRECCIÓN)
   ========================================= */
.logos-section {
    padding: 3rem 0;
    background-color: transparent !important;
    /* Make sure it blends */
}

.logo-item img {
    max-width: 140px;
    height: auto;
    object-fit: contain;
    max-height: 80px;
    transition: var(--transition);
    margin: 0 auto;
    display: block;
}

/* =========================================
   GRILLA DE NÚMEROS (CORRECCIÓN IMPORTANTE)
   ========================================= */
.number-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important;
    gap: 10px !important;
    padding: 20px !important;
    width: 100%;
}

/* Force container height */
#number-grid {
    max-height: 60vh;
    overflow-y: auto;
    width: 100%;
    display: block;
    /* The container itself is a block that contains the grid content typically, or needs to handle the grid flow. Actually, typically #number-grid IS the grid container in many implementations. Let's check logic. */
}

/* If #number-grid IS the container (div id="number-grid") */
div#number-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important;
    gap: 10px;
    overflow-y: auto;
    max-height: 60vh;
    align-content: start;
}


/* =========================================
   ICONOS DE PAGO (MODAL)
   ========================================= */
.payment-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    /* Ensure image fits well */
    border-radius: var(--border-radius-md);
    border: 2px solid var(--glass-border);
    padding: 5px;
    background: white;
    /* Often payment logos need white bg to be visible */
    cursor: pointer;
    transition: var(--transition);
}

.payment-icon:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.payment-icon.active {
    border-color: var(--primary-light);
    box-shadow: 0 0 15px rgba(102, 102, 255, 0.4);
    transform: scale(1.05);
}

.form-select option {
    color: var(--text-dark);
    background-color: #ffffff;
}

/* =========================================
   MODAL DE BÚSQUEDA MEJORADO
   ========================================= */

/* Header del Modal */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

/* Input de Búsqueda */
#search-input {
    transition: all 0.3s ease;
}

#search-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    border-color: var(--primary-color);
}

/* Resultado de Búsqueda */
.search-result-box {
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenedor de Números Seleccionados */
.selected-numbers-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    border: 2px dashed var(--border-color);
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Grid de Números Seleccionados */
.selected-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
    padding: 0.5rem;
}

.selected-numbers-grid::-webkit-scrollbar {
    width: 8px;
}

.selected-numbers-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.selected-numbers-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.selected-numbers-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Badge de Número Seleccionado */
.selected-number-badge {
    position: relative;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    animation: bounceIn 0.4s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.selected-number-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.selected-number-badge .btn-remove-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    background: var(--danger-color);
    border: 2px solid white;
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.selected-number-badge .btn-remove-number:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Botón de Comprar */
#btn-buy-searched-numbers {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-md);
    padding: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#btn-buy-searched-numbers:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#btn-buy-searched-numbers:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 576px) {
    .selected-numbers-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.5rem;
    }

    .selected-number-badge {
        font-size: 1rem;
        padding: 0.6rem 0.4rem;
    }

    #btn-buy-searched-numbers {
        font-size: 1rem;
        padding: 0.875rem;
    }
}

/* =========================================
   FIN DEL ARCHIVO CSS
   ========================================= */