/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --bg-dark: #050a14;
  --bg-card: #0f1623;
  --brand: #fff404;       /* Amarillo Neón */
  --brand-2: #00f2ea;     /* Cyan */
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.08);
  --header-h: 90px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

/* Utilidades */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: 5rem 0; }
.bg-darker { background: #020408; }
.text-brand { color: var(--brand); }
.text-blue { color: var(--brand-2); }
.centered { text-align: center; justify-content: center; flex-direction: column; align-items: center; }

/* =========================================
   2. INTRO SPLASH
   ========================================= */
.intro-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-dark);
  display: flex; justify-content: center; align-items: center;
  transition: opacity 0.5s ease;
}
.intro-content { text-align: center; }
.intro-logo { width: 250px; margin-bottom: 1.5rem; filter: drop-shadow(0 0 30px rgba(255,255,255,0.1)); }
.loader-bar { width: 250px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin: 0 auto; }
.loader-progress {
  width: 0%; height: 100%; background: var(--brand);
  animation: loading 1.2s ease-in-out forwards;
}
@keyframes loading { 0% {width:0} 100% {width:100%} }

/* =========================================
   3. HEADER (GLASSMORPHISM)
   ========================================= */
.site-header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 1rem 0; }
.header-inner.glass-panel {
  background: rgba(5, 10, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 0.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.brand img { height: 150px; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5)); }

.desktop-nav { display: flex; gap: 2rem; }
.desktop-nav a { font-weight: 600; opacity: 0.8; font-size: 0.95rem; }
.desktop-nav a:hover, .desktop-nav a.active { opacity: 1; color: var(--brand); }
.nav-cta {
    background: rgba(255,255,255,0.1); padding: 0.4rem 1rem; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-toggle { display: none; background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; }
.mobile-menu {
    display: none; position: absolute; top: 90px; left: 1rem; right: 1rem;
    background: rgba(15, 22, 35, 0.95); backdrop-filter: blur(10px);
    padding: 1.5rem; border-radius: 20px; border: 1px solid var(--glass-border);
    flex-direction: column; gap: 1.2rem; text-align: center; font-size: 1.1rem;
}
.mobile-menu.open { display: flex; }

@media(max-width: 900px) {
  .desktop-nav { display: none; }
  .nav-toggle { display: block; }
  .header-inner.glass-panel { padding: 0.5rem 1rem; }
}

/* =========================================
   4. HERO SLIDER (CINEMATIC)
   ========================================= */
.hero-section { height: 100vh; width: 100%; position: relative; }
.hero-swiper { height: 100%; width: 100%; }
.slide-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    animation: panZoom 20s infinite alternate;
}
@keyframes panZoom { from {transform: scale(1);} to {transform: scale(1.1);} }
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg-dark) 5%, rgba(5,10,20,0.4) 60%, rgba(5,10,20,0.7));
}
.slide-content {
    position: relative; z-index: 10; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding-top: 4rem;
}
.slide-badge {
    background: var(--brand); color: black; padding: 0.4rem 1rem; border-radius: 4px;
    font-weight: 800; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1rem;
    letter-spacing: 1px;
}
.slide-badge.highlight-blue { background: var(--brand-2); }
.slide-title {
    font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; line-height: 1.05; margin: 0 0 0.5rem 0;
    text-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.slide-sub { font-size: 1.3rem; color: #ddd; margin-bottom: 2rem; font-weight: 300; }

/* Contador Hero */
.countdown-box {
    display: inline-flex; align-items: center; gap: 0.8rem;
    background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15);
    padding: 0.6rem 1.2rem; border-radius: 12px; backdrop-filter: blur(4px);
    margin-bottom: 2rem;
}
.countdown-box i { font-size: 1.5rem; color: var(--brand); }
.countdown-text { font-weight: 700; font-size: 1.1rem; font-feature-settings: "tnum"; }

.slide-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-zoom {
    position: absolute; bottom: 2rem; right: 2rem;
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: white; font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.hero-zoom:hover { background: var(--brand); color: black; }

/* =========================================
   5. BOTONES GLOBALES
   ========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.6rem; border-radius: 50px; font-weight: 700;
    transition: 0.3s; cursor: pointer; border: none; text-transform: uppercase;
    font-size: 0.9rem; letter-spacing: 0.5px;
}
.btn-primary {
    background: var(--brand); color: #050a14;
    box-shadow: 0 0 15px rgba(255, 244, 4, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 25px rgba(255, 244, 4, 0.5); }

.btn-ghost {
    background: transparent; border: 1px solid rgba(255,255,255,0.3); color: white;
}
.btn-ghost:hover { background: white; color: black; border-color: white; }

.btn-outline-light {
    background: transparent; border: 2px solid white; color: white;
}
.btn-outline-light:hover { background: white; color: black; }

/* =========================================
   6. SECCIONES & TARJETAS (EVENTOS)
   ========================================= */
.section-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 2.5rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem;
}
.section-title { font-size: 2rem; margin: 0; font-weight: 800; text-transform: uppercase; }
.section-desc { margin: 0; color: var(--text-muted); font-size: 1rem; }
.swiper-nav-custom button {
    background: var(--bg-card); border: 1px solid var(--glass-border); color: white;
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: 0.3s;
}
.swiper-nav-custom button:hover { background: var(--brand); color: black; }

/* Tarjeta Moderna */
.event-card-glass {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 18px; overflow: hidden;
    display: flex; flex-direction: column; height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.event-card-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}
.card-img {
    height: 220px; width: 100%; object-fit: cover; position: relative;
}
.card-date-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(0,0,0,0.7); color: var(--brand);
    padding: 0.3rem 0.8rem; border-radius: 8px; font-weight: 700;
    border: 1px solid rgba(255,244,4,0.3); backdrop-filter: blur(4px);
}
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.3rem; margin: 0 0 0.5rem; line-height: 1.2; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.8rem; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.card-meta span { display: flex; align-items: center; gap: 0.3rem; }
.card-meta i { color: var(--brand-2); }
.card-footer { margin-top: auto; display: flex; gap: 0.5rem; }
.card-footer .btn { flex: 1; padding: 0.6rem; font-size: 0.8rem; }

