/* =========================================================
   Maqueta E · «Estilo Legalist» — Vigente
   Retícula, ritmo y medidas tomadas a mano de legalist.com
   (1440 px: contenido de 1146 px, 3 columnas de 356 px, 40 px de separación).
   ========================================================= */

:root {
  --bg: #F9F9F7;            /* fondo de Legalist */
  --ink: #121416;           /* texto */
  --ink-2: #444443;         /* texto secundario (≈ negro al 72 %), AAA también sobre los resplandores */
  --line: rgba(18, 20, 22, .205);   /* filete fino de Legalist */
  --line-2: rgba(18, 20, 22, .3);
  --band: #F1EFEB;          /* banda del pie */
  --beige: #E8E5D9;         /* píldora rellena */
  --panel: #EFEDE8;         /* hueco de «foto» */
  --blue: #2E9FFF;          /* azul de acento (solo decorativo: marcas, resplandor, puntos) */
  --blue-xl: #1A73C8;       /* azul para texto grande sobre fondo liso: 4,6:1 (AAA texto grande) */
  --blue-lg: #1360A8;       /* azul para texto grande sobre los resplandores: ≥ 4,9:1 */
  --blue-sm: #0B4A8A;       /* azul para texto pequeño: ≥ 7:1 */
  --font: "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: max(40px, calc((100vw - 1146px) / 2));
  --gap: 40px;
  --half: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 22px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
p, h1, h2, h3, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: inherit; font-size: inherit; line-height: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
sup { line-height: 0; }
.nw, time { white-space: nowrap; }

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

.sr-only {
  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: -80px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-size: 15px;
}
.skip:focus { top: 16px; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }

/* Rótulos pequeños en mayúsculas espaciadas */
.label, .eyebrow {
  font-size: 15px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-2); font-weight: 400;
}
.h2 { font-size: 35px; line-height: 45px; font-weight: 500; letter-spacing: -.005em; }

/* ---------- Píldoras ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 39px; padding: 0 24px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font-size: 12px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.pill:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pill--fill { background: var(--beige); border-color: var(--beige); }
.pill--paper { background: var(--bg); border-color: var(--bg); height: 44px; }
.pill--arrow {
  height: 34px; padding: 0 17px 0 24px; gap: 22px;
  font-size: 15px; letter-spacing: 0; text-transform: none;
}
.pill--arrow svg { width: 12px; height: 8px; transition: transform .2s; }
.pill--arrow:hover svg { transform: translateX(3px); }
.pill--lg { height: 44px; }

.corner-arrow { width: 29px; height: 31px; flex: none; }
.corner-arrow path { stroke-width: 1; }

/* ---------- Cabecera ---------- */
.site-header { position: relative; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; height: 115px; padding-top: 8px; }

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.logo__mark { width: 24px; height: 24px; color: var(--blue); }
.logo__word { font-size: 32px; line-height: 1; font-weight: 500; letter-spacing: -.03em; padding-bottom: 2px; }

.site-nav { display: flex; align-items: center; flex: 1; margin-left: 72px; }
.site-nav__list { display: flex; gap: 30px; }
.site-nav__list a { font-size: 16px; line-height: 18px; padding: 6px 0; }
.site-nav__list a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.site-nav__actions { display: flex; gap: 24px; margin-left: auto; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto; margin-right: -8px;
  align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.site-header.is-open .nav-toggle__open { display: none; }
.site-header.is-open .nav-toggle__close { display: block; }

/* ---------- Resplandor (héroe + cifras) ---------- */
.top {
  position: relative;
  background:
    linear-gradient(to bottom, rgba(249, 249, 247, 0) 78%, var(--bg) 100%),
    radial-gradient(44% 52% at 12% 80%, rgba(250, 222, 200, .85) 0%, rgba(250, 222, 200, 0) 100%),
    radial-gradient(30% 34% at 2% 8%, rgba(248, 232, 220, .6) 0%, rgba(248, 232, 220, 0) 100%),
    radial-gradient(36% 58% at 100% 70%, rgba(196, 218, 250, .75) 0%, rgba(196, 218, 250, 0) 100%),
    var(--bg);
}

/* ---------- Héroe ---------- */
.hero__inner { min-height: 580px; align-items: stretch; }
.hero__content { grid-column: 1 / span 2; padding: 112px 0 72px; }
.hero__title {
  margin-top: 30px; max-width: 640px;
  font-size: 35px; line-height: 45px; font-weight: 700; letter-spacing: -.012em;
}
.hero__intro { margin-top: 32px; max-width: 432px; line-height: 24px; color: var(--ink-2); }
.hero__actions { margin-top: 33px; }
.seal { margin-top: 30px; display: flex; align-items: center; gap: 10px; font-size: 15px; line-height: 20px; color: var(--ink-2); }
.seal__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; }

