/* ============================================================
   DISTRITO CROSSBOX — Sitio multipágina
   Tema: navy oscuro · Color primario AZUL · Tipografía Rubik
   ============================================================ */

:root {
  --bg:        #0a0a0b;   /* negro */
  --bg-alt:    #101012;
  --bg-card:   #141417;
  --line:      #29292f;
  --text:      #f2f3f5;
  --muted:     #9a9aa4;
  --blue:      #2f6bff;   /* azul primario Distrito */
  --blue-2:    #175ff0;
  --blue-deep: #0a1b45;
  --ink:       #ffffff;
  --radius:    4px;
  --radius-sm: 3px;
  --maxw:      1180px;
  --shadow:    0 24px 60px -24px rgba(0,0,0,.75);
  --font:      "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* alias para acentos */
:root { --accent: var(--blue); --accent-2: var(--blue-2); --accent-ink: var(--ink); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.accent { color: var(--blue); }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.section-eyebrow {
  font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; color: var(--blue); margin-bottom: 14px;
}
.section-title {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: .98; letter-spacing: -.02em;
}
.section-lead { color: var(--muted); max-width: 620px; margin-top: 18px; font-size: 1.05rem; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 58px; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font); font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; font-size: .9rem; padding: 14px 30px;
  border-radius: 3px; border: 2px solid transparent; cursor: pointer; background: transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; }
/* Estilo HYROX: contorno, sin relleno; se rellena al hover */
.btn-accent { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-accent:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-white { background: transparent; color: #fff; border-color: #fff; }
.btn-white:hover { background: #fff; color: var(--blue-deep); transform: translateY(-2px); }

/* ============================================================
   HEADER (inyectado por app.js)
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(10,10,11,.92); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--blue); color: #fff; font-weight: 900; font-size: 1.35rem;
  border-radius: 4px; letter-spacing: -.03em;
}
.logo-text { display: flex; flex-direction: column; font-weight: 900; font-size: 1.2rem; letter-spacing: -.01em; line-height: .9; text-transform: uppercase; }
.logo-text em { color: #fff; font-style: normal; font-weight: 500; font-size: .44em; letter-spacing: .3em; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav > a, .dropdown > button {
  font-family: var(--font); font-weight: 500; font-size: .95rem; color: var(--muted);
  background: none; border: 0; cursor: pointer; transition: color .18s ease;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav > a:hover, .nav > a.active, .dropdown:hover > button, .dropdown > button.active { color: #fff; }
.nav .nav-cta { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.nav .nav-cta:hover { background: var(--blue); color: #fff; }

/* dropdown sedes */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px; min-width: 220px; opacity: 0; visibility: hidden; transition: .2s ease;
  box-shadow: var(--shadow);
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { display: block; padding: 11px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: .92rem; }
.dropdown-menu a:hover { background: rgba(47,107,255,.12); color: #fff; }
.dropdown-menu a strong { display: block; color: #fff; font-weight: 700; }
.dropdown-menu a span { font-size: .8rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--text); transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: minmax(0,1fr); align-items: center;
  padding: 130px 0 90px; overflow: hidden;
}
.hero .container { width: 100%; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 42%, rgba(0,0,0,.35) 100%),
              linear-gradient(0deg, var(--bg) 2%, transparent 42%);
}
.hero-content { position: relative; max-width: 840px; }
.eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  font-size: .8rem; color: #dbe5ff; background: rgba(47,107,255,.16);
  border: 1px solid rgba(47,107,255,.4); padding: 7px 16px; border-radius: 999px; margin-bottom: 24px;
}
.hero-title { font-weight: 900; font-size: clamp(2.5rem, 6.4vw, 5rem); line-height: .96; text-transform: uppercase; letter-spacing: -.025em; }
.hero-sub { color: #c3cee4; font-size: 1.15rem; max-width: 600px; margin: 26px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--muted); animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translate(-50%,0);} 50%{transform:translate(-50%,7px);} }

/* ============================================================
   PAGE HERO (subpáginas)
   ============================================================ */
.page-hero {
  position: relative; padding: 160px 0 70px; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.82), rgba(10,10,11,.95)); }
.page-hero .container { position: relative; }
.breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--blue); }
.page-hero h1 { font-weight: 900; text-transform: uppercase; font-size: clamp(2.3rem,5.5vw,4rem); letter-spacing: -.025em; }
.page-hero p { color: #c3cee4; max-width: 620px; margin-top: 16px; font-size: 1.08rem; }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--blue); color: #fff; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stat { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px; }
.stat-num, .stat-plus { font-weight: 900; font-size: clamp(2.2rem,4.6vw,3.2rem); line-height: 1; letter-spacing: -.02em; }
.stat p { flex-basis: 100%; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 6px; opacity: .95; }

/* ============================================================
   ABOUT / SPLIT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-img { aspect-ratio: 4/5; border-radius: var(--radius); background-size: cover; background-position: center; box-shadow: var(--shadow); }
.about-badge {
  position: absolute; bottom: -22px; right: -12px; background: var(--bg-card);
  border: 1px solid var(--line); padding: 18px 22px; border-radius: var(--radius-sm); text-align: center; box-shadow: var(--shadow);
}
.about-badge .accent { font-weight: 900; font-size: 1.8rem; display: block; }
.about-badge small { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.about-text p { color: var(--muted); margin-top: 16px; }
.about-text .section-title { margin-bottom: 8px; }
.check-list { list-style: none; margin: 26px 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  background: var(--blue); color: #fff; border-radius: 6px; display: grid; place-items: center; font-size: .8rem; font-weight: 900;
}

/* ============================================================
   CARDS (clases preview)
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .2s ease, border-color .2s ease; position: relative; overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.card:hover { transform: translateY(-6px); border-color: #34467a; }
.card:hover::after { transform: scaleX(1); }
.card-icon { font-size: 2.1rem; margin-bottom: 16px; }
.card h3 { font-weight: 800; font-size: 1.4rem; text-transform: uppercase; letter-spacing: -.01em; }
.card p { color: var(--muted); margin: 12px 0 20px; font-size: .98rem; }
.card-link { font-weight: 700; text-transform: uppercase; font-size: .82rem; letter-spacing: .05em; color: var(--blue); }
.card-link:hover { color: #fff; }

/* ============================================================
   CLASS DETAIL (clases.html) — filas alternadas
   ============================================================ */
.class-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.class-row:nth-child(even) .class-media { order: 2; }
.class-media { aspect-ratio: 16/11; border-radius: var(--radius); background-size: cover; background-position: center; border: 1px solid var(--line); }
.class-info .tag { display: inline-block; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); background: rgba(47,107,255,.12); border: 1px solid rgba(47,107,255,.3); padding: 5px 12px; border-radius: 3px; margin-bottom: 14px; }
.class-info h2 { font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem,3.5vw,2.6rem); letter-spacing: -.02em; }
.class-info p { color: var(--muted); margin-top: 14px; }
.class-info ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.class-info li { position: relative; padding-left: 24px; color: var(--muted); }
.class-info li::before { content: "→"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ============================================================
   PILLARS
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; background: linear-gradient(180deg, var(--bg-card), var(--bg)); }
.pillar-num { font-weight: 900; font-size: 2.6rem; color: var(--blue); line-height: 1; display: block; margin-bottom: 12px; letter-spacing: -.03em; }
.pillar h3 { font-weight: 800; text-transform: uppercase; font-size: 1.3rem; }
.pillar p { color: var(--muted); margin-top: 8px; font-size: .95rem; }

