/* Reset y variables CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --success: #10b981;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border radius */
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: var(--dark);
        --white: var(--dark-light);
        --dark: #f8fafc;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--bg-light);
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1e293b;
    text-decoration: none;
}

.logo span {
    color: #1e293b !important;
    text-shadow: none;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav a:hover {
    color: var(--primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

.btn-sesion {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-sesion:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
        min-height: 70px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        gap: 1rem;
    }
    
    .nav.active {
        display: flex;
    }
    
    .btn-sesion {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.8rem 0;
        min-height: 60px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        width: 30px;
        height: 30px;
    }
    
    .btn-sesion {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Hero Section - Mobile First Design */
.hero {
    min-height: 85vh;
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.95) 0%, 
        rgba(51, 65, 85, 0.9) 50%, 
        rgba(71, 85, 105, 0.85) 100%) !important;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/sergio.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.8;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 100%;
    animation: slideInUp 0.8s ease-out;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Title */
.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.text-gradient {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.price-highlight {
    background: rgba(251, 191, 36, 0.9);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    color: #1e293b;
    font-weight: 700;
    text-shadow: none;
}

/* Action Cards */
.action-cards {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    grid-template-columns: 1fr;
}

.action-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.action-card.featured {
    background: rgba(251, 191, 36, 0.95);
    border-color: rgba(251, 191, 36, 0.5);
}

.card-badge {
    position: absolute;
    top: -8px;
    right: 1rem;
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Action Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 160px;
    justify-content: center;
}

.btn-yape {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-yape:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-tickets {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-tickets:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-local {
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-local:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Info Card */
.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 1.8rem;
    color: #f59e0b;
}

.info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.info-content p {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.3rem;
}

.countdown {
    font-size: 0.8rem;
    color: #f59e0b;
    font-weight: 600;
}

/* BOTONES FLOTANTES DE WHATSAPP */
.whatsapp-buttons {
    position: fixed;
    left: 20px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    padding: 12px 16px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    animation: whatsapp-pulse 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    animation-play-state: paused;
}

.whatsapp-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.whatsapp-label {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.whatsapp-secondary {
    background: linear-gradient(135deg, #20bf6b 0%, #0fb9b1 100%);
    box-shadow: 0 8px 25px rgba(32, 191, 107, 0.4);
}

.whatsapp-secondary:hover {
    box-shadow: 0 12px 35px rgba(32, 191, 107, 0.6);
}

/* Animación de pulso */
@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* CHATBOT STYLES */
.chatbot-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1001;
}

.chatbot-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: chatbot-bounce 2s ease-in-out infinite;
}

.chatbot-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}

.chatbot-icon {
    font-size: 24px;
}

.chatbot-text {
    font-weight: 700;
    font-size: 16px;
}

.chatbot-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    animation: pulse-notification 2s infinite;
}

@keyframes chatbot-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse-notification {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatbot-slide-up 0.3s ease-out;
}

.chatbot-window.active {
    display: flex;
}

@keyframes chatbot-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chatbot-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.chatbot-info span {
    font-size: 12px;
    opacity: 0.9;
}

.chatbot-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    gap: 12px;
    animation: message-fade-in 0.3s ease-out;
}

@keyframes message-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: #e5e7eb;
    color: #374151;
}

.message-content {
    background: #f3f4f6;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 250px;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.message-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 4px;
}

.chatbot-options {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 2px solid #e5e7eb;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 14px;
    color: #374151;
}

.option-btn:hover {
    border-color: #667eea;
    background: #f8faff;
    transform: translateX(4px);
}

.option-btn i {
    color: #667eea;
    width: 20px;
    text-align: center;
}

.chatbot-input-area {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
}

.restart-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.restart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .chatbot-container {
        right: 15px;
        bottom: 15px;
    }
    
    .chatbot-window {
        width: calc(100vw - 30px);
        max-width: 350px;
        bottom: 70px;
        right: -15px;
    }
    
    .chatbot-toggle {
        padding: 14px 18px;
    }
    
    .chatbot-text {
        font-size: 15px;
    }
    
    .whatsapp-buttons {
        left: 15px;
        bottom: 20px;
        gap: 12px;
    }
    
    .whatsapp-btn {
        padding: 14px 18px;
        border-radius: 45px;
        box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    }
    
    .whatsapp-btn img {
        width: 32px;
        height: 32px;
    }
    
    .whatsapp-label {
        font-size: 15px;
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    .whatsapp-buttons {
        left: 10px;
        bottom: 15px;
        gap: 10px;
    }
    
    .whatsapp-btn {
        padding: 16px 20px;
        border-radius: 40px;
        box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    }
    
    .whatsapp-btn img {
        width: 36px;
        height: 36px;
    }
    
    .whatsapp-label {
        font-size: 16px;
        font-weight: 800;
    }
    
    .whatsapp-btn:hover {
        transform: translateY(-2px) scale(1.03);
    }
}

/* Responsive Design */
@media (max-width: 479px) {
    .hero-subtitle {
        font-size: 1.05rem;
        font-weight: 600;
        text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
        background: rgba(0, 0, 0, 0.5);
        padding: 1.2rem;
        border-radius: 15px;
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (min-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        max-width: 85%;
    }
    
    .action-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* La tercera tarjeta ocupa toda la fila */
    .action-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (min-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: 3rem 0;
    }
    
    .hero-content {
        text-align: left;
        max-width: 60%;
    }
    
    .hero-bg-image {
        width: 50%;
        opacity: 0.6;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        max-width: 100%;
    }
    
    .action-cards {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        gap: 1.5rem;
    }
    
    /* En tablet, todas las tarjetas en una fila */
    .action-card:nth-child(3) {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }
    
    .info-card {
        max-width: 80%;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .action-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 90%;
    }
}

/* CATALOG SECTION */
.catalog {
    padding: 4rem 0;
    background: var(--light);
}

.catalog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.catalog-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.catalog-header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    position: relative;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-card .live-badge {
    position: absolute;
    top: -10px;
    left: 1rem;
    background: #dc2626;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.hero-card p {
    color: var(--dark);
    line-height: 1.6;
    font-weight: 500;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Catalog Section */
.catalog {
    padding: 6rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--dark);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.contest-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contest-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.contest-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.contest-card:hover .contest-image {
    transform: scale(1.05);
}

.contest-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.contest-info {
    padding: 1.5rem;
}

.contest-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
    line-height: 1.3;
}

.contest-description {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.contest-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contest-price {
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.contest-date {
    color: var(--gray);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--white);
    margin: 2% auto;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--gray);
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 10;
}

.close:hover {
    background: var(--bg-light);
    color: var(--dark);
}

.modal-header {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-images {
    margin-bottom: 2rem;
}

.main-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    flex-shrink: 0;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.05);
}

.modal-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.prize-info {
    margin-bottom: 2rem;
}

.prize-info p {
    color: var(--gray);
    line-height: 1.7;
}

.modal .contest-details {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: none;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-actions .btn {
    flex: 1;
}

/* Local Tickets Modal */
.local-modal-content {
    width: 95%;
    max-width: 900px;
}

.local-search {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.local-search label {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

#localSearchInput {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(0,0,0,0.25);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#localSearchInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

#localSearchInput::placeholder {
    color: #64748b;
    font-style: normal;
    font-weight: 500;
}

.local-results-counter {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #e0f2fe;
    color: #1e293b;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

#localResultsCount {
    font-weight: 700;
    color: #1d4ed8;
    font-size: 1.1rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius);
    background: var(--white);
}

.local-tickets-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

.local-tickets-table thead th {
    text-align: left;
    background: var(--bg-light);
    color: var(--dark);
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
}

.local-tickets-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--dark);
    font-size: 1rem;
}

.local-tickets-table tbody td:first-child {
    font-weight: 500;
}

.local-tickets-table tbody td:last-child {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary);
}