.hero__next {
  grid-column: 3; position: relative;
  margin-left: calc(var(--half) * -1);
  padding: 40px 22px 58px 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: rgba(255, 255, 255, .4);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  color: var(--ink);
}
.hero__next .corner-arrow--lg { position: absolute; top: 34px; right: 30px; width: 48px; height: 48px; transition: transform .2s; }
.hero__next .corner-arrow--lg path { stroke-width: .8; }
.hero__next:hover .corner-arrow--lg { transform: translate(3px, -3px); }
.hero__next-label {
  font-size: 15px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-2);
  padding-bottom: 21px; border-bottom: 1px solid var(--line);
}
.hero__next-date { margin-top: 18px; font-size: 25px; line-height: 36px; color: var(--blue-lg); }
.hero__next-title { margin-top: 6px; font-size: 17px; line-height: 22px; font-weight: 700; }
.hero__next-text { margin-top: 18px; line-height: 24px; color: var(--ink-2); }
.hero__next:hover .hero__next-title { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cifras ---------- */
.stats { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { position: relative; padding: 64px 0 57px; }
.stat + .stat::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--half) * -1); width: 1px; background: var(--line);
}
.stat__value { font-size: 34px; line-height: 71px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.stat__value sup {
  position: relative; top: -.9em; margin-left: 9px;
  font-size: 19px; font-weight: 700; letter-spacing: .02em; color: var(--blue-lg);
  vertical-align: baseline;
}
.stat__label {
  margin-top: 5px; padding-bottom: 30px; border-bottom: 1px solid var(--line);
  line-height: 24px; color: var(--ink-2);
}
.stat__note { margin-top: 29px; font-size: 15px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Cita + infografía ---------- */
.quote { margin-top: 106px; align-items: center; }
.quote__copy { grid-column: 1; }
.quote__text { font-size: 25px; line-height: 35.7px; max-width: 360px; }
.quote__cite { margin-top: 35px; line-height: 24px; color: var(--ink-2); }

.year {
  grid-column: 2 / span 2; min-height: 404px;
  background: var(--panel); padding: 26px 32px 22px;
  display: flex; flex-direction: column;
}
.year__head {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-2);
}
.year__today-label { color: var(--blue-sm); }
.year__chart { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 40px; }
.year__lanes { position: relative; }
.year__lane, .year__axis, .year__overlay {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); column-gap: 18px; align-items: center;
}
.year__lane { height: 48px; border-bottom: 1px solid var(--line); }
.year__lane:first-child { border-top: 1px solid var(--line); }
.year__name { font-size: 14px; line-height: 18px; color: var(--ink-2); }
.year__track {
  position: relative; height: 100%;
  background-image: linear-gradient(to right, rgba(18, 20, 22, .07) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}
.year__track i { position: absolute; top: 50%; left: calc(var(--x) * 1%); }
.tick { width: 2px; height: 16px; margin: -8px 0 0 -1px; background: var(--blue); }
.tick--next { width: 3px; height: 24px; margin: -12px 0 0 -1.5px; background: var(--blue-sm); }
.bar { width: calc(var(--w) * 1%); height: 8px; margin-top: -4px; border-radius: 4px; background: var(--blue); }
.bar--min { min-width: 6px; }
.span { width: 100%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(to right, var(--blue) 0 6px, transparent 6px 11px); }
.dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--blue-sm); box-shadow: 0 0 0 3px var(--panel); }
.year__overlay { position: absolute; inset: 0; pointer-events: none; }
.year__overlay .year__track { background: none; }
.today { top: -30px !important; bottom: 0; width: 1px; background: var(--ink); }
.today em {
  position: absolute; top: -4px; left: 50%; transform: translate(-50%, -100%);
  font-style: normal; font-size: 11px; line-height: 16px; letter-spacing: 1px; text-transform: uppercase;
  background: var(--ink); color: var(--bg); padding: 1px 8px; border-radius: 999px; white-space: nowrap;
}
.year__axis { height: 34px; }
.year__months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.year__months b {
  font-weight: 400; font-size: 11px; line-height: 14px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink-2); padding-left: 4px;
}

/* ---------- Filas (Servicios y Calendario) ---------- */
.rows { margin-top: 94px; }
.rows__label { grid-column: 2 / span 2; margin-bottom: 20px; }
.rows__list { border-bottom: 1px solid var(--line); }
.row { position: relative; border-top: 1px solid var(--line); }
.row__inner { position: relative; min-height: 184px; padding-top: 21px; padding-bottom: 40px; color: var(--ink); }
.row__inner::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: var(--gutter); width: 1px; background: var(--line);
}
.row__meta { grid-column: 1; display: flex; flex-direction: column; gap: 6px; }
.row__num { font-size: 25px; line-height: 36px; color: var(--blue-xl); }
.row__price { font-size: 17px; line-height: 24px; font-weight: 500; }
.row__body { grid-column: 2 / span 2; max-width: 627px; padding-right: 60px; display: flex; flex-direction: column; }
.row__title { font-size: 25px; line-height: 35.7px; }
.row__panel { display: block; }
.row__text { display: block; margin-top: 10px; max-width: 482px; line-height: 24px; color: var(--ink-2); }
.row__icon { position: absolute; top: 20px; right: calc(var(--gutter) + 23px); color: var(--blue-xl); transition: transform .2s; }
a.row__inner:hover .row__title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a.row__inner:hover .row__icon { transform: translate(3px, -3px); }
.row__toggle { display: none; }

