/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --black:      #1a1a1a;
  --black-card: #242424;
  --black-alt:  #1f1f1f;
  --gold:       #F5C400;
  --gold-dark:  #d4a900;
  --red:        #CC1F1F;
  --navy:       #003366;
  --navy-light: #0a4080;
  --white:      #FFFFFF;
  --gray:       #888888;
  --gray-light: #cccccc;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

h1, h2, h3 { font-family: 'Oswald', sans-serif; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--black-alt); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.section-header .subtitle { color: var(--gray-light); margin-top: 0.5rem; font-size: 1.05rem; }
.gold-line {
  display: block;
  width: 60px; height: 4px;
  background: var(--gold);
  margin: 0.75rem auto;
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--black); }

/* ===== FADE-IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========================================
   HEADER
======================================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,26,26,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
  transition: box-shadow 0.3s;
}
.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}
.nav-brand .badge {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 2px solid var(--red);
  flex-shrink: 0;
}
.nav-brand span { color: var(--white); }
.nav-brand em { color: var(--gold); font-style: normal; }
.nav-logo { height: 64px; width: auto; display: block; }
/* Botón-logo de la marca (reset de estilos de botón) */
.nav-brand-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== TABS DE SECCIÓN ===== */
.section-tabs {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.tab-btn {
  background: transparent;
  border: 2px solid transparent;
  color: var(--gray-light);
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--gold); border-color: rgba(245,196,0,0.4); }
.tab-btn.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  font-weight: 700;
}

.nav-wa {
  background: var(--gold);
  color: var(--black);
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-wa:hover { background: var(--gold-dark); }

@media (max-width: 820px) {
  .nav-wrap { gap: 0.5rem; }
  .nav-logo { height: 44px; }
  .section-tabs { gap: 0.1rem; }
  .tab-btn {
    font-size: 0.72rem;
    padding: 0.28rem 0.55rem;
    letter-spacing: 0.03em;
  }
  .nav-wa {
    padding: 0.28rem 0.65rem;
    font-size: 0.72rem;
  }
}
@media (max-width: 400px) {
  .nav-logo { height: 36px; }
  .tab-btn { font-size: 0.65rem; padding: 0.22rem 0.4rem; }
}

/* ========================================
   HERO
======================================== */
#hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1529768167801-9173d94c2a42?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  filter: brightness(0.22);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,26,0.2) 0%, rgba(26,26,26,0.95) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 3rem 1.25rem;
}
.hero-logo-badge {
  width: 110px; height: 110px;
  background: var(--gold);
  border-radius: 50%;
  border: 5px solid var(--red);
  box-shadow: 0 0 50px rgba(245,196,0,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem;
  margin: 0 auto 1.5rem;
}
.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 11vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 20px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-title span { color: var(--gold); }
.hero-logo {
  width: clamp(280px, 60vw, 560px);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.7));
}
.event-info {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  margin: 0.8rem 0 1rem;
  text-transform: uppercase;
}
.event-highlight {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero-tagline {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 1rem 0;
}
.hero-sub {
  max-width: 580px;
  margin: 0 auto 2.5rem;
  color: var(--gray-light);
  font-size: 1rem;
  line-height: 1.75;
}
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
.chip {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(245,196,0,0.35);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  color: var(--gold);
}
.chip span { color: var(--gray-light); font-family: 'Inter', sans-serif; font-size: 0.8rem; }

/* ========================================
   ¿QUÉ ES ESTO?
======================================== */
.que-es-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.8;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.feature-card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.fc-check {
  width: 34px; height: 34px;
  min-width: 34px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  font-weight: 700;
  font-size: 1rem;
}
.fc-text h3 { font-size: 1rem; font-weight: 600; text-transform: uppercase; margin-bottom: 0.2rem; }
.fc-text p { color: var(--gray); font-size: 0.88rem; }

/* ========================================
   SOFTBOL
======================================== */
.softbol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) { .softbol-grid { grid-template-columns: 1fr; } }
.softbol-text p { color: var(--gray-light); margin-bottom: 1rem; line-height: 1.8; }
.softbol-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--gold);
}

/* ========================================
   CAMPO DE SOFTBOL INTERACTIVO
======================================== */
.field-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 1.5rem;
  position: relative;
}
.softbol-field {
  width: 100%;
  max-width: 700px;
  height: auto;
  cursor: pointer;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}
