/* ============================================================
   Automaclinic — hoja de estilos
   Dirección: editorial clínica. Verde bosque sobre papel crema,
   serif Newsreader para titulares, mono para etiquetas.
   ============================================================ */

/* ---------- Fuentes (auto-alojadas, sin CDN → sin fuga de IPs, RGPD) ---------- */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('../assets/fonts/Newsreader-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/PublicSans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/PublicSans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../assets/fonts/JetBrainsMono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #16211e;
  --ink-soft: #2a3835;
  --ink-softer: #3d4744;
  --muted: #5d6b68;
  --muted-2: #8a9995;
  --muted-3: #9db3ae;
  --line: #e7ebea;
  --line-2: #dfe9e6;
  --surface: #f4f7f6;
  --surface-2: #eef1f0;
  --surface-3: #eef5f3;
  --paper: #faf9f5;
  --white: #ffffff;
  --brand: #1e7d6f;
  --brand-dark: #14574d;
  --brand-bright: #2a9a89;
  --mint: #7fd3c2;
  --mint-soft: #dcf3ea;
  --danger: #b3261e;
  --danger-soft: #fdecea;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(22, 33, 30, 0.05);
  --shadow: 0 4px 20px rgba(22, 33, 30, 0.07);
  --shadow-lg: 0 24px 60px rgba(22, 33, 30, 0.13);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

::selection { background: var(--mint-soft); color: var(--ink); }

/* ---------- Utilidades ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.12;
}

.h2 { font-size: clamp(27px, 4.4vw, 38px); }

.lede {
  color: var(--muted);
  font-size: clamp(15.5px, 1.6vw, 17px);
  max-width: 62ch;
}

.section { padding-block: clamp(56px, 8.5vw, 104px); }
.section--tint { background: var(--surface); }
.section--paper { background: var(--paper); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-size: 14px;
}
.skip-link:focus { left: 0; color: var(--white); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(30, 125, 111, 0.25);
}
.btn--primary:hover {
  background: var(--brand-dark);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(30, 125, 111, 0.32);
}

.btn--bright { background: var(--brand-bright); color: var(--white); }
.btn--bright:hover { background: var(--mint); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--white); }

.btn--sm { padding: 11px 20px; font-size: 14.5px; }
.btn--block { width: 100%; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(22, 33, 30, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  color: var(--muted);
  font-size: 15px;
  position: relative;
  padding-block: 4px;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  display: block;
  width: 17px; height: 1.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s linear;
}
.nav__toggle span::before { transform: translateY(-5.5px); }
.nav__toggle span::after { transform: translateY(4px); }
.nav__toggle[aria-expanded='true'] span { background: transparent; }
.nav__toggle[aria-expanded='true'] span::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded='true'] span::after { transform: rotate(-45deg) translateY(0); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(52px, 8vw, 88px) clamp(56px, 8vw, 96px);
  background:
    radial-gradient(1100px 480px at 88% -8%, var(--mint-soft) 0%, transparent 62%),
    radial-gradient(700px 400px at 4% 6%, var(--surface-3) 0%, transparent 58%),
    var(--white);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 65%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 65%);
}
.hero > * { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 15px 7px 11px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero__tag i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 0 3px rgba(42, 154, 137, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(42, 154, 137, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(42, 154, 137, 0.05); }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(35px, 6.1vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.021em;
  margin-bottom: 22px;
}

.hero__lede {
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 18.5px);
  line-height: 1.62;
  max-width: 54ch;
  margin-bottom: 30px;
}

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero__note { font-size: 13.5px; color: var(--muted-2); }

/* Bloque respuesta (GEO/AEO) */
.answer {
  margin-top: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  max-width: 60ch;
  box-shadow: var(--shadow-sm);
}
.answer h2 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.answer p { font-size: 14.6px; color: var(--muted); line-height: 1.62; }

/* Métricas */
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.metric {
  flex: 1 1 128px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.metric:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.metric__n {
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.metric__l {
  font-size: 12.4px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
}

/* ---------- Simulación de chat ---------- */
.chat {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.chat::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(127, 211, 194, 0.5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  margin-bottom: 16px;
}
.chat__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  flex: none;
}
.chat__name { color: var(--white); font-size: 14.5px; font-weight: 600; }
.chat__status {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mint);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat__status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mint);
}

.chat__log { display: flex; flex-direction: column; gap: 11px; }

.bubble {
  max-width: 84%;
  padding: 11px 15px;
  font-size: 14.2px;
  line-height: 1.5;
  border-radius: 16px;
  opacity: 0;
  animation: bubbleIn 0.55s var(--ease) forwards;
}
.bubble strong { font-weight: 600; }
.bubble--in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.09);
  color: #e8efed;
  border-bottom-left-radius: 5px;
}
.bubble--out {
  align-self: flex-end;
  background: var(--brand);
  color: var(--white);
  border-bottom-right-radius: 5px;
}
.bubble:nth-child(1) { animation-delay: 0.25s; }
.bubble:nth-child(2) { animation-delay: 0.75s; }
.bubble:nth-child(3) { animation-delay: 1.25s; }
.bubble:nth-child(4) { animation-delay: 1.75s; }

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.chat__foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--muted-3);
  text-transform: uppercase;
}