/* =========================================
   7. TIENDA (BANNER)
   ========================================= */
.shop-banner {
    position: relative; height: 450px; display: flex; align-items: center; justify-content: center;
    overflow: hidden; margin: 2rem 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
}
.shop-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transition: transform 10s ease-out;
}
.shop-banner:hover .shop-bg { transform: scale(1.05); }
.shop-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.shop-content { position: relative; z-index: 2; text-align: center; max-width: 700px; }
.shop-tag {
    color: var(--brand); border: 1px solid var(--brand); padding: 0.2rem 0.8rem;
    border-radius: 50px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
}
.shop-content h2 { font-size: 3rem; font-weight: 900; margin: 1rem 0; line-height: 1; }
.shop-content p { font-size: 1.2rem; margin-bottom: 2rem; color: #ddd; }

/* =========================================
   8. GALERÍA (GRID)
   ========================================= */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem;
}
.gallery-item {
    position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-border);
    cursor: pointer; transition: transform 0.3s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem;
    background: linear-gradient(to top, black, transparent);
}
.gallery-caption h3 { margin: 0; font-size: 1.1rem; color: white; }
.gallery-caption span { color: var(--brand); font-size: 0.85rem; }

/* =========================================
   9. FOOTER (ESTILOS DEL ORIGINAL MEJORADOS)
   ========================================= */
.site-footer {
    background: #020408; border-top: 1px solid var(--glass-border);
    padding-top: 4rem; margin-top: 4rem; color: var(--text-muted);
    position: relative;
}
/* Wave decorativa opcional */
.footer-wave {
    position: absolute; top: -50px; left: 0; width: 100%; height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.1' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover; opacity: 0.5;
}

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
.footer-logo { max-height: 150px; margin-bottom: 1rem; }
.footer-title { color: white; font-size: 1.2rem; margin-bottom: 1.5rem; border-left: 3px solid var(--brand); padding-left: 10px; }
.footer-links li, .footer-contact li { margin-bottom: 0.8rem; }
.footer-links a:hover { color: var(--brand); padding-left: 5px; }
.footer-contact li { display: flex; align-items: center; gap: 0.8rem; }
.footer-contact i { color: var(--brand); font-size: 1.2rem; }

.social-links { display: flex; gap: 1rem; margin-bottom: 2rem; }
.social-link {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem;
}
.social-link:hover { background: var(--brand); color: black; transform: translateY(-3px); }
.sponsors { display: flex; flex-wrap: wrap; gap: 1rem; }
.sponsors img { height: 70px; opacity: 0.7; transition: 0.3s; }
.sponsors img:hover { opacity: 1; }

.footer-bottom {
    border-top: 1px solid var(--glass-border); padding-top: 2rem; padding-bottom: 2rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-counter {
    background: rgba(255,255,255,0.05); padding: 0.3rem 0.8rem; border-radius: 6px;
    font-size: 0.9rem; color: var(--brand); border: 1px solid var(--glass-border);
}

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 10000; display: none; justify-content: center; align-items: center;
}
.lightbox.active { display: flex; animation: fadeIn 0.3s; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.9); }
.lightbox-content { position: relative; z-index: 2; max-width: 90vw; max-height: 90vh; }
.lightbox-content img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.lightbox-close {
    position: absolute; top: -40px; right: -40px; background: none; border: none;
    color: white; font-size: 2rem; cursor: pointer;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
/* ... Estilos anteriores ... */

/* Modificación para Tarjetas Interactivas (Aliados/Galería) */
.interactive-card {
    cursor: pointer;
    position: relative;
}

/* Efecto hover para indicar clic */
.interactive-card:hover .card-img img {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

/* Icono superpuesto al pasar el mouse en la imagen */
.card-link-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    z-index: 2;
}
.card-link-overlay i {
    color: white;
    font-size: 2rem;
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}
.interactive-card:hover .card-link-overlay {
    opacity: 1;
}

/* Ajuste sutil para el texto del footer en tarjetas de aliados */
.card-footer-link {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid var(--glass-border);
    color: var(--brand-2); /* Azul Cyan */
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}