/* ==========================================================================
   APEX Training Club
   Identidad fija oscura. Sin toggle, sin prefers-color-scheme.
   ========================================================================== */

/* ---------- Fuentes (auto-hospedadas, variables) ---------- */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("assets/fonts/bigshoulders-latin.woff2?v=e1ffd660") format("woff2");
  font-weight: 500 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("assets/fonts/bigshoulders-latin-ext.woff2?v=030b66f1") format("woff2");
  font-weight: 500 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2?v=de2f1fe8") format("woff2");
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-ext.woff2?v=589f7bc0") format("woff2");
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Superficies: carbón frío, alineado al acero del logo */
  --c-bg: #0c0d0f;
  --c-bg-2: #111215;
  --c-surface: #17181c;
  --c-surface-2: #1e2025;
  --c-line: rgba(236, 237, 239, 0.1);
  --c-line-strong: rgba(236, 237, 239, 0.2);

  /* Texto (todos AA sobre --c-bg) */
  --c-text: #ecedef;      /* 17.1:1 */
  --c-text-2: #a9acb2;    /* 8.4:1 */
  --c-text-3: #80848b;    /* 5.1:1 */
  --c-steel: #c9ccd1;     /* metal del logo */

  /* Acento único: "Ignición", hierro al rojo */
  --c-accent: #f4552a;    /* 5.3:1 sobre --c-bg */
  --c-accent-hi: #ff6a3f;
  --c-accent-ink: #140702; /* texto sobre acento: 5.6:1 */
  --c-accent-soft: rgba(244, 85, 42, 0.12);
  --c-ok: #5fd08a;        /* solo estado "abierto ahora" */

  /* Tipografía */
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --fs-h1: clamp(4rem, 2.1rem + 7.4vw, 8.25rem);
  --fs-h2: clamp(2.75rem, 1.55rem + 4.6vw, 5.75rem);
  --fs-h2-xl: clamp(3rem, 1.4rem + 6vw, 7.25rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);

  /* Espaciado y forma */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1320px;
  --section-y: clamp(5.5rem, 3rem + 8vw, 10rem);
  --r: 4px;          /* un solo radio en todo el sitio: industrial, casi recto */
  --header-h: 76px;
  --header-h-sm: 62px;

  /* Movimiento (criterio Emil Kowalski: ease-out fuerte, sin rebote) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 160ms;
  --t-ui: 220ms;
  --t-reveal: 800ms;

  /* Capas */
  --z-header: 50;
  --z-grain: 60;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-sm) + 12px);
  background: var(--c-bg);
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }
picture { display: contents; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--c-accent); color: var(--c-accent-ink); }

/* Grano de película: capa fija, sin repintado en scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--c-accent); color: var(--c-accent-ink);
  padding: 10px 14px; border-radius: var(--r); font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Utilidades ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.accent { color: var(--c-accent); }
.i { width: 20px; height: 20px; flex: none; }
.i--lg { width: 30px; height: 30px; }

.label {
  font-family: var(--f-body);
  font-stretch: 125%;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-2);
}

.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 0.9;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h2--sm { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem); font-family: var(--f-body); font-stretch: 125%; letter-spacing: 0.2em; font-weight: 600; color: var(--c-text-2); line-height: 1.4; }
.h2--xl { font-size: var(--fs-h2-xl); }
.label + .h2 { margin-top: 1.1rem; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-text-2);
  max-width: 52ch;
  text-wrap: pretty;
}

/* ---------- Botones ---------- */
.btn {
  --h: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  height: var(--h);
  padding-inline: 1.5rem;
  border-radius: var(--r);
  font-family: var(--f-body);
  font-stretch: 110%;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    transform var(--t-press) var(--ease-out),
    background-color var(--t-ui) ease,
    border-color var(--t-ui) ease,
    color var(--t-ui) ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn .i { width: 18px; height: 18px; transition: transform var(--t-ui) var(--ease-out); }
.btn--primary { background: var(--c-accent); color: var(--c-accent-ink); }
.btn--ghost { border-color: var(--c-line-strong); color: var(--c-text); background: rgba(12, 13, 15, 0.3); }
.btn--sm { --h: 42px; padding-inline: 1.1rem; font-size: 0.86rem; }
.btn--lg { --h: 60px; padding-inline: 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--c-accent-hi); }
  .btn--ghost:hover { border-color: var(--c-steel); background: rgba(236, 237, 239, 0.05); }
  .btn:hover .i { transform: translate(2px, -2px); }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 80px; pointer-events: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: background-color 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(12, 13, 15, 0.7), rgba(12, 13, 15, 0));
  /* Sin esto el degradado se repite dentro del borde transparente y pinta una línea oscura */
  background-repeat: no-repeat;
  background-origin: border-box;
}
.site-header.is-scrolled {
  background: rgba(12, 13, 15, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--c-line);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}
