/* ==================== VARIABLES ==================== */
:root {
    /* Colors - Luxurious Gold Theme */
    --gold-primary: #FFD700;
    --gold-light: #FFE55C;
    --gold-dark: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    
    /* Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-elevated: #222230;
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    
    /* Accents */
    --accent-green: #10B981;
    --accent-red: #EF4444;
    --accent-blue: #3B82F6;
    --accent-purple: #A855F7;
    --accent-cyan: #06B6D4;
    
    /* Effects */
    --glow-gold: 0 0 40px rgba(255, 215, 0, 0.3);
    --glow-gold-strong: 0 0 60px rgba(255, 215, 0, 0.5);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-elevated: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    /* Borders */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.05);
    --border-gold: 1px solid rgba(255, 215, 0, 0.3);
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    
    /* Spacing */
    --nav-height: 80px;
    --container-max: 1400px;
    --section-padding: 100px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== BACKGROUND ANIMATION ==================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-coin {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.coin-1 { top: 10%; left: 10%; animation-delay: 0s; }
.coin-2 { top: 20%; right: 15%; animation-delay: 2s; }
.coin-3 { top: 60%; left: 5%; animation-delay: 4s; }
.coin-4 { top: 70%; right: 10%; animation-delay: 6s; }
.coin-5 { top: 40%; left: 50%; animation-delay: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(10deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(30px) rotate(-10deg); }
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-subtle);
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.logo-text .gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--gold-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    gap: 12px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-balance {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.balance-amount {
    color: var(--gold-primary);
    font-weight: 700;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: 30px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.user-btn:hover {
    background: var(--bg-elevated);
}

.user-avatar {
    font-size: 1.3rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-elevated);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.user-dropdown a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
}

.user-dropdown hr {
    border: none;
    border-top: var(--border-subtle);
    margin: 8px 0;
}

.logout-link {
    color: var(--accent-red) !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gold-gradient);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
}

.btn-outline {
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: #000;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.btn-outline-light:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
    box-shadow: var(--glow-gold);
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--glow-gold-strong);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 40px) 24px 60px;
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 30px;
    color: var(--gold-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gold-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-primary);
    font-family: var(--font-display);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Hero Visual - Jackpot Display */
.hero-visual {
    flex: 0 0 450px;
    z-index: 1;
}

.jackpot-display {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--glow-gold), var(--shadow-elevated);
    animation: jackpotGlow 3s infinite;
}

@keyframes jackpotGlow {
    0%, 100% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.2), var(--shadow-elevated); }
    50% { box-shadow: 0 0 60px rgba(255, 215, 0, 0.4), var(--shadow-elevated); }
}

.jackpot-label {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.jackpot-amount {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.jackpot-timer {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.timer-unit {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 16px 12px;
    min-width: 70px;
}

.timer-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-primary);
    font-family: var(--font-display);
}

.timer-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-separator {
    font-size: 1.5rem;
    color: var(--gold-primary);
    align-self: center;
    margin-top: -15px;
    opacity: 0.5;
}

/* ==================== CATEGORIES ==================== */
.categories-section {
    padding: 0 24px 60px;
    position: relative;
    z-index: 1;
}

.categories-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 16px;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.category-card:hover,
.category-card.active {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-3px);
}

.category-icon {
    font-size: 1.5rem;
}

.category-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==================== LOTTERIES SECTION ==================== */
.lotteries-section {
    padding: var(--section-padding) 24px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.lotteries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.lottery-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
    border: var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.lottery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(255, 215, 0, 0.3);
}

.lottery-card.destacada {
    border: 2px solid var(--gold-primary);
    box-shadow: var(--glow-gold);
}

.lottery-card.expirada {
    opacity: 0.7;
}

.lottery-card .lottery-banner {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.lottery-card .destacada-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold-gradient);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.lottery-card .gratis-badge-card {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    animation: pulse-gratis 2s ease-in-out infinite;
}

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

