/* ===== ODISA — CSS Principal ===== */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --naranja: #E84118;
    --naranja-claro: #FF6B35;
    --naranja-oscuro: #C0392B;
    --azul: #0C1B33;
    --azul-medio: #14213D;
    --azul-claro: #1A2F55;
    --azul-accent: #1E5799;
    --blanco: #FFFFFF;
    --gris-claro: #F5F6FA;
    --gris: #8892A4;
    --gris-borde: #E2E8F0;
    --sombra: 0 4px 24px rgba(12,27,51,0.13);
    --sombra-naranja: 0 4px 20px rgba(232,65,24,0.35);
    --radio: 14px;
    --radio-sm: 8px;
    --font-titulo: 'Exo 2', sans-serif;
    --font-cuerpo: 'Inter', sans-serif;
    --header-h: 64px;
    --footer-h: 60px;
    --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* BLOQUEO DE SCROLL HORIZONTAL ESTRICTO */
html, body {
    width: 100%;
    overflow-x: hidden; 
    position: relative;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-cuerpo);
    background: var(--gris-claro);
    color: var(--azul);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--azul);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 1.2rem;
    gap: 0.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.header-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; flex-shrink: 0; }
.header-logo img { height: 36px; width: 36px; object-fit: contain; filter: brightness(0) invert(1); }
.header-logo span { font-family: var(--font-titulo); font-weight: 800; font-size: 1.3rem; color: var(--blanco); letter-spacing: 0.5px; }
.header-logo span em { color: var(--naranja); font-style: normal; }

.header-nav { display: flex; align-items: center; gap: 0.3rem; margin-left: auto; }
.nav-btn { font-family: var(--font-titulo); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255,255,255,0.75); background: none; border: none; padding: 0.45rem 0.75rem; border-radius: var(--radio-sm); cursor: pointer; transition: var(--transition); text-decoration: none; white-space: nowrap; }
.nav-btn:hover, .nav-btn.active { color: var(--blanco); background: rgba(255,255,255,0.1); }
.nav-btn.nav-login { background: var(--naranja); color: var(--blanco); padding: 0.45rem 1rem; }
.nav-btn.nav-login:hover { background: var(--naranja-claro); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--blanco); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--azul-medio); z-index: 999; flex-direction: column; padding: 1rem; gap: 0.4rem; border-bottom: 3px solid var(--naranja); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.mobile-menu.open { display: flex; }
.mobile-menu .nav-btn { font-size: 0.95rem; padding: 0.75rem 1rem; text-align: left; border-radius: var(--radio-sm); }

/* ===== MAIN ===== */
#main { margin-top: var(--header-h); margin-bottom: var(--footer-h); flex: 1; padding: 1.5rem 1rem; max-width: 1100px; width: 100%; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { #main { margin-bottom: 0; } }

/* ===== FOOTER MÓVIL ===== */
#footer { position: fixed; bottom: 0; left: 0; right: 0; height: var(--footer-h); background: var(--azul); display: flex; align-items: center; justify-content: center; gap: 0.5rem; z-index: 1000; }
.footer-nav { display: flex; align-items: center; justify-content: space-around; width: 100%; max-width: 400px; }
.footer-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: rgba(255,255,255,0.5); font-size: 0.65rem; font-family: var(--font-titulo); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; background: none; border: none; padding: 0.3rem 1rem; border-radius: var(--radio-sm); transition: var(--transition); }
.footer-tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-tab.active, .footer-tab:hover { color: var(--naranja); }

/* ===== HERO CARRUSEL BANNERS ===== */
.hero-carousel { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; gap: 10px; margin-bottom: 1.5rem; -ms-overflow-style: none; scrollbar-width: none; border-radius: var(--radio); box-shadow: var(--sombra); }
.hero-carousel::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; height: 200px; border-radius: var(--radio); overflow: hidden; background: var(--azul-medio); }
.hero-slide a { display: block; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 768px) { .hero-slide { height: 350px; } }