.site-header.menu-open {
  /* backdrop-filter crearía un containing block y encogería el menú fixed */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--c-bg);
}
.bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height 280ms var(--ease-out);
}
.is-scrolled .bar { height: var(--header-h-sm); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--c-steel); margin-right: auto; }
.brand__mark { width: 32px; height: 32px; transition: width 280ms var(--ease-out), height 280ms var(--ease-out); }
.is-scrolled .brand__mark { width: 28px; height: 28px; }
.brand__word {
  display: flex; flex-direction: column;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--c-text);
}
.brand__word small {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: var(--c-text-2);
  margin-top: 5px;
  text-transform: uppercase;
}

.nav { display: none; }
.nav ul { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-2);
  padding-block: 0.5rem;
  transition: color var(--t-ui) ease;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-out);
}
.nav a[aria-current="true"] { color: var(--c-text); }
.nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--c-text); } }

.header-cta { display: none; }

.menu-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r);
  transition: transform var(--t-press) var(--ease-out);
}
.menu-btn:active { transform: scale(0.95); }
.menu-btn .i { grid-area: 1 / 1; transition: opacity 180ms ease, transform 220ms var(--ease-out); }
.menu-btn .i:last-child { opacity: 0; transform: rotate(-45deg) scale(0.9); }
.menu-btn[aria-expanded="true"] .i:first-child { opacity: 0; transform: rotate(45deg) scale(0.9); }
.menu-btn[aria-expanded="true"] .i:last-child { opacity: 1; transform: none; }

.mobile-menu {
  position: fixed;
  inset: var(--header-h-sm) 0 0 0;
  background: var(--c-bg);
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 280ms var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu li { border-bottom: 1px solid var(--c-line); }
.mobile-menu nav a {
  display: block;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  text-transform: uppercase;
  padding-block: 1rem;
}
.mobile-menu li { opacity: 0; transform: translateY(10px); transition: opacity 300ms ease, transform 400ms var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms + 60ms); }
.mobile-menu.is-open li { opacity: 1; transform: none; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none !important; }
  .bar { gap: clamp(1.25rem, 2.4vw, 2.75rem); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; isolation: isolate; }

.hero__media {
  position: relative;
  height: 60svh;
  min-height: 380px;
  overflow: hidden;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 13, 15, 0.55) 0%, rgba(12, 13, 15, 0) 26%),
    linear-gradient(0deg, var(--c-bg) 0%, rgba(12, 13, 15, 0.7) 22%, rgba(12, 13, 15, 0) 55%);
}

.hero__inner { position: relative; z-index: 1; }
.hero__content {
  margin-top: -9svh;
  padding-bottom: 3.5rem;
  display: flex; flex-direction: column;
}
.hero__eyebrow { color: var(--c-steel); }
.hero__title {
  margin-top: 1rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line > span { display: block; }
.hero__sub {
  margin-top: 1.5rem;
  max-width: 40ch;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-text-2);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 3rem;
  border-top: 1px solid var(--c-line);
}
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.1rem 0 0.2rem;
}
.stat:nth-child(odd) { padding-right: 1rem; }
.stat:nth-child(n+3) { border-top: 1px solid var(--c-line); margin-top: 0.9rem; }
.stat dd {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 1.7rem + 1.6vw, 3rem);
  line-height: 1;
  color: var(--c-steel);
  font-variant-numeric: tabular-nums;
}
.stat__suffix { color: var(--c-accent); margin-left: 2px; }
.stat dt { font-size: 0.8rem; color: var(--c-text-2); line-height: 1.35; }