.position-hitarea { cursor: pointer; }
.position-hitarea:hover { filter: drop-shadow(0 0 10px rgba(245, 196, 0, 0.4)); }

/* Animación pulsante del pitcher */
.pitcher-glow {
  animation: pitcherPulse 1.5s ease-in-out infinite;
}
@keyframes pitcherPulse {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(245,196,0,0));
    r: 8;
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(245,196,0,0.6));
    r: 10;
  }
}

@media (max-width: 768px) {
  .softbol-field {
    max-width: 100%;
  }
  .field-container {
    padding: 1rem;
  }
}

/* ========================================
   TARJETA DE POSICIÓN
======================================== */
.pos-card-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.pos-card-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.pos-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.94);
  z-index: 1401;
  width: min(390px, calc(100vw - 2rem));
  background: var(--black-card);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 196, 0, 0.08);
}
.pos-card.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.pos-card-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--gray);
  font-size: 0.95rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.pos-card-close:hover { background: rgba(245, 196, 0, 0.15); color: var(--gold); }
.pos-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-right: 2rem;
}
.pos-card-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  gap: 0.05rem;
}
.pos-card-icon { font-size: 1.4rem; line-height: 1; }
.pos-card-num {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.05em;
}
.pos-card-titles { flex: 1; min-width: 0; }
.pos-card-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.15rem;
}
.pos-card-abbr {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
}
.pos-card-role {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  font-weight: 600;
  border-left: 3px solid var(--gold);
  padding-left: 0.65rem;
}
.pos-card-desc {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.pos-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid rgba(245, 196, 0, 0.18);
  padding-top: 0.9rem;
}
.pos-card-tip, .pos-card-difficulty {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.pos-card-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 0.12rem;
}
#posCardTip, .pos-card-diff-value {
  font-size: 0.87rem;
  color: var(--gray-light);
  line-height: 1.5;
}
.pos-card-hint {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--gray);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.04em;
}

/* ===== POSICIONES (ANTIGUO - OCULTO) ===== */
.positions-intro {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 2.5rem;
}
.positions-grid {
  display: none;
}
.position-card {
  background: var(--black-card);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s, border-color 0.25s;
}
.position-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.position-card:nth-child(even) { background: #1a2640; }
.pos-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
}
.pos-icon { font-size: 1.8rem; margin: 0.2rem 0; }
.pos-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.pos-desc { color: var(--gray); font-size: 0.83rem; }

/* ========================================
   ROPA
======================================== */
.ropa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 680px) { .ropa-grid { grid-template-columns: 1fr; } }
.ropa-card {
  background: var(--black-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}
.ropa-head {
  padding: 1.5rem;
  background: var(--navy);
  text-align: center;
}
.ropa-head h3 { font-size: 1.4rem; text-transform: uppercase; }
.ropa-tag {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tag-gold { background: var(--gold); color: var(--black); }
.tag-red  { background: var(--red);  color: var(--white); }
.ropa-body { padding: 1.5rem; }
.ropa-body ul { list-style: none; }
.ropa-body li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--gray-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}
.ropa-body li:last-child { border-bottom: none; }
.ropa-body li::before { content: '⚡'; font-size: 0.85rem; }
.jersey-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid var(--gold);
  margin-bottom: 1rem;
}
.jc-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease;
}
.jc-slide {
  position: relative;
  min-width: 100%;
  flex-shrink: 0;
  height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.jc-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(18px) brightness(0.35);
  transform: scale(1.1);
}
.jc-slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
}
.jc-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 1.5rem 0.75rem 0.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.jc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.jc-btn:hover { background: var(--gold); color: var(--black); }
.jc-prev { left: 8px; }
.jc-next { right: 8px; }
.jc-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 6px;
}
.jc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.jc-dot.active { background: var(--gold); transform: scale(1.35); }

/* ========================================
   CARRUSEL GALERÍA DESTACADA
======================================== */
.featured-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 2rem;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.featured-carousel .jc-track {
  width: 100%;
  height: 100%;
}
.featured-carousel .jc-slide {
  width: 100%;
  height: 100%;
  min-width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1f1f1f 0%, #242424 100%);
}
.featured-carousel .jc-slide img {
  object-fit: cover;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  margin: 0;
}
.featured-carousel .jc-caption {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 60%);
  padding: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}