.tiers {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px; max-width: 540px; border-top: 1px solid var(--line);
}
.tier { display: flex; flex-direction: column; padding: 12px 14px 0 0; }
.tier + .tier { padding-left: 16px; border-left: 1px solid var(--line); }
.tier__name { font-size: 13px; line-height: 18px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-2); }
.tier__price { margin-top: 4px; line-height: 24px; font-weight: 500; }

/* Calendario */
.rows--cal { margin-top: 150px; }
.cal__head { margin-bottom: 8px; }
.cal__label, .cal__title { grid-column: 2 / span 2; }
.cal__title { margin-top: 20px; }
.cal__group {
  display: block; padding-top: 44px; padding-bottom: 16px;
  font-size: 15px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-2);
}
.row--cal .row__inner { min-height: 0; padding-top: 24px; padding-bottom: 28px; }
.row__date { font-size: 25px; line-height: 32px; color: var(--blue-xl); padding-right: 12px; }
.row--cal .row__body { grid-column: 2; padding-right: 0; }
.row--cal .row__title { font-size: 20px; line-height: 28px; }
.row--cal .row__text { margin-top: 6px; }
.row__side { grid-column: 3; display: flex; flex-direction: column; gap: 6px; padding-right: 40px; }
.row__who { line-height: 24px; }
.row__norm { font-size: 15px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Para quién ---------- */
.who { margin-top: 126px; border-bottom: 1px solid var(--line); }
.who__grid { align-items: start; padding-bottom: 118px; }
.who__lead { grid-column: 1; position: sticky; top: 40px; }
.who__title { margin-top: 33px; }
.who__title em { font-style: normal; color: var(--blue-xl); }
.who__intro { margin-top: 30px; max-width: 325px; line-height: 24px; color: var(--ink-2); }
.who__lead .pill { margin-top: 31px; }
.who__cards { grid-column: 2 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px; }
.card { position: relative; }
.card__panel {
  display: flex; flex-direction: column; justify-content: space-between;
  height: 172px; padding: 18px 20px 18px; background: var(--panel);
}
.card__n { font-size: 15px; line-height: 20px; letter-spacing: 2px; color: var(--ink-2); }
.card__word { font-size: 46px; line-height: 1; font-weight: 500; letter-spacing: -.025em; }
.card__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--line); }
.card__name { font-size: 20px; line-height: 28px; font-weight: 700; }
.card__name a::after { content: ""; position: absolute; inset: 0; }
.card__arrow { margin-top: 2px; transition: transform .2s; }
.card:hover .card__name a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card:hover .card__arrow { transform: translate(3px, -3px); }
.card__role { margin-top: 4px; font-size: 15px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-2); }
.card__text { margin-top: 10px; line-height: 24px; color: var(--ink-2); }

/* ---------- Diagnóstico ---------- */
.diag { padding-top: 120px; }
.diag__grid { align-items: start; }
.diag__head { grid-column: 1; position: sticky; top: 40px; }
.diag__head .h2 { margin-top: 33px; }
.diag__lead { margin-top: 24px; max-width: 325px; line-height: 24px; color: var(--ink-2); }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 236px; margin-top: 40px; }
.progress i { height: 3px; background: var(--line); transition: background-color .2s; }
.progress i.is-on { background: var(--blue); }
.diag__count { margin-top: 12px; font-size: 15px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-2); }