@media (min-width: 640px) {
  .hero__ctas .btn { flex: none; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(n+3) { border-top: 0; margin-top: 0; }
  .stat { padding-right: 1rem; }
}

@media (min-width: 1024px) {
  .hero { min-height: 100svh; display: flex; align-items: stretch; }
  .hero__media {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 52vw;
    height: auto;
  }
  .hero__media img { object-position: 52% 50%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, var(--c-bg) 0%, rgba(12, 13, 15, 0.55) 16%, rgba(12, 13, 15, 0) 42%),
      linear-gradient(180deg, rgba(12, 13, 15, 0.55) 0%, rgba(12, 13, 15, 0) 22%),
      linear-gradient(0deg, rgba(12, 13, 15, 0.8) 0%, rgba(12, 13, 15, 0) 26%);
  }
  .hero__inner { display: flex; align-items: center; }
  .hero__content {
    margin-top: 0;
    width: 54%;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 3rem;
  }
  .stats { margin-top: clamp(2.5rem, 6vh, 4.5rem); max-width: 600px; }
  /* El título escala también con la altura: estadísticas siempre visibles sin F11 */
  .hero__title { font-size: min(var(--fs-h1), 14.5svh); }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .hero__content { padding-top: calc(var(--header-h) + 1rem); padding-bottom: 1.5rem; }
  .hero__title { margin-top: 0.75rem; }
  .hero__sub { margin-top: 1rem; max-width: 50ch; font-size: 1.02rem; }
  .hero__ctas { margin-top: 1.4rem; }
  .hero__ctas .btn { --h: 50px; }
  .stats { margin-top: 1.5rem; }
  .stat { padding-top: 0.8rem; }
  .stat dd { font-size: 2.2rem; }
}

/* Entrada del hero (una sola vez, en carga) */
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__eyebrow, .js .hero__sub, .js .hero__ctas { opacity: 0; transform: translateY(14px); }
.js .hero__media { clip-path: inset(0 0 0 0); }
.js .hero__media img { transform: scale(1.08); }
@media (min-width: 1024px) { .js .hero__media { clip-path: inset(0 0 0 100%); } }

.hero.is-loaded .hero__title .line > span {
  transform: none;
  transition: transform 1000ms var(--ease-out);
}
.hero.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 90ms; }
.hero.is-loaded .hero__eyebrow,
.hero.is-loaded .hero__sub,
.hero.is-loaded .hero__ctas {
  opacity: 1; transform: none;
  transition: opacity 700ms ease, transform 900ms var(--ease-out);
}
.hero.is-loaded .hero__sub { transition-delay: 260ms; }
.hero.is-loaded .hero__ctas { transition-delay: 340ms; }
.hero.is-loaded .hero__media { clip-path: inset(0 0 0 0); transition: clip-path 1200ms var(--ease-in-out); }
.hero.is-loaded .hero__media img { transform: none; transition: transform 1800ms var(--ease-out); }

/* ==========================================================================
   REVEAL AL SCROLL
   ========================================================================== */
.js [data-reveal],
.js [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform var(--t-reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
/* El recorte va en el hijo: si se recorta el elemento observado, IntersectionObserver nunca lo detecta */
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"]:not(.is-in) { background: transparent; border-color: transparent; }
.js [data-reveal="clip"] :is(img, iframe) {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 900ms var(--ease-in-out);
}
.js [data-reveal="clip"] img { transform: scale(1.08); transition: clip-path 900ms var(--ease-in-out), transform 1300ms var(--ease-out); }
.js [data-reveal].is-in,
.js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in :is(img, iframe) { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"].is-in img { transform: none; }

/* ==========================================================================
   PROGRAMAS (bento espejado)
   ========================================================================== */
.sec-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.bento { display: grid; gap: 12px; grid-template-columns: 1fr; }
.prog {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r);
  background: var(--c-surface);
  aspect-ratio: 4 / 5;
  min-height: 360px;
}
.prog img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1000ms var(--ease-out);
}
.prog::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 13, 15, 0.05) 0%, rgba(12, 13, 15, 0) 22%, rgba(12, 13, 15, 0.72) 55%, rgba(12, 13, 15, 0.96) 100%);
}
.prog::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease-out);
}
.prog__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}
.prog__meta {
  font-stretch: 125%;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-steel);
}
.prog__title {
  margin-top: 0.6rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}
  .prog__meta, .prog__title { text-shadow: 0 1px 12px rgba(12, 13, 15, 0.6); }
