/* Subpáginas · PilateSSanse BodyArt — mismos tokens que la portada (config-portada.json → paleta, fuentes) */
@font-face { font-family: "Fraunces"; src: url("/assets/Fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/Fraunces-Italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --teal: #1b93b3; --teal-d: #12708a; --teal-s: #d6eef4; --teal-l: #7fd3e8;
  --coral: #ff8a65; --coral-d: #e8673f;
  --ink: #0e2a33; --ink-m: #4b6670;
  --bg: #f7f5f0; --bg-2: #eceae3; --night: #0a1f26;
  --pad: clamp(18px, 5vw, 64px); --r: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 "Inter", system-ui, sans-serif; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-d); text-underline-offset: 3px; }
a:hover { color: var(--coral-d); }
:focus-visible { outline: 3px solid var(--coral-d); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144; letter-spacing: -.02em; font-weight: 700; margin: 0; line-height: 1.02; }
em { font-style: italic; color: var(--coral-d); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .3s var(--ease), background .3s, color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--teal-d); color: #fff; }
.btn.primary:hover { background: var(--ink); color: #fff; }
.btn.ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); }
.btn.outline { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.btn.outline:hover { background: #fff; color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* cabecera */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; padding: 12px var(--pad); background: rgba(247,245,240,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(14,42,51,.08); }
.brand img { width: 128px; height: auto; }
.hnav { display: none; gap: 26px; margin-left: auto; font-weight: 600; font-size: 15px; }
.hnav a { color: var(--ink); text-decoration: none; position: relative; }
.hnav a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.hnav a:hover::after, .hnav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.hcta { display: none; }
.burger { margin-left: auto; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 700 14px "Inter", sans-serif; cursor: pointer; }
#menu { position: fixed; inset: 0; top: 66px; z-index: 29; background: var(--night); color: #fff; padding: 28px var(--pad) calc(120px + var(--safe-b)); overflow-y: auto; }
#menu nav { display: grid; gap: 4px; }
#menu nav a { color: #fff; text-decoration: none; font: 700 clamp(26px, 7vw, 40px)/1.25 "Fraunces", serif; }
#menu nav a[aria-current] { color: var(--teal-l); font-style: italic; }
#menu p { color: rgba(255,255,255,.75); margin-top: 28px; font-size: 15px; }
#menu p a { color: #fff; }
@media (min-width: 1000px) {
  .hnav, .hcta { display: inline-flex; } .burger { display: none; } #menu { display: none; }
  .brand img { width: 150px; }
}

/* hero de subpágina */
.phero { display: grid; gap: 34px; padding: clamp(28px, 6vw, 80px) var(--pad) clamp(40px, 7vw, 96px); align-items: center; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: 13px; color: var(--ink-m); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--coral-d); }
.crumbs a { color: var(--ink-m); }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-d); }
.phero h1 { font-size: clamp(40px, 9.5vw, 92px); max-width: 13ch; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-m); max-width: 52ch; margin: 22px 0 0; }
.phero-media picture img { width: 100%; border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(14,42,51,.45); }
.hero-draw { background: var(--teal-s); border-radius: var(--r); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 10%; }
@media (min-width: 900px) {
  .phero { grid-template-columns: 7fr 5fr; gap: 64px; }
  .phero-media { transform: translateY(40px); }
  .phero-media picture img { aspect-ratio: 4 / 5; }
}

/* bloques */
.block { display: grid; gap: 22px; padding: clamp(36px, 6vw, 88px) var(--pad); border-top: 1px solid rgba(14,42,51,.08); }
.block h2 { font-size: clamp(32px, 6.5vw, 60px); max-width: 16ch; }
.bbody { max-width: 980px; }
.bbody p { margin: 0 0 16px; max-width: 62ch; }
.sdraw { max-width: 240px; margin-top: 22px; }
@media (min-width: 900px) { .block { grid-template-columns: 4fr 8fr; gap: 64px; } .bhead { position: sticky; top: 110px; align-self: start; } }

.cards { display: grid; gap: 14px; }
.card { background: #fff; border-radius: var(--r); padding: 26px 24px 24px; position: relative; border: 1px solid rgba(14,42,51,.07); transition: transform .4s var(--ease), box-shadow .4s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(14,42,51,.35); }
.card .n { font: italic 700 15px "Fraunces", serif; color: var(--coral-d); }
.card h3 { font-size: 24px; margin: 8px 0 10px; }
.card p { margin: 0; color: var(--ink-m); font-size: 16px; }
.card .pendiente { margin-top: 12px; }
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:nth-child(3n+1) { background: var(--teal-s); border-color: transparent; }
  .cards .card:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}

