/* ============================================================
   Alberto Entrena — entrenamiento online para recuperar la salud
   Identidad "clínica-natural": verde pino (rigor, calma) + esmeralda
   (salud, energía). Lora + Hanken Grotesk + IBM Plex Mono.
   Motivo de marca: la RAMPA (sobrecarga progresiva = constancia).
   Deliberadamente NO parece un gimnasio.
   ============================================================ */

:root {
  --paper:      #eef0ea;   /* off-white con un susurro verde: papel de consulta */
  --paper-deep: #e4e7de;   /* bandas alternas */
  --surface:    #fcfcfa;   /* tarjetas */
  --ink:        #16241e;   /* verde casi negro, texto */
  --ink-soft:   #48584f;   /* texto secundario */
  --pine:       #1e4a39;   /* verde profundo: salud, rigor */
  --pine-lit:   #2c6a51;
  --pine-deep:  #143528;
  --emerald:       #0a7d52;   /* esmeralda: acento para superficies/botones (texto blanco AA) */
  --emerald-text:  #0a6b47;   /* esmeralda legible como texto sobre papel claro (AA) */
  --emerald-lit:   #12a06a;   /* esmeralda vivo para hover */
  --emerald-soft:  #d3ebdf;   /* fondo de acento suave */
  --sage:       #d8e3d8;   /* superficie verde suave (chips) */
  --sage-line:  #bfd3c2;
  --line:       #dad8cc;

  --shadow:    0 1px 2px rgba(20,53,40,.05), 0 10px 28px -12px rgba(20,53,40,.14);
  --shadow-lg: 0 2px 5px rgba(20,53,40,.06), 0 28px 56px -20px rgba(20,53,40,.22);

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --r:   14px;
  --r-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 6.2rem; } /* que las anclas no queden bajo la nav fija */

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
strong { font-weight: 600; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1rem; z-index: 100; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; top: 0; }

:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.wrap--narrow { width: min(720px, 100% - 2.5rem); }

/* ── Motivo de marca: la rampa (sobrecarga progresiva) ───── */

.ramp { display: inline-flex; gap: 3px; align-items: flex-end; height: 1em; vertical-align: -.12em; }
.ramp i { width: .34em; border-radius: 1px; background: var(--sage-line); display: block; }
.ramp i:nth-child(1) { height: 45%; }
.ramp i:nth-child(2) { height: 72%; }
.ramp i:nth-child(3) { height: 100%; }
.ramp--l1 i:nth-child(1),
.ramp--l2 i:nth-child(1), .ramp--l2 i:nth-child(2),
.ramp--l3 i { background: var(--pine); }
.ramp--emerald.ramp--l1 i:nth-child(1),
.ramp--emerald.ramp--l2 i:nth-child(1), .ramp--emerald.ramp--l2 i:nth-child(2),
.ramp--emerald.ramp--l3 i { background: var(--emerald); }

/* ── Tipografía de sección ───────────────────────────────── */

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono);
  font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--emerald-text);
  margin: 0 0 1rem;
}
.eyebrow--center { justify-content: center; }

.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); text-align: center; }
.section-sub {
  max-width: 54ch; margin: 1rem auto 0;
  text-align: center; color: var(--ink-soft); font-size: 1.08rem;
}

/* ── Botones ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.65rem;
  background: var(--emerald); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: .97rem;
  text-decoration: none; border: none; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--emerald-lit); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Botón sobre fondo OSCURO (la sección de contacto).
   Antes esto era .btn--pine con `background: var(--pine)` — exactamente el mismo
   color que `.contact`, así que el CTA principal del formulario era invisible:
   solo se veía el texto blanco flotando. Contraste botón/fondo 1.00:1.
   En claro sobre oscuro sí cumple: ~8:1 contra el fondo y ~10:1 el texto, en las
   tres direcciones visuales, porque usa variables de marca y no colores fijos. */