/* ---------- Rejilla de dolores ---------- */
.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}
.pain {
  background: var(--white);
  padding: 28px 26px;
  transition: background 0.25s var(--ease);
}
.pain:hover { background: var(--surface-3); }
.pain h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.pain p { font-size: 14.6px; color: var(--muted); line-height: 1.6; }

/* ---------- Tabla comparativa ---------- */
.compare-wrap { overflow-x: auto; margin-top: 36px; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14.6px;
}
.compare thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  font-weight: 500;
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:nth-child(3) { color: var(--brand-dark); font-weight: 600; background: var(--mint-soft); }

/* ---------- Servicios ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.service::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--mint));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.service:hover::before { transform: scaleX(1); }
.service__n {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--brand-bright);
  margin-bottom: 13px;
}
.service h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 9px; }
.service p { font-size: 14.6px; color: var(--muted); line-height: 1.6; }

.services__foot {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.services__foot p { color: var(--muted); font-size: 15px; }
.link-mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.link-mono span { transition: transform 0.25s var(--ease); }
.link-mono:hover span { transform: translateX(4px); }

/* ---------- Proceso ---------- */
.process__grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.steps { margin-top: 30px; }
.step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__day {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--brand);
  padding-top: 3px;
}
.step h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 5px; }
.step p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

.report {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 26px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}
.report__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.report__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted-3);
}
.report__big {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--mint);
  letter-spacing: -0.02em;
}
.report__rows { margin-top: 6px; }
.report__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13.8px;
}
.report__row:last-child { border-bottom: 0; }
.report__row span:first-child { color: var(--muted-3); }
.report__row span:last-child { font-family: var(--mono); font-weight: 500; }
.report__note {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted-3);
  line-height: 1.45;
}

/* ---------- Calculadora ---------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  margin-top: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }

.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 9px;
}
.field__val {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--brand);
  font-weight: 500;
}
.field__hint { font-size: 12.6px; color: var(--muted-2); margin-top: 7px; line-height: 1.45; }

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 100px;
  background: var(--line);
  outline-offset: 6px;
  cursor: pointer;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--white);
  box-shadow: 0 1px 6px rgba(22, 33, 30, 0.28);
  cursor: grab;
  transition: transform 0.18s var(--ease);
}
input[type='range']::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.12); }
input[type='range']::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--white);
  box-shadow: 0 1px 6px rgba(22, 33, 30, 0.28);
  cursor: grab;
  border-color: var(--white);
}
input[type='range']::-moz-range-track { height: 5px; border-radius: 100px; background: var(--line); }

.calc__out {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.calc__out::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  right: -110px; top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 211, 194, 0.19), transparent 70%);
  pointer-events: none;
}
.calc__out .report__label { display: block; margin-bottom: 6px; }
.calc__big {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 52px);
  line-height: 1;
  color: var(--mint);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.calc__sub { font-size: 13px; color: var(--muted-3); margin-top: 8px; }
.calc__rows { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.calc__disclaimer {
  font-size: 11.6px;
  color: var(--muted-2);
  margin-top: 16px;
  line-height: 1.5;
}

/* ---------- Testimonios ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quote__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--brand-bright);
}
.quote blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.quote figcaption { font-size: 12.8px; color: var(--muted-2); margin-top: auto; }

.disclaimer-note {
  margin-top: 22px;
  font-size: 12.8px;
  color: var(--muted-2);
  font-style: italic;
  line-height: 1.5;
}

/* ---------- FAQ ---------- */
.faq { margin-top: 38px; max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq details[open] summary { color: var(--brand); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 44px 18px 0;
  font-size: 17px;
  font-weight: 600;
  position: relative;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px; top: 50%;
  width: 11px; height: 11px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.28s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--brand); }
