/* =========================================================
   M5 Health & Fitness — m5torrejon.com
   Estética de box: negro industrial, amarillo del logo real,
   tipografía condensada y mayúsculas. Contraste alto, sin
   florituras: lo que se ve en la nave se ve en la web.
   ========================================================= */

:root {
  /* Marca — amarillo muestreado del logo real (#d7db53) */
  --volt: #d7db53;
  --volt-hi: #e9ee71;
  --volt-dim: #a8ac3c;
  --volt-glow: rgba(215, 219, 83, .28);

  /* Neutros — nave industrial, no "app" blanca */
  --black: #0a0a0b;
  --coal: #121214;
  --steel: #1a1a1e;
  --steel-2: #232329;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .2);

  --white: #ffffff;
  --text: #ececee;
  --text-soft: #a3a3a9;
  --text-dim: #8b8b93;

  --wa: #25d366;

  --radius: 4px;
  --radius-lg: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .4);
  --shadow: 0 18px 40px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .7);

  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Anton', 'Barlow', Impact, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--white);
}

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* Eyebrow: etiqueta técnica con barra amarilla, tipo rotulación de nave */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .74rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--volt);
}
.eyebrow::before { content: ''; width: 22px; height: 3px; background: var(--volt); flex-shrink: 0; }

.section { padding: clamp(58px, 8vw, 108px) 0; }
.section-head { max-width: 660px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 16px 0 14px; }
.section-head h2 em { font-style: normal; color: var(--volt); }
.section-head p { color: var(--text-soft); font-size: 1.04rem; }

.section--alt { background: var(--coal); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 15px 28px; border-radius: var(--radius);
  cursor: pointer; border: 2px solid transparent;
  transition: background .22s var(--ease), color .22s, border-color .22s, transform .22s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--volt); color: #14140a; }