.btn--light { background: var(--emerald-soft); color: var(--pine-deep); }
.btn--light:hover { background: #fff; color: var(--pine-deep); }

.btn--ghost {
  background: transparent; color: var(--pine);
  border: 1.5px solid var(--line); box-shadow: none;
}
.btn--ghost:hover { background: var(--surface); border-color: var(--pine); color: var(--pine); }

.btn--sm   { padding: .58rem 1.15rem; font-size: .88rem; }
.btn--big  { padding: 1.05rem 2.2rem; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* ── Placeholders (visibles a propósito) ─────────────────── */

.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .55rem; padding: 1.75rem; margin: 0;
  background:
    repeating-linear-gradient(45deg, var(--paper-deep), var(--paper-deep) 12px, #dbe0d6 12px, #dbe0d6 24px);
  border: 2px dashed #b7c3b3;
  border-radius: var(--r);
  text-align: center;
}
.ph__tag {
  font-family: var(--mono);
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--emerald);
  padding: .3rem .7rem; border-radius: 999px;
}
.ph__note { font-size: .88rem; color: var(--ink-soft); max-width: 34ch; line-height: 1.45; }

.ph--portrait { aspect-ratio: 4 / 5; }
.ph--tall     { aspect-ratio: 3 / 4; }
.ph--wide     { aspect-ratio: 16 / 9; margin-top: 2rem; }
.ph--card     { aspect-ratio: 1 / 1; }

/* ── Fotos (reales o de muestra) ─────────────────────────── */
.photo { border-radius: var(--r); overflow: hidden; background: var(--paper-deep); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Marca inequívoca de contenido de MUESTRA (mockup — nunca publicar como real) */
[data-demo] { position: relative; }
[data-demo]::after {
  content: "muestra";
  position: absolute; top: .55rem; right: .55rem; z-index: 3; pointer-events: none;
  background: #a15c00; color: #fff;
  font-family: var(--mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 999px;
}

.ph__inline {
  background: var(--emerald-soft); color: var(--emerald-text);
  border-bottom: 2px dotted var(--emerald-lit);
  padding: 0 .3em; border-radius: 3px;
  font-weight: 600; text-decoration: none;
}
[data-ph] { position: relative; }
[data-ph]::after {
  content: "pendiente";
  position: absolute; top: -8px; right: -8px;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono);
  font-size: .6rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: .18rem .45rem; border-radius: 999px;
}

/* ── Reveal al hacer scroll ──────────────────────────────── */

/* Solo se ocultan si hay JS (clase .js en <html>); sin JS, todo visible. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Nav ─────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 2rem; padding: .9rem 0; }
.nav__brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.12rem;
  text-decoration: none; letter-spacing: -.01em;
}
.nav__brand .ramp { height: 1.05rem; }

/* ── Marca (insignia + wordmark) ─────────────────────────── */
.brand__badge { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.brand__verb { color: var(--emerald); }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__links a {
  text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--emerald-text); }
/* Scrollspy: enlace de la sección visible */
.nav__links a.is-active {
  color: var(--emerald-text);
  text-decoration: underline;
  text-decoration-color: var(--emerald);
  text-decoration-thickness: 2px;
  text-underline-offset: .48em;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 88% -10%, var(--sage) 0%, transparent 55%);
  opacity: .7;
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
/* Sin esto, la fila de chips (overflow-x:auto) impone su min-content a la
   columna (min-width:auto) e infla el hero, que .hero{overflow:hidden} recorta. */
.hero__inner > * { min-width: 0; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.3rem);
  margin-bottom: 1.4rem;
}
.lead { font-size: 1.16rem; max-width: 46ch; color: var(--ink-soft); }
.lead--muted {
  color: var(--pine); font-weight: 600;
  border-left: 3px solid var(--emerald); padding-left: 1rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  color: var(--pine); background: var(--sage);
  border: 1px solid var(--sage-line);
  padding: .42rem .8rem; border-radius: 999px;
}
.chip b { color: var(--ink); font-weight: 700; }

/* ── Filtro sí/no ────────────────────────────────────────── */

.filter { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.filter__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.filter__col {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.filter__col h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.filter__col li {
  position: relative; padding-left: 1.9rem; margin-bottom: .75rem; line-height: 1.5;
}
.filter__col li::before {
  position: absolute; left: 0; top: -.05em;
  font-weight: 700; font-size: 1.15rem;
}

.filter__col--yes { background: var(--pine); color: #d8e6df; }
.filter__col--yes h2 { color: #fff; }
.filter__col--yes li::before { content: "✓"; color: #86c9a6; }

.filter__col--no { background: var(--surface); border: 1px solid var(--line); }
.filter__col--no li::before { content: "✕"; color: var(--emerald-text); }
.filter__col--no li { color: var(--ink-soft); }
.filter__kicker {
  margin: 1.5rem 0 0; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-weight: 600; color: var(--ink); font-size: .95rem;
}

/* ── Servicios ───────────────────────────────────────────── */

.services { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.svc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--sage-line); }
.svc__icn {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1.2rem;
  background: var(--sage); color: var(--pine);
}
.svc h3 { font-size: 1.24rem; margin-bottom: .6rem; }
.svc p { margin: 0; font-size: .96rem; color: var(--ink-soft); line-height: 1.55; }

/* ── Diferenciador: ciclo menstrual (bloque destacado dentro de 'Cómo trabajo') ── */

/* Ya no es sección propia: vive dentro del método como una tarjeta destacada. */
.cycle-note {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  background: var(--emerald-soft);
  border: 1px solid var(--sage-line); border-radius: var(--r);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
.cycle__intro h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.cycle__lead { color: var(--ink-soft); margin-bottom: 1.5rem; }
.cycle__list { display: grid; gap: 1.4rem; }
.cycle__list li {
  padding-left: 1.1rem; border-left: 3px solid var(--emerald);
}
.cycle__list .ramp { height: .95em; margin-bottom: .5rem; }
.cycle__list h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.cycle__list p { margin: 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.55; }

/* ── Historia ────────────────────────────────────────────── */

.story { padding: clamp(3rem, 7vw, 6rem) 0; }
.story__inner {
  display: grid; grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.story h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 1.5rem; }
.story p { color: var(--ink-soft); }
.story strong { color: var(--ink); }
.story__punch {
  margin-top: 1.75rem; padding: 1.25rem 1.5rem;
  background: var(--surface); border-left: 3px solid var(--emerald);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.4;
  color: var(--ink) !important;
}

/* ── Cita ────────────────────────────────────────────────── */

.quote {
  background: var(--pine-deep); color: var(--paper);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  text-align: center;
}
.quote blockquote { margin: 0; }
.quote p {
  margin: 0;
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.4;
  letter-spacing: -.01em;
}
.quote cite {
  display: block; margin-top: 1.4rem;
  font-family: var(--mono); font-style: normal;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: #86c9a6;
}

/* ── Método ──────────────────────────────────────────────── */

.method { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; margin-top: 3rem;
}
.step {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.step__n {
  display: inline-block; margin-bottom: 1rem;
  font-family: var(--mono); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; color: var(--emerald-text);
}
.step h3 { font-size: 1.14rem; margin-bottom: .6rem; }
.step p { margin: 0; font-size: .94rem; color: var(--ink-soft); line-height: 1.55; }

/* ── Trabajo real: tira de 3 fotos ───────────────────────── */
.realwork { padding: 0 0 clamp(2.75rem, 5vw, 4.5rem); }
.realwork__cap {
  max-width: 36ch; margin: 0 auto 1.6rem; text-align: center;
  font-family: var(--mono); font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--emerald-text);
}
.realwork__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* ── Línea temporal: qué esperar mes a mes ───────────────── */

.timeline { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.tl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.tl__item { position: relative; padding-top: 1.9rem; }
.tl__item::before {
  content: ""; position: absolute; top: 4px; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 0 4px var(--emerald-soft);
}
.tl__item::after {
  content: ""; position: absolute; top: 10px; left: 21px; right: -1.5rem; height: 2px;
  background: var(--sage-line);
}
.tl__item:last-child::after { display: none; }
.tl__when {
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-text);
  margin-bottom: .5rem;
}
.tl__item h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.tl__item p { margin: 0; font-size: .94rem; color: var(--ink-soft); line-height: 1.55; }

/* ── Alcance (reutiliza .filter) ─────────────────────────── */

.scope .filter__grid { margin-top: 2.5rem; }

/* ── Consentimiento del formulario ───────────────────────── */

.form label.check {
  display: flex; gap: .6rem; align-items: flex-start;
  margin: 0; font-weight: 400; line-height: 1.5; cursor: pointer;
}
.form label.check input[type="checkbox"] {
  width: 16px; height: 16px; flex: none; margin: .2rem 0 0; padding: 0;
  accent-color: var(--emerald);
}

/* ── Precios ─────────────────────────────────────────────── */

.pricing { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--paper-deep); }
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem; align-items: stretch;
}
.plan {
  display: flex; flex-direction: column;
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}
.plan--featured {
  border: 2px solid var(--emerald); box-shadow: var(--shadow-lg);
}
.plan__badge {
  position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  background: var(--emerald); color: #fff;
  font-family: var(--mono);
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 999px;
}
.plan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.plan__name { font-size: 1.4rem; margin-bottom: .5rem; }
.plan__for { font-size: .92rem; color: var(--ink-soft); min-height: 3em; margin-bottom: .9rem; }
.plan__price {
  display: flex; align-items: baseline; gap: .25rem;
  margin: 0 0 .25rem;
}
.plan__price .n {
  font-family: var(--serif); font-size: 2.7rem; font-weight: 600;
  line-height: 1; color: var(--pine);
}
.plan__price .u { font-family: var(--mono); font-size: .95rem; color: var(--ink-soft); }
.plan__alt { font-family: var(--mono); font-size: .78rem; color: var(--emerald-text); margin-bottom: 1.4rem; }
.plan__list { margin-bottom: 2rem; flex-grow: 1; }
.plan__list li {
  position: relative; padding-left: 1.6rem; margin-bottom: .6rem;
  font-size: .93rem; color: var(--ink-soft); line-height: 1.5;
}
.plan__list li::before {
  content: "✓"; position: absolute; left: 0; top: -.02em;
  color: var(--pine-lit); font-weight: 700;
}
.plan--featured .plan__list li::before { color: var(--emerald-text); }
.plan__list li.is-inherit { color: var(--ink); font-weight: 600; }
.plan__list li.is-inherit::before { content: "→"; color: var(--ink-soft); }
.plan .btn { width: 100%; margin-top: auto; }

.pricing__note {
  max-width: 62ch; margin: 3rem auto 0;
  padding: 1.5rem 1.75rem;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--emerald);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--ink-soft); font-size: .97rem;
}
.pricing__note strong { color: var(--ink); }

/* Otras formas de trabajar (rehabilitación, asesoría) — antes 'Servicios' */
.plans-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.75rem; }
.xtra {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--emerald);
  border-radius: var(--r); padding: 1.4rem 1.5rem;
}
.xtra h3 { font-size: 1.14rem; margin-bottom: .45rem; }
.xtra p { margin: 0; font-size: .94rem; color: var(--ink-soft); line-height: 1.55; }
.xtra a { color: var(--emerald-text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--emerald-lit); }