.featured-carousel .jc-btn {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(245,196,0,0.4);
  z-index: 10;
}
.featured-carousel .jc-btn:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.featured-carousel .jc-dots {
  background: rgba(0,0,0,0.4);
  padding: 8px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .featured-carousel {
    aspect-ratio: 4 / 3;
    margin-bottom: 1rem;
  }
  .featured-carousel .jc-caption {
    font-size: 0.9rem;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  #galeria {
    padding-top: 7rem !important;
    padding-bottom: 2.5rem;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .featured-carousel {
    aspect-ratio: 1 / 1;
  }
  .featured-carousel .jc-slide img {
    object-fit: contain;
    background: #000;
  }
  .featured-carousel .jc-btn {
    font-size: 1.8rem;
  }
  .featured-carousel .jc-caption {
    font-size: 0.8rem;
    padding: 0.75rem;
  }
}

/* ========================================
   GALERÍA DESTACADA (LEGACY - DEPRECATED)
======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid rgba(245,196,0,0.25);
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover { border-color: var(--gold); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: flex-end;
  padding: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
}

/* ========================================
   TIMELINE GALLERY
======================================== */
.timeline-gallery {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.timeline-period {
  opacity: 0;
  animation: slideInUp 0.8s ease-out forwards;
  animation-fill-mode: both;
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-period:nth-child(odd) {
  --period-bg: rgba(245, 196, 0, 0.08);
  --period-accent: var(--gold);
}
.timeline-period:nth-child(even) {
  --period-bg: rgba(0, 51, 102, 0.08);
  --period-accent: var(--navy-light);
}

.timeline-month {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 2.5rem;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.timeline-games {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 1rem;
}

.timeline-game {
  animation: fadeIn 0.7s ease-out;
}

.timeline-game-date {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  text-transform: capitalize;
  margin-bottom: 1.2rem;
}

.timeline-masonry {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 1rem;
  animation: fadeIn 0.7s ease-out 0.2s both;
  justify-content: flex-start;
  align-items: flex-start;
}

.timeline-photo {
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: auto;
  flex: none;
  min-width: unset;
}

.timeline-photo:hover {
  transform: scale(1.02);
}

.timeline-photo img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.3s ease;
  display: block;
}

.timeline-photo:hover img {
  transform: scale(1.02);
}

/* ========================================
   JUSTIFIED GALLERY — gap mayor en desktop
======================================== */
@media (min-width: 769px) {
  .timeline-masonry {
    gap: 6px;
  }
}

/* ========================================
   LIGHTBOX
======================================== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.98);
  align-items: center;
  justify-content: center;
  padding: 0;
}
#lightbox.active { display: flex; }
.lb-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.lb-inner {
  background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.lb-inner.loaded {
  background: #2a2a2a;
  animation: none;
}

.lb-inner img {
  max-height: 100vh;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s;
}

.lb-inner img[src]:not([src=""]) {
  opacity: 1;
  animation: none;
}
.lb-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Oswald', sans-serif;
  color: var(--gold);
  font-size: 1.1rem;
  background: rgba(0,0,0,0.6);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  max-width: 90%;
  z-index: 2001;
}
.lb-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(245,196,0,0.9);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  z-index: 2002;
}
.lb-close:hover {
  background: var(--gold);
  transform: scale(1.1);
}
.lb-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  width: 100%;
  pointer-events: none;
  z-index: 2001;
}
.lb-nav button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245,196,0,0.15);
  border: 2px solid rgba(245,196,0,0.5);
  color: var(--gold);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  pointer-events: auto;
}
.lb-nav button:hover {
  background: rgba(245,196,0,0.3);
  border-color: var(--gold);
  transform: scale(1.1);
}
@keyframes lb-slide-out-left {
  from { transform: translateX(0);      opacity: 1; }
  to   { transform: translateX(-100vw); opacity: 0; }
}
@keyframes lb-slide-out-right {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(100vw); opacity: 0; }
}
@keyframes lb-slide-in-from-right {
  from { transform: translateX(100vw); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes lb-slide-in-from-left {
  from { transform: translateX(-100vw); opacity: 0; }
  to   { transform: translateX(0);      opacity: 1; }
}
.lb-anim-out-left  { animation: lb-slide-out-left      0.22s ease forwards; }
.lb-anim-out-right { animation: lb-slide-out-right     0.22s ease forwards; }
.lb-anim-in-right  { animation: lb-slide-in-from-right 0.28s ease forwards; }
.lb-anim-in-left   { animation: lb-slide-in-from-left  0.28s ease forwards; }
.lb-swipe-hint {
  display: none;
}
@media (max-width: 768px) {
  .lb-nav { display: none; }
  .lb-swipe-hint {
    display: block;
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.65);
    color: var(--gold);
    font-family: 'Oswald', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(245,196,0,0.4);
    white-space: nowrap;
    z-index: 2002;
    opacity: 1;
    transition: opacity 0.6s ease;
    pointer-events: none;
  }
  .lb-swipe-hint.hidden { opacity: 0; }
}

/* ========================================
   UBICACIÓN
======================================== */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) { .ubicacion-grid { grid-template-columns: 1fr; } }
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--gold);
  aspect-ratio: 4/3;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.flyer-flip {
  perspective: 1000px;
  max-width: 500px;
  margin: 0 auto;
  height: 600px;
}
.flyer-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.flyer-flip.flipped .flyer-card-inner {
  transform: rotateY(180deg);
}
.flyer-card {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: linear-gradient(135deg, var(--black-card) 0%, var(--black) 100%);
  border: 3px solid var(--gold);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(245,196,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.flyer-front {
  z-index: 2;
}
.flyer-back {
  transform: rotateY(180deg);
  z-index: 1;
}
.flyer-top {
  margin-bottom: 2rem;
}
.flyer-badge {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.flyer-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--gold);
  text-shadow: 0 3px 12px rgba(0,0,0,0.6);
}
.flyer-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding: 1.75rem 0;
  border-top: 2px solid rgba(245,196,0,0.3);
  border-bottom: 2px solid rgba(245,196,0,0.3);
}
.flyer-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
}
.flyer-emoji {
  font-size: 2rem;
}
.flyer-text {
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.flyer-item.highlight .flyer-text {
  color: var(--gold);
  font-size: 1.35rem;
}
.flyer-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;
}
.flyer-flip-btn {
  background: var(--gold);
  color: var(--black);
  padding: 1rem 2.25rem;
  border: none;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.flyer-flip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,196,0,0.3);
}
.flyer-map-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}
.flyer-map-container h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.flyer-back-cta {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  margin-top: 1.5rem;
}
.flyer-gmap-btn {
  background: var(--gold);
  color: var(--black);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.flyer-gmap-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,196,0,0.3);
}
.flyer-flip-btn-back {
  background: transparent;
  color: var(--gold);
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--gold);
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
}
.flyer-flip-btn-back:hover {
  background: rgba(245,196,0,0.1);
  color: var(--white);
}