.diag__body { grid-column: 2 / span 2; min-width: 0; }
.q { margin: 0; padding: 22px 0 34px; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.q__legend { float: left; width: 100%; padding: 0; display: flex; gap: 24px; align-items: baseline; }
.q__num { min-width: 36px; font-size: 25px; line-height: 36px; color: var(--blue-xl); }
.q__text { font-size: 25px; line-height: 35.7px; }
.q__opts { clear: both; display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0 0 60px; }
.opt { position: relative; display: inline-flex; max-width: 100%; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.opt span {
  display: inline-flex; align-items: center; min-height: 39px; padding: 9px 20px;
  border: 1px solid var(--ink); border-radius: 22px;
  font-size: 15px; line-height: 20px; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.opt span:hover { background: var(--beige); }
.opt input:checked + span { background: var(--ink); color: var(--bg); }
.opt input:checked + span::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--blue);
}
.opt input:focus-visible + span { outline: 2px solid var(--blue-sm); outline-offset: 3px; }

.result {
  position: relative; padding: 24px 28px 28px;
  background: rgba(255, 255, 255, .45);
  border: 1px solid var(--line);
}
.result:focus { outline: none; }
.result.is-done::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--blue); }
.result__label {
  padding-bottom: 21px; border-bottom: 1px solid var(--line);
  font-size: 15px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-2);
}
.result__placeholder { margin-top: 20px; max-width: 560px; font-size: 25px; line-height: 35.7px; color: var(--ink-2); }
.result__title { margin-top: 20px; font-size: 25px; line-height: 35.7px; font-weight: 700; }
.result__text { margin-top: 10px; max-width: 620px; line-height: 24px; color: var(--ink-2); }
.result__norm { margin-top: 16px; font-size: 15px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue-sm); }
.result__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.result__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 24px; }
.result__note { font-size: 15px; line-height: 20px; color: var(--ink-2); }
.textlink {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font-size: 15px; line-height: 20px; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}

/* ---------- Área privada ---------- */
.area { margin-top: 140px; }
.area__top { align-items: center; }
.area__lead { grid-column: 1; }
.area__lead .h2 { margin-top: 33px; }
.area__intro { margin-top: 24px; max-width: 325px; line-height: 24px; color: var(--ink-2); }
.area__lead .pill { margin-top: 31px; }

.scheme { grid-column: 2 / span 2; padding: 30px; background: var(--panel); font-size: 13px; line-height: 17px; color: var(--ink); }
.scheme__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  height: 44px; padding: 0 16px;
  border: 1px solid var(--line-2); border-bottom: 0; background: rgba(255, 255, 255, .7); color: var(--ink-2);
}
.scheme__brand { display: inline-flex; align-items: center; gap: 8px; }
.scheme__brand svg { width: 13px; height: 13px; color: var(--blue); }
.scheme__user { display: inline-flex; align-items: center; gap: 8px; }
.scheme__avatar { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); }
.scheme__cols { display: grid; grid-template-columns: 1fr 1.18fr 1fr; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .7); }
.scheme__col { padding: 14px 16px 20px; min-width: 0; }
.scheme__col + .scheme__col { border-left: 1px solid var(--line); }
.scheme__h { padding-bottom: 10px; border-bottom: 1px solid var(--line-2); font-size: 11px; line-height: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-2); }
.scheme__item, .scheme__doc, .scheme__news { padding: 9px 0; border-bottom: 1px solid var(--line); }
.scheme__item { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 8px; }
.scheme__item b, .scheme__news b { font-weight: 500; color: var(--blue-sm); }
.scheme__item--next { background: linear-gradient(to right, rgba(46, 159, 255, .1), rgba(46, 159, 255, 0)); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.scheme__bell {
  grid-column: 2; justify-self: start; margin-top: 6px; padding: 0 8px;
  border: 1px solid var(--blue-sm); border-radius: 999px;
  font-style: normal; font-size: 11px; line-height: 16px; color: var(--blue-sm);
}
.scheme__item--ghost b, .scheme__item--ghost span, .scheme__news--ghost b, .scheme__news--ghost span {
  display: block; height: 7px; border-radius: 4px; background: var(--line); margin: 5px 0;
}
.scheme__item--ghost span { width: 70%; }
.scheme__news--ghost b { width: 32px; }
.scheme__news--ghost span { width: 80%; }
.scheme__doc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: start; }
.scheme__doc b {
  font-weight: 500; font-size: 11px; line-height: 16px; padding: 0 7px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2);
}
.scheme__doc i { grid-column: 1 / -1; display: block; width: 38%; height: 6px; border-radius: 3px; background: var(--line); }
.scheme__news { display: flex; flex-direction: column; gap: 3px; }

.band { margin-top: 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell { position: relative; padding: 44px 0 52px; }
.cell + .cell::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--half) * -1); width: 1px; background: var(--line); }
.cell__num { display: block; font-size: 25px; line-height: 36px; color: var(--blue-xl); }
.cell__title { margin-top: 14px; font-size: 20px; line-height: 28px; font-weight: 700; }
.cell__text { margin-top: 10px; line-height: 24px; color: var(--ink-2); }

/* ---------- Método ---------- */
.method { margin-top: 120px; align-items: start; }
.method__lead { grid-column: 1; }
.method__quote { margin-top: 33px; font-size: 25px; line-height: 35.7px; max-width: 340px; }
.method__cite { margin-top: 24px; line-height: 24px; color: var(--ink-2); }
.method__list { grid-column: 2 / span 2; border-bottom: 1px solid var(--line); counter-reset: none; }
.method__list li {
  display: grid; grid-template-columns: 60px minmax(0, 1fr);
  padding: 22px 0 28px; border-top: 1px solid var(--line);
  font-size: 25px; line-height: 35.7px;
}
.method__num { color: var(--blue-xl); }