/* Tira de fotos 'trabajo real' dentro de Mi historia */
.story .realwork { margin-top: clamp(2rem, 4vw, 3rem); padding-bottom: 0; }

/* ── Testimonios ─────────────────────────────────────────── */

.proof { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }

.tcard {
  display: flex; flex-direction: column; gap: 1.1rem; margin: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.75rem;
  box-shadow: var(--shadow);
}
.tcard__stars { color: var(--emerald); font-size: .92rem; letter-spacing: .12em; }
.tcard blockquote { margin: 0; font-size: .98rem; line-height: 1.6; color: var(--ink); }
.tcard blockquote::before { content: "« "; color: var(--emerald-text); }
.tcard blockquote::after  { content: " »"; color: var(--emerald-text); }
.tcard figcaption { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.tcard__photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.tcard__who { display: flex; flex-direction: column; line-height: 1.3; }
.tcard__who b { font-weight: 600; font-size: .95rem; }
.tcard__who small { font-size: .8rem; color: var(--ink-soft); }

/* ── FAQ ─────────────────────────────────────────────────── */

.faq { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--paper-deep); }
.faq .section-title { margin-bottom: 2.5rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: .75rem; overflow: hidden;
}
.faq summary {
  padding: 1.15rem 3rem 1.15rem 1.5rem;
  font-weight: 600; cursor: pointer; list-style: none; position: relative;
  transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--emerald-text); }