.prog__desc { margin-top: 0.65rem; color: #c3c6cb; font-size: 0.95rem; line-height: 1.5; max-width: 42ch; }
.prog__go {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(12, 13, 15, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(236, 237, 239, 0.18);
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease, transform 300ms var(--ease-out), border-color var(--t-ui) ease;
}
.prog__go .i { width: 18px; height: 18px; }
.prog:active { transform: scale(0.99); transition: transform var(--t-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .prog:hover img { transform: scale(1.05); }
  .prog:hover::after { transform: scaleX(1); }
  .prog:hover .prog__go { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink); transform: rotate(45deg); }
}

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .prog { aspect-ratio: auto; min-height: 380px; }
  .prog--fuerza, .prog--personal { grid-column: span 2; min-height: 460px; }
  .prog--fuerza img { object-position: 50% 35%; }
  .prog--personal img { object-position: 50% 30%; }
}
@media (min-width: 1024px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(280px, 24vw, 330px);
    gap: 14px;
  }
  .prog { min-height: 0; }
  .prog--fuerza    { grid-column: 1 / 8;  grid-row: 1 / 3; }
  .prog--funcional { grid-column: 8 / 13; grid-row: 1; }
  .prog--boxeo     { grid-column: 8 / 13; grid-row: 2; }
  .prog--yoga      { grid-column: 1 / 6;  grid-row: 3; }
  .prog--recovery  { grid-column: 1 / 6;  grid-row: 4; }
  .prog--personal  { grid-column: 6 / 13; grid-row: 3 / 5; }
  .prog--fuerza img { object-position: 55% 40%; }
  .prog--funcional img { object-position: 60% 45%; }
  .prog--boxeo img { object-position: 50% 30%; }
  .prog--yoga img { object-position: 50% 45%; }
  .prog--recovery img { object-position: 40% 55%; }
  .prog--personal img { object-position: 50% 40%; }
  .prog--fuerza .prog__title, .prog--personal .prog__title { font-size: clamp(2.75rem, 1.5rem + 2.6vw, 4rem); }
}

/* Reveal propio de las tarjetas: la foto "asienta" */
.js .bento > .prog img { transform: scale(1.14); }
.js .bento.is-in > .prog img { transform: none; transition: transform 1400ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
@media (hover: hover) and (pointer: fine) {
  .js .bento.is-in > .prog:hover img { transform: scale(1.05); transition-delay: 0ms; transition-duration: 1000ms; }
}

/* ==========================================================================
   POR QUÉ APEX
   ========================================================================== */
.why { background: var(--c-bg-2); border-block: 1px solid var(--c-line); }
.why__title { font-size: var(--fs-h2-xl); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.why__grid { display: grid; gap: 2.5rem; }
.why__item { position: relative; padding-top: 1.75rem; }
.why__item::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--c-line-strong);
}
.why__item::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 56px; height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + 250ms);
}
.why__grid.is-in .why__item::after, html:not(.js) .why__item::after { transform: scaleX(1); }
.why__item .i { color: var(--c-accent); stroke-width: 1.6; }
.why__item h3 {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  font-stretch: 105%;
}
.why__item p { margin-top: 0.6rem; color: var(--c-text-2); font-size: 0.97rem; }
@media (min-width: 640px) { .why__grid { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } }
@media (min-width: 1024px) { .why__grid { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   ENTRENADOR
   ========================================================================== */
.coach__grid { display: grid; gap: 2.5rem; }
.coach__photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  aspect-ratio: 4 / 5;
  background: var(--c-surface);
}
.coach__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.coach__body { display: flex; flex-direction: column; }
.coach__name {
  margin-top: 1rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-h2-xl);
  line-height: 0.88;
  text-transform: uppercase;
}
.coach__role {
  margin-top: 0.9rem;
  font-stretch: 125%;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.coach__bio { margin-top: 1.75rem; display: grid; gap: 1rem; color: var(--c-text-2); max-width: 56ch; }
.certs {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  overflow: hidden;
}
.certs li { background: var(--c-bg); padding: 1.1rem 1.1rem 1.2rem; display: grid; gap: 0.3rem; }
.certs strong {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--c-steel);
}
.certs span { font-size: 0.84rem; color: var(--c-text-2); line-height: 1.4; }
.coach__quote {
  margin-top: 2.25rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--c-accent);
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.45;
  font-weight: 500;
  max-width: 42ch;
  text-wrap: pretty;
}
@media (min-width: 900px) {
  .coach__grid { grid-template-columns: 6fr 1fr 6fr; align-items: center; }
  .coach__photo { grid-column: 1; }
  .coach__body { grid-column: 3; }
}