/* ============================================================
   SCHEDULE
   ============================================================ */
.schedule-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; }
.schedule-tab { font-family: var(--font); font-weight: 600; font-size: .9rem; padding: 10px 22px; border-radius: 3px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: .18s; }
.schedule-tab.active, .schedule-tab:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.schedule-panel { display: none; }
.schedule-panel.active { display: block; }
.schedule-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.schedule-table th, .schedule-table td { padding: 15px 12px; text-align: center; font-size: .92rem; border-bottom: 1px solid var(--line); }
.schedule-table thead th { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .92rem; background: var(--bg-card); color: #fff; }
.schedule-table thead th:first-child { color: var(--blue); }
.schedule-table tbody tr:hover { background: rgba(47,107,255,.05); }
.schedule-table td.hour { font-weight: 700; color: var(--blue); white-space: nowrap; }
.schedule-table td.off { color: #46557d; }
.schedule-table tbody td { color: var(--muted); font-weight: 500; }
.schedule-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 18px; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }
.price-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 30px; position: relative; transition: transform .2s ease; }
.price-card:hover { transform: translateY(-6px); }
.price-card.featured { background: linear-gradient(180deg, rgba(47,107,255,.12), var(--bg-card)); border-color: var(--blue); transform: scale(1.03); }
.price-card.featured:hover { transform: scale(1.03) translateY(-6px); }
.badge-popular { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; padding: 6px 16px; border-radius: 3px; }
.price-card h3 { font-weight: 800; text-transform: uppercase; font-size: 1.4rem; }
.price { font-weight: 900; font-size: 3rem; line-height: 1; margin: 16px 0 22px; display: flex; align-items: baseline; gap: 4px; letter-spacing: -.03em; }
.price .currency { font-size: 1.4rem; color: var(--blue); }
.price .period { font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.price-card ul { list-style: none; margin-bottom: 28px; display: grid; gap: 12px; }
.price-card li { position: relative; padding-left: 26px; color: var(--muted); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }
.price-card .per-person { display: inline-block; margin-top: -8px; margin-bottom: 8px; font-size: .78rem; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; }
.price-card .price small { font-size: .5em; }
.plan-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 30px; }