.local-tickets-table tbody tr:hover {
    background: rgba(0,0,0,0.02);
}

/* Badges de códigos agrupados */
.code-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.code-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: #eef2ff; /* indigo-100 */
    color: #1d4ed8;      /* indigo-700 */
    border: 1px solid #dbeafe; /* indigo-200 */
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.local-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--gray);
    transition: var(--transition);
}

.local-close:hover {
    background: var(--bg-light);
    color: var(--dark);
}

.local-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 2px dashed rgba(0,0,0,0.1);
    margin: 1rem 0;
    font-weight: 500;
}

@media (max-width: 640px) {
    .local-empty {
        font-size: 1.1rem;
        color: #475569;
        font-weight: 600;
        padding: 2.5rem 1.5rem;
    }
}

.local-admin {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 1rem;
}

.admin-toggle {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-login {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
}
.admin-login label { grid-column: 1 / -1; }

.admin-login input[type="password"] {
    padding: 0.6rem 0.8rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
}

.admin-login-msg { font-size: 0.85rem; color: #ef4444; }

.admin-panel { margin-top: 1rem; display: grid; gap: 0.75rem; }
.admin-row { display: grid; gap: 0.4rem; }
.admin-row input[type="file"], .admin-row select { padding: 0.5rem; }
.admin-actions { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.admin-result { margin-top: 0.5rem; font-size: 0.9rem; color: var(--gray); }

@media (max-width: 640px) {
    .admin-login { grid-template-columns: 1fr; }
    .admin-actions { flex-direction: column; }
}

/* Responsive para tablets */
@media (max-width: 768px) {
    .local-modal-content {
        width: 96%;
        margin: 2% auto;
    }
    
    .local-tickets-table thead th,
    .local-tickets-table tbody td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Responsive para móviles */
@media (max-width: 640px) {
    .table-responsive {
        border: none;
        overflow: visible;
        background: transparent;
    }
    
    .local-tickets-table {
        display: none; /* Ocultar tabla en móvil */
    }
    
    /* Mejorar input para móvil */
    #localSearchInput {
        padding: 1rem 1.25rem;
        font-size: 16px; /* Previene zoom en iOS */
        border: 3px solid rgba(0,0,0,0.2);
        border-radius: 10px;
        font-weight: 600;
        color: #1e293b;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        -webkit-appearance: none;
        appearance: none;
    }
    
    #localSearchInput:focus {
        border-color: #1d4ed8;
        box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.2);
        transform: translateY(-1px);
    }
    
    .local-search label {
        font-size: 1.1rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 0.75rem;
        display: block;
    }
    
    /* Lista simple para móvil */
    .local-tickets-list {
        display: block;
        background: #ffffff;
        border-radius: 10px;
        border: 2px solid rgba(0,0,0,0.1);
        padding: 1.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        margin-top: 1rem;
    }
    
    .local-ticket-item {
        display: flex;
        flex-direction: column;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.15);
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .local-ticket-item:last-child {
        border-bottom: none;
    }
    
    .ticket-item-name {
        color: #1e293b;
        font-weight: 600;
        flex: 1;
        text-transform: capitalize;
    }
    .local-ticket-item .code-badges { margin-top: 8px; }
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--gray-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--dark-light);
    color: var(--gray-light);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--dark-light);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero .container {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header .container {
        padding: 1rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
        background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%) !important;
        color: var(--dark) !important;
    }
    
    .hero-bg-image {
        width: 80%;
        opacity: 0.25;
        background-size: cover;
        background-position: center right;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        color: var(--dark) !important;
    }
    
    .hero-subtitle {
        color: var(--dark) !important;
        font-weight: 500 !important;
    }
    
    .hero-actions {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .action-item {
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.9) !important;
    }
    
    .action-primary {
        background: rgba(255, 255, 255, 0.9) !important;
        border: 2px solid rgba(37, 99, 235, 0.5) !important;
    }
    
    .action-secondary {
        background: rgba(255, 255, 255, 0.8) !important;
        border: 1px solid rgba(245, 158, 11, 0.4) !important;
    }
    
    .hero-card {
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 1) !important;
    }
    
    .hero-card h3 {
        color: var(--dark) !important;
    }
    
    .hero-card p {
        color: var(--dark) !important;
    }
    
    .featured-text {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 1.25rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .urgent-text {
        font-size: 0.9rem;
    }
    
    .call-action-primary {
        font-size: 0.9rem;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .hero-card {
        padding: 1.5rem;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 5rem 0 2rem;
        background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%) !important;
        color: var(--dark) !important;
    }
    
    .hero h1 {
        font-size: 2rem;
        color: var(--dark) !important;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        color: var(--dark) !important;
        font-weight: 500 !important;
    }
    
    .action-item {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.9) !important;
    }
    
    .featured-text {
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .urgent-text {
        font-size: 0.85rem;
    }
    
    .pulse-icon {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1rem;
    }
    
    .main-image img {
        height: 250px;
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus styles for accessibility */
.btn:focus,
.nav a:focus,
.btn-sesion:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Animation for cards */
.contest-card {
    animation: fadeInUp 0.6s ease forwards;
}

.contest-card:nth-child(2) { animation-delay: 0.1s; }
.contest-card:nth-child(3) { animation-delay: 0.2s; }
.contest-card:nth-child(4) { animation-delay: 0.3s; }
.contest-card:nth-child(5) { animation-delay: 0.4s; }
.contest-card:nth-child(6) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
