/* ============================================================
   La Mística Evolucionada — estilos estáticos
   Azul #001A33 · Oro #FFD700
   ============================================================ */

:root {
  --navy: #001A33;
  --navy-2: #003566;
  --gold: #FFD700;
  --font-display: 'Archivo Black', 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  --font-heading: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--navy); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); }

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

/* ---------- helpers ---------- */
.font-display { font-family: var(--font-display); }
.gold { color: var(--gold); }
.ink { color: var(--navy); }
.tabular-nums { font-variant-numeric: tabular-nums; }

.section-pad {
  padding-left: clamp(1.5rem, 5vw, 6rem);
  padding-right: clamp(1.5rem, 5vw, 6rem);
}

.hero-title {
  font-size: clamp(2.75rem, 8vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.mega-text {
  font-size: clamp(3.5rem, 12vw, 14rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.text-outline {
  -webkit-text-stroke: 2px rgba(255, 215, 0, 0.3);
  color: transparent;
}
.text-outline-gold {
  -webkit-text-stroke: 2px var(--gold);
  color: transparent;
}

.franja-gold {
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}

.glass-panel {
  background: rgba(0, 26, 51, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 215, 0, 0.15);
}

.gold-focus:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- eyebrow ---------- */
.eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.eyebrow-bar { width: 3rem; height: 4px; background: var(--gold); flex: none; }
.eyebrow-bar.ink-bar { background: var(--navy); }
.eyebrow-text {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.eyebrow-text.ink { color: var(--navy); }

/* ---------- buttons ---------- */
.btn {
  font-weight: 700;
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background-color .25s, color .25s, border-color .25s;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ink { background: var(--navy); color: var(--gold); padding: 1.15rem 2rem; margin-top: 0.5rem; }
.btn-ink:hover { background: #000; }
.btn-ink:disabled { opacity: .5; cursor: default; }
.btn-outline-ink { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-ink:hover { background: var(--navy); color: var(--gold); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.25rem 0;
  background: transparent;
  transition: background-color .5s, padding .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(0, 26, 51, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand-logo { display: flex; flex: none; }
.brand-logo svg {
  display: block;
  height: 2.6rem; width: auto;
  transition: transform .25s;
}
.brand:hover .brand-logo svg { transform: rotate(-4deg); }
.brand-logo.sm svg { height: 2.1rem; }
.brand-name {
  font-family: 'Barlow Condensed', var(--font-heading);
  font-weight: 800;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .25s;
}
.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: #fff; padding: 0.25rem;
}
.nav-toggle svg { width: 1.6rem; height: 1.6rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

.mobile-menu {
  margin: 0.75rem 1rem 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color .25s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  transform: scale(1.15);
  transition: transform .3s ease-out;
  background-image: url('../Pilar.jpg'), linear-gradient(160deg, #002649 0%, #001A33 55%, #000d1a 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,26,51,.8), rgba(0,26,51,.5) 45%, var(--navy));
}
.gold-stripe {
  position: absolute; left: 0; right: 0;
  z-index: 10;
  height: 4px;
  top: 50%;
  opacity: 0.5;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
  transition: top .15s ease-out;
}

.hero-content { position: relative; z-index: 20; width: 100%; padding-top: 5rem; }
.hero-inner { max-width: 72rem; }
.hero-title.font-display { color: #fff; margin-bottom: 1.5rem; }
.hero-lead {
  color: rgba(255,255,255,.8);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  max-width: 42rem;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-indicator {
  position: absolute;
  bottom: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-indicator span {
  color: rgba(255,255,255,.5);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.arrow-down { width: 1rem; height: 1rem; color: var(--gold); animation: bounce 1.4s infinite; }

/* Marquee */
.marquee {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 20;
  overflow: hidden;
  border-top: 1px solid rgba(255,215,0,.2);
  padding: 0.75rem 0;
  background: rgba(0,26,51,.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  color: rgba(255,215,0,.4);
  font-size: 0.85rem;
  margin: 0 1rem;
}
.marquee-track .dot { margin: 0 1rem; }

/* ============================================================
   PLAN
   ============================================================ */
.plan { position: relative; background: var(--navy); padding: 6rem 0; overflow: hidden; }
.plan-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .22;
  background-image: url('../estadio.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.plan-inner { position: relative; z-index: 10; }
.section-header { margin-bottom: 4rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,215,0,.1);
}
.pillar {
  position: relative;
  padding: 2.5rem;
  background: var(--navy);
  cursor: crosshair;
  transition: background-color .5s;
}
.pillar:hover { background: var(--gold); }
.pillar-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  transition: color .5s, -webkit-text-stroke-color .5s;
}
.pillar:hover .pillar-num { color: var(--navy); -webkit-text-stroke: 2px transparent; }
.pillar-title {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  margin-bottom: 1rem;
  color: #fff;
  transition: color .5s;
}
.pillar:hover .pillar-title { color: var(--navy); }
.pillar-text {
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  transition: color .5s;
}
.pillar:hover .pillar-text { color: rgba(0,26,51,.8); }
.pillar-bar {
  margin-top: 2rem;
  height: 4px;
  width: 3rem;
  background: rgba(255,215,0,.3);
  transition: width .5s, background-color .5s;
}
.pillar:hover .pillar-bar { width: 100%; background: var(--navy); }

.plan-footer {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.plan-footer > p { color: rgba(255,255,255,.5); font-size: 0.9rem; max-width: 28rem; }
.plan-footer-note { display: flex; align-items: center; gap: 0.75rem; }
.plan-footer-note .plus { color: var(--gold); font-family: var(--font-display); font-size: 1.5rem; }
.plan-footer-note span:last-child { color: rgba(255,255,255,.7); font-size: 0.9rem; }

/* ============================================================
   SUMATE
   ============================================================ */
.sumate { position: relative; background: var(--gold); padding: 6rem 0; overflow: hidden; }
.sumate-bg {
  position: absolute; inset: 0; z-index: 0; opacity: .18;
  background-image: url('../Hinchada.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}
.sumate-inner { position: relative; z-index: 10; }
.sumate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.sumate-left .hero-title { margin-bottom: 1.5rem; }
.sumate-lead {
  color: rgba(0,26,51,.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 28rem;
  line-height: 1.65;
}
.counter { border-top: 2px solid var(--navy); padding-top: 1.5rem; }
.counter-num {
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.counter-label {
  color: rgba(0,26,51,.6);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.sumate-form { display: flex; flex-direction: column; gap: 2rem; }
.field { display: flex; flex-direction: column; }
.field label {
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(0,26,51,.3);
  padding: 0.75rem 0;
  color: var(--navy);
  font-size: 1.1rem;
  font-family: var(--font-body);
  transition: border-color .25s;
  resize: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(0,26,51,.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* success state */
.sumate-success { position: relative; z-index: 10; text-align: center; }
.check-circle {
  width: 5rem; height: 5rem;
  background: var(--navy);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem;
}
.check-circle svg { width: 2.5rem; height: 2.5rem; color: var(--gold); }
.sumate-success .hero-title { margin-bottom: 1rem; }
.success-text {
  color: rgba(0,26,51,.7);
  font-size: 1.1rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto { position: relative; background: var(--navy); padding-top: 6rem; overflow: hidden; }
.franja-divider { height: 4px; width: 100%; margin-bottom: 4rem; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,215,0,.1);
  margin-bottom: 5rem;
}
.contact-card {
  background: var(--navy);
  padding: 2.5rem;
  text-decoration: none;
  display: block;
  transition: background-color .25s;
}
.contact-card:hover { background: var(--navy-2); }
.contact-label {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.contact-value {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: #fff;
  word-break: break-word;
  transition: color .25s;
}
.contact-card:hover .contact-value { color: var(--gold); }

.clock-row {
  border-top: 1px solid rgba(255,215,0,.2);
  padding-top: 3rem;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}
.clock {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  color: #fff;
  margin-top: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.sede { text-align: right; }
.sede-label { color: rgba(255,255,255,.4); font-size: 0.9rem; margin-bottom: 0.5rem; }
.sede-value { color: #fff; font-family: var(--font-heading); font-size: 1.1rem; line-height: 1.4; }

.site-footer { border-top: 1px solid rgba(255,215,0,.2); padding: 2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand span { color: rgba(255,255,255,.5); font-size: 0.9rem; }
.footer-tag { color: rgba(255,255,255,.3); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }

.mega-wrap { overflow: hidden; padding: 2rem 0; }
.mega-text { text-align: center; line-height: 1; white-space: nowrap; }

/* ============================================================
   Animations
   ============================================================ */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { opacity: 0; animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Reduced motion (manual toggle + system pref) */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.reduce-motion .parallax-layer { transform: scale(1.15) !important; }
.reduce-motion .animate-slide-up { opacity: 1 !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-slide-up { animation-duration: .01ms; opacity: 1; }
  .marquee-track, .arrow-down { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .sumate-grid { gap: 3rem; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .plan, .sumate { padding: 4.5rem 0; }
  .pillars { grid-template-columns: 1fr; }
  .sumate-grid { grid-template-columns: 1fr; gap: 3rem; }

  .section-header { margin-bottom: 2.75rem; }
  .hero-content { padding-top: 6rem; }
}

@media (max-width: 640px) {
  .brand-name { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .contact-grid { grid-template-columns: 1fr; }
  .clock-row { grid-template-columns: 1fr; }
  .sede { text-align: left; }

  .scroll-indicator { display: none; }
  .pillar { padding: 2rem 1.75rem; }
}

/* ============================================================
   MODO TEMPORAL: AFICHE PANTALLA COMPLETA
   (Para restaurar el sitio completo, remover .sitio-oculto en index.html)
   ============================================================ */

.sitio-oculto {
  display: none !important;
}

.afiche-temporal {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background-color: #0d4c8c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

.afiche-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.afiche-img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.btn-sumate-afiche {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold, #FFD700);
  color: var(--navy, #001A33);
  font-family: var(--font-body), ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 1.15rem 4rem;
  min-height: 52px;
  border-radius: 4px;
  margin-top: clamp(-5.5rem, -7vw, -2.5rem);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-sumate-afiche:hover {
  background: #ffffff;
  color: var(--navy, #001A33);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.btn-sumate-afiche:active {
  transform: translateY(0);
}

/* Optimización para Tablets y Móviles */
@media (max-width: 768px) {
  .afiche-temporal {
    padding: 1rem 0.75rem;
  }

  .afiche-img {
    width: 100%;
    max-width: 100%;
  }

  .btn-sumate-afiche {
    width: min(280px, 80vw);
    padding: 1.05rem 2rem;
    font-size: 1.15rem;
    margin-top: clamp(-3.8rem, -11vw, -1.8rem);
  }
}

/* Pantallas muy pequeñas (ej: móviles compactos 360px o menos) */
@media (max-width: 380px) {
  .btn-sumate-afiche {
    width: 85vw;
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem;
    margin-top: -8vw;
  }
}

/* Pantallas de poca altura (ej: móviles en horizontal) */
@media (max-height: 550px) {
  .afiche-temporal {
    padding: 0.5rem;
  }
  .afiche-img {
    max-height: 55vh;
    width: auto;
  }
  .btn-sumate-afiche {
    margin-top: -1.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    min-height: 42px;
  }
}