/* ---------- Novedades ---------- */
.news { margin-top: 120px; border-top: 1px solid var(--line); }
.news__grid { border-bottom: 1px solid var(--line); }
.news__cell { position: relative; min-height: 330px; padding: 18px 0 70px; display: flex; flex-direction: column; }
.news__cell + .news__cell::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--half) * -1); width: 1px; background: var(--line); }
.news__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 22px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-2); }
.news__title { margin-top: 16px; max-width: 290px; font-size: 17px; line-height: 22px; font-weight: 700; }
.news__title a::after { content: ""; position: absolute; inset: 0; }
.news__text { margin-top: 19px; line-height: 24px; color: var(--ink-2); }
.news__arrow { position: absolute; right: 0; bottom: 14px; width: 25px; transition: transform .2s; }
.news__cell:hover .news__title a { text-decoration: underline; text-underline-offset: 3px; }
.news__cell:hover .news__arrow { transform: translate(3px, -3px); }

/* ---------- Contacto ---------- */
.contact { padding: 120px 0 110px; }
.contact__grid { align-items: start; }
.contact__lead { grid-column: 1; }
.contact__lead .h2 { margin-top: 33px; }
.contact__intro { margin-top: 24px; max-width: 325px; line-height: 24px; color: var(--ink-2); }
.form { grid-column: 2 / span 2; display: flex; flex-direction: column; gap: 30px; padding-top: 6px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 15px; line-height: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-2); }
.field__input {
  width: 100%; padding: 8px 0 10px;
  background: transparent; border: 0; border-bottom: 1px solid rgba(18, 20, 22, .55); border-radius: 0;
  font-size: 17px; line-height: 24px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.field__input:focus { border-bottom-color: var(--ink); }
.field__input--area { resize: vertical; min-height: 120px; }
.field__select { position: relative; display: block; }
.field__select::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
.field__select select { padding-right: 28px; cursor: pointer; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__msg { font-size: 15px; line-height: 20px; color: var(--ink-2); }

/* ---------- Pie (banda gris) ---------- */
.site-footer { background: var(--band); padding: 56px 0 40px; }
.site-footer__top { display: flex; align-items: center; gap: 40px; min-height: 47px; }
.site-footer__nav { flex: 1; display: flex; justify-content: center; }
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 10px 35px; }
.site-footer__nav a { font-size: 15px; line-height: 18px; }
.site-footer__nav a:hover, .site-footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 9px; border-top: 1px solid rgba(18, 20, 22, .275);
  font-size: 15px; line-height: 18px; color: var(--ink-2);
}
.site-footer__links { display: flex; flex-wrap: wrap; }
.site-footer__links li + li::before { content: "|"; margin: 0 10px; }
.site-footer__mock { margin-top: 10px; font-size: 15px; line-height: 18px; color: var(--ink-2); }

/* =========================================================
   1024-1199: menú desplegable (la navegación no cabe)
   ========================================================= */
@media (max-width: 1199px) {
  .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    margin: 0; padding: 8px var(--gutter) 32px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
  }
  .js .site-header.is-open .site-nav { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--line); }
  .site-nav__list a { display: block; padding: 16px 0; font-size: 25px; line-height: 32px; }
  .site-nav__actions { margin: 28px 0 0; flex-wrap: wrap; gap: 12px; }
  .no-js .site-nav { margin-left: 32px; }
  .no-js .site-nav__list { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
  .no-js .site-nav__list li { border: 0; }
  .no-js .site-nav__list a { font-size: 16px; padding: 4px 0; }
  .no-js .site-nav__actions { display: none; }
}

/* =========================================================
   Tableta (< 1024)
   ========================================================= */