.faq summary::after {
  content: "+";
  position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--emerald-text); line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.5rem 1.4rem; color: var(--ink-soft); font-size: .97rem; }

/* ── Contacto ────────────────────────────────────────────── */

.contact { background: var(--pine); color: #d8e6df; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); }
.contact h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 2.9rem); margin: .4rem 0 1.1rem; }
.contact .eyebrow { color: #86c9a6; }
.contact__lead { max-width: 44ch; font-size: 1.08rem; }
.contact__direct { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.contact__direct a { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: #eaf2ee; font-weight: 500; }
.contact__direct .ic {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(134,201,166,.16); color: #86c9a6;
  transition: background .18s ease;
}
.contact__direct a:hover .ic { background: rgba(134,201,166,.28); }
.contact__direct small { display: block; color: #9fb6ab; font-size: .78rem; font-weight: 400; }

.form label { display: block; font-size: .84rem; color: #c3d4cb; font-weight: 500; margin: 0 0 .4rem; }
.fld__opt { color: #9fb6ab; font-weight: 400; } /* mismo gris que los placeholders (AA) */
.form .fld { margin-bottom: 1rem; }
.form input, .form textarea, .form select {
  width: 100%; background: rgba(0,0,0,.16); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm); color: #fff;
  font-family: var(--sans); font-size: .96rem; padding: .75rem .85rem;
  transition: border-color .15s ease;
}
.form input::placeholder, .form textarea::placeholder { color: #9fb6ab; } /* 5.5:1 sobre el input (antes 3.8, no llegaba a AA) */
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--emerald-lit); }
.form select option { color: #16241e; }
.form textarea { resize: vertical; min-height: 96px; }
.form .btn { width: 100%; margin-top: .3rem; }
.form__note { font-size: .78rem; color: #9fb6ab; margin-top: .9rem; line-height: 1.5; }
/* Señuelo antispam. Fuera de la vista y del foco, pero presente en el DOM: los
   bots rellenan todos los campos y se delatan. No se usa display:none porque
   algunos bots ya lo detectan y se saltan esos campos. */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form__ok { display: none; font-size: .92rem; color: #86c9a6; margin-top: .9rem; }

/* Cuando el envío falla. Tiene que distinguirse del verde de "recibido": si un
   fallo se ve igual que un éxito, el visitante se va creyendo que ha contactado. */
.form__ok--warn { color: #f0b7a4; }

/* ── Footer ──────────────────────────────────────────────── */

.foot { background: var(--ink); color: #8fa39c; padding: 3rem 0; }
.foot__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.foot__brand { display: flex; align-items: center; gap: .7rem; margin: 0; }
.foot__mark { flex: none; }
.foot__lockup { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.foot__name {
  font-family: var(--serif); font-weight: 600; font-size: 1.12rem;
  letter-spacing: -.01em; color: #e8efe9;
}
.foot__name .brand__verb { color: var(--emerald-lit); }
.foot__rule { width: 32px; height: 2px; background: var(--emerald-lit); border-radius: 2px; }
.foot__kicker {
  font-family: var(--mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #8fa39c;
}
.foot__legal { font-size: .82rem; margin: 0; text-align: right; }
.foot__legal a { text-decoration: none; }

/* Crédito del estudio: una línea aparte bajo un filete, para que no compita con
   los enlaces legales ni con la marca de Alberto. Hereda el color del footer
   (5.8:1 sobre --ink) en vez de apagarse más, que a .78rem ya iría justo. */
.foot__credit {
  margin-top: 2.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .78rem;
  text-align: center;
}
.foot__credit p { margin: 0; }
.foot__credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.foot__credit a:hover { color: var(--emerald-lit); border-bottom-color: currentColor; }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 940px) {
  .hero__inner, .story__inner { grid-template-columns: 1fr; }
  .hero__photo { order: -1; max-width: 380px; }
  .story__photo { max-width: 420px; margin-inline: auto; }
  .cycle-note { grid-template-columns: 1fr; }
  .steps  { grid-template-columns: repeat(2, 1fr); }
  .tl     { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.5rem; }
  .tl__item:nth-child(2)::after { display: none; }
  .contact__grid { grid-template-columns: 1fr; }

  /* Menú móvil: tira de enlaces deslizable bajo el logo (antes no había menú) */
  .nav__inner { flex-wrap: wrap; row-gap: .15rem; padding: .7rem 0 .55rem; }
  .nav__links {
    order: 3; width: 100%; margin-left: 0; gap: 1.15rem;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { white-space: nowrap; font-size: .88rem; }

  /* Servicios y precios: apilados y completos. Son el contenido de conversión;
     un carrusel escondía el plan recomendado y 2 de 3 servicios. */
  .services__grid, .plans { grid-template-columns: 1fr; gap: 1.1rem; }

  /* Testimonios (prueba social, secundaria): carrusel deslizable con asomo */
  .cards {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -1.25rem; padding: 1.1rem 1.25rem .9rem;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar { display: none; }
  .cards > * { scroll-snap-align: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .filter__grid { grid-template-columns: 1fr; }
  .plans-extra { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; }
  .tl__item::after { display: none; }
  .hero__cta, .foot__inner { flex-direction: column; align-items: flex-start; }
  .hero__cta .btn { width: 100%; }
  .foot__legal { text-align: left; }

  /* Móvil compacto: menos aire vertical entre secciones */
  .hero { padding: 2.2rem 0 2.4rem; }
  .filter, .services, .story, .quote, .method, .timeline,
  .pricing, .proof, .faq, .cycle, .contact { padding: 2.4rem 0; }
  .section-sub { font-size: 1rem; }
  .services__grid, .plans, .cards, .steps, .tl { margin-top: 1.9rem; }

  /* Trabajo real: 3 fotos en fila quedan minúsculas en 350px → tira deslizable */
  .realwork__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -1.25rem; padding: .2rem 1.25rem;
    scrollbar-width: none;
  }
  .realwork__grid::-webkit-scrollbar { display: none; }
  .realwork__grid > * { scroll-snap-align: center; }

  /* Chips del hero en una sola línea deslizable */
  .hero__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 1.6rem; }
  .hero__chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }

  /* Método y línea temporal también en carrusel (secuencias ordenadas) */
  .steps, .tl {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -1.25rem; padding: .2rem 1.25rem .6rem;
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar, .tl::-webkit-scrollbar { display: none; }
  .steps > *, .tl > * { scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .reveal { opacity: 1; transform: none; }
  .btn:hover, .svc:hover { transform: none; }
}