/* ==========================================================================
   INSTALACIONES
   ========================================================================== */
.facility { padding-top: 0; }
.facility__grid { display: grid; gap: 2.5rem; }
.facility__body .lead { margin-top: 1.5rem; }
.amenities { margin-top: 2.5rem; border-top: 1px solid var(--c-line); }
.amenities li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--c-line);
}
.amenities .i {
  width: 44px; height: 44px;
  padding: 11px;
  border-radius: var(--r);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  stroke-width: 1.7;
}
.amenities h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.amenities p { color: var(--c-text-2); font-size: 0.93rem; margin-top: 0.15rem; }
.facility__photo {
  overflow: hidden;
  border-radius: var(--r);
  aspect-ratio: 4 / 5;
  background: var(--c-surface);
}
.facility__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (min-width: 900px) {
  .facility__grid { grid-template-columns: 6fr 1fr 6fr; align-items: center; }
  .facility__photo { aspect-ratio: auto; align-self: stretch; min-height: 560px; }
  .facility__body { grid-column: 1; }
  .facility__photo { grid-column: 3; }
}

/* ==========================================================================
   MEMBRESÍAS
   ========================================================================== */
.pricing { background: var(--c-bg-2); border-block: 1px solid var(--c-line); overflow: hidden; }
.pricing::before {
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(244, 85, 42, 0.1), rgba(244, 85, 42, 0));
  pointer-events: none;
}
.pricing .wrap { position: relative; }
.pricing__head { display: grid; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.billing {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r);
  background: var(--c-bg);
  justify-self: start;
  align-self: end;
}
.billing button {
  position: relative; z-index: 1;
  height: 44px;
  padding-inline: 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text-2);
  transition: color var(--t-ui) ease;
  white-space: nowrap;
}
.billing button em { font-style: normal; color: var(--c-accent); margin-left: 0.25rem; transition: color var(--t-ui) ease; }
.billing button[aria-checked="true"] { color: var(--c-accent-ink); }
.billing button[aria-checked="true"] em { color: var(--c-accent-ink); }
.billing__thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 2px;
  background: var(--c-accent);
  transition: transform 320ms var(--ease-out);
}
.billing[data-state="annual"] .billing__thumb { transform: translateX(100%); }