@media (max-width: 1023px) {
  :root { --gap: 30px; --half: 15px; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }

  .site-header__bar { height: 71px; padding-top: 0; }
  .logo__word { font-size: 26px; }
  .logo__mark { width: 20px; height: 20px; }

  .top { background:
    linear-gradient(to bottom, rgba(249, 249, 247, 0) 82%, var(--bg) 100%),
    radial-gradient(60% 40% at 10% 62%, rgba(250, 222, 200, .85) 0%, rgba(250, 222, 200, 0) 100%),
    radial-gradient(50% 40% at 100% 50%, rgba(196, 218, 250, .7) 0%, rgba(196, 218, 250, 0) 100%),
    var(--bg); }
  .hero__inner { min-height: 0; }
  .hero__content { grid-column: 1; padding: 72px 0 56px; }
  .hero__title { font-size: 36px; line-height: 44px; max-width: 600px; }
  .hero__next {
    grid-column: 1; margin-left: 0; padding: 28px 80px 36px 0;
    background: none; border: 0; border-top: 1px solid var(--line);
  }
  .hero__next .corner-arrow--lg { top: 24px; right: 0; width: 40px; height: 40px; }
  .hero__next-label { border-bottom: 0; padding-bottom: 0; }
  .hero__next-date { margin-top: 10px; }

  .stats__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding: 30px 0 34px; }
  .stat__value { font-size: 30px; line-height: 50px; }
  .stat__value sup { font-size: 19px; margin-left: 6px; }
  .stat__label { min-height: 72px; padding-bottom: 20px; }
  .stat__note { margin-top: 20px; font-size: 13px; letter-spacing: 1.5px; }

  .quote { margin-top: 80px; }
  .quote__text { font-size: 22px; line-height: 30px; max-width: 560px; }
  .quote__cite { margin-top: 20px; }
  .year { grid-column: 1; margin-top: 40px; min-height: 0; }

  .rows { margin-top: 90px; }
  .rows__label, .cal__label, .cal__title { grid-column: 1; }
  .row__inner { min-height: 0; padding-top: 18px; padding-bottom: 32px; padding-right: calc(var(--gutter) + 60px); }
  .row__inner::after { display: none; }
  .row__meta { flex-direction: row; align-items: baseline; gap: 16px; }
  .row__num { font-size: 15px; line-height: 21px; font-weight: 500; color: var(--blue-sm); }
  .row__price { font-size: 15px; line-height: 21px; }
  .row__body { grid-column: 1; margin-top: 10px; padding-right: 0; }
  .row__title { font-size: 22px; line-height: 28px; }
  .row__icon { right: var(--gutter); top: 18px; }

  .rows--cal { margin-top: 100px; }
  .row--cal .row__inner { grid-template-columns: 200px minmax(0, 1fr); padding-right: var(--gutter); }
  .row--cal .row__meta { grid-column: 1; grid-row: 1 / span 2; }
  .row__date { font-size: 24px; line-height: 30px; padding-right: 16px; }
  .row--cal .row__body { grid-column: 2; margin-top: 0; }
  .row__side { grid-column: 2; padding-right: 0; margin-top: 10px; }

  .who { margin-top: 100px; }
  .who__grid { padding-bottom: 80px; }
  .who__lead { grid-column: 1; position: static; }
  .who__title { font-size: 30px; line-height: 38px; max-width: 560px; }
  .who__intro { max-width: 560px; }
  .who__cards { grid-column: 1; margin-top: 56px; column-gap: 24px; row-gap: 40px; }
  .card__panel { height: 140px; }
  .card__word { font-size: 38px; }

  .diag { padding-top: 90px; }
  .diag__head { grid-column: 1; position: static; }
  .diag__lead { max-width: 560px; }
  .diag__body { grid-column: 1; margin-top: 40px; }

  .area { margin-top: 100px; }
  .area__lead { grid-column: 1; }
  .area__intro { max-width: 560px; }
  .scheme { grid-column: 1; margin-top: 40px; }
  .band { margin-top: 56px; }
  .area__cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cell { padding: 30px 0 36px; }

  .method { margin-top: 100px; }
  .method__lead { grid-column: 1; }
  .method__quote { max-width: 560px; }
  .method__list { grid-column: 1; margin-top: 40px; }

  .news { margin-top: 100px; }
  .news__cell { min-height: 0; padding: 18px 0 64px; }
  .news__cell + .news__cell { border-top: 1px solid var(--line); }
  .news__cell + .news__cell::before { display: none; }
  .news__title { max-width: 560px; }

  .contact { padding: 90px 0 90px; }
  .contact__lead { grid-column: 1; }
  .form { grid-column: 1; margin-top: 40px; }

  .site-footer__top { flex-wrap: wrap; gap: 28px 40px; }
  .site-footer__nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .site-footer__top .pill { margin-left: auto; }
}

/* =========================================================
   Móvil (< 768) — se apila como Legalist a 375 px
   ========================================================= */