/* ===== SPLASH DEFAULT ===== */
.splash { background: linear-gradient(135deg, var(--azul) 0%, var(--azul-claro) 50%, var(--naranja-oscuro) 100%); border-radius: var(--radio); padding: 2.5rem 1.5rem 2rem; color: var(--blanco); margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.splash::before { content: ''; position: absolute; top: 0; right: 0; width: 55%; height: 100%; background: linear-gradient(135deg, transparent 30%, rgba(232,65,24,0.4) 100%); clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%); }
.splash-content { position: relative; z-index: 1; }
.splash h1 { font-family: var(--font-titulo); font-weight: 900; font-size: clamp(1.5rem, 5vw, 2.5rem); line-height: 1.1; margin-bottom: 0.5rem; }
.splash h1 span { color: var(--naranja-claro); }
.splash p { font-size: 0.9rem; opacity: 0.8; max-width: 280px; }

/* ===== SECCIÓN TÍTULOS ===== */
.section-title { font-family: var(--font-titulo); font-weight: 800; font-size: 1.2rem; color: var(--azul); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.section-title::before { content: ''; display: inline-block; width: 4px; height: 1.2em; background: var(--naranja); border-radius: 2px; flex-shrink: 0; }

/* ===== CARDS EVENTOS ===== */
.eventos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.evento-card { background: var(--blanco); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); cursor: pointer; transition: var(--transition); border: 1px solid var(--gris-borde); position: relative; }
.evento-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(12,27,51,0.18); }
.evento-card:active { transform: scale(0.98); }
.evento-img { width: 100%; height: 160px; object-fit: cover; background: linear-gradient(135deg, var(--azul-medio), var(--azul-claro)); display: flex; align-items: center; justify-content: center; position: relative; }
.evento-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evento-img-placeholder { width: 100%; height: 160px; background: linear-gradient(135deg, var(--azul-medio) 0%, var(--azul-claro) 60%, rgba(232,65,24,0.3) 100%); display: flex; align-items: center; justify-content: center; }
.evento-img-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.evento-badge { position: absolute; top: 10px; right: 10px; background: var(--naranja); color: var(--blanco); font-family: var(--font-titulo); font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 20px; }
.evento-body { padding: 1rem; }
.evento-nombre { font-family: var(--font-titulo); font-weight: 700; font-size: 1rem; color: var(--azul); margin-bottom: 0.5rem; line-height: 1.3; }
.evento-meta { display: flex; flex-direction: column; gap: 0.3rem; }
.evento-meta-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--gris); }
.evento-meta-item svg { width: 14px; height: 14px; stroke: var(--naranja); fill: none; stroke-width: 2; flex-shrink: 0; }

/* ===== DETALLE EVENTO ===== */
.evento-detalle { animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1); }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.detalle-header { background: var(--azul); border-radius: var(--radio); overflow: hidden; margin-bottom: 1rem; position: relative; height: 250px; }
@media (min-width: 768px) { .detalle-header { height: 350px; } }
.detalle-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; display: block; }
.detalle-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background: linear-gradient(transparent, rgba(12,27,51,0.95)); z-index: 2; }
.detalle-titulo { font-family: var(--font-titulo); font-weight: 900; font-size: 1.4rem; color: var(--blanco); margin-bottom: 0.3rem; }
.detalle-subtitulo { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.detalle-back { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: none; color: var(--blanco); border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); z-index: 100; }
.detalle-back:hover { background: rgba(255,255,255,0.25); }
.detalle-back svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.info-card { background: var(--blanco); border-radius: var(--radio-sm); padding: 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; box-shadow: var(--sombra); border: 1px solid var(--gris-borde); }
.info-card-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gris); }
.info-card-value { font-family: var(--font-titulo); font-weight: 700; font-size: 0.95rem; color: var(--azul); }
.info-card svg { width: 16px; height: 16px; stroke: var(--naranja); fill: none; stroke-width: 2; }