.plans { display: grid; gap: 14px; align-items: stretch; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
}
.plan--featured {
  background: linear-gradient(180deg, rgba(244, 85, 42, 0.12) 0%, var(--c-surface-2) 36%);
  border-color: rgba(244, 85, 42, 0.55);
  box-shadow: 0 30px 60px -30px rgba(244, 85, 42, 0.35);
}
.plan__badge {
  position: absolute; top: 0; right: clamp(1.5rem, 2.5vw, 2.25rem);
  transform: translateY(-50%);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-stretch: 125%;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: 2px;
}
.plan__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1;
  text-transform: uppercase;
}
.plan__tag { margin-top: 0.5rem; color: var(--c-text-2); font-size: 0.93rem; min-height: 2.9em; }
.plan__price {
  margin-top: 1.75rem;
  display: flex; align-items: flex-start;
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.85;
}
.plan__cur { font-size: 1.6rem; margin-top: 0.35rem; margin-right: 0.2rem; color: var(--c-text-2); }
.plan__amount { font-size: clamp(4rem, 3.3rem + 2vw, 5.25rem); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.plan__per { align-self: flex-end; font-family: var(--f-body); font-weight: 500; font-size: 0.9rem; color: var(--c-text-2); margin-left: 0.4rem; margin-bottom: 0.35rem; }
.plan__note { margin-top: 0.75rem; font-size: 0.84rem; color: var(--c-text-3); min-height: 1.4em; }
.plan .btn { margin-top: 1.5rem; }
.plan__list { margin-top: 1.75rem; border-top: 1px solid var(--c-line); padding-top: 0.5rem; display: grid; }
.plan__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.7rem;
  font-size: 0.92rem;
}
.plan__list li + li { border-top: 1px dashed rgba(236, 237, 239, 0.07); }
.plan__list b { font-weight: 600; text-align: right; color: var(--c-text); }
.plan__list .i { width: 18px; height: 18px; color: var(--c-accent); stroke-width: 2.4; }
.plan__list .is-off { color: var(--c-text-3); }
.plan__list .is-off .i { color: var(--c-text-3); }
.pricing__foot { margin-top: 2rem; font-size: 0.86rem; color: var(--c-text-3); }

.plan__amount.is-ticking { color: var(--c-steel); }

