/* ══════════════════════════════════════════
   JMV CONSULTORES — Sistema visual
   Sobrio, editorial y corporativo. Mobile-first.
   Azul marino institucional + blanco/gris cálido + bronce.
   Mantiene los nombres de clase históricos para no romper
   las páginas ya publicadas ni los generadores.
   ══════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Color */
  --bg: #ffffff;
  --bg-warm: #f7f5f1;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --text: #15202f;
  --text-muted: #55606f;
  --text-soft: #6b7483;
  --navy: #16243f;
  --navy-700: #1e2f4f;
  --accent: #8a5a2b;
  --accent-ink: #6f4620;
  --line: #e4dfd6;
  --line-strong: #cfc7ba;
  --focus: #1a5fb4;
  --ok: #1c6b45;
  --danger: #a3251f;

  /* Compatibilidad con el tema oscuro anterior: nada debe quedar invisible */
  --bg-soft: var(--bg-warm);
  --text-soft-old: var(--text-soft);
  --fg: var(--text);

  /* Tipografía */
  --font-head: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Forma */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(21, 32, 47, 0.05);
  --shadow-md: 0 12px 32px rgba(21, 32, 47, 0.08);
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

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

::selection { background: #eadfce; color: var(--text); }

.container { width: min(1120px, 92%); margin-inline: auto; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0; color: #fff; }

/* El color de acento reemplaza al degradado anterior en titulares.
   Se mantiene la clase para no tocar el HTML generado. */
.gradient-text {
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* ══════════════════════════════════════════
   CABECERA Y NAVEGACIÓN
   ══════════════════════════════════════════ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-head { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(10px); }
}
.site-head__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}
.site-head__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-head__brand img { height: 38px; width: auto; display: block; }
.site-head__brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.site-head__brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
}
.nav__list a:hover { background: var(--bg-warm); color: var(--navy); }
.nav__list a[aria-current="page"] { color: var(--navy); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 6px; }
.nav__cta { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Móvil: panel desplegable bajo la cabecera */
@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 4vw 22px;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list a { min-height: 48px; padding: 0 14px; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav__list a[aria-current="page"] { background: var(--bg-warm); box-shadow: inset 3px 0 0 var(--accent); }
  .nav__cta { margin: 14px 0 0; flex-direction: column; align-items: stretch; }
  .nav__cta .btn { width: 100%; }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 26px;
  min-height: 48px;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--bg-warm); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--bg-warm); }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; min-height: 42px; }
.btn--lg { padding: 16px 32px; font-size: 1.03rem; }
.btn--full { width: 100%; }

/* En cabecera sobre fondo claro, el botón fantasma hereda el tema claro */
.site-head .btn--ghost { color: var(--navy); }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 380px at 50% -120px, #f2ede4 0%, rgba(247, 245, 241, 0) 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__blob { display: none; }
.hero__content { position: relative; max-width: 860px; margin-inline: auto; text-align: center; }
.hero__eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.15rem, 6.4vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: clamp(1.02rem, 2.4vw, 1.16rem);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 32px;
}
.hero__subtitle strong { color: var(--text); }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 38px; }
.hero__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-inline: auto;
  max-width: 720px;
}
.hero__stats li {
  flex: 1 1 0;
  min-width: 140px;
  padding: 0 12px;
  border-left: 1px solid var(--line);
}
.hero__stats li:first-child { border-left: 0; }
.hero__stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  font-weight: 700;
  color: var(--navy);
}
.hero__stats span { color: var(--text-muted); font-size: 0.82rem; }

/* ══════════════════════════════════════════
   SECCIONES
   ══════════════════════════════════════════ */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-warm); border-block: 1px solid var(--line); }