/* ========================================
   ÚNETE
======================================== */
#unete {
  background: linear-gradient(135deg, var(--black) 0%, var(--navy) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#unete::before {
  content: '⚾';
  position: absolute;
  font-size: 22rem;
  opacity: 0.03;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.unete-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.unete-text {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--gray-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ========================================
   FLOATING WA
======================================== */
#floating-wa {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
#floating-wa:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,0.7);
}
#floating-wa svg { width: 30px; height: 30px; fill: white; }

/* ========================================
   FOOTER
======================================== */
#footer {
  background: #111;
  padding: 3rem 0 1.5rem;
  border-top: 2px solid var(--gold);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo { height: 48px; width: auto; display: block; }
.footer-brand-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}
.footer-brand-text small { display: block; font-size: 0.75rem; color: var(--gray); font-weight: 400; }
.footer-social { display: flex; gap: 0.85rem; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  transition: border-color 0.2s, background 0.2s;
}
.footer-social a:hover { border-color: var(--gold); background: rgba(245,196,0,0.1); }
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.8;
}
.heart { color: var(--red); }
.footer-credit {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.footer-credit-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-credit-link:hover { opacity: 1; }
.footer-credit-logo { height: 28px; width: auto; display: block; }

/* ========================================
   TAB PAGES — 3 secciones
======================================== */
.tab-page { display: block; }
.tab-page[hidden] { display: none !important; }

/* ========================================
   SKELETON LOADERS — Carga de imágenes
======================================== */
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

.jc-slide {
  background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.jc-slide img {
  opacity: 0;
  transition: opacity 0.3s;
}

.jc-slide img[src]:not([src=""]) {
  opacity: 1;
  animation: none;
}

.gallery-item {
  background: linear-gradient(90deg, #2a2a2a 25%, #333 50%, #2a2a2a 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.gallery-item img {
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item img[src]:not([src=""]) {
  opacity: 1;
  animation: none;
}