@media (min-width: 768px) {
  .pricing__head { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 1024px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 1.5rem; }
  .plan--featured { margin-top: -1.5rem; padding-top: calc(clamp(1.5rem, 2.5vw, 2.25rem) + 1.5rem); }
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.reviews__head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.reviews__score { color: var(--c-text-2); font-size: 0.95rem; }
.reviews__score strong { color: var(--c-text); font-weight: 700; }
.reviews__grid { display: grid; gap: 14px; }
.review {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  background: var(--c-surface);
}
.stars { display: flex; gap: 3px; color: var(--c-accent); }
.stars .i { width: 16px; height: 16px; }
.review blockquote { margin-top: 1.25rem; flex: 1; }
.review blockquote p { font-size: 1.08rem; line-height: 1.5; font-weight: 500; text-wrap: pretty; }
.review figcaption { margin-top: 1.75rem; display: flex; align-items: center; gap: 0.9rem; }
.review figcaption strong { display: block; font-weight: 600; font-size: 0.95rem; }
.review figcaption small { display: block; color: var(--c-text-2); font-size: 0.83rem; }
.avatar {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-bg);
  border: 1px solid var(--c-line-strong);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--c-steel);
}
.review--lead {
  background:
    linear-gradient(135deg, rgba(244, 85, 42, 0.1), rgba(244, 85, 42, 0) 55%),
    var(--c-surface);
}
.review--lead blockquote p {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}
@media (min-width: 768px) {
  .reviews__head { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 1024px) {
  .reviews__grid { grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; }
  .review--lead { grid-row: 1 / 3; justify-content: space-between; }
  .review--lead blockquote { display: flex; align-items: center; }
}

/* ==========================================================================
   UBICACIÓN
   ========================================================================== */
.location { padding-top: 0; }
.location__grid { display: grid; gap: 2.5rem; }
.location__addr {
  margin-top: 2rem;
  display: flex; gap: 0.8rem;
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.45;
}
.location__addr .i, .location__phone .i { color: var(--c-accent); margin-top: 3px; }
.hours {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  background: var(--c-surface);
  max-width: 460px;
}
.hours__status { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.92rem; }
.hours__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-text-3); }
.hours__status.is-open .hours__dot { background: var(--c-ok); box-shadow: 0 0 0 4px rgba(95, 208, 138, 0.15); }
.hours__status.is-closed .hours__dot { background: var(--c-accent); }
.hours dl { margin-top: 0.9rem; display: grid; }
.hours dl > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 0.55rem;
  font-size: 0.95rem;
  color: var(--c-text-2);
  border-top: 1px solid var(--c-line);
}
.hours dd { font-variant-numeric: tabular-nums; color: var(--c-text); }
.hours dl > div.is-today { color: var(--c-text); }
.hours dl > div.is-today dt::after { content: "Hoy"; margin-left: 0.55rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-accent); }
.location__phone { margin-top: 1.5rem; display: flex; gap: 0.8rem; font-size: 1.05rem; }
.location__phone a { border-bottom: 1px solid var(--c-line-strong); transition: border-color var(--t-ui) ease; }
@media (hover: hover) and (pointer: fine) { .location__phone a:hover { border-color: var(--c-accent); } }
.location__ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.location__map {
  position: relative;
  min-height: 380px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
}
.location__map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  /* Mapa en clave oscura, coherente con la identidad */
  filter: invert(0.92) hue-rotate(180deg) saturate(0.35) contrast(0.92) brightness(0.95);
}
@media (min-width: 900px) {
  .location__grid { grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: stretch; }
  .location__map { min-height: 560px; }
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(6rem, 4rem + 9vw, 11rem);
  border-top: 1px solid var(--c-line);
}
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cta-band__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(244, 85, 42, 0.26), rgba(244, 85, 42, 0) 55%),
    linear-gradient(90deg, rgba(12, 13, 15, 0.96) 0%, rgba(12, 13, 15, 0.84) 45%, rgba(12, 13, 15, 0.5) 100%),
    linear-gradient(0deg, rgba(12, 13, 15, 0.6), rgba(12, 13, 15, 0.2));
}
.cta-band__inner .lead { margin-top: 1.5rem; color: #c3c6cb; }
.cta-band__inner .btn { margin-top: 2.25rem; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cta-band__bg img {
      animation: cta-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes cta-drift {
      from { transform: scale(1.15) translateY(-3%); }
      to { transform: scale(1.02) translateY(3%); }
    }
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding-block: clamp(4rem, 7vw, 6rem) 2rem; border-top: 1px solid var(--c-line); }
.footer__top { display: grid; gap: 2.75rem; }
.footer__brand img { width: clamp(180px, 22vw, 260px); height: auto; }
.footer__club {
  margin-top: 0.6rem;
  font-stretch: 125%;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--c-steel);
}
.footer__tag { margin-top: 1.25rem; color: var(--c-text-2); font-size: 0.95rem; max-width: 30ch; }
.footer__col h2 {
  font-stretch: 125%;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.footer__col ul { margin-top: 1rem; display: grid; gap: 0.55rem; }
.footer__col a, .footer__hours li { color: var(--c-text-2); font-size: 0.95rem; transition: color var(--t-ui) ease; }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { color: var(--c-text); } }
.footer__bottom {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.85rem;
  color: var(--c-text-3);
}
.socials { display: flex; gap: 0.5rem; }
.socials a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  color: var(--c-text-2);
  transition: color var(--t-ui) ease, border-color var(--t-ui) ease, transform var(--t-press) var(--ease-out);
}
.socials a:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .socials a:hover { color: var(--c-text); border-color: var(--c-steel); } }
@media (min-width: 640px) { .footer__top { grid-template-columns: repeat(3, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer__top { grid-template-columns: 2fr 1fr 1.2fr 1.2fr; } .footer__brand { grid-column: auto; } }

/* ==========================================================================
   DIÁLOGO DE RESERVA
   ========================================================================== */
.booking {
  margin: auto auto 0;
  width: 100%;
  max-width: 100%;
  max-height: 94svh;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--c-surface-2) transparent;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r) var(--r) 0 0;
  background: var(--c-surface);
  color: var(--c-text);
  overflow: auto;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 180ms ease,
    transform 200ms var(--ease-out),
    overlay 200ms allow-discrete,
    display 200ms allow-discrete;
}
.booking[open] {
  opacity: 1;
  transform: none;
  transition:
    opacity 240ms ease,
    transform 320ms var(--ease-out),
    overlay 320ms allow-discrete,
    display 320ms allow-discrete;
}
@starting-style { .booking[open] { opacity: 0; transform: translateY(24px); } }
.booking::backdrop {
  background: rgba(6, 6, 8, 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: background-color 240ms ease, backdrop-filter 240ms ease, overlay 240ms allow-discrete, display 240ms allow-discrete;
}
.booking[open]::backdrop { background: rgba(6, 6, 8, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@starting-style { .booking[open]::backdrop { background: rgba(6, 6, 8, 0); backdrop-filter: blur(0); } }

.booking__panel { position: relative; padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); }
.booking__close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--c-text-2);
  transition: color var(--t-ui) ease, background-color var(--t-ui) ease, transform var(--t-press) var(--ease-out);
}
.booking__close:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .booking__close:hover { color: var(--c-text); background: var(--c-surface-2); } }
.booking__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  padding-right: 3rem;
}
.booking__sub { margin-top: 0.5rem; color: var(--c-text-2); font-size: 0.97rem; }
.booking form { margin-top: 1.25rem; display: grid; gap: 0.9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; gap: 0.9rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--c-text); }
.field input, .field select {
  height: 48px;
  width: 100%;
  padding: 0 0.95rem;
  border-radius: var(--r);
  border: 1px solid var(--c-line-strong);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 1rem;  /* 16px: evita zoom en iOS */
  transition: border-color var(--t-ui) ease, box-shadow var(--t-ui) ease;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a9acb2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.4rem;
}
.field input::placeholder { color: var(--c-text-3); }
.field input:focus-visible, .field select:focus-visible {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(244, 85, 42, 0.25);
}
.field input[aria-invalid="true"] { border-color: #ff7a5c; }
.field__error { min-height: 0; font-size: 0.84rem; color: #ff8f73; }
.field__error:empty { display: none; }
.booking__plan {
  font-size: 0.9rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--r);
  background: var(--c-accent-soft);
  color: var(--c-text);
}
.booking__plan strong { color: var(--c-accent); }
.booking [data-submit] { margin-top: 0.3rem; --h: 50px; }
.booking [data-submit][aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.form-error { font-size: 0.88rem; color: #ff8f73; }
.form-error:empty { display: none; }
.booking__done { display: grid; gap: 0.5rem; justify-items: start; padding-top: 0.5rem; }
.booking__done > .i { color: var(--c-accent); width: 40px; height: 40px; margin-bottom: 0.75rem; stroke-width: 2.2; }
.booking__done .btn { margin-top: 1.5rem; }
.booking__done:focus, .booking__title:focus { outline: none; }

@media (min-width: 640px) {
  .booking {
    margin: auto;
    width: min(560px, calc(100% - 2 * var(--gutter)));
    border-radius: var(--r);
    transform: translateY(12px) scale(0.98);
  }
  .booking[open] { transform: none; }
  @starting-style { .booking[open] { transform: translateY(12px) scale(0.98); } }
  .booking__panel { padding: 2rem 2.25rem; }
  .field-row { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   MOVIMIENTO REDUCIDO
   Se conservan fundidos cortos de opacidad; se elimina todo desplazamiento.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal],
  .js [data-reveal-group] > *,
  .js .hero__eyebrow, .js .hero__sub, .js .hero__ctas {
    transform: none !important;
    transition: opacity 300ms ease !important;
    transition-delay: 0ms !important;
  }
  .js .hero__title .line > span { transform: none !important; transition: none !important; }
  .js [data-reveal="clip"] :is(img, iframe), .js .hero__media { clip-path: none !important; transition: none !important; }
  .js [data-reveal="clip"] img, .js .hero__media img, .js .bento > .prog img { transform: none !important; transition: none !important; }
  .prog img, .prog__go, .why__item::after, .billing__thumb, .mobile-menu, .mobile-menu li { transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .booking, .booking[open] { transform: none !important; }
}

/* ---------- Ajustes móviles tras QA ---------- */
@media (max-width: 639px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .footer__top { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .footer__brand, .footer__col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  /* Premium primero en móvil/tablet: es el plan que queremos vender */
  .plan--featured { order: -1; margin-top: 0.9rem; }
}
