/* ==========================================================================
   ERYEL · Propuesta V2 · BIENESTAR
   Tonos claros y verde profundo. Composición limpia y protagonismo
   del perfil del fisioterapeuta.
   Tipografía: Outfit (titulares, minúsculas) + Albert Sans (texto). Sin cursivas.
   ========================================================================== */

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

:root {
  --light: #F4F1E9;      /* fondo claro principal (lino) */
  --sand: #E6E1D3;       /* claro profundo: fondos de imagen */
  --paper: #FBFAF6;      /* secciones alternas */
  --green: #1D3B32;      /* verde profundo: texto y bloques */
  --green-mid: #2F5A4C;
  --sage: #6F8F80;       /* salvia: acentos suaves */
  --ink-70: rgba(29, 59, 50, .74);
  --ink-55: rgba(29, 59, 50, .56);
  --line: rgba(29, 59, 50, .16);
  --line-light: rgba(244, 241, 233, .2);

  --display: "Outfit", "Avenir Next", system-ui, sans-serif;
  --body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --pad: clamp(20px, 3vw, 48px);
  --wrap: 1340px;
  --nav-h: 76px;
  --section: clamp(96px, 11vw, 160px);
}

/* ---------- 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(--body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--green);
  background: var(--light);
  -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; padding: 0; cursor: pointer; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
figure { overflow: hidden; }
em { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--green); color: var(--light); }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; border-radius: 4px; }

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

/* ---------- Tipografía ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.5rem, 4.8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin-bottom: .5em;
  text-wrap: balance;
}
.soft { color: var(--sage); }
.label { font-size: 13.5px; font-weight: 500; color: var(--sage); margin-bottom: 18px; }
.label--mt { margin-top: 40px; }
p + p { margin-top: 1em; }

/* ---------- Botones ---------- */
.pill {
  --c: var(--green); --fill-c: var(--green); --hover-c: var(--light);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 26px;
  border: 1px solid var(--c); border-radius: 999px;
  font-size: 14.5px; font-weight: 500; line-height: 1.2;
  color: var(--c);
  background: linear-gradient(var(--fill-c), var(--fill-c)) no-repeat bottom / 100% var(--fill);
  transition: --fill .55s var(--ease), color .4s var(--ease);
  white-space: nowrap;
}
.pill:hover { --fill: 100%; color: var(--hover-c); }
.pill--white { --c: #fff; --fill-c: #fff; --hover-c: var(--green); }
.pill--light { --c: var(--light); --fill-c: var(--light); --hover-c: var(--green); }
.pill--dark { --c: var(--green); --fill-c: var(--green-mid); --hover-c: var(--light); background-color: var(--green); color: var(--light); }

.text-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14.5px; font-weight: 500;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 100% 1px;
  transition: background-size .6s var(--ease);
}
.text-link svg { width: 26px; height: 18px; transition: transform .5s var(--ease); }
.text-link:hover { background-size: 0 1px; background-position: right bottom; }
.text-link:hover svg { transform: translateX(5px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px; }
.u { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-inline: var(--pad);
  color: var(--green);
  transition: background .5s var(--ease), color .5s var(--ease), transform .6s var(--ease), box-shadow .5s;
  animation: fade-in 1.2s .4s var(--ease) both;
}
.nav.is-solid { background: var(--light); color: var(--green); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; justify-self: start; }
/* 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; }
.nav__links { display: flex; gap: 30px; font-size: 14px; }
.nav__links a { position: relative; padding: 4px 0; opacity: .9; transition: opacity .3s; }
.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, .nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.nav__right .pill { padding: 12px 24px; font-size: 15px; }
.nav__right .pill svg { width: 18px; height: 18px; }

.burger { display: none; position: relative; width: 40px; height: 40px; justify-self: end; z-index: 60; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1.3px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19.5px; 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) + 32px) var(--pad) 32px;
  background: var(--light); color: var(--green);
  transform: translateX(100%);
  transition: transform .9s var(--ease-io), visibility 0s .9s;
  visibility: hidden;
}
.menu.is-open { transform: none; visibility: visible; transition: transform .9s var(--ease-io), visibility 0s; }
.menu nav a { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.15; letter-spacing: -.02em; opacity: 0; transform: translateX(30px); transition: opacity .6s, transform .8s var(--ease); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(1) { transition-delay: .3s; } .menu.is-open nav a:nth-child(2) { transition-delay: .34s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .38s; } .menu.is-open nav a:nth-child(4) { transition-delay: .42s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .46s; } .menu.is-open nav a:nth-child(6) { transition-delay: .5s; }
.menu.is-open nav a:nth-child(7) { transition-delay: .54s; }
.menu__foot { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-70); }
.menu-open .nav { color: var(--green); background: transparent; box-shadow: none; }

/* ---------- Hero (claro, composición limpia) ---------- */
.hero { padding: calc(var(--nav-h) + clamp(24px, 4vw, 56px)) 0 clamp(64px, 8vw, 110px); background: var(--light); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.hero__content { max-width: 600px; }
.hero__content .label { opacity: 0; animation: fade-up 1s .5s var(--ease) forwards; }
.hero__title { font-family: var(--display); font-weight: 300; font-size: clamp(3rem, 6vw, 6.2rem); line-height: .98; letter-spacing: -.035em; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: block; transform: translateY(105%); animation: line-up 1.3s var(--ease) forwards; }
.ln:nth-child(1) > span { animation-delay: .6s; }
.ln:nth-child(2) > span { animation-delay: .7s; }
@keyframes line-up { to { transform: none; } }
.hero__lead { margin-top: 28px; max-width: 44ch; color: var(--ink-70); font-size: 17.5px; opacity: 0; animation: fade-up 1.1s 1.05s var(--ease) forwards; }
.hero .actions { opacity: 0; animation: fade-up 1.1s 1.2s var(--ease) forwards; }
.hero__media { position: relative; aspect-ratio: 4 / 4.6; background: var(--sand); clip-path: inset(8% 6% 8% 6%); animation: hero-reveal 1.8s .2s var(--ease-io) forwards; }
.hero__media > img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; scale: 1.15; animation: hero-img 2.6s .2s var(--ease) forwards; }
@keyframes hero-reveal { to { clip-path: inset(0); } }
@keyframes hero-img { to { scale: 1; } }
.hero__card { position: absolute; left: clamp(14px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px); display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; background: var(--paper); border-radius: 999px; line-height: 1.3; opacity: 0; animation: fade-up 1s 1.5s var(--ease) forwards; transition: background .4s; }
.hero__card:hover { background: #fff; }
.hero__card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 75% 20%; }
.hero__card strong { display: block; font-size: 15px; font-weight: 500; }
.hero__card span { display: block; color: var(--ink-70); font-size: 13px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Enfoque ---------- */
.intro { padding-top: var(--section); }
.intro__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.intro__text { padding-top: 6px; max-width: 48ch; }
.intro__text p:not(.label) { color: var(--ink-70); }
.intro__img { aspect-ratio: 16 / 11; background: var(--sand); }
.intro__img img { width: 100%; height: 100%; object-fit: cover; }

.values { padding: clamp(90px, 10vw, 140px) var(--pad); text-align: center; }
.values .label { margin-bottom: 26px; }
.values__row { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1180px; margin-inline: auto; }
.values__row li { position: relative; padding-inline: clamp(12px, 2vw, 32px); font-family: var(--display); font-weight: 300; font-size: clamp(1.3rem, 2vw, 1.95rem); letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.values__row li + li::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: var(--green); opacity: .35; transform: scaleY(0); transition: transform 1s var(--ease) calc(var(--d, 0s) + .3s); }
.values__row li.is-in::before { transform: scaleY(1); }

/* ---------- Imagen ancha ---------- */
.wide { position: relative; height: clamp(420px, 88vh, 920px); background: var(--sand); }
.wide img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: translate; }

/* ---------- Omar ---------- */
/* Perfil protagonista: bloque verde profundo justo después del hero */
.profile { padding-block: var(--section); background: var(--green); color: var(--light); }
.profile__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.profile__img { aspect-ratio: 4 / 4.8; background: var(--green-mid); }
.profile__img img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.profile__text { max-width: 540px; }
.profile .h2 { font-size: clamp(3rem, 6.2vw, 6rem); margin-bottom: .25em; }
.profile .soft, .profile .label, .profile .creds span { color: #A9C2B5; }
.profile__role { font-family: var(--display); font-weight: 300; font-size: clamp(1.2rem, 1.7vw, 1.5rem); letter-spacing: -.01em; margin-bottom: 1.4em; }
.profile__text > p:not(.label):not(.profile__role):not(.profile__quote) { color: rgba(244, 241, 233, .82); }
.profile__quote { margin-top: 28px; padding-left: 20px; border-left: 1px solid #A9C2B5; font-family: var(--display); font-weight: 300; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.35; }
.profile .creds, .profile .creds li { border-color: var(--line-light); }
.creds { margin: 36px 0 40px; border-bottom: 1px solid var(--line); }
.creds li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.creds span { font-size: 13px; color: var(--sage); padding-top: 2px; }

/* ---------- Pilates ---------- */
.pilates { padding-block: var(--section); }
.pilates__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.pilates__img { position: sticky; top: calc(var(--nav-h) + 24px); aspect-ratio: 3 / 4; background: var(--sand); }
.pilates__img img { width: 100%; height: 100%; object-fit: cover; }
.pilates__text { padding-top: clamp(0px, 4vw, 60px); max-width: 560px; }
.pilates__text > p:not(.label) { color: var(--ink-70); }
.steps { margin-top: 40px; border-bottom: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps span { font-family: var(--display); font-weight: 300; font-size: 22px; line-height: 1.2; color: var(--sage); }
.steps h3 { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.steps p { font-size: 15px; color: var(--ink-70); }

/* ---------- Tarifas ---------- */
.prices { padding-block: var(--section); background: var(--paper); }
.center-head { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.prices__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1000px; margin-inline: auto; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 22px;
  padding: clamp(32px, 4vw, 52px);
  background: var(--light);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(29, 59, 50, .5); }
.plan h3 { font-size: 16px; font-weight: 500; }
.plan__num { font-family: var(--display); font-weight: 200; font-size: clamp(5rem, 9vw, 8.4rem); line-height: .88; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.plan__num span { font-family: var(--body); font-size: 15px; font-weight: 400; letter-spacing: 0; margin-left: 12px; opacity: .7; }
.plan ul { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.plan li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.plan .pill { align-self: flex-start; }
.plan--dark { background: var(--green); color: var(--light); }
.plan--dark ul, .plan--dark li { border-color: var(--line-light); }
.plan__tag { position: absolute; top: clamp(28px, 3.6vw, 48px); right: clamp(28px, 3.6vw, 48px); padding: 5px 14px; border: 1px solid var(--line-light); border-radius: 999px; font-size: 12.5px; }
.prices__note { text-align: center; margin-top: 36px; font-size: 14.5px; color: var(--ink-70); }

/* ---------- Horarios ---------- */
.hours { padding-block: var(--section); }
.hours__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.hours__note { max-width: 34ch; color: var(--ink-70); }
.tabs { position: relative; display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; padding: 14px 0 16px; font-size: 15.5px; color: var(--ink-55); transition: color .4s; position: relative; }
.tabs button:hover { color: var(--green); }
.tabs button[aria-selected="true"] { color: var(--green); font-weight: 500; }
.tabs button.is-today::after { content: ""; position: absolute; top: 8px; right: calc(50% - 22px); width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }
.tabs__ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--green); transition: transform .7s var(--ease), width .7s var(--ease); }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; min-height: 150px; }
.slots ul { display: flex; flex-wrap: wrap; gap: 10px; }
.slots li { padding: 9px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-variant-numeric: tabular-nums; background: var(--paper); opacity: 0; transform: translateY(10px); animation: slot-in .7s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms); }
.slots li.is-empty { background: none; border-style: dashed; color: var(--ink-55); }
@keyframes slot-in { to { opacity: 1; transform: none; } }

/* ---------- Fisioterapia ---------- */
.physio { padding-block: var(--section); background: var(--paper); }
.physio__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.physio__text { max-width: 580px; }
.physio__text > p:not(.label) { color: var(--ink-70); }
.treat { margin-top: 36px; border-bottom: 1px solid var(--line); }
.treat li { padding: 16px 0; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 300; font-size: clamp(1.15rem, 1.7vw, 1.45rem); letter-spacing: -.01em; transition: padding .6s var(--ease), color .4s; }
.treat li:hover { padding-left: 12px; color: var(--green-mid); }
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.towns li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; transition: background .4s, color .4s, border-color .4s; }
.towns li:hover { background: var(--green); border-color: var(--green); color: var(--light); }
.physio__img { position: sticky; top: calc(var(--nav-h) + 24px); aspect-ratio: 4 / 5.4; background: var(--sand); }
.physio__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Carrusel de principios ---------- */
.quotes { padding-block: clamp(90px, 10vw, 140px); background: var(--green-mid); color: var(--light); text-align: center; }
.quotes__count { font-size: 13.5px; opacity: .8; margin-bottom: 30px; font-variant-numeric: tabular-nums; }
.quotes__stage { display: grid; }
.quote { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform 1s var(--ease); pointer-events: none; }
.quote.is-active { opacity: 1; transform: none; transition-delay: .25s; pointer-events: auto; }
.quote.is-leaving { transform: translateY(-18px); }
.quote p { max-width: 32ch; margin-inline: auto; font-family: var(--display); font-weight: 300; font-size: clamp(1.5rem, 2.9vw, 2.5rem); line-height: 1.28; letter-spacing: -.02em; text-wrap: balance; }
.quotes__by { margin-top: 30px; font-size: 14.5px; opacity: .8; }
.quotes__nav { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.pill-arrow { width: 66px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(244, 241, 233, .6); border-radius: 999px; transition: background .4s, color .4s, border-color .4s; }
.pill-arrow svg { width: 26px; height: 18px; }
.pill-arrow:hover { background: var(--light); color: var(--green-mid); border-color: var(--light); }

/* ---------- Contacto ---------- */
.contact { padding-block: var(--section); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__info > p { color: var(--ink-70); max-width: 42ch; }
.info { margin-top: 36px; border-bottom: 1px solid var(--line); }
.info > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.info dt { font-size: 13px; color: var(--sage); padding-top: 2px; }
.info a { background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px; transition: background-size .5s var(--ease); }
.info a:hover { background-size: 100% 1px; }
.map { position: relative; aspect-ratio: 16 / 10; margin-top: 36px; background: var(--sand); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.4) saturate(.6) contrast(.95); transition: filter .8s; }
.map:hover iframe { filter: none; }

.form { position: relative; display: grid; gap: 26px; padding: clamp(28px, 4vw, 52px); background: var(--paper); }
.form__title { font-family: var(--display); font-weight: 300; font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -.02em; line-height: 1.15; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 2px; }
.field > span, .options legend { font-size: 13px; color: var(--sage); }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--green);
  padding: 8px 0 10px; background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  outline: none; resize: vertical;
  transition: border-color .4s;
}
.field input:focus, .field textarea:focus { border-color: var(--green); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #B23A2A; }
.field.is-invalid > span { color: #B23A2A; }
.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: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: background .4s, color .4s, border-color .4s; }
.options label:hover span { border-color: var(--green); }
.options input:checked + span { background: var(--green); border-color: var(--green); color: var(--light); }
.options input:focus-visible + span { outline: 1.5px solid var(--green); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-70); cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--green); }
.check.is-invalid { color: #B23A2A; }
.form .pill--dark { justify-self: start; padding-inline: 32px; }
.form__error { font-size: 14px; color: #B23A2A; }
.form__ok { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 52px); background: var(--paper); animation: fade-in .8s var(--ease); }
.form__ok p:last-child { color: var(--ink-70); }

/* ---------- Footer ---------- */
.footer { background: var(--green); color: var(--light); padding-top: clamp(40px, 5vw, 64px); overflow: hidden; }
.cta { display: grid; grid-template-columns: 1fr 1fr; }
.cta__img { min-height: clamp(340px, 34vw, 500px); background: var(--green-mid); }
.cta__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cta__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 5vw, 80px); background: var(--light); color: var(--green); }
.cta__body .h2 { font-size: clamp(2.2rem, 3.6vw, 3.5rem); }
.cta__body p { color: var(--ink-70); max-width: 40ch; }
.cta .actions { margin-top: 32px; }

.footer__main { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding: clamp(80px, 9vw, 130px) 0 clamp(48px, 6vw, 80px); }
.footer__claim { font-family: var(--display); font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.03em; }
.footer__claim .soft { color: var(--light); opacity: .6; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font-size: 14px; }
.footer__cols a { display: block; width: fit-content; padding: 4px 0; opacity: .85; background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px; transition: opacity .3s, background-size .5s var(--ease); }
.footer__cols a:hover { opacity: 1; background-size: 100% 1px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line-light); font-size: 12.5px; opacity: .75; }
.footer__bottom nav { display: flex; gap: 22px; }
.footer__bottom button:hover, .footer__bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wordmark { display: flex; justify-content: center; padding: clamp(30px, 5vw, 70px) 0 clamp(40px, 6vw, 90px); }
.wordmark .brandmark { width: clamp(200px, 26vw, 380px); height: auto; opacity: 0; transform: translateY(30px) scale(.96); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); }
.wordmark.is-in .brandmark { opacity: 1; transform: none; }

/* ---------- CTA flotantes ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: var(--light);
  box-shadow: 0 14px 34px -14px rgba(29, 59, 50, .7);
  translate: 0 110px; transition: translate .8s var(--ease), background .4s;
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { background: var(--green-mid); }
.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, 48px); border: 0; background: var(--paper); color: var(--green); }
.legal[open] { animation: dialog-in .6s var(--ease); }
.legal::backdrop { background: rgba(29, 59, 50, .45); }
.legal h2 { font-family: var(--display); font-weight: 300; font-size: 2rem; letter-spacing: -.02em; margin-bottom: 16px; }
.legal p { font-size: 15px; color: var(--ink-70); }
.legal__close { position: absolute; top: 12px; right: 18px; font-size: 26px; line-height: 1; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Animaciones on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* Recorte en el hijo: el contenedor observado no se recorta */
[data-reveal-img] > * { clip-path: inset(10% 8% 10% 8%); scale: 1.14; transition: clip-path 1.6s var(--ease-io), scale 2.2s var(--ease); }
[data-reveal-img].is-in > * { clip-path: inset(0); scale: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__right { display: none; }
  .burger { display: block; }
}

