/* ==========================================================================
   ERYEL · Propuesta V1 · SALUD
   Azules y turquesas con azul oscuro. Imagen sanitaria y profesional,
   con un trato cercano.
   Tipografía: Jost (Google Fonts), geométrica y redonda.
   ========================================================================== */

@property --fill { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

:root {
  --white: #FFFFFF;
  --sky: #A9DDE8;        /* azul turquesa claro: bloques principales */
  --sky-soft: #D3EEF3;
  --sky-pale: #EEF8FA;
  --turq: #22B0AA;       /* turquesa: acentos */
  --turq-soft: #BFE9E5;
  --blue: #2A78BD;       /* azul medio */
  --ink: #0D2B4B;        /* azul oscuro: texto y bloques profundos */
  --grey: #5E7287;
  --grey-light: #A9B8C7;
  --line: #D6E3EA;
  --line-ink: rgba(13, 43, 75, .22);
  --line-light: rgba(255, 255, 255, .24);

  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --pad: clamp(18px, 2.2vw, 32px);
  --wrap: 1380px;
  --nav-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
figure { overflow: hidden; }
[hidden] { display: none !important; }
::selection { background: var(--turq); color: #fff; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }

.wrap { width: min(100% - var(--pad) * 2, var(--wrap)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; transition: top .3s; }
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.kicker { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin-bottom: 20px; }
.kicker--mt { margin-top: 44px; margin-bottom: 14px; }
.h-sm { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; }
.h-lg { font-size: clamp(2.4rem, 5.2vw, 4.6rem); font-weight: 400; text-transform: uppercase; letter-spacing: -.005em; line-height: 1; }
.h-xl { font-size: clamp(2.3rem, 4.2vw, 3.9rem); font-weight: 500; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; margin-bottom: 22px; }
p + p { margin-top: 1em; }

/* ---------- Botones ---------- */
.btn {
  --c: var(--ink); --bg: transparent; --fill-c: var(--ink); --hover-c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--c); border-radius: 3px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2;
  color: var(--c);
  background: linear-gradient(var(--fill-c), var(--fill-c)) no-repeat left / var(--fill) 100%, var(--bg);
  transition: --fill .6s var(--ease), color .45s var(--ease), border-color .45s;
  white-space: nowrap;
}
.btn:hover { --fill: 100%; color: var(--hover-c); }
.btn svg { width: 16px; height: 16px; }
.btn--solid { --bg: var(--ink); --fill-c: var(--turq); --hover-c: #fff; color: #fff; }
.btn--solid:hover { border-color: var(--turq); }
.btn--light { --c: #fff; --fill-c: #fff; --hover-c: var(--ink); }
.btn--block { width: 100%; padding-block: 16px; }
.link { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease), border-color .4s;
  animation: nav-in 1s .1s var(--ease) both;
}
@keyframes nav-in { from { transform: translateY(-100%); } }
.nav.is-scrolled { border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-inline: var(--pad); }
.nav__links { display: flex; gap: 22px; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; justify-content: flex-end; gap: 10px; }
.nav__actions .btn { padding: 10px 16px; font-size: 12px; }

.logo { display: flex; align-items: center; color: var(--ink); }
/* Logo del cliente (PNG transparente) */
.brandmark { display: block; height: auto; }
.logo .brandmark { width: 66px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.burger { display: none; position: relative; width: 40px; height: 40px; z-index: 60; }
.burger span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 40px) var(--pad) 32px;
  background: var(--sky);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu nav a { display: block; font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 400; text-transform: uppercase; line-height: 1.2; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .7s var(--ease); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(1) { transition-delay: .25s; } .menu.is-open nav a:nth-child(2) { transition-delay: .29s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .33s; } .menu.is-open nav a:nth-child(4) { transition-delay: .37s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .41s; } .menu.is-open nav a:nth-child(6) { transition-delay: .45s; }
.menu.is-open nav a:nth-child(7) { transition-delay: .49s; }
.menu__foot { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { padding-top: var(--nav-h); }
.hero__panel {
  background: var(--sky);
  padding: clamp(40px, 6vw, 96px) 0;
  min-height: min(calc(100svh - var(--nav-h) - 54px), 820px);
  display: flex; align-items: center;
  clip-path: inset(0 0 100% 0);
  animation: curtain 1.3s .25s var(--ease-io) forwards;
}
@keyframes curtain { to { clip-path: inset(0); } }
.hero__grid { display: grid; grid-template-columns: 5fr 3.6fr 2.1fr; gap: clamp(20px, 2.6vw, 40px); align-items: stretch; }

.hero__big { aspect-ratio: 4 / 3.05; clip-path: inset(100% 0 0 0); animation: reveal-up 1.4s .85s var(--ease-io) forwards; }
.hero__big img, .hero__small img { width: 100%; height: 100%; object-fit: cover; scale: 1.25; animation: settle 2.2s .85s var(--ease) forwards; }
@keyframes reveal-up { to { clip-path: inset(0); } }
@keyframes settle { to { scale: 1; } }

.hero__text { display: flex; flex-direction: column; padding-top: 4px; }
.hero__kicker { color: var(--ink); opacity: 0; animation: fade 1s 1.4s var(--ease) forwards; }
.hero__title { font-size: clamp(2rem, 3.5vw, 3.4rem); font-weight: 400; line-height: 1.04; text-transform: uppercase; letter-spacing: -.005em; }
.ln { display: block; overflow: hidden; }
.ln > span { display: block; transform: translateY(105%); animation: line-up 1.2s var(--ease) forwards; }
.ln:nth-child(1) > span { animation-delay: 1.25s; }
.ln:nth-child(2) > span { animation-delay: 1.33s; }
.ln:nth-child(3) > span { animation-delay: 1.41s; }
@keyframes line-up { to { transform: none; } }
.hero__lead { margin-top: auto; padding-top: 32px; max-width: 32ch; font-size: 15px; line-height: 1.55; opacity: 0; transform: translateY(14px); animation: rise 1.2s 1.6s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

.hero__side { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero__small { width: 100%; aspect-ratio: 1 / 1.08; clip-path: inset(0 0 0 100%); animation: reveal-left 1.3s 1.15s var(--ease-io) forwards; }
.hero__small img { animation-delay: 1.15s; }
@keyframes reveal-left { to { clip-path: inset(0); } }
.hero__btn { opacity: 0; animation: fade 1s 1.8s var(--ease) forwards; }

.ticker { height: 54px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.ticker__track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 56px; padding-right: 56px; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--turq); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Lo que ofrecemos ---------- */
.offer { padding: clamp(80px, 9vw, 130px) 0 clamp(80px, 9vw, 120px); }
.offer__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.offer__nav { display: flex; gap: 6px; }
.arrow { width: 46px; height: 32px; display: grid; place-items: center; transition: opacity .3s, transform .4s var(--ease); }
.arrow svg { width: 34px; height: 24px; }
.arrow[data-prev]:hover { transform: translateX(-4px); }
.arrow[data-next]:hover { transform: translateX(4px); }
.arrow:disabled { opacity: .25; cursor: default; transform: none; }

.offer__track {
  display: flex; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding-inline: max(var(--pad), (100% - var(--wrap)) / 2);
  scrollbar-width: none;
  cursor: grab;
}
.offer__track::-webkit-scrollbar { display: none; }
.offer__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.offer__track.is-dragging .card { pointer-events: none; }
.card { flex: 0 0 clamp(260px, 29.5vw, 420px); scroll-snap-align: start; user-select: none; -webkit-user-drag: none; }
.card__img { aspect-ratio: 3 / 4; background: var(--sky-pale); }
.card__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: scale 1.2s var(--ease); }
.card:hover .card__img img { scale: 1.06; }
.card h3 { margin-top: 18px; font-size: 17px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.card h3::after { content: ""; height: 1px; flex: 0 0 0; background: var(--ink); transition: flex-basis .6s var(--ease); }
.card:hover h3::after { flex-basis: 40px; }
.card p { margin-top: 6px; font-size: 14px; color: var(--grey); max-width: 34ch; }

.progress { position: relative; height: 1px; margin-top: 48px; background: var(--line); }
.progress span { position: absolute; left: 0; top: -1px; height: 2px; width: 20%; background: var(--ink); transition: transform .25s linear, width .3s; }

/* ---------- Split (imagen | bloque azul) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(560px, 52vw, 780px); }
.split__img { position: relative; background: var(--sky-pale); }
.split__img img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }
.split--reverse .split__img { order: 2; }
.split__body { background: var(--sky); display: flex; align-items: center; justify-content: center; padding: clamp(64px, 8vw, 120px) var(--pad); }
.split__inner { max-width: 470px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.split__inner--left { text-align: left; align-items: flex-start; max-width: 520px; }
.split--navy .split__body { background: var(--ink); color: #fff; }
.split--navy .kicker, .split--navy .zone .kicker { color: var(--turq-soft); opacity: 1; }
.split--navy .list2, .split--navy .list2 li { border-color: var(--line-light); }
.split--navy .btn { --c: #fff; --fill-c: var(--turq); --hover-c: #fff; }
.split--navy .btn:hover { border-color: var(--turq); }
.split--turq .split__body { background: var(--turq-soft); }
.split__inner > p:not(.kicker):not(.split__sub) { font-size: 15.5px; }
.split .kicker { color: var(--ink); opacity: .7; }
.split__sub { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin: -6px 0 24px; }
.split .btn { margin-top: 30px; }

.creds { width: 100%; margin-top: 30px; border-top: 1px solid var(--line-ink); }
.creds li { padding: 12px 0; border-bottom: 1px solid var(--line-ink); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }

.list2 { width: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: 30px; border-top: 1px solid var(--line-ink); }
.list2 li { padding: 11px 0; border-bottom: 1px solid var(--line-ink); font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.zone { margin-top: 30px; font-size: 14.5px; }
.zone .kicker { color: var(--ink); margin-bottom: 8px; }

/* ---------- Pilates ---------- */
.pilates { padding-top: clamp(90px, 10vw, 150px); }
.pilates__head { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: end; }
.pilates__text { font-size: 17px; max-width: 46ch; }
.wide { position: relative; height: clamp(360px, 50vw, 740px); margin-top: clamp(50px, 6vw, 80px); background: var(--sky-pale); }
.wide img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.6vw, 40px); padding: clamp(50px, 6vw, 80px) 0 clamp(90px, 10vw, 140px); counter-reset: s; }
.steps li { position: relative; padding-top: 22px; }
.steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) var(--d, 0s); }
.steps li.is-in::before { transform: scaleX(1); }
.steps span { font-size: 12.5px; font-weight: 500; letter-spacing: .14em; color: var(--grey); }
.steps h3 { font-size: 21px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin: 34px 0 10px; }
.steps p { font-size: 15px; color: var(--grey); max-width: 30ch; }

/* ---------- Tarifas ---------- */
.prices { padding: clamp(90px, 10vw, 140px) 0; background: var(--sky-pale); }
.prices__head, .hours__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 4vw, 56px); }
.prices__head p, .hours__head p { max-width: 34ch; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); text-align: right; }
.prices__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.price {
  display: flex; flex-direction: column; gap: 18px;
  min-height: 460px; padding: clamp(26px, 2.6vw, 40px);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .7s var(--ease);
}
.price:hover { transform: translateY(-6px); }
.price h3 { font-size: 15px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.price__num { font-size: clamp(5rem, 9vw, 8.6rem); font-weight: 300; line-height: .85; letter-spacing: -.04em; margin-top: auto; font-variant-numeric: tabular-nums; }
.price__num span { font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-left: 10px; }
.price > p:not(.price__num):not(.kicker):not(.price__big-text) { font-size: 15px; color: var(--grey); max-width: 30ch; }
.price .btn { align-self: flex-start; }
.price--promo { background: var(--turq-soft); border-color: var(--turq-soft); justify-content: space-between; }
.price--promo .kicker { color: var(--ink); }
.price__big-text { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 500; line-height: 1; text-transform: uppercase; }
.price__big-text + .price__big-text { padding-top: 20px; border-top: 1px solid var(--line-ink); }
.price--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.price--dark > p:not(.price__num) { color: var(--grey-light) !important; }

/* ---------- Horarios ---------- */
.hours { padding: clamp(90px, 10vw, 140px) 0; }
.table { border-top: 1px solid var(--ink); }
.table__row {
  display: grid; grid-template-columns: 1fr 1.3fr 1.6fr; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  transition: padding .6s var(--ease), background .5s;
}
.table__row > span:first-child { font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 14px; }
.table__row--head { padding-block: 14px; font-size: 11.5px !important; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.table__row--head > span:first-child { font-size: 11.5px; }
.table__row:not(.table__row--head):hover { background: var(--sky-pale); padding-inline: 18px; }
.table__row.is-today { background: var(--sky); padding-inline: 18px; border-bottom-color: var(--sky); }
.table__row.is-today > span:first-child::after { content: "Hoy"; font-size: 10.5px; letter-spacing: .16em; padding: 3px 8px; border: 1px solid var(--ink); border-radius: 3px; }

/* ---------- Marquee grande ---------- */
.big-marquee { overflow: hidden; padding: clamp(40px, 6vw, 80px) 0; }
.big-marquee__track { display: flex; width: max-content; will-change: transform; }
.big-marquee span { padding-right: .45em; font-size: clamp(3.6rem, 11vw, 10.5rem); font-weight: 500; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }

/* ---------- Mapa ---------- */
.split__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .8s; }
.split__map:hover iframe { filter: grayscale(0); }
.socials { display: flex; gap: 10px; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 3px; transition: background .4s, color .4s; }
.socials a:hover { background: var(--ink); color: #fff; }
.socials svg { width: 19px; height: 19px; }

/* ---------- Contacto ---------- */
.contact { padding: clamp(90px, 10vw, 150px) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 8vw, 130px); align-items: start; }
.contact__intro { margin: 24px 0 40px; max-width: 40ch; font-size: 17px; }
.quick { border-top: 1px solid var(--ink); }
.quick a { display: grid; grid-template-columns: 130px 1fr 20px; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .6s var(--ease), background .4s; }
.quick a:hover { padding-inline: 14px; background: var(--sky-pale); }
.quick span { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.quick strong { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 400; }
.quick svg { width: 20px; height: 20px; transition: rotate .5s var(--ease); }
.quick a:hover svg { rotate: 45deg; }

.form { position: relative; display: grid; gap: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span, .options legend { font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink);
  padding: 8px 0 10px; background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  outline: none; resize: vertical;
  box-shadow: inset 0 -1px 0 transparent;
  transition: box-shadow .4s, border-color .4s;
}
.field input:focus, .field textarea:focus { border-color: var(--turq); box-shadow: inset 0 -2px 0 var(--turq); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #C0392B; }
.field.is-invalid > span { color: #C0392B; }
.options { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.options legend { margin-bottom: 12px; }
.options label { position: relative; cursor: pointer; }
.options input { position: absolute; opacity: 0; }
.options span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; transition: background .4s, color .4s, border-color .4s; }
.options label:hover span { border-color: var(--ink); }
.options input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.options input:focus-visible + span { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--grey); cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--ink); }
.check.is-invalid { color: #C0392B; }
.form__error { font-size: 13px; color: #C0392B; }
.form__ok { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; background: var(--white); animation: fade .8s var(--ease); }
.form__ok .h-sm { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 500; }
.form__ok p:last-child { font-size: 17px; color: var(--grey); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(60px, 7vw, 100px) 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; align-items: start; }
.footer__logo { display: inline-flex; color: var(--ink); }
.footer__logo .brandmark { width: clamp(150px, 14vw, 210px); }
.footer__label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-light); margin-bottom: 14px; }
.footer__grid a:not(.footer__logo):not(.footer__phone) { display: block; width: fit-content; padding: 3px 0; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px; transition: background-size .5s var(--ease); }
.footer__grid a:not(.footer__logo):not(.footer__phone):hover { background-size: 100% 1px; }
.footer__cta p { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; max-width: 26ch; }
.footer__phone { display: inline-block; margin-top: 14px; font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 400; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: clamp(50px, 6vw, 90px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--grey-light); }
.footer__bottom nav { display: flex; gap: 18px; }
.footer__bottom button:hover, .footer__bottom a:hover { color: var(--ink); }

/* ---------- CTA flotantes ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 3px; background: var(--ink); color: #fff;
  translate: 0 110px; transition: translate .7s var(--ease), background .4s, color .4s;
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { background: var(--turq); color: #fff; }
.show-float .wa-float { translate: 0 0; }
.mobile-bar { display: none; }

/* ---------- Legal ---------- */
.legal { width: min(620px, calc(100% - 32px)); max-height: 80vh; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); }
.legal[open] { animation: dialog-in .5s var(--ease); }
.legal::backdrop { background: rgba(13, 43, 75, .45); }
.legal h2 { font-size: 22px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.legal p { font-size: 15px; color: var(--grey); }
.legal__close { position: absolute; top: 12px; right: 16px; font-size: 26px; line-height: 1; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Animaciones on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.steps li[data-reveal] { transform: translateY(18px); }
/* El recorte va en el hijo: si se recorta el contenedor observado, IntersectionObserver no lo detecta */
[data-reveal-img] > * { clip-path: inset(100% 0 0 0); scale: 1.2; transition: clip-path 1.5s var(--ease-io), scale 2.2s var(--ease); }
[data-reveal-img].is-in > * { clip-path: inset(0); scale: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav__in { grid-template-columns: 1fr auto 1fr; }
  .nav__links { display: none; }
  .burger { display: block; grid-column: 1; grid-row: 1; }
  .logo { grid-column: 2; grid-row: 1; }
  .nav__actions { grid-column: 3; grid-row: 1; }
  .nav__actions .btn--solid { display: none; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__big { grid-column: 1 / -1; }
  .hero__text { grid-column: 1 / -1; }
  .hero__side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .hero__small { display: none; }
  .hero__lead { margin-top: 0; padding-top: 20px; max-width: 46ch; }
  .split { grid-template-columns: 1fr; }
  .split__img { min-height: 72vw; }
  .split--reverse .split__img { order: 0; }
  .split__map { min-height: 80vw; }
  .pilates__head, .contact__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .prices__grid { grid-template-columns: 1fr; }
  .price { min-height: 0; }
  .price__num { margin-top: 12px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__logo, .footer__cta { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  body { padding-bottom: 66px; }
  .nav__actions { display: none; }
  .logo .brandmark { width: 55px; }
  .burger { justify-self: start; }
  .prices__head, .hours__head { flex-direction: column; align-items: flex-start; }
  .prices__head p, .hours__head p { text-align: left; }
  .card { flex-basis: 76vw; }
  .steps { grid-template-columns: 1fr; }
  .list2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .table__row { grid-template-columns: 1fr; gap: 4px; }
  .table__row--head { display: none; }
  .table__row > span:not(:first-child)::before { display: inline-block; width: 74px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
  .table__row > span:nth-child(2)::before { content: "Mañana"; }
  .table__row > span:nth-child(3)::before { content: "Tarde"; }
  .table__row.is-today > span:nth-child(n+2)::before { color: var(--ink); }
  .quick a { grid-template-columns: 1fr 20px; }
  .quick span { grid-column: 1 / -1; }
  .quick strong { grid-row: 2; }
  .wa-float { display: none; }
  .mobile-bar {
    position: fixed; inset: auto 0 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    background: var(--white); border-top: 1px solid var(--line);
    translate: 0 100%; transition: translate .7s var(--ease);
  }
  .show-float .mobile-bar { translate: 0 0; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 62px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
  .mobile-bar a + a { border-left: 1px solid var(--line); }
  .mobile-bar svg { width: 17px; height: 17px; }
  .mobile-bar .is-main { background: var(--turq); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal-img] > * { clip-path: none; scale: 1; }
}