.certs { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.certs li { background: #fff; border-left: 4px solid var(--teal); padding: 12px 16px; border-radius: 0 12px 12px 0; font-weight: 600; font-size: 15px; }
.nota { font-size: 15px; color: var(--ink-m); border-left: 3px solid var(--coral); padding-left: 14px; }
.pendiente { background: #fff4ef; border: 2px dashed var(--coral-d); color: #8a3416; border-radius: 12px; padding: 12px 14px; font-size: 14px; }

/* relacionadas */
.rels { display: grid; gap: 10px; }
.rel { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 4px; border-bottom: 1px solid rgba(14,42,51,.15); text-decoration: none; color: var(--ink); }
.rel span { font: 700 clamp(22px, 3.4vw, 30px)/1.1 "Fraunces", serif; transition: transform .4s var(--ease), color .3s; }
.rel small { color: var(--teal-d); font-weight: 700; white-space: nowrap; }
.rel:hover span { transform: translateX(8px); color: var(--teal-d); font-style: italic; }
.back { margin-top: 20px; font-size: 15px; }

/* banda CTA */
.band { margin: 0 var(--pad) clamp(40px, 6vw, 80px); padding: clamp(36px, 7vw, 80px) clamp(24px, 6vw, 72px); border-radius: calc(var(--r) * 1.4); background: radial-gradient(120% 140% at 100% 0%, var(--teal-d) 0%, var(--night) 62%); color: #fff; }
.band h2 { font-size: clamp(34px, 7vw, 68px); max-width: 15ch; }
.band em { color: var(--coral); }
.band p { color: rgba(255,255,255,.82); max-width: 50ch; margin: 18px 0 0; }

/* pie */
.foot { text-align: center; padding: 40px var(--pad) calc(110px + var(--safe-b)); background: var(--bg-2); font-size: 14px; color: var(--ink-m); }
.foot img { width: 140px; margin: 0 auto 18px; }
.foot a { color: var(--ink); }
.flinks { line-height: 2; max-width: 820px; margin: 16px auto; }
.copy { font-size: 13px; }
@media (min-width: 1000px) { .foot { padding-bottom: 40px; } }

/* barra fija móvil */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 25; display: flex; gap: 8px; padding: 6px; background: rgba(10,31,38,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; }
.dock a { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; }
.dock .c { flex: 0 0 auto; padding: 0 20px; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.dock .r { flex: 1; background: var(--coral); color: var(--night); }
@media (min-width: 1000px) { .dock { display: none; } }

/* dibujos de línea y entradas */
.draw { width: 100%; height: auto; overflow: visible; }
.draw .ln, .draw .ac { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.draw .ln { stroke: var(--ink); }
.draw .ac { stroke: var(--coral-d); }
.draw path, .draw rect, .draw circle { stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.2s var(--ease); }
.draw.in path, .draw.in rect, .draw.in circle { stroke-dashoffset: 0; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-anim .reveal, .no-anim .draw path, .no-anim .draw rect, .no-anim .draw circle { opacity: 1; transform: none; stroke-dashoffset: 0; transition: none; }
@media not all /* reducir movimiento desactivado por decisión del owner, 6-oct-2026 */ {
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw path, .draw rect, .draw circle { stroke-dashoffset: 0; transition: none; }
  .btn, .card, .rel span { transition: none; }
}

/* el hero entra solo (sin esperar al observador) para no retrasar el LCP */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.phero-txt, .phero-media > * { animation: rise .9s var(--ease) both; }
.phero-media > * { animation-delay: .12s; }
@media not all /* reducir movimiento desactivado por decisión del owner, 6-oct-2026 */ { .phero-txt, .phero-media > * { animation: none; } }

/* ================= Movimiento de las subpáginas (6-oct) — solo transform/opacity; sin librerías ================= */
/* hero: entrada escalonada, titular palabra a palabra */
.phero-txt { animation: none; }
.phero-txt > * { animation: rise .8s var(--ease) both; }
.phero-txt > .crumbs { animation-delay: 0s; } .phero-txt > .kicker { animation-delay: .05s; }
.phero-txt > h1 { animation: none; }
.phero-txt > .lead { animation-delay: .45s; } .phero-txt > .ctas { animation-delay: .6s; }
.phero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.phero h1 .w > span { display: inline-block; animation: wordup .9s var(--ease) both; animation-delay: calc(.12s + var(--i) * 55ms); }
@keyframes wordup { from { transform: translateY(105%) rotate(4deg); } to { transform: none; } }

/* hero: la foto se revela y luego hace un parallax suave (lo calcula el navegador, sin código) */
.phero-media > * { animation: none; }
.phero-media picture { display: block; overflow: hidden; border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(14,42,51,.45); animation: unveil 1s var(--ease) both; }
.phero-media picture img { border-radius: 0; box-shadow: none; }
.hero-draw { animation: rise .9s var(--ease) .2s both; }
@keyframes unveil { from { clip-path: inset(0 0 38% 0); } to { clip-path: inset(0 0 0 0); } }
@supports (animation-timeline: view()) {
  .phero-media picture img { animation: drift-y linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  @keyframes drift-y { from { transform: translateY(-5%) scale(1.12); } to { transform: translateY(5%) scale(1.12); } }
}

/* los dibujos «respiran» cuando terminan de trazarse */
.draw { transform-origin: 50% 55%; }
.draw.in { animation: breathe 4.5s ease-in-out 2.3s infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.06); } }

/* tarjetas, certificaciones y relacionadas entran una tras otra */
.reveal .card, .reveal .certs li, .reveal .rel { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(.15s + var(--i, 0) * 90ms); }
.reveal.in .card, .reveal.in .certs li, .reveal.in .rel { opacity: 1; transform: none; }
.reveal.in .card:hover { transform: translateY(-4px); transition-delay: 0s; }

/* línea coral que se dibuja bajo cada título de sección */
.bhead h2::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 3px; background: var(--coral-d); margin-top: 18px; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .35s; }
.reveal.in .bhead h2::after { transform: scaleX(1); }
.band h2::after { display: none; }

/* barra de progreso de lectura */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; background: linear-gradient(90deg, var(--teal), var(--coral)); transform-origin: left; transform: scaleX(0); animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* banda final: brillo que se mueve muy despacio; WhatsApp con un pulso suave */
.band { position: relative; overflow: hidden; isolation: isolate; }
.band::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; left: -20%; top: -40%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(127,211,232,.28), transparent 62%); animation: glow 16s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { to { transform: translate(85%, 55%) scale(1.2); } }
.dock .r, .hcta, .band .btn.light { position: relative; }
.dock .r::after, .hcta::after, .band .btn.light::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--coral); opacity: 0; animation: ring 4s ease-out 2s infinite; pointer-events: none; }
.band .btn.light::after { box-shadow: 0 0 0 2px #fff; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 55%, 100% { transform: scale(1.12, 1.45); opacity: 0; } }

@media not all /* reducir movimiento desactivado por decisión del owner, 6-oct-2026 */ {
  .phero-txt > *, .phero h1 .w > span, .phero-media picture, .hero-draw, .draw.in, .phero-media picture img, .band::before,
  .dock .r::after, .hcta::after, .band .btn.light::after, .progress { animation: none !important; }
  .reveal .card, .reveal .certs li, .reveal .rel { opacity: 1; transform: none; transition: none; }
  .bhead h2::after { transform: scaleX(1); transition: none; }
  .progress { display: none; }
}
.no-anim .reveal .card, .no-anim .reveal .certs li, .no-anim .reveal .rel { opacity: 1; transform: none; }
.no-anim .bhead h2::after { transform: scaleX(1); }

/* selector de idioma ES · EU (discreto) */
.lang { display: flex; gap: 2px; margin-left: auto; font: 600 11px/1 "Inter", sans-serif; letter-spacing: .08em; }
.lang a { padding: 8px 6px; border-radius: 6px; color: var(--ink); opacity: .5; text-decoration: none; }
.lang a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.lang a:hover { opacity: .85; }
.top .burger { margin-left: -8px; }
@media (min-width: 1000px) { .top .lang { margin-left: -6px; } }
/* nota de la clase gratis bajo los botones del hero (8-oct) */
.ph-note{margin-top:14px;font-size:13px;font-weight:600;letter-spacing:.02em;opacity:.75}