.mapa-container { background: var(--blanco); border-radius: var(--radio); padding: 1rem; margin-bottom: 1rem; box-shadow: var(--sombra); border: 1px solid var(--gris-borde); }
.mapa-container h3 { font-family: var(--font-titulo); font-weight: 700; font-size: 0.95rem; color: var(--azul); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
.mapa-container h3 svg { width: 16px; height: 16px; stroke: var(--naranja); fill: none; stroke-width: 2; }

/* ===== FORMULARIO ====== */
.placa-form { background: var(--blanco); border-radius: var(--radio); padding: 1.25rem; box-shadow: var(--sombra); border: 1px solid var(--gris-borde); margin-bottom: 1rem; }
.placa-form h3 { font-family: var(--font-titulo); font-weight: 700; font-size: 0.95rem; color: var(--azul); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.4rem; }
.placa-form h3 svg { width: 16px; height: 16px; stroke: var(--naranja); fill: none; stroke-width: 2; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-label { font-size: 0.8rem; font-weight: 600; color: var(--azul); text-transform: uppercase; letter-spacing: 0.4px; }
.form-input { padding: 0.75rem 1rem; border: 2px solid var(--gris-borde); border-radius: var(--radio-sm); font-family: var(--font-cuerpo); font-size: 0.95rem; color: var(--azul); background: var(--gris-claro); transition: var(--transition); outline: none; width: 100%; }
.form-input:focus { border-color: var(--naranja); background: var(--blanco); box-shadow: 0 0 0 3px rgba(232,65,24,0.12); }

/* ===== BOTONES ===== */
.btn { font-family: var(--font-titulo); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.5px; text-transform: uppercase; padding: 0.8rem 1.5rem; border-radius: var(--radio-sm); border: none; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-decoration: none; width: 100%; }
.btn-primary { background: var(--naranja); color: var(--blanco); box-shadow: var(--sombra-naranja); }
.btn-primary:hover { background: var(--naranja-claro); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.btn-outline { background: transparent; color: var(--naranja); border: 2px solid var(--naranja); }
.btn-outline:hover { background: var(--naranja); color: var(--blanco); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ===== AUTH ===== */
.auth-container { max-width: 400px; margin: 0 auto; }
.auth-card { background: var(--blanco); border-radius: var(--radio); padding: 2rem 1.5rem; box-shadow: var(--sombra); animation: slideUp 0.3s ease; }
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-tabs { display: flex; background: var(--gris-claro); border-radius: var(--radio-sm); padding: 4px; margin-bottom: 1.5rem; gap: 4px; }
.auth-tab { flex: 1; padding: 0.6rem; border: none; background: transparent; font-family: var(--font-titulo); font-weight: 600; font-size: 0.85rem; color: var(--gris); border-radius: 6px; cursor: pointer; transition: var(--transition); }
.auth-tab.active { background: var(--blanco); color: var(--azul); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.form-error { background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; padding: 0.7rem 1rem; border-radius: var(--radio-sm); font-size: 0.85rem; margin-bottom: 1rem; display: none; }
.form-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #16A34A; padding: 0.7rem 1rem; border-radius: var(--radio-sm); font-size: 0.85rem; margin-bottom: 1rem; display: none; }

/* ===== BOLETOS & VENUES ===== */
.boleto-card { background: var(--blanco); border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); border: 1px solid var(--gris-borde); margin-bottom: 1rem; animation: slideUp 0.3s ease; }
.boleto-header { background: linear-gradient(135deg, var(--azul), var(--azul-claro)); padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.boleto-evento-nombre { font-family: var(--font-titulo); font-weight: 800; color: var(--blanco); font-size: 1rem; }
.boleto-puerta { background: var(--naranja); color: var(--blanco); font-family: var(--font-titulo); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.boleto-body { padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.boleto-placa { font-family: var(--font-titulo); font-weight: 900; font-size: 2rem; color: var(--azul); letter-spacing: 4px; text-align: center; background: var(--gris-claro); border-radius: var(--radio-sm); padding: 0.5rem; border: 2px dashed var(--gris-borde); }
.boleto-info { display: flex; gap: 1rem; flex-wrap: wrap; }
.boleto-info-item { display: flex; flex-direction: column; gap: 2px; }
.boleto-info-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; color: var(--gris); letter-spacing: 0.4px; }
.boleto-info-value { font-weight: 600; font-size: 0.9rem; color: var(--azul); }

.venue-card { background: var(--blanco); border-radius: var(--radio); padding: 1.25rem; box-shadow: var(--sombra); border-left: 4px solid var(--naranja); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 1rem; animation: slideUp 0.3s ease; }
.venue-icon { width: 44px; height: 44px; background: var(--azul); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.venue-icon svg { width: 22px; height: 22px; stroke: var(--naranja); fill: none; stroke-width: 2; }
.venue-nombre { font-family: var(--font-titulo); font-weight: 700; font-size: 1rem; color: var(--azul); }
.venue-dir { font-size: 0.8rem; color: var(--gris); margin-top: 2px; }

/* ===== SPINNER & UTILS ===== */
.spinner { display: flex; align-items: center; justify-content: center; padding: 3rem; flex-direction: column; gap: 1rem; color: var(--gris); font-size: 0.85rem; }
.spinner-ring { width: 40px; height: 40px; border: 3px solid var(--gris-borde); border-top-color: var(--naranja); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gris); }
.empty-state svg { width: 56px; height: 56px; stroke: var(--gris-borde); fill: none; stroke-width: 1.5; margin-bottom: 1rem; }
.empty-state p { font-size: 0.9rem; margin-bottom: 1rem; }

.toast { position: fixed; bottom: calc(var(--footer-h) + 12px); left: 50%; transform: translateX(-50%) translateY(100px); background: var(--azul); color: var(--blanco); padding: 0.75rem 1.5rem; border-radius: 50px; font-size: 0.875rem; font-weight: 600; box-shadow: 0 4px 24px rgba(0,0,0,0.25); z-index: 9999; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); white-space: nowrap; display: flex; align-items: center; gap: 0.5rem; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.toast-success { background: #16A34A; }
.toast.toast-error { background: var(--naranja-oscuro); }

.badge-lugares { display: inline-flex; align-items: center; gap: 4px; background: #10B981; color: white; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; font-family: var(--font-titulo); }
.badge-lugares.agotado { background: var(--naranja-oscuro); }

.text-center { text-align: center; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .hidden { display: none !important; }

/* ===== FOOTER PÁGINA DESKTOP ===== */
#footer-page {
    background: var(--azul);
    color: rgba(255,255,255,0.7);
    padding: 2.5rem 2rem 2rem;
    border-top: 3px solid var(--naranja);
    display: block; 
    margin-top: auto; 
    padding-bottom: calc(var(--footer-h) + 2rem); 
}
@media (min-width: 768px) {
    #footer-page { padding-bottom: 2rem; }
}

.footer-page-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-page-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-logo-img { height: 38px; width: auto; object-fit: contain; filter: brightness(0) invert(1); display: block; }
.footer-tagline { font-size: 0.78rem; color: rgba(255,255,255,0.45); font-family: var(--font-titulo); font-weight: 500; letter-spacing: 0.3px; }

.footer-page-links { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: center; }
.footer-page-link { background: transparent; border: 1px solid transparent; color: rgba(255,255,255,0.55); font-family: var(--font-titulo); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; padding: 0.45rem 0.9rem; border-radius: 6px; transition: var(--transition); text-decoration: none; }
.footer-page-link:hover { color: var(--blanco); border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.07); }

.footer-page-copy { text-align: right; font-size: 0.75rem; color: rgba(255,255,255,0.4); line-height: 1.6; }
.footer-page-copy strong { color: var(--naranja); font-weight: 700; }
.footer-powered { margin-top: 10px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; opacity: 0.8; }

@media (max-width: 1024px) {
    .footer-page-inner { flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
    .footer-page-copy { text-align: center; }
    .footer-page-brand { align-items: center; }
    .footer-powered { justify-content: center; }
}

/* ===== MEDIA QUERIES GLOBALES ===== */
@media (min-width: 600px) {
    #main { padding: 2rem 1.5rem; }
    .splash { padding: 3rem 2rem; }
    .info-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
    .hamburger { display: none !important; }
    .header-nav { display: flex !important; }
    #footer { display: none; }
    #main { margin-bottom: 0; padding: 2rem; }
    .eventos-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
@media (max-width: 767px) {
    .hamburger { display: flex; }
    .header-nav { display: none; }
    #main { margin-bottom: var(--footer-h); }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .eventos-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== POPUP ===== */
.popup-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(12, 27, 51, 0.85); backdrop-filter: blur(5px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: var(--transition); }
.popup-overlay.show { opacity: 1; visibility: visible; }
.popup-content { background: var(--blanco); border-radius: var(--radio); width: 100%; max-width: 400px; overflow: hidden; transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.popup-overlay.show .popup-content { transform: scale(1); }
.popup-img { width: 100%; height: 160px; object-fit: cover; }
.popup-body { padding: 1.5rem; text-align: center; }
.popup-titulo { font-family: var(--font-titulo); font-size: 1.4rem; color: var(--azul); font-weight: 800; margin-bottom: 0.5rem; }
.popup-text { color: var(--gris); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.5; }