.btn-primary:hover { background: var(--volt-hi); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--volt); color: var(--volt); }
.btn-wa { background: var(--wa); color: #06331a; }
.btn-wa:hover { background: #33e276; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px 0; transition: padding .3s var(--ease), background .3s, box-shadow .3s;
}
.header::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 130px; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.8), rgba(0,0,0,0));
  z-index: 0; transition: opacity .3s;
}
.header.scrolled { background: rgba(10,10,11,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 22px rgba(0,0,0,.6); padding: 10px 0; }
.header.scrolled::before { opacity: 0; }
/* La barra de marca + hamburguesa siempre por encima del panel desplegable */
.header .nav { position: relative; z-index: 5; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Marca: color claro FIJO, porque la cabecera es oscura tanto sobre el hero
   como al hacer scroll — nunca hereda currentColor. */
.brand { display: flex; align-items: center; gap: 11px; color: var(--white); }
.brand img { width: 38px; height: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { font-family: var(--font-display); font-size: 1.32rem; letter-spacing: .04em; color: var(--white); }
.brand-txt span { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--volt); font-weight: 600; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.nav-links > a { color: rgba(255,255,255,.82); transition: color .2s; }
.nav-links > a:hover { color: var(--volt); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 12px 20px; font-size: .8rem; }

.burger { display: none; position: relative; background: none; border: 0; width: 30px; height: 30px; cursor: pointer; color: var(--white); }
.burger svg { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; transition: opacity .2s; }
.burger .icon-close { opacity: 0; }
.header.menu-open .burger .icon-menu { opacity: 0; }
.header.menu-open .burger .icon-close { opacity: 1; }

/* El panel que anima max-height NO lleva padding propio (el padding no se
   comprime por debajo de max-height y dejaría una barra tapando la cabecera).
   El padding real vive en .mobile-menu-inner. */
.mobile-menu {
  display: none;
  position: fixed; left: 0; right: 0; top: 0; z-index: 2;
  background: var(--coal); box-shadow: var(--shadow-lg);
  max-height: 0; overflow: hidden;
  transition: max-height .38s var(--ease);
}
.mobile-menu.open { max-height: 100vh; overflow-y: auto; }
.mobile-menu-inner { width: 100%; display: flex; flex-direction: column; gap: 0; padding: 84px 24px 26px; }
.mm-link { padding: 15px 4px; border-bottom: 1px solid var(--line); font-weight: 600; color: rgba(255,255,255,.9); text-transform: uppercase; font-size: .92rem; letter-spacing: .08em; }
.mm-link:hover { color: var(--volt); }
.mm-cta { margin-top: 18px; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .burger { display: block; }
  .mobile-menu { display: flex; flex-direction: column; }
}
@media (max-width: 420px) {
  .nav-cta .btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 120px 0 46px;
  background:
    linear-gradient(180deg, rgba(10,10,11,.72) 0%, rgba(10,10,11,.55) 40%, rgba(10,10,11,.96) 100%),
    url('img/box-clase.jpg') center 40% / cover no-repeat;
}
.hero-inner { max-width: 820px; }
.hero h1 { font-size: clamp(2.7rem, 9vw, 5.6rem); margin: 20px 0 0; line-height: 1.06; }
.hero h1 em { font-style: normal; color: var(--volt); }
.hero .lead { font-size: clamp(1rem, 2.4vw, 1.18rem); color: var(--text-soft); max-width: 560px; margin: 20px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; }
.hero-fact { display: flex; align-items: baseline; gap: 9px; font-size: .86rem; color: var(--text-soft); letter-spacing: .02em; }
.hero-fact b { font-family: var(--font-display); font-size: 1.35rem; color: var(--volt); letter-spacing: .02em; }
@media (max-width: 600px) { .hero-facts { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ---------- Franja de datos (separador hero → contenido) ----------
   Sustituye a la marquesina animada que había antes: misma función de corte
   visual, pero estática y con información que el hero no da. */
.factbar { background: var(--volt); color: #14140a; padding: 15px 0; }
.factbar-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 0;
}
.factbar-item {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 0 clamp(14px, 2.4vw, 26px);
  border-right: 1px solid rgba(20, 20, 10, .22);
}
.factbar-item:last-child { border-right: 0; }
.factbar-item svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 720px) {
  .factbar-row { justify-content: flex-start; }
  .factbar-item { width: 50%; border-right: 0; padding: 0 6px; font-size: .78rem; letter-spacing: .04em; }
}
@media (max-width: 380px) {
  .factbar-item { width: 100%; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .07s; }
.d2 { transition-delay: .14s; }
.d3 { transition-delay: .21s; }
.d4 { transition-delay: .28s; }

/* ---------- El box (texto + foto) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5/4; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--volt);
}
.about-text > p { color: var(--text-soft); margin-bottom: 14px; font-size: 1.02rem; }
.about-text .section-head { margin-bottom: 26px; }
.trait-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 26px; }
.trait { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.trait .num { font-family: var(--font-display); font-size: 1.05rem; color: var(--volt); flex-shrink: 0; width: 30px; }
.trait h3 { font-size: 1.02rem; margin-bottom: 3px; letter-spacing: .03em; }
.trait p { color: var(--text-soft); font-size: .92rem; line-height: 1.5; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 34px; } .about-photo { aspect-ratio: 16/10; } }

/* ---------- Actividades ---------- */
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.act { background: var(--black); padding: 32px 28px; position: relative; transition: background .25s; }
.section--alt .act { background: var(--coal); }
.act:hover { background: var(--steel); }
.act::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--volt); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease);
}
.act:hover::before { transform: scaleY(1); }
.act-ico { width: 40px; height: 40px; color: var(--volt); margin-bottom: 16px; }
.act-ico svg { width: 100%; height: 100%; }
.act h3 { font-size: 1.22rem; margin-bottom: 9px; letter-spacing: .03em; }
.act p { color: var(--text-soft); font-size: .93rem; line-height: 1.55; }
.act .act-tag { display: inline-block; margin-top: 14px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--volt); border: 1px solid var(--volt-dim); padding: 4px 10px; border-radius: var(--radius-pill); }

/* ---------- Horarios ---------- */
.sched-open { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; font-size: .92rem; color: var(--text-soft); }
.sched-open b { color: var(--white); font-weight: 600; }

.sched-grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--coal); -webkit-overflow-scrolling: touch; }
.section--alt .sched-grid-wrap { background: var(--black); }
.sched-grid { width: 100%; border-collapse: collapse; min-width: 460px; }
.sched-grid th, .sched-grid td { text-align: center; border-bottom: 1px solid var(--line); }
.sched-grid thead th { padding: 12px 6px; background: var(--steel); color: var(--text-soft); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sched-grid thead th:first-child { position: sticky; left: 0; z-index: 1; }
.sched-grid thead th abbr { text-decoration: none; }
.sched-grid tbody th {
  text-align: left; padding: 12px 16px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; color: var(--volt);
  white-space: nowrap; border-right: 1px solid var(--line); position: sticky; left: 0; background: var(--coal);
}
.section--alt .sched-grid tbody th { background: var(--black); }
.sched-grid td { padding: 12px 6px; font-size: .95rem; }
.sched-grid tbody tr:last-child th, .sched-grid tbody tr:last-child td { border-bottom: 0; }
.sched-grid tbody tr:hover td { background: rgba(255,255,255,.03); }
.sg-yes { color: var(--volt); font-weight: 700; }
.sg-no { color: var(--text-dim); }

.chip { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); color: var(--text-soft); }
.chip--class { background: var(--volt); border-color: var(--volt); color: #14140a; }
.chip--open { background: transparent; border-color: var(--volt-dim); color: var(--volt); }
.sched-note { color: var(--text-dim); font-size: .84rem; }

.sched-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; font-size: .84rem; color: var(--text-soft); align-items: center; }

.sched-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 26px; }
.sched-card { border: 1px solid var(--line); border-left: 3px solid var(--volt); border-radius: var(--radius); padding: 22px 24px; background: var(--coal); }
.section--alt .sched-card { background: var(--black); }
.sched-card h3 { font-size: 1.05rem; margin-bottom: 6px; letter-spacing: .03em; }
.sched-card p { color: var(--text-soft); font-size: .9rem; }
.sched-card b { color: var(--volt); font-weight: 600; }

@media (max-width: 640px) {
  .sched-grid thead th { padding: 10px 4px; font-size: .62rem; }
  .sched-grid tbody th { padding: 10px 12px; font-size: .95rem; }
  .sched-grid td { padding: 10px 4px; }
}

/* ---------- Tarifas ---------- */
.price-block { margin-bottom: 46px; }
.price-block > h3 {
  font-size: 1.05rem; letter-spacing: .16em; color: var(--volt);
  padding-bottom: 12px; border-bottom: 2px solid var(--volt); margin-bottom: 24px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap;
}
.price-block > h3 small { font-family: var(--font-body); font-size: .78rem; letter-spacing: .04em; text-transform: none; color: var(--text-dim); font-weight: 500; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.price {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px;
  background: var(--coal); position: relative; transition: border-color .25s, transform .25s var(--ease);
}
.section--alt .price { background: var(--black); }
.price:hover { border-color: var(--volt-dim); transform: translateY(-3px); }
.price.is-featured { border-color: var(--volt); box-shadow: 0 0 0 1px var(--volt-glow), var(--shadow-sm); }
.price-flag { position: absolute; top: -11px; left: 22px; background: var(--volt); color: #14140a; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 4px 11px; border-radius: var(--radius-pill); }
.price h4 { font-size: 1.1rem; margin-bottom: 12px; letter-spacing: .03em; }
.price .amount { display: flex; align-items: baseline; gap: 5px; }
.price .amount b { font-family: var(--font-display); font-size: 2.5rem; color: var(--white); line-height: 1; }
.price .amount span { font-size: .84rem; color: var(--text-dim); font-weight: 600; }
.price p { color: var(--text-soft); font-size: .87rem; margin-top: 12px; line-height: 1.5; }

.price-note {
  border-left: 3px solid var(--volt); background: var(--steel);
  padding: 18px 22px; color: var(--text-soft); font-size: .9rem; margin-top: 8px;
}
.price-note b { color: var(--white); font-weight: 600; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--black); padding: 34px 20px; text-align: center; }
.section--alt .stat { background: var(--coal); }
.stat .num { font-family: var(--font-display); font-size: clamp(2.1rem, 4.4vw, 3.1rem); color: var(--volt); line-height: 1; }
.stat .lbl { color: var(--text-soft); font-size: .82rem; margin-top: 10px; letter-spacing: .03em; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Coaches ---------- */
.coaches { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.coach { display: grid; grid-template-columns: 130px 1fr; gap: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--coal); align-items: start; }
.section--alt .coach { background: var(--black); }
.coach-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; border: 2px solid var(--volt-dim); }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; }
.coach h3 { font-size: 1.3rem; letter-spacing: .03em; }
.coach .role { color: var(--volt); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 5px 0 12px; }
.coach ul { list-style: none; display: grid; gap: 6px; }
.coach li { color: var(--text-soft); font-size: .87rem; padding-left: 16px; position: relative; line-height: 1.45; }
.coach li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 2px; background: var(--volt); }
@media (max-width: 520px) { .coach { grid-template-columns: 1fr; } .coach-photo { width: 120px; } }

/* ---------- Comunidad ---------- */
.community { display: grid; grid-template-columns: 1.15fr 1fr; gap: 46px; align-items: center; }
.community-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.community-photo img { width: 100%; }
.quote { border-left: 3px solid var(--volt); padding-left: 22px; margin: 24px 0; }
.quote p { font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: var(--white); line-height: 1.24; text-transform: uppercase; }
@media (max-width: 900px) { .community { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery figure { border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; filter: saturate(.9) contrast(1.05); }
.gallery figure:hover img { transform: scale(1.06); filter: saturate(1.05); }
@media (max-width: 880px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cómo empezar ---------- */
/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); background: var(--coal); }
.section--alt .contact-card { background: var(--black); }
.contact-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 14px 0 12px; }
.contact-card > p { color: var(--text-soft); margin-bottom: 24px; }
.contact-line { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); transition: color .2s; }
.contact-line:hover b { color: var(--volt); }
.contact-line .ico { width: 22px; height: 22px; color: var(--volt); flex-shrink: 0; }
.contact-line .ico svg { width: 100%; height: 100%; }
.contact-line small { display: block; color: var(--text-dim); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-line b { font-size: 1.02rem; font-weight: 600; color: var(--white); transition: color .2s; }
.contact-actions { display: flex; gap: 12px; margin: 26px 0 22px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--white); transition: background .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--volt); color: #14140a; border-color: var(--volt); }
.socials svg { width: 17px; height: 17px; }

.map-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; border: 1px solid var(--line); }
.map-card iframe { width: 100%; height: 100%; border: 0; min-height: 340px; filter: invert(.92) hue-rotate(180deg) contrast(.92); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(180deg, rgba(10,10,11,.9), rgba(10,10,11,.96)), url('img/box-general.jpg') center 55% / cover no-repeat fixed;
  text-align: center;
}
@media (max-width: 900px) { .cta-final { background-attachment: scroll; } }
.cta-final h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); margin: 16px 0 14px; }
.cta-final h2 em { font-style: normal; color: var(--volt); }
.cta-final p { color: var(--text-soft); max-width: 540px; margin: 0 auto 28px; }
.cta-final .eyebrow { justify-content: center; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--black); border-top: 1px solid var(--line); padding: 52px 0 24px; color: var(--text-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 38px; margin-bottom: 36px; }
.footer p { font-size: .92rem; margin-top: 14px; max-width: 40ch; }
.footer h5 { color: var(--white); font-family: var(--font-display); font-size: .95rem; letter-spacing: .12em; margin-bottom: 15px; text-transform: uppercase; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: .92rem; }
.footer a:hover { color: var(--volt); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--text-dim); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- WhatsApp flotante ---------- */
/* El negocio SÍ tiene WhatsApp publicado (692 565 708, botón propio en su web
   actual), así que el CTA persistente en móvil es WhatsApp. */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,6,.96); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(92vw, 1040px); max-height: 86vh; border-radius: var(--radius); }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid var(--line-strong); border-radius: 50%;
  width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--volt); color: #14140a; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Tarjeta-CTA que completa la rejilla de actividades */
.act--cta { display: flex; flex-direction: column; justify-content: center; gap: 4px; background: var(--steel) !important; }
.act--cta::before { transform: scaleY(1); }
.act--cta h3 { color: var(--volt); }
.act--cta p { margin-bottom: 18px; }
.act--cta .btn { align-self: flex-start; }

/* Ficha de un solo coach: la rejilla auto-fit estiraría la tarjeta a todo el
   ancho, así que se limita y se centra. */
.coaches--solo { grid-template-columns: minmax(0, 640px); justify-content: center; }

/* ---------- Testimonios (carrusel) ---------- */
.testi { display: flex; align-items: center; gap: 18px; }
.testi-viewport { flex: 1; overflow: hidden; }
.testi-track { display: flex; transition: transform .5s var(--ease); }
.testi-card {
  flex: 0 0 100%; max-width: 100%;
  border: 1px solid var(--line); border-left: 3px solid var(--volt); border-radius: var(--radius-lg);
  background: var(--coal); padding: clamp(28px, 4vw, 44px);
  text-align: center;
}
.section--alt .testi-card { background: var(--black); }
.testi-quote {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem); line-height: 1.35;
  color: var(--white); text-transform: none; letter-spacing: .005em;
  max-width: 62ch; margin-inline: auto;
}
.testi-author { margin-top: 22px; color: var(--volt); font-weight: 700; letter-spacing: .04em; }
.testi-author span { display: block; margin-top: 4px; color: var(--text-dim); font-weight: 500; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.testi-nav {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: transparent; color: var(--white); border: 1px solid var(--line-strong);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.testi-nav svg { width: 20px; height: 20px; }
.testi-nav:hover { background: var(--volt); color: #14140a; border-color: var(--volt); }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.testi-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--line-strong); cursor: pointer; transition: background .2s, width .2s; }
.testi-dot.is-active { width: 24px; background: var(--volt); }
@media (max-width: 640px) {
  .testi { gap: 10px; }
  .testi-nav { width: 38px; height: 38px; }
  .testi-nav svg { width: 17px; height: 17px; }
}

/* ==========================================================
   CORRECCIONES DE LA AUDITORÍA UX/UI (2026-08-20)
   Todo lo de aquí abajo sale de medir en Chromium a 320, 360,
   375, 390 y 414 px. Cada bloque dice qué número arreglaba.
   ========================================================== */

/* [1] Sin JavaScript la página se veía VACÍA: los 88 elementos .reveal se
   quedaban a opacity 0 para siempre. Ahora el estado oculto solo existe si el
   <head> ha marcado la raíz con .js, así que sin JS todo se ve. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* [2] Por debajo de 390 px el navegador ensanchaba el viewport y la web se
   abría "alejada" (con pantalla de 360, document.scrollWidth daba 390). Dos
   causas: el nowrap de .btn con "Reservar clase en la zona de socios" (370 px
   sin poder partirse) y el email de contacto, que no tiene puntos de corte.
   Comprobado tras el arreglo: 320→320, 360→360, 375→375, 390→390. */
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; }
}
.contact-line b,
.contact-line small,
.footer ul a { overflow-wrap: anywhere; }

/* [5] En pantallas cortas (iPhone SE, 375×667) el hero medía 807 px contra 694
   de viewport: los tres datos de abajo quedaban fuera de pantalla. */
@media (max-width: 900px) and (max-height: 740px) {
  .hero { padding: 92px 0 24px; }
  .hero h1 { font-size: clamp(2.1rem, 7.4vw, 3rem); margin-top: 14px; }
  .hero .lead { font-size: .97rem; margin: 14px 0 20px; }
  .hero-actions { margin-bottom: 18px; gap: 10px; }
  .hero-facts { padding-top: 14px; gap: 8px; }
  .hero .eyebrow { font-size: .72rem; letter-spacing: .14em; }
}

/* [6] Con el menú móvil abierto, el fondo seguía haciendo scroll (scrollY
   pasaba de 0 a 600), así que al cerrarlo aparecías en otro sitio. */
html.menu-abierto, body.menu-abierto { overflow: hidden; }

/* [8] Objetivos táctiles por debajo de lo recomendado: la hamburguesa medía
   30×30 y los iconos sociales 40×40. Mínimo 44×44 (Apple) / 48×48 (Google). */
.burger { width: 44px; height: 44px; margin-right: -9px; }
.burger svg { width: 26px; height: 26px; }
.socials a { width: 44px; height: 44px; }

/* [9] Textos por debajo de 12 px: el "Health & Fitness" del logo estaba a
   9,9 px y las etiquetas a 11,5. */
.brand-txt span { font-size: .7rem; letter-spacing: .18em; }
.eyebrow { font-size: .78rem; }
.act .act-tag { font-size: .76rem; }
.coach .role { font-size: .8rem; }
.chip { font-size: .81rem; }
.stat .lbl { font-size: .85rem; }
.sched-note { font-size: .88rem; }
.price-block > h3 small { font-size: .82rem; }
.contact-line small { font-size: .8rem; }
.footer-bottom { font-size: .84rem; }

/* [10] No había ninguna regla de foco en todo el CSS: quien navega con teclado
   no veía dónde estaba. */
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 2px; }
.btn:focus-visible, .wa-float:focus-visible, .gallery figure:focus-visible { outline-offset: 4px; }

/* [13] El botón flotante quedaba pegado al indicador de inicio del iPhone. */
.wa-float { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }

/* [14] La página medía 17.524 px (20,8 pantallas de móvil): se recorta el aire
   vertical en pantallas pequeñas sin tocar el ritmo del escritorio. */
@media (max-width: 600px) {
  .section { padding: clamp(46px, 7vw, 108px) 0; }
  .section-head { margin-bottom: 34px; }
}

/* [4] Fondos: el hero servía box-clase.jpg (1800 px, 334 KB) a pantallas de
   390, y el CTA final box-general.jpg (1600 px, 280 KB). */
@media (max-width: 900px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(10,10,11,.72) 0%, rgba(10,10,11,.55) 40%, rgba(10,10,11,.96) 100%),
      url('img/box-clase-900.jpg');
  }
  .cta-final {
    background-image:
      linear-gradient(180deg, rgba(10,10,11,.9), rgba(10,10,11,.96)),
      url('img/box-general-800.jpg');
  }
}

/* [3] El iframe de Google Maps descargaba 1,7 MB de JavaScript (places.js,
   util.js, main.js...) y cookies de terceros nada más llegar a contacto, en una
   web sin banner de cookies. Ahora se carga solo si el visitante lo pide. */
.map-card { display: grid; place-items: center; }
.map-facade {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; padding: 32px 24px; width: 100%;
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255,255,255,.04) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.04) 38px 39px);
}
.map-facade .pin { width: 40px; height: 40px; color: var(--volt); }
.map-facade .pin svg { width: 100%; height: 100%; }
.map-facade p { color: var(--text); font-size: 1rem; line-height: 1.45; }
.map-facade p span { display: block; color: var(--text-soft); font-size: .9rem; }
.map-facade small { color: var(--text-dim); font-size: .8rem; max-width: 30ch; }

/* [9] Etiqueta de la tarifa destacada: 10,6 px era demasiado poco. */
.price-flag { font-size: .72rem; }

/* El iframe del mapa, al inyectarse, ocupa toda la tarjeta (que ahora es una
   rejilla centrada para la fachada previa). */
.map-card iframe { grid-area: 1 / 1; }

/* [8] El enlace de marca medía 40 px de alto; 44 es el mínimo cómodo. */
.brand { min-height: 44px; }

/* Enlaces legales del pie. Obligatorios (art. 10 LSSI): van siempre visibles,
   no escondidos detrás de un desplegable. */
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 4px 24px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.footer-legal a { font-size: .88rem; color: var(--text-soft); min-height: 44px; display: inline-flex; align-items: center; }
.footer-legal a:hover { color: var(--volt); }
.footer-legal + .footer-bottom { border-top: 0; padding-top: 4px; }