@media (max-width: 767px) {
  :root { --gutter: 20px; --gap: 20px; --half: 10px; }

  .label, .eyebrow { font-size: 12px; line-height: 16px; letter-spacing: 1.5px; }
  .h2 { font-size: 30px; line-height: 35px; }

  .site-header__bar { height: 53px; padding-top: 0; }
  .logo { gap: 8px; }
  .logo__word { font-size: 22px; }
  .logo__mark { width: 17px; height: 17px; }
  .nav-toggle { margin-right: -11px; }
  .site-nav__list a { font-size: 22px; line-height: 28px; padding: 14px 0; }
  .site-nav__actions .pill { flex: 1 1 auto; }

  .hero__content { padding: 27px 0 48px; }
  .hero__title { margin-top: 56px; font-size: 30px; line-height: 35px; font-weight: 500; letter-spacing: -.01em; }
  .hero__intro { margin-top: 24px; font-size: 16px; line-height: 22px; }
  .hero__actions { margin-top: 28px; }
  .pill--arrow { height: 31px; padding: 0 14px 0 20px; font-size: 13px; gap: 16px; }
  .seal { font-size: 13px; line-height: 18px; margin-top: 24px; }
  .hero__next { padding: 22px 64px 32px 0; }
  .hero__next .corner-arrow--lg { top: 20px; width: 34px; height: 34px; }
  .hero__next-label { font-size: 12px; line-height: 16px; letter-spacing: 1.5px; }
  .hero__next-date { font-size: 24px; line-height: 30px; }
  .hero__next-title { font-size: 18px; line-height: 24px; }
  .hero__next-text { margin-top: 10px; font-size: 16px; line-height: 22px; }

  .stats__list { grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 26px 0 28px; }
  .stat + .stat::before { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .stat__value { font-size: 30px; line-height: 35px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .stat__label { min-height: 0; margin-top: 16px; padding-bottom: 0; border-bottom: 0; font-size: 16px; line-height: 22px; }
  .stat__note { margin-top: 12px; font-size: 12px; line-height: 16px; }

  .quote { margin-top: 50px; }
  .quote__text { font-size: 20px; line-height: 26px; font-weight: 500; }
  .quote__cite { margin-top: 14px; font-size: 16px; }
  .year { margin-top: 28px; padding: 18px 16px 14px; }
  .year__head { font-size: 11px; line-height: 16px; letter-spacing: 1.2px; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 12px; }
  .year__chart { padding-top: 40px; }
  .year__lane, .year__axis, .year__overlay { grid-template-columns: minmax(0, 1fr); }
  .year__lane { height: auto; padding: 6px 0 0; align-items: start; }
  .year__name { font-size: 12px; line-height: 16px; }
  .year__track { height: 26px; }
  .year__overlay .year__name, .year__axis .year__name { display: none; }
  .year__overlay { inset: 0; }
  .year__overlay .year__track { height: 100%; }
  .year__months b { font-size: 0; padding-left: 2px; }
  .year__months b::before { content: attr(data-s); font-size: 11px; line-height: 14px; }

  .rows { margin-top: 56px; }
  .rows__label { margin-bottom: 14px; }
  .row__inner { padding-top: 12px; padding-bottom: 22px; padding-right: calc(var(--gutter) + 40px); }
  .row__icon { display: none; }
  .row__body { margin-top: 8px; }
  .row__title { font-size: 20px; line-height: 24px; font-weight: 500; }
  .row__text { font-size: 16px; line-height: 22px; }
  .js .rows:not(.rows--cal) .row__panel { display: none; }
  .js .rows:not(.rows--cal) .row.is-open .row__panel { display: block; }
  .js .rows:not(.rows--cal) .row__toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 4px; right: calc(var(--gutter) - 10px);
    width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
  }
  .row__toggle svg { width: 15px; height: 15px; transition: transform .2s; }
  .row.is-open .row__toggle svg { transform: rotate(45deg); }
  .tiers { grid-template-columns: minmax(0, 1fr); border-top: 0; margin-top: 14px; }
  .tier { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
  .tier + .tier { padding-left: 0; border-left: 0; }
  .tier__price { margin-top: 0; }

  .rows--cal { margin-top: 70px; }
  .cal__title { margin-top: 12px; }
  .cal__group { padding-top: 32px; padding-bottom: 12px; font-size: 12px; line-height: 16px; letter-spacing: 1.5px; }
  .row--cal .row__inner { grid-template-columns: minmax(0, 1fr); padding-top: 16px; padding-bottom: 20px; }
  .row--cal .row__meta { grid-row: auto; }
  .row__date { font-size: 18px; line-height: 24px; font-weight: 500; color: var(--blue-sm); }
  .row--cal .row__body { grid-column: 1; margin-top: 6px; }
  .row--cal .row__title { font-size: 17px; line-height: 23px; }
  .row__side { grid-column: 1; margin-top: 8px; gap: 2px; }
  .row__who { font-size: 15px; line-height: 21px; }
  .row__norm { font-size: 12px; line-height: 16px; letter-spacing: 1.5px; }

  .who { margin-top: 70px; }
  .who__grid { padding-bottom: 56px; }
  .who__title { margin-top: 24px; }
  .who__intro { margin-top: 20px; font-size: 16px; line-height: 22px; }
  .who__lead .pill { margin-top: 24px; }
  .who__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; margin-top: 40px; row-gap: 32px; }
  .card__panel { height: 104px; padding: 10px 12px 12px; }
  .card__n { font-size: 11px; line-height: 14px; letter-spacing: 1.5px; }
  .card__word { font-size: 25px; letter-spacing: -.02em; }
  .card__row { margin-top: 12px; padding-top: 8px; gap: 6px; }
  .card__name { font-size: 16px; line-height: 20px; hyphens: auto; }
  .card__arrow { width: 20px; height: 22px; margin-top: 0; }
  .card__role { font-size: 11px; line-height: 15px; letter-spacing: 1px; margin-top: 6px; }
  .card__text { font-size: 14px; line-height: 19px; margin-top: 6px; }

  .diag { padding-top: 64px; }
  .diag__head .h2 { margin-top: 24px; }
  .diag__lead { margin-top: 16px; font-size: 16px; line-height: 22px; }
  .progress { margin-top: 24px; }
  .diag__count { font-size: 12px; line-height: 16px; letter-spacing: 1.5px; }
  .diag__body { margin-top: 28px; }
  .q { padding: 16px 0 24px; }
  .q__legend { gap: 12px; }
  .q__num { min-width: 22px; font-size: 15px; line-height: 24px; font-weight: 500; color: var(--blue-sm); }
  .q__text { font-size: 20px; line-height: 24px; font-weight: 500; }
  .q__opts { padding: 14px 0 0; gap: 8px; }
  .opt span { font-size: 15px; padding: 9px 16px; }
  .result { padding: 18px 16px 20px; margin: 0 calc(var(--gutter) * -1); border-left: 0; border-right: 0; }
  .result__label { font-size: 12px; line-height: 16px; letter-spacing: 1.5px; padding-bottom: 14px; }
  .result__placeholder, .result__title { font-size: 20px; line-height: 26px; margin-top: 14px; }
  .result__text { font-size: 16px; line-height: 22px; }
  .result__norm { font-size: 12px; line-height: 16px; letter-spacing: 1.5px; }
  .result__actions { flex-direction: column; margin-top: 20px; }
  .result__actions .pill { white-space: normal; height: auto; min-height: 44px; padding: 10px 18px; text-align: center; }

  .area { margin-top: 70px; }
  .area__lead .h2 { margin-top: 24px; }
  .area__intro { margin-top: 16px; font-size: 16px; line-height: 22px; }
  .area__lead .pill { margin-top: 24px; }
  .scheme { margin-top: 28px; padding: 14px; }
  .scheme__bar { padding: 0 12px; }
  .scheme__user { display: none; }
  .scheme__cols { grid-template-columns: minmax(0, 1fr); }
  .scheme__col + .scheme__col { border-left: 0; border-top: 1px solid var(--line-2); }
  .scheme__col:nth-child(2) .scheme__doc:nth-of-type(n+4), .scheme__item--ghost, .scheme__news--ghost { display: none; }
  .band { margin-top: 40px; }
  .area__cells { grid-template-columns: minmax(0, 1fr); }
  .cell { padding: 24px 0 26px; }
  .cell + .cell::before { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .cell__num { font-size: 24px; line-height: 30px; }
  .cell__title { margin-top: 8px; font-size: 18px; line-height: 24px; }
  .cell__text { font-size: 16px; line-height: 22px; margin-top: 6px; }

  .method { margin-top: 70px; }
  .method__quote { margin-top: 24px; font-size: 20px; line-height: 26px; font-weight: 500; }
  .method__cite { margin-top: 12px; font-size: 16px; }
  .method__list { margin-top: 28px; }
  .method__list li { grid-template-columns: 40px minmax(0, 1fr); padding: 16px 0 20px; font-size: 20px; line-height: 26px; }
  .method__num { font-size: 24px; }

  .news { margin-top: 70px; }
  .news__cell { padding: 16px 0 56px; }
  .news__meta { font-size: 12px; line-height: 17px; }
  .news__title { margin-top: 12px; font-size: 16px; line-height: 22px; }
  .news__text { margin-top: 10px; font-size: 16px; line-height: 22px; }

  .contact { padding: 64px 0 70px; }
  .contact__lead .h2 { margin-top: 24px; }
  .contact__intro { margin-top: 16px; font-size: 16px; line-height: 22px; }
  .form { margin-top: 28px; gap: 24px; }
  .form__row { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .field__label { font-size: 12px; line-height: 16px; letter-spacing: 1.5px; }

  .site-footer { padding: 20px 0 32px; }
  .site-footer__top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .site-footer__nav { order: 0; }
  .site-footer__nav ul { flex-direction: column; gap: 14px; }
  .site-footer__nav a { font-size: 16px; }
  .site-footer__top .pill { margin-left: 0; }
  .site-footer__bottom { flex-direction: column; margin-top: 32px; padding-top: 14px; font-size: 13px; }
  .site-footer__mock { font-size: 13px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .row__inner:hover .row__icon, .card:hover .card__arrow, .news__cell:hover .news__arrow,
  .hero__next:hover .corner-arrow--lg, .pill--arrow:hover svg { transform: none; }
}
