/* ==========================================================================
   JavoFit — Hoja de estilos principal
   --------------------------------------------------------------------------
   1. Tokens            8. Instalaciones + lightbox
   2. Base              9. Planes
   3. Utilidades       10. Entrenadores
   4. Botones          11. App
   5. Header / menú    12. CTA
   6. Hero             13. Ubicación y horario
   7. Nosotros         14. Footer y flotantes · 15. Ajustes responsive
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --bg: #0c0c0e;
  --bg-2: #111114;
  --surface: #17171b;
  --surface-2: #1f1f24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f2ef;
  --text-2: #b9b7bd;
  --text-3: #8f8d95;

  --red: #cf152d;          /* rojo exacto del logo */
  --red-hot: #e2233c;
  --red-text: #f2425a;     /* rojo legible para texto pequeño sobre fondo oscuro */
  --red-tint: rgba(207, 21, 45, 0.14);
  --wa: #25d366;

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1320px;
  --gutter: max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --header-h: 4.5rem;
  --section-pad: clamp(5rem, 10vw, 8.5rem);

  --r-s: 6px;
  --r-m: 12px;
  --r-l: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --z-float: 40;
  --z-menu: 45;
  --z-header: 50;
  --z-grain: 90;
  --z-skip: 100;

  color-scheme: dark;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 1px);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Grano sutil para quitar la sensación de superficie plana */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.045;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red-text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 3. UTILIDADES ------------------------------------------------------------ */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1rem;
  border-radius: var(--r-s);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }

.section {
  position: relative;
  padding-block: var(--section-pad) calc(var(--section-pad) * 1.1);
}
.section--alt { background: var(--bg-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-2);
}
.eyebrow::before,
.hex-dot {
  content: "";
  width: 11px;
  height: 10px;
  flex-shrink: 0;
  background: var(--red);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.eyebrow-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--red-text);
}

.section-title {
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}
.section-title em,
.accent { font-style: normal; color: var(--red-text); }

.lead {
  max-width: 38rem;
  font-size: clamp(1.075rem, 1.35vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-2);
}

.section-head {
  display: grid;
  gap: 1.5rem 4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: 1.1fr 0.9fr; align-items: end; }
}

/* Contenedor hexagonal para íconos: guiño a las luces LED del gimnasio */
.hex-icon {
  width: 54px;
  height: 48px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: var(--red-tint);
  color: var(--red-text);
}
.hex-icon .icon { width: 22px; height: 22px; }

/* 4. BOTONES --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: var(--r-s);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn:active { transform: scale(0.98); }
.btn .icon { transition: transform 0.3s var(--ease-out); }
.btn:hover .icon-arrow { transform: translateX(4px); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hot); box-shadow: 0 14px 30px -12px rgba(207, 21, 45, 0.7); }

.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(12, 12, 14, 0.25); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.06); }

.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; }

.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa:hover { background: #3ee07b; }

.btn-lg { min-height: 56px; padding: 0 1.85rem; font-size: 1rem; }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: 0.875rem; }
.btn-block { width: 100%; white-space: normal; }


/* 5. HEADER / MENÚ --------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s;
}
.site-header.is-scrolled,
.site-header.menu-active {
  background: rgba(12, 12, 14, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  margin-right: auto;
  padding-block: 0.5rem;
}
.brand img { height: 1.875rem; width: auto; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: clamp(1.25rem, 2.1vw, 2.25rem); }
.main-nav a {
  position: relative;
  display: block;
  padding-block: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--text); }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.header-cta { display: none; }

.menu-toggle {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--r-s);
  border: 1px solid var(--line-strong);
  background: rgba(12, 12, 14, 0.35);
}
.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out);
}
.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) max(1.5rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s var(--ease-out);
}
.mobile-menu ol { display: grid; }
.mobile-menu li a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 9.5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.2s;
}
.mobile-menu li a small {
  min-width: 1.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red-text);
}
.mobile-menu li a:hover,
.mobile-menu li a.is-active { color: var(--red-text); }
.mobile-menu.is-open li a { opacity: 1; transform: none; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: 0.04s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: 0.08s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: 0.12s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: 0.16s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: 0.2s; }
.mobile-menu-foot { margin-top: auto; display: grid; gap: 0.75rem; }

body.menu-open { overflow: hidden; }

@media (min-width: 480px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 768px) {
  .brand img { height: 2.125rem; }
}
@media (min-width: 1080px) {
  .main-nav { display: block; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* 6. HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 3rem);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  animation: hero-zoom 2.6s var(--ease-out) both;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 14, 0.78) 0%, rgba(12, 12, 14, 0) 22%),
    linear-gradient(0deg, var(--bg) 0%, rgba(12, 12, 14, 0.88) 36%, rgba(12, 12, 14, 0.3) 70%, rgba(12, 12, 14, 0.15) 100%);
}
.hero-content { padding-bottom: clamp(2.25rem, 5vw, 4rem); }
.hero .eyebrow { animation: fade-up 0.9s var(--ease-out) 0.1s both; color: #d6d4d9; }
.hero-title {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  font-size: clamp(3.9rem, 12.5vw, 10.5rem);
  font-size: clamp(3.9rem, min(12.5vw, 15vh), 10.5rem);
  font-size: clamp(3.9rem, min(12.5vw, 15svh), 10.5rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.05em; }
.hero-title .line > span { display: block; animation: rise 1s var(--ease-out) both; }
.hero-title .line:nth-child(1) > span { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.27s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.39s; color: var(--red-hot); }
.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.075rem, 1.5vw, 1.3rem);
  font-weight: 300;
  line-height: 1.6;
  color: #dcdadf;
  animation: fade-up 0.9s var(--ease-out) 0.5s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: fade-up 0.9s var(--ease-out) 0.62s both;
}
.hero-facts { animation: fade-up 0.9s var(--ease-out) 0.78s both; }
.hero-facts ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-strong);
}
.hero-facts li { display: grid; gap: 0.25rem; align-content: start; padding: 1.15rem 0.75rem 1.35rem 0; }
.hero-facts li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.hero-facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
.fact-value {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.fact-label { font-size: 0.875rem; line-height: 1.4; color: var(--text-2); }
.fact-link { display: grid; gap: 0.25rem; }
.fact-link .fact-value { transition: color 0.2s; }
.fact-link:hover .fact-value { color: var(--red-text); }

@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
}
@media (min-width: 768px) {
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(12, 12, 14, 0.7) 0%, rgba(12, 12, 14, 0) 20%),
      linear-gradient(90deg, rgba(12, 12, 14, 0.94) 0%, rgba(12, 12, 14, 0.74) 36%, rgba(12, 12, 14, 0.15) 72%),
      linear-gradient(0deg, var(--bg) 0%, rgba(12, 12, 14, 0) 32%);
  }
  .hero-media img { object-position: 50% 45%; }
}
@media (min-width: 900px) {
  .hero-facts ul { grid-template-columns: repeat(4, 1fr); }
  .hero-facts li,
  .hero-facts li:nth-child(even),
  .hero-facts li:nth-child(n + 3) { padding: 1.5rem 1.5rem 2rem; border-top: 0; border-left: 1px solid var(--line); }
  .hero-facts li:first-child { padding-left: 0; border-left: 0; }
}

/* 7. NOSOTROS -------------------------------------------------------------- */
.about-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); }
.about-copy .lead { margin-top: 1.75rem; }
.about-copy .about-text { margin-top: 1.25rem; max-width: 36rem; color: var(--text-2); }
.about-copy .btn { margin-top: 2.25rem; }

.about-media { position: relative; padding: 0 0 16% 14%; }
.photo-main {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-l);
  background: var(--surface);
}
.photo-main img,
.photo-sub img { width: 100%; height: 100%; object-fit: cover; }
.photo-sub {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 6px solid var(--bg);
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
}
.about-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  max-width: 15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background: rgba(12, 12, 14, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
  line-height: 1.3;
}
.about-badge .hex-icon { width: 42px; height: 37px; }
.about-badge .hex-icon .icon { width: 18px; height: 18px; }
.about-badge strong { display: block; font-weight: 600; }
.about-badge span { color: var(--text-2); }

@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* 8. INSTALACIONES --------------------------------------------------------- */
.spaces {
  display: grid;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
}
.space dt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}
.space dd { margin-top: 0.3rem; font-size: 0.9375rem; color: var(--text-2); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: clamp(150px, 42vw, 300px);
  grid-auto-flow: dense;
  gap: 0.5rem;
}
/* Encuadre de cada foto de la galería */
.pos-50-42 { object-position: 50% 42%; }
.pos-50-48 { object-position: 50% 48%; }
.pos-50-55 { object-position: 50% 55%; }
.pos-50-60 { object-position: 50% 60%; }
.pos-58-50 { object-position: 58% 50%; }
.pos-62-50 { object-position: 62% 50%; }
.g-big { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-m);
  background: var(--surface);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 1.2s var(--ease-out), filter 0.6s;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 12, 14, 0.88) 0%, rgba(12, 12, 14, 0.2) 38%, rgba(12, 12, 14, 0) 60%);
  transition: opacity 0.4s;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.05); filter: saturate(1.05); }
.gallery-item:focus-visible { outline-offset: 4px; }
.gallery-cap {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.75rem;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
}
.gallery-cap small { display: none; margin-top: 0.15rem; font-size: 0.8125rem; font-weight: 400; color: var(--text-2); }
.gallery-zoom {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease-out), opacity 0.35s, background-color 0.3s;
}
.gallery-item:hover .gallery-zoom { background: var(--red); }

@media (hover: hover) {
  .gallery-zoom { opacity: 0; transform: scale(0.75); }
  .gallery-item:hover .gallery-zoom,
  .gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: none; }
}
@media (min-width: 560px) {
  .spaces { grid-template-columns: 1fr 1fr; }
  .gallery { gap: 0.75rem; }
  .gallery-cap { left: 1.1rem; right: 1.1rem; bottom: 1rem; }
  .gallery-cap small { display: block; }
}
@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(200px, 21vw, 300px);
  }
}

/* Lightbox (elemento <dialog> nativo) */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.lightbox::backdrop {
  background: rgba(8, 8, 10, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox[open] { display: grid; place-items: center; animation: fade-in 0.3s var(--ease-out); }
.lightbox-figure {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 4.5rem 1rem 1.5rem;
}
.lightbox-figure img {
  width: auto;
  height: auto;
  max-width: min(92vw, 1100px);
  max-height: calc(100vh - 10rem);
  max-height: calc(100svh - 10rem);
  border-radius: var(--r-m);
  object-fit: contain;
  background: var(--surface);
}
.lightbox-figure figcaption {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-weight: 500;
}
.lightbox-count { flex-shrink: 0; white-space: nowrap; font-size: 0.875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: fixed;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(23, 23, 27, 0.8);
  color: var(--text);
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-btn:active { transform: scale(0.94); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; margin-top: -24px; }
.lb-next { right: 1rem; top: 50%; margin-top: -24px; }
@media (max-width: 599px) {
  .lb-prev, .lb-next { top: auto; bottom: 1rem; margin-top: 0; }
  .lightbox-figure { padding-bottom: 5rem; }
}

/* 9. PLANES ---------------------------------------------------------------- */
.plans { background: var(--bg); }
.plans-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}
.plans-note { font-size: 0.875rem; color: var(--text-3); }

.tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.tab {
  min-height: 44px;
  padding: 0 1.3rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background-color 0.25s, color 0.25s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); }
html:not(.js) .tabs { display: none; }
html:not(.js) .tab-panel + .tab-panel { margin-top: 4rem; }

.plan-grid { display: grid; gap: 1rem; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.plan:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.9);
}
.plan--featured {
  border-color: var(--red);
}
.plan--featured:hover { border-color: var(--red-text); }
.plan-flag {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan-name { font-size: 2.1rem; text-transform: uppercase; }
.plan-duration { margin-top: 0.35rem; font-size: 0.9375rem; color: var(--text-3); }
.plan-price {
  display: flex;
  align-items: flex-start;
  gap: 0.15rem;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.plan-price .cur { margin-top: 0.3rem; font-size: 1.6rem; color: var(--text-2); }
.plan-price .amt { font-size: clamp(3.1rem, 4vw, 3.9rem); }
.plan-equiv { min-height: 1.5em; margin-top: 0.55rem; font-size: 0.875rem; color: var(--text-2); }
.plan-specs { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.plan-specs li {
  min-height: 3.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.plan-specs span { color: var(--text-3); }
.plan-specs strong { font-weight: 600; text-align: right; }
.is-free { color: var(--red-text); }
.plan-perks { display: grid; gap: 0.7rem; margin: 1.5rem 0 2rem; font-size: 0.9375rem; }
.plan-perks li { display: flex; gap: 0.65rem; align-items: flex-start; line-height: 1.45; }
.plan-perks .icon { width: 18px; height: 18px; margin-top: 0.12rem; color: var(--red-text); }
.plan .btn { margin-top: auto; }

/* Selector 3 / 5 veces por semana */
.freq {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.freq label { position: relative; }
.freq input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.freq input + span {
  display: block;
  min-width: 2.3rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  color: var(--text-2);
  transition: background-color 0.2s, color 0.2s;
}
.freq input:checked + span { background: var(--red); color: #fff; }
.freq label:hover input:not(:checked) + span { color: var(--text); }
.freq input:focus-visible + span { outline: 2px solid var(--red-text); outline-offset: 2px; }

/* Planes de entrenamiento */
.train { display: grid; gap: 1rem; }
.train-picker,
.train-summary {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}
.train-picker h3,
.train-summary h3 { font-size: clamp(2rem, 3vw, 2.6rem); text-transform: uppercase; }
.train-picker > p { max-width: 34rem; margin-top: 0.85rem; color: var(--text-2); }
.train-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 1.75rem;
}
.train-opt { position: relative; }
.train-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.train-opt-body {
  display: grid;
  gap: 0.1rem;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background: var(--bg-2);
  transition: border-color 0.2s, background-color 0.2s;
}
.train-opt:hover .train-opt-body { border-color: rgba(255, 255, 255, 0.36); }
.train-opt input:checked + .train-opt-body { border-color: var(--red-text); background: var(--surface-2); }
.train-opt input:focus-visible + .train-opt-body { outline: 2px solid var(--red-text); outline-offset: 2px; }
.train-opt-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.train-opt-unit { font-size: 0.8125rem; color: var(--text-2); }
.train-opt-price { margin-top: 0.5rem; font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.train-summary {
  display: flex;
  flex-direction: column;
  border-color: var(--red);
}
.train-summary .plan-price { margin-top: 1.25rem; }
.train-summary .plan-perks { margin-bottom: 2rem; }
.train-summary .btn { margin-top: auto; }

@media (min-width: 560px) {
  .train-options { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .train { grid-template-columns: 1.2fr 0.8fr; }
}
@media (min-width: 1200px) {
  .plan-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 479px) {
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1 1 auto; padding: 0 0.85rem; }
}

/* 10. ENTRENADORES --------------------------------------------------------- */
.team {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(74%, 300px);
  gap: 1rem;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
}
.coach {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: var(--r-l);
  background: var(--surface);
}
.coach img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 20%;
  transition: transform 1.1s var(--ease-out);
}
.coach:hover img { transform: scale(1.045); }
.coach::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(12, 12, 14, 0.96) 0%, rgba(12, 12, 14, 0.5) 26%, rgba(12, 12, 14, 0) 50%);
}
.coach figcaption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
}
.coach figcaption::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 0.9rem;
  background: var(--red);
  transition: width 0.45s var(--ease-out);
}
.coach:hover figcaption::before { width: 60px; }
.coach-role { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-text); }
.coach-name { margin-top: 0.4rem; font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; line-height: 1; text-transform: uppercase; }
.team-hint { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.875rem; color: var(--text-3); }

@media (min-width: 1080px) {
  .team {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    margin-inline: 0;
    padding: 0 0 3rem;
    overflow: visible;
  }
  .coach:nth-child(even) { margin-top: 3rem; }
  .team-hint { display: none; }
}

/* 11. APP ------------------------------------------------------------------ */
.app-intro { display: grid; gap: 1.75rem; }
.app-get { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.app-icon { width: 64px; height: 64px; border: 1px solid var(--line-strong); border-radius: 16px; }
.store-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 54px;
  padding: 0.55rem 1.2rem 0.55rem 1rem;
  border-radius: var(--r-m);
  background: var(--text);
  color: var(--bg);
  transition: transform 0.25s var(--ease-out), background-color 0.25s;
}
.store-btn:hover { background: #fff; transform: translateY(-2px); }
.store-btn:active { transform: scale(0.98); }
.store-btn .icon { width: 24px; height: 24px; }
.store-btn small { display: block; font-size: 0.75rem; font-weight: 500; line-height: 1.1; color: #4a4950; }
.store-btn strong { display: block; font-size: 1rem; font-weight: 700; line-height: 1.2; }

.app-screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62%, 240px);
  gap: 1rem;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0.5rem var(--gutter) 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
}
.app-screen { scroll-snap-align: start; }
.phone {
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: #1b1b1f;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s var(--ease-out), border-color 0.3s;
}
.phone img { width: 100%; aspect-ratio: 480 / 1039; border-radius: 24px; background: #000; }
.app-screen:hover .phone { transform: translateY(-6px); border-color: rgba(242, 66, 90, 0.55); }
.app-screen figcaption { display: grid; gap: 0.25rem; margin-top: 1rem; }
.app-screen figcaption strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.app-screen figcaption span { font-size: 0.875rem; line-height: 1.45; color: var(--text-2); }

@media (min-width: 1080px) {
  .app-screens {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, 1fr);
    align-items: start;
    margin-inline: 0;
    padding: 0.5rem 0 2.5rem;
    overflow: visible;
  }
  .app-screen:nth-child(even) { margin-top: 2.5rem; }
}

/* 12. CTA ------------------------------------------------------------------ */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5.5rem, 12vw, 9.5rem);
}
.cta-band > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 12, 14, 0.95) 0%, rgba(12, 12, 14, 0.8) 48%, rgba(110, 8, 22, 0.6) 100%),
    linear-gradient(0deg, rgba(12, 12, 14, 0.6), rgba(12, 12, 14, 0.2));
}
.cta-title {
  font-size: clamp(3.1rem, 9vw, 7.75rem);
  font-weight: 900;
  line-height: 0.86;
  text-transform: uppercase;
}
.cta-band .lead { margin-top: 1.5rem; color: #d6d4d9; }
.cta-band .hero-actions { animation: none; }

/* 13. UBICACIÓN Y HORARIO -------------------------------------------------- */
.location { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.location-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}
.location-info .eyebrow { margin-bottom: -0.75rem; }
.location-title { font-size: clamp(2.75rem, 5vw, 4rem); text-transform: uppercase; }
.location-title em { font-style: normal; color: var(--red-text); }

.hours { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hours-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.hours-head h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.open-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
}
.open-status[hidden] { display: none; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status[data-state="open"] { background: rgba(37, 211, 102, 0.12); color: #5fe596; }
.open-status[data-state="closed"] { background: rgba(242, 66, 90, 0.12); color: #ff8593; }
.hours-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.hours-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours-list dt { font-weight: 500; color: var(--text-2); }
.hours-list dd {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.hours-list dd span { display: block; }

.location-actions { display: grid; gap: 0.75rem; margin-top: auto; }
.location-actions .btn { white-space: normal; padding-inline: 1rem; }
.location-social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  font-size: 0.9375rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.location-social strong { font-weight: 600; color: var(--text); transition: color 0.2s; }
.location-social:hover strong { color: var(--red-text); }
.location-map {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}
.location-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (min-width: 560px) {
  .location-actions { grid-template-columns: 1fr 1fr; }
  .location-actions .btn-wa { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .location { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .location-map { min-height: 560px; }
}

/* 14. FOOTER --------------------------------------------------------------- */
.site-footer {
  overflow: hidden;
  padding-top: clamp(3.5rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand img { height: 2.25rem; width: auto; }
.footer-brand p { max-width: 22rem; margin-top: 1rem; font-size: 0.9375rem; color: var(--text-2); }
.footer-col h2 {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { color: var(--text-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-hours li { display: grid; gap: 0.1rem; color: var(--text-2); }
.footer-hours span { font-size: 0.8125rem; color: var(--text-3); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-3);
}
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--text); }
.footer-wordmark {
  margin-bottom: -0.12em;
  font-family: var(--font-display);
  font-size: min(23vw, 20rem);
  font-weight: 900;
  line-height: 0.8;
  text-align: center;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  user-select: none;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.3fr repeat(4, 1fr); }
  .footer-brand { grid-column: auto; }
}

/* Botón flotante de WhatsApp */
.float-wa {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: var(--z-float);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 14px 32px -10px rgba(37, 211, 102, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%) scale(0.85);
  transition: transform 0.45s var(--ease-out), opacity 0.3s;
}
.float-wa .icon { width: 28px; height: 28px; }
.float-wa.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.float-wa.is-visible:hover { transform: scale(1.07); }
body.menu-open .float-wa { opacity: 0; pointer-events: none; }
html:not(.js) .float-wa { opacity: 1; pointer-events: auto; transform: none; }

/* 15. AJUSTES RESPONSIVE --------------------------------------------------- */

/* Zonas táctiles cómodas (mínimo ~40px de alto) */
.footer-col h2 { margin-bottom: 0.5rem; }
.footer-col ul { gap: 0; }
.footer-col a { display: inline-block; padding-block: 0.6rem; }
.footer-hours ul { gap: 0.75rem; padding-top: 0.5rem; }
@media (max-width: 639px) {
  nav.footer-col ul { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
}
.footer-bottom a { display: inline-block; padding-block: 0.6rem; }
.footer-bottom { align-items: center; }
.location-social { padding-block: 0.6rem; }
@media (pointer: coarse) {
  .freq input + span { min-width: 2.75rem; padding: 0.5rem 0.85rem; }
  .plan-specs li { min-height: 3.9rem; }
}

/* En pantallas táctiles no hay "hover": evita que las tarjetas queden levantadas tras tocarlas */
@media (hover: none) {
  .plan:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .plan--featured:hover { border-color: var(--red); }
  .coach:hover img,
  .gallery-item:hover img { transform: none; }
  .coach:hover figcaption::before { width: 28px; }
  .app-screen:hover .phone { transform: none; border-color: var(--line-strong); }
  .store-btn:hover { transform: none; }
}

/* Celulares pequeños en vertical (iPhone SE, Android compactos) */
@media (max-width: 380px), (orientation: portrait) and (max-height: 620px) {
  .hero { padding-top: calc(var(--header-h) + 1.25rem); }
  .hero .eyebrow { margin-bottom: 0.9rem; font-size: 0.8125rem; }
  .hero-title { margin-bottom: 1rem; font-size: clamp(3.1rem, 16.5vw, 3.9rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { margin-top: 1.4rem; }
}
@media (max-width: 379px) {
  .gallery-zoom { display: none; }
  .gallery-cap { font-size: 0.875rem; }
}

/* Celulares en horizontal: título en una línea para que se vean el texto y los botones */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --header-h: 3.75rem; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 1rem); }
  .hero .eyebrow { display: none; }
  .hero-title { margin-bottom: 0.9rem; font-size: clamp(2.5rem, 7vw, 4.5rem); }
  .hero-title .line { display: inline-block; margin-right: 0.22em; }
  .hero-lead { max-width: 40rem; font-size: 1rem; }
  .hero-actions { margin-top: 1.25rem; }
  .hero-actions .btn-lg { min-height: 48px; }
  .hero-content { padding-bottom: 1.5rem; }

  .mobile-menu { padding-top: calc(var(--header-h) + 0.75rem); gap: 1.25rem; }
  .mobile-menu ol { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .mobile-menu li a { font-size: 1.6rem; }
  .mobile-menu-foot { grid-template-columns: 1fr 1fr; }

  .lightbox-figure { padding: 0.75rem 4.5rem; gap: 0.5rem; }
  .lightbox-figure img { max-width: calc(100vw - 10rem); max-height: calc(100vh - 3.5rem); max-height: calc(100svh - 3.5rem); }
  .lb-prev, .lb-next { top: 50%; bottom: auto; margin-top: -24px; }
  .lb-close { top: 0.75rem; right: 0.75rem; }
}

/* Monitores grandes: todo escala un poco y el contenido usa más ancho */
@media (min-width: 1800px) {
  html { font-size: 112.5%; }
  :root { --container: 1440px; }
}
@media (min-width: 2400px) {
  html { font-size: 131.25%; }
  :root { --container: 1700px; }
}

/* Animaciones de entrada ---------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.d-1 { --d: 0.08s; }
.d-2 { --d: 0.16s; }
.d-3 { --d: 0.24s; }
.d-4 { --d: 0.32s; }

@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