@media (max-width: 900px) {
  .intro__grid, .profile__grid, .pilates__grid, .hours__grid, .physio__grid, .contact__grid, .cta, .footer__main { grid-template-columns: 1fr; }
  .pilates__img, .physio__img { position: relative; top: 0; aspect-ratio: 4 / 4.4; }
  .physio__img { order: -1; }
  .profile__img { aspect-ratio: 4 / 4.2; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4 / 3.6; }
  .values__row { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .values__row li:nth-child(3)::before { display: none; }
  .prices__grid { grid-template-columns: 1fr; }
  .cta__img { min-height: 70vw; }
}

@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  body { font-size: 16px; padding-bottom: 84px; }
  .logo .brandmark { width: 55px; }
  .hero__title { font-size: clamp(2.7rem, 12.5vw, 4rem); }
  .values__row { grid-template-columns: 1fr; row-gap: 14px; }
  .values__row li { padding: 0; }
  .values__row li + li::before { display: none; }
  .form__row, .slots, .footer__cols { grid-template-columns: 1fr; }
  .slots { gap: 28px; }
  .creds li, .info > div { grid-template-columns: 1fr; gap: 2px; }
  .tabs button { font-size: 14px; }
  .wa-float { display: none; }
  .mobile-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 4px; padding: 5px;
    border-radius: 999px; background: var(--green);
    box-shadow: 0 16px 40px -14px rgba(29, 59, 50, .7);
    translate: 0 130%; transition: translate .8s var(--ease);
  }
  .show-float .mobile-bar { translate: 0 0; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 999px; color: var(--light); font-size: 14px; font-weight: 500; }
  .mobile-bar svg { width: 17px; height: 17px; }
  .mobile-bar .is-main { background: var(--light); color: var(--green); }
}

@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; }
  .wordmark .brandmark { opacity: 1; transform: none; }
}