.section__eyebrow {
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 12px;
}
.section__title {
  text-align: center;
  font-size: clamp(1.7rem, 4.6vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.section__lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 38px;
}

/* ── Servicios: filas editoriales numeradas ── */
.svc { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.svc__row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
a.svc__row { text-decoration: none; color: inherit; }
a.svc__row:hover {
  border-color: var(--line-strong);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
a.svc__row:hover .svc__hint .svc__hint-arrow { transform: translateX(5px); }
.svc__hint {
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.svc__hint-arrow { display: inline-block; transition: transform 0.2s; }
.svc__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--accent);
}
.svc__body h3 { font-size: 1.14rem; margin-bottom: 6px; }
.svc__body p { color: var(--text-muted); font-size: 0.96rem; }

/* ── Nosotros ── */
.about { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.about__text p { color: var(--text-muted); margin-bottom: 16px; }
.about__text .section__eyebrow,
.about__text .section__title { text-align: left; }
.about__list { list-style: none; margin-top: 22px; display: grid; gap: 12px; font-weight: 500; }
.about__list li { padding-left: 16px; border-left: 3px solid var(--accent); }
.about__visual { display: grid; place-items: center; }
.about__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  width: min(380px, 100%);
  box-shadow: var(--shadow-md);
}
.about__panel-title {
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.about__panel-stat {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem;
}
.about__panel-stat span { color: var(--text-muted); }
.about__panel-stat strong { font-family: var(--font-head); color: var(--navy); }
.about__panel-bar { height: 6px; border-radius: 99px; background: var(--accent); margin: 20px 0 12px; }
.about__panel-note { color: var(--text-muted); font-size: 0.86rem; }

/* ── Proceso ── */
.steps { display: grid; gap: 16px; max-width: 900px; margin-inline: auto; }
.step { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step__num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
}
.step h3 { margin-bottom: 6px; font-size: 1.08rem; }
.step p { color: var(--text-muted); font-size: 0.96rem; }

/* ── CTA ── */
.cta {
  margin: 32px auto;
  width: min(1120px, 92%);
  border-radius: var(--radius-lg);
  background: var(--navy);
  padding: 48px 24px;
  text-align: center;
  color: #fff;
}
.cta h2 { font-size: clamp(1.6rem, 4.4vw, 2.15rem); font-weight: 700; margin-bottom: 10px; color: #fff; }
.cta .gradient-text { color: #e9c9a0; -webkit-text-fill-color: currentColor; }
.cta p { margin-bottom: 26px; color: #d8dee9; }
.cta__inner { max-width: 720px; margin-inline: auto; }

/* ── Contacto ── */
.contact { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.contact__info { display: grid; gap: 12px; }
.contact__item {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
a.contact__item:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.contact__value { grid-column: 1; font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.contact__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.2s;
}
a.contact__item:hover .contact__arrow { transform: translateX(5px); }

.contact__form {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  display: grid;
  gap: 16px;
}
.form__row { display: grid; gap: 6px; }
.form__row label { font-weight: 600; font-size: 0.92rem; }
.form__row .req { color: var(--accent-ink); font-weight: 700; }
.form__row input, .form__row select, .form__row textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-family: inherit;
  font-size: 1rem;
  min-height: 48px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form__row textarea { min-height: 128px; resize: vertical; }
.form__row :is(input, select, textarea):focus {
  outline: 3px solid rgba(26, 95, 180, 0.35);
  outline-offset: 1px;
  border-color: var(--focus);
}
.form__row :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--danger); }
.form__error { color: var(--danger); font-size: 0.86rem; font-weight: 600; }
.form__error:empty { display: none; }
.form__note { color: var(--text-soft); font-size: 0.84rem; text-align: center; }
.form__status {
  border: 1px solid #bcd9c8;
  background: #f1f8f3;
  color: var(--ok);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
}
.form__status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ══════════════════════════════════════════
   PÁGINAS DE DETALLE
   ══════════════════════════════════════════ */
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 40px;
}
.crumb:hover { border-color: var(--line-strong); color: var(--navy); }
.crumb .contact__arrow { font-size: 0.95rem; color: var(--accent); }

.breadcrumb { margin-bottom: 28px; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-soft);
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

.detail { padding: 36px 0 64px; }
.detail__head { max-width: 820px; margin-bottom: 40px; }
.detail__num {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
}
.detail__head h1 { font-size: clamp(1.85rem, 5.4vw, 2.85rem); font-weight: 700; margin-bottom: 14px; }
.detail__head > p { color: var(--text-muted); font-size: 1.06rem; max-width: 680px; }
.list-hint {
  max-width: 900px;
  margin: 0 auto 16px;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.svc__row--plain { border-left-color: var(--line-strong); }
.svc__row--plain:hover { transform: none; box-shadow: none; }
.svc__body p { margin: 0; }

/* ── Enlaces relacionados ── */
.related { max-width: 900px; margin: 36px auto 0; }
.related__title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.related__links { display: flex; flex-wrap: wrap; gap: 10px; }
.related__link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.related__link:hover { border-color: var(--navy); color: var(--navy); }
.related__link .svc__hint-arrow { color: var(--accent); margin-left: 6px; }

/* ══════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════ */
.faq { padding: 56px 0 64px; background: var(--bg-warm); border-block: 1px solid var(--line); }
.faq__list { max-width: 840px; margin: 34px auto 0; display: grid; gap: 10px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
}
.faq__item summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.01rem;
  list-style: none;
  position: relative;
  padding-right: 34px;
  min-height: 28px;
  display: flex;
  align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p { color: var(--text-muted); font-size: 0.96rem; margin-top: 12px; }
.faq__more { text-align: center; margin-top: 26px; color: var(--text-muted); font-size: 0.95rem; }
.faq__more a { color: var(--accent-ink); font-weight: 600; }

/* FAQ del home */
.faq-home__count { font-family: var(--font-head); font-size: 1.3em; color: var(--accent); }
.faq-grid { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.faq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  content-visibility: auto;
  contain-intrinsic-size: auto 110px;
}
.faq-card summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.03rem;
  list-style: none;
  position: relative;
  padding-right: 38px;
  min-height: 28px;
  display: flex;
  align-items: center;
}
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}
.faq-card[open] summary::after { content: "–"; }
.faq-card p { color: var(--text-muted); font-size: 0.96rem; margin-top: 12px; }
.faq-home__cta { text-align: center; margin-top: 30px; }

/* Número y badge dentro de FAQ de servicio */
.faq__num { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; margin-right: 12px; color: var(--accent); }
.faq__badge { text-align: center; color: var(--text-soft); font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; }

/* Buscador de la FAQ central */
.faq-search { max-width: 640px; margin: 26px auto 10px; }
.faq-search label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.92rem; }
.faq-search input {
  width: 100%;
  min-height: 52px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 24px;
}
.faq-search input:focus { outline: 3px solid rgba(26, 95, 180, 0.35); outline-offset: 1px; border-color: var(--focus); }
.faq-search input::placeholder { color: var(--text-soft); }
.faq-search__hint { text-align: center; color: var(--text-muted); font-size: 0.88rem; }
.faq__blocknav { max-width: 900px; margin: 12px auto 0; display: flex; }

/* ══════════════════════════════════════════
   COMPONENTES DE PÁGINAS NUEVAS
   ══════════════════════════════════════════ */
.page-head {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 48px;
}
.page-head .detail__head { margin-bottom: 0; }
.page-head__eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card--link { text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.card--link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.card__num { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 0.92rem; letter-spacing: 0.06em; }
.card__title { font-size: 1.12rem; font-weight: 700; }
.card__text { color: var(--text-muted); font-size: 0.96rem; }
.card__meta { color: var(--text-soft); font-size: 0.84rem; margin-top: auto; }
.card__link { margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--accent-ink); display: inline-flex; gap: 6px; align-items: center; }

.split { display: grid; gap: 32px; align-items: start; }
.split__text p { color: var(--text-muted); margin-bottom: 14px; }
.split__panel {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.split__panel h3 { font-size: 1.05rem; margin-bottom: 12px; }

.checklist { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.checklist li { position: relative; padding-left: 28px; color: var(--text-muted); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.checklist--ok li::before { background: var(--ok); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.prose h3 { font-size: 1.12rem; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text-muted); margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose a { color: var(--accent-ink); }
.prose strong { color: var(--text); }

.notice {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.notice strong { color: var(--text); }

/* Tabla simple, responsive */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 520px; }
caption { text-align: left; padding: 14px 18px; color: var(--text-soft); font-size: 0.86rem; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-warm); font-family: var(--font-head); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ══════════════════════════════════════════
   PIE DE PÁGINA
   ══════════════════════════════════════════ */
.site-foot {
  background: var(--navy);
  color: #cfd7e3;
  padding: 56px 0 24px;
  margin-top: 48px;
  font-size: 0.92rem;
}
.site-foot a { color: #e6ebf2; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot__grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
}
.site-foot__brand img { height: 52px; width: auto; }
.site-foot__brand p { margin-top: 14px; max-width: 320px; color: #b9c3d2; }
.site-foot__legal { color: #93a1b6; font-size: 0.84rem; line-height: 1.5; }
.site-foot__brand .site-foot__mail { display: inline-block; margin-top: 12px; font-weight: 600; }
.site-foot h2 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93a1b6;
  margin-bottom: 12px;
}
.site-foot ul { list-style: none; display: grid; gap: 2px; }
.site-foot ul a { display: inline-flex; align-items: center; min-height: 34px; }
.site-foot__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  color: #93a1b6;
  font-size: 0.82rem;
}

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f7a3d;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 999px;
  min-height: 48px;
  box-shadow: 0 8px 24px rgba(21, 32, 47, 0.22);
  transition: background-color 0.2s, transform 0.2s;
}
.wa-float:hover { background: #0b6432; color: #fff; transform: translateY(-2px); }
.wa-float__dot { width: 8px; height: 8px; border-radius: 50%; background: #6ee7a0; }

/* ── Revelado al hacer scroll ──
   Solo se oculta si hay JS (html.js): sin JS el contenido siempre es visible. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Sin animaciones ni canvas */
#bg3d { display: none !important; }

/* ══════════════════════════════════════════
   TABLET ≥ 700px
   ══════════════════════════════════════════ */
@media (min-width: 700px) {
  .section { padding: 84px 0; }
  .hero { padding: 88px 0 72px; }
  .contact__form { padding: 32px; }
  .svc__row { padding: 24px 28px; }
  .svc__num { font-size: 1.5rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .faq-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 44px; }
  .site-foot__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ══════════════════════════════════════════
   ESCRITORIO ≥ 1000px
   ══════════════════════════════════════════ */
@media (min-width: 1000px) {
  .hero { padding: 104px 0 80px; }
  .about { grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
  .contact { grid-template-columns: 1fr 1.15fr; gap: 44px; }
  .cta { padding: 64px 32px; }
  .wa-float { bottom: 24px; right: 24px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .site-foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
}

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

/* Alto contraste del sistema */
@media (prefers-contrast: more) {
  :root { --text-muted: #3b4553; --line: #b9b1a4; --line-strong: #8e8578; }
}

/* Impresión: sin adornos, contenido legible */
@media print {
  .site-head, .site-foot, .wa-float, .skip, .cta { display: none; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 20px 0; }
  .detail__head { margin-bottom: 16px; }
}