/* Franja de opciones por duración */
.plan-strip {
  margin-top: 44px; background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  border-radius: var(--radius); padding: 34px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.plan-strip-item { text-align: center; padding: 6px 16px; position: relative; }
.plan-strip-item + .plan-strip-item::before { content: ""; position: absolute; left: 0; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,.22); }
.ps-label { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; color: #fff; }
.ps-off { display: inline-block; margin-top: 5px; background: rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: .72rem; padding: 3px 10px; border-radius: 3px; letter-spacing: .05em; }
.ps-price { display: block; font-weight: 900; font-size: clamp(1.5rem,2.4vw,2rem); color: #fff; margin-top: 8px; letter-spacing: -.02em; }
.ps-sub { display: block; color: #dbe5ff; font-size: .82rem; margin-top: 2px; }

@media (max-width: 720px) {
  .plan-strip { grid-template-columns: repeat(2,1fr); gap: 22px 10px; }
  .plan-strip-item:nth-child(odd)::before { display: none; }
}

/* ============================================================
   COACHES
   ============================================================ */
.coaches-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.coach { text-align: center; }
.coach-img { aspect-ratio: 3/4; border-radius: var(--radius); margin-bottom: 16px; background-size: cover; background-position: center top; border: 1px solid var(--line); filter: grayscale(.3); transition: filter .3s ease, transform .3s ease; }
.coach:hover .coach-img { filter: grayscale(0); transform: translateY(-5px); }
.coach h3 { font-weight: 800; text-transform: uppercase; font-size: 1.2rem; }
.coach .role { color: var(--blue); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.coach .spec { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.coach .ig { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-weight: 600; font-size: .85rem; }
.coach .ig:hover { color: var(--blue); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.testi { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; }
.testi::before { content: "\201C"; color: var(--blue); font-size: 4rem; font-weight: 900; line-height: .6; position: absolute; top: 22px; right: 24px; opacity: .25; }
.testi p { font-size: 1.02rem; }
.testi footer { margin-top: 20px; }
.testi footer strong { display: block; font-weight: 800; text-transform: uppercase; font-size: 1rem; }
.testi footer span { color: var(--muted); font-size: .85rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s ease; }
.faq-item[open] { border-color: var(--blue); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--blue); font-size: 1.7rem; font-weight: 300; line-height: 1; transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 22px; }
.faq-body p { color: var(--muted); }

/* ============================================================
   SEDES
   ============================================================ */
.sede-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; }
.sede-card:nth-child(even) .sede-media { order: 2; }
.sede-media { min-height: 320px; background-size: cover; background-position: center; }
.sede-body { padding: 40px; }
.sede-body .tag { display: inline-block; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); background: rgba(47,107,255,.12); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.sede-body h2 { font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem,3vw,2.2rem); letter-spacing: -.02em; }
.sede-body .sede-meta { list-style: none; margin: 20px 0 24px; display: grid; gap: 12px; }
.sede-body .sede-meta li { display: flex; gap: 12px; color: var(--muted); }
.sede-body .sede-meta .ci-icon { font-size: 1.2rem; }
.sede-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 300px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 300px; border: 0; filter: grayscale(.4) invert(.92) hue-rotate(190deg); }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final { padding: 90px 0; position: relative; overflow: hidden; }
.cta-final .cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-final::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.92), rgba(47,107,255,.42)); }
.cta-inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-inner h2 { font-weight: 900; text-transform: uppercase; font-size: clamp(2rem,5vw,3.3rem); line-height: 1; letter-spacing: -.02em; }
.cta-inner p { color: #dbe5ff; font-size: 1.1rem; margin: 18px 0 30px; }

/* ============================================================
   CONTACT + FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-list { list-style: none; margin: 30px 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { font-size: 1.35rem; line-height: 1.4; }
.contact-list strong { font-weight: 700; }
.contact-list a:hover { color: var(--blue); }
.social-row { display: flex; gap: 14px; flex-wrap: wrap; }
.social-row a { border: 1px solid var(--line); padding: 10px 18px; border-radius: 3px; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; transition: .18s; }
.social-row a:hover { border-color: var(--blue); color: var(--blue); }

.form { display: grid; gap: 16px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.form label { font-weight: 600; font-size: .85rem; display: grid; gap: 7px; }
.form input, .form select, .form textarea {
  font-family: var(--font); font-size: 1rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; width: 100%; transition: border-color .18s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.form textarea { resize: vertical; min-height: 110px; }
.form-note { color: var(--muted); font-size: .82rem; }

/* ============================================================
   PREVIEW SECTIONS (home) helpers
   ============================================================ */
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head-row .section-lead { margin-top: 12px; }
.link-arrow { font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .04em; color: var(--blue); white-space: nowrap; }
.link-arrow:hover { color: #fff; }

/* ============================================================
   FOOTER (inyectado)
   ============================================================ */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 260px; }
.footer-col h4 { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; color: var(--muted); margin-bottom: 10px; font-size: .95rem; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 24px; text-align: center; }
.footer-bottom p { color: #6b7699; font-size: .85rem; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #0b3d1e; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .2s ease; }
.wa-float:hover { transform: scale(1.08); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-cue { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-media { max-width: 440px; }
  .cards-grid, .testi-grid { grid-template-columns: repeat(2,1fr); }
  .pillars { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-6px); }
  .coaches-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .class-row, .sede-card { grid-template-columns: 1fr; gap: 28px; }
  .class-row:nth-child(even) .class-media, .sede-card:nth-child(even) .sede-media { order: 0; }
  .sede-media { min-height: 240px; }
  .sede-body { padding: 30px; }
}

/* Nav → menú hamburguesa */
@media (max-width: 1024px) {
  .nav {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,10,11,.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px; transform: translateY(-140%); transition: transform .3s ease;
    max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav > a, .dropdown > button { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--text); width: 100%; text-align: left; }
  .nav .nav-cta { margin-top: 14px; border: 2px solid var(--blue); text-align: center; justify-content: center; color: var(--blue); background: transparent; }
  .nav-toggle { display: flex; }
  .dropdown { position: static; }
  .dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: transparent; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .dropdown:hover .dropdown-menu { transform: none; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 30px 20px; }
  .cards-grid, .testi-grid, .coaches-grid, .pillars { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 140px 0 70px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .about-badge { right: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .page-hero { padding: 130px 0 56px; }
}