.faq__body {
  padding: 0 44px 20px 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  animation: faqIn 0.32s var(--ease);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Formulario ---------- */
.contact {
  background:
    radial-gradient(900px 420px at 92% 0%, rgba(127, 211, 194, 0.08) 0%, transparent 60%),
    var(--ink);
  color: var(--white);
}
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin-bottom: 14px;
}
.contact__lede { color: #b9c7c3; font-size: 16px; line-height: 1.62; }
.contact__list { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.contact__item {
  display: flex;
  gap: 11px;
  font-size: 14.6px;
  color: #cdd8d5;
  line-height: 1.5;
}
.contact__item::before {
  content: '✓';
  color: var(--mint);
  font-weight: 700;
  flex: none;
}
.contact__direct {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.contact__direct a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.contact__direct a:hover { color: var(--mint); }

.form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 38px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form .field { margin-bottom: 18px; }

label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 7px; }
label .req { color: var(--brand); }
label .opt { font-weight: 400; color: var(--muted-2); font-size: 12.6px; }

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='number'],
select,
textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%235d6b68' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
textarea { resize: vertical; min-height: 108px; line-height: 1.55; }

input:hover, select:hover, textarea:hover { border-color: var(--muted-3); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3.5px rgba(30, 125, 111, 0.13);
}
::placeholder { color: var(--muted-3); opacity: 1; }

/* Trampa antispam — invisible para humanos, tentadora para bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  font-size: 13.4px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 8px;
  cursor: pointer;
}
.check input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  margin: 0;
  border: 1.6px solid var(--muted-3);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  position: relative;
  flex: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.check input[type='checkbox']:checked {
  background: var(--brand);
  border-color: var(--brand);
}
.check input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

.form__submit { margin-top: 22px; }
.form__legal { font-size: 11.8px; color: var(--muted-2); margin-top: 14px; line-height: 1.5; }

.error {
  display: none;
  font-size: 13px;
  color: var(--danger);
  margin-top: 6px;
}
.field.is-invalid .error { display: block; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--danger); }

.alert {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14.4px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.alert--ok { background: var(--mint-soft); color: var(--brand-dark); border: 1px solid #b6e5d6; }
.alert--err { background: var(--danger-soft); color: var(--danger); border: 1px solid #f5c6c2; }

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pie ---------- */
.footer {
  background: var(--ink);
  color: var(--muted-3);
  padding-block: 52px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer .brand { color: var(--white); }
.footer .brand__mark { background: var(--brand); }
.footer p { font-size: 13.8px; line-height: 1.6; margin-top: 13px; max-width: 40ch; }
.footer h4 {
  font-family: var(--mono);
  font-size: 10.8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.footer li { margin-bottom: 9px; }
.footer li a { color: var(--muted-3); font-size: 14px; }
.footer li a:hover { color: var(--mint); }
.footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-size: 12.6px;
}

/* ---------- Páginas legales ---------- */
.legal { max-width: 780px; padding-block: clamp(40px, 6vw, 72px); }
.legal__back {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
}
.legal h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.legal__meta {
  font-size: 13px;
  color: var(--muted-2);
  padding-bottom: 26px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 26px);
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
}
.legal h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--ink-softer); font-size: 15.2px; line-height: 1.72; }
.legal p { margin-bottom: 14px; }
.legal ul { list-style: none; margin: 0 0 16px; padding: 0; }
.legal ul li { position: relative; padding-left: 20px; margin-bottom: 9px; }
.legal ul li::before {
  content: '';
  position: absolute;
  left: 3px; top: 11px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 14.4px;
}
.legal table th, .legal table td {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.legal table th { background: var(--surface); font-weight: 600; }
.legal__note {
  background: var(--surface-3);
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 14.4px;
  color: var(--ink-softer);
  line-height: 1.6;
}
.legal__todo {
  background: #fff8e6;
  border: 1px dashed #d9a520;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 14px;
  color: #7a5800;
  line-height: 1.6;
}
.legal__todo strong { color: #5c4200; }

/* ---------- Reveal al hacer scroll ---------- */
/* Solo se ocultan si hay JS que pueda volver a mostrarlos.
   Sin JS (o si main.js falla), el contenido se ve siempre. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid,
  .process__grid,
  .calc,
  .contact__grid { grid-template-columns: 1fr; }
  .report { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Con 5 enlaces más el botón, el menú va justo entre 760 y 1080 px:
   apretamos separación y cuerpo antes de saltar al menú hamburguesa. */
@media (max-width: 1080px) and (min-width: 961px) {
  .nav { gap: 19px; }
  .nav__link { font-size: 14.2px; }
  .header .btn--sm { padding: 10px 15px; font-size: 13.8px; }
}

/* Con 5 enlaces más el botón, por debajo de ~960 px el menú se parte
   en dos filas: saltamos al menú hamburguesa antes de que ocurra. */
@media (max-width: 960px) {
  html { scroll-padding-top: 76px; }

  .nav {
    position: fixed;
    inset: 64px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px var(--pad) 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    color: var(--ink);
  }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .nav__toggle { display: grid; }

  .form__row { grid-template-columns: 1fr; gap: 0; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .metrics { gap: 10px; }
  .metric { flex-basis: calc(50% - 5px); }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .btn { width: 100%; }
  .hero__cta .btn { width: auto; }
}

@media (max-width: 420px) {
  .hero__cta .btn { width: 100%; }
  .bubble { max-width: 92%; }
}

/* ---------- Impresión y accesibilidad ---------- */
@media print {
  .header, .nav, .contact, .footer, .btn { display: none !important; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bubble { opacity: 1; }
}