.lottery-card.gratis {
    border: 2px solid rgba(16, 185, 129, 0.5);
}

.lottery-card.gratis:hover {
    border-color: #10B981;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
}

.gratis-price {
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

/* Sorteo Gratis en Modal */
.gratis-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border: 2px solid #10B981;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.gratis-banner .gratis-icon {
    font-size: 2.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.gratis-banner strong {
    color: #10B981;
    font-size: 1.2rem;
    display: block;
}

.gratis-banner p {
    color: var(--text-secondary);
    margin: 4px 0 0 0;
    font-size: 0.9rem;
}

.gratis-requisitos {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.gratis-requisitos strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.gratis-requisitos ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.gratis-requisitos li {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.gratis-requisitos li::before {
    content: '•';
    color: #10B981;
    position: absolute;
    left: 0;
}

.gratis-text {
    color: #10B981 !important;
    font-weight: 700;
}

/* Badge premio físico */
.lottery-card .bien-badge-card {
    position: absolute;
    top: 44px;
    left: 12px;
    background: linear-gradient(135deg, #A855F7, #7C3AED);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Premio Bien Display en Modal */
.premio-bien-display {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(124, 58, 237, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.premio-bien-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.premio-bien-icon {
    font-size: 2.5rem;
}

.premio-bien-header h3 {
    color: #A855F7;
    margin: 0 0 4px 0;
    font-size: 1.3rem;
}

.premio-bien-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Galería de imágenes del premio */
.premio-galeria {
    margin-bottom: 16px;
}

.galeria-main {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-elevated);
    margin-bottom: 12px;
}

.galeria-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.galeria-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px;
}

.galeria-thumbs img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.galeria-thumbs img:hover {
    opacity: 0.8;
}

.galeria-thumbs img.active {
    border-color: #A855F7;
    opacity: 1;
}

.premio-valor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 8px;
}

.premio-valor span {
    color: var(--text-muted);
}

.premio-valor strong {
    color: #A855F7;
    font-size: 1.3rem;
}

/* Premio físico en card */
.lottery-prize.premio-fisico {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.lottery-prize .prize-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #A855F7;
    margin-bottom: 4px;
}

.lottery-prize .prize-value {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== FILTROS ==================== */
.filters-section {
    padding: 40px 0 20px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.filters-header .section-title {
    margin: 0;
    font-size: 1.8rem;
}

.filters-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.filter-group select {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:hover {
    border-color: var(--gold-primary);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* How to Play Extra */
.how-to-extra {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.extra-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.extra-info:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-4px);
}

.extra-info .extra-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.extra-info strong {
    color: var(--gold-primary);
    display: block;
    margin-bottom: 4px;
}

.extra-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Steps Grid 5 columns */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Badge de sorteo automático */
.lottery-card .auto-sorteo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Cuando hay gratis + auto sorteo, mover auto sorteo abajo */
.lottery-card .gratis-badge-card ~ .auto-sorteo-badge {
    top: 44px;
}

/* Cuando hay bien + auto sorteo (sin gratis), mover bien abajo */
.lottery-card .auto-sorteo-badge ~ .bien-badge-card {
    top: 44px;
}

/* Cuando hay gratis + bien, mover bien abajo */
.lottery-card .gratis-badge-card ~ .bien-badge-card {
    top: 44px;
}

/* Cuando hay gratis + auto + bien, mover bien más abajo */
.lottery-card .gratis-badge-card ~ .auto-sorteo-badge ~ .bien-badge-card,
.lottery-card .auto-sorteo-badge ~ .gratis-badge-card ~ .bien-badge-card {
    top: 76px;
}

.lottery-card {
    position: relative;
}

.lottery-timer.expirada {
    background: rgba(239, 68, 68, 0.1);
}

.lottery-timer.expirada .timer-text {
    color: var(--accent-red);
}

/* Timer urgente (menos de 1 hora) */
.lottery-timer.urgente {
    background: rgba(239, 68, 68, 0.15);
    animation: pulse-urgent 1s ease-in-out infinite;
}

.lottery-timer.urgente .timer-text {
    color: var(--accent-red);
    font-weight: 700;
}

.lottery-timer.urgente .timer-icon {
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes pulse-urgent {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.2); }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.btn-disabled {
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: not-allowed;
}

.lottery-header {
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
    border-bottom: var(--border-subtle);
}

.lottery-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.lottery-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.lottery-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lottery-body {
    padding: 24px;
}

.lottery-prize {
    text-align: center;
    margin-bottom: 24px;
}

.prize-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.prize-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lottery-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    text-align: center;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 12px;
}

.info-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.info-value {
    font-weight: 700;
    color: var(--text-primary);
}

.lottery-progress {
    margin-bottom: 24px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 10px;
    transition: width var(--transition-slow);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lottery-footer {
    padding: 0 24px 24px;
}

.lottery-timer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 12px;
    margin-bottom: 16px;
}

.timer-icon {
    font-size: 1.5rem;
}

.timer-text {
    font-weight: 600;
    color: var(--gold-primary);
}

/* ==================== HOW TO PLAY ==================== */
.how-to-play {
    padding: var(--section-padding) 24px;
    background: linear-gradient(180deg, transparent, var(--bg-secondary), transparent);
    position: relative;
    z-index: 1;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.step-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 20px;
    position: relative;
    transition: all var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.step-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.step-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

/* Responsive para steps */
@media (max-width: 1100px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== RESULTS & WINNERS UNIFIED SECTION ==================== */
.results-winners-section {
    padding: 80px 24px;
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
    position: relative;
    z-index: 1;
}

.results-winners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .results-winners-grid {
        grid-template-columns: 1fr;
    }
}

.results-column,
.winners-column {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), transparent);
    border-bottom: var(--border-subtle);
}

.column-icon {
    font-size: 1.8rem;
}

.column-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold-primary);
    margin: 0;
}

.results-list,
.winners-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
}

/* Result Cards */
.result-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}

.result-card:hover {
    background: rgba(255, 215, 0, 0.05);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.result-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.result-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.result-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.result-number {
    width: 42px;
    height: 42px;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.result-number:hover {
    transform: scale(1.1);
}

.result-number.first {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.result-number.second {
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8);
    color: #000;
}

.result-number.third {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: #000;
}

/* Winner Cards */
.winner-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.winner-card:hover {
    background: rgba(255, 215, 0, 0.05);
    transform: translateX(5px);
}

.winner-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.winner-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.winner-prize {
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.winner-lottery {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Result Prize */
.result-prize {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gold-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    gap: 12px;
}

.empty-state .icon {
    font-size: 3rem;
    opacity: 0.7;
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Scrollbar para las listas */
.results-list::-webkit-scrollbar,
.winners-list::-webkit-scrollbar {
    width: 6px;
}

.results-list::-webkit-scrollbar-track,
.winners-list::-webkit-scrollbar-track {
    background: transparent;
}

.results-list::-webkit-scrollbar-thumb,
.winners-list::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.results-list::-webkit-scrollbar-thumb:hover,
.winners-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-secondary);
    padding: 80px 24px 40px;
    border-top: var(--border-subtle);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-link a {
    color: var(--text-muted);
    opacity: 0.5;
    transition: all var(--transition-fast);
}

.admin-link a:hover {
    color: var(--gold-primary);
    opacity: 1;
}

/* ==================== LOADING ==================== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    grid-column: 1 / -1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-elevated);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    margin-top: 16px;
    color: var(--text-muted);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        flex: none;
        width: 100%;
        max-width: 450px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-auth {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .lotteries-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .jackpot-amount {
        font-size: 2.5rem;
    }
    
    .timer-unit {
        min-width: 55px;
        padding: 12px 8px;
    }
    
    .timer-value {
        font-size: 1.4rem;
    }
}
