/* ─────────────────────────────────────────────
   Nájera Auditorías
   Tinta y oro grabado: el lenguaje del papel de seguridad
   (billetes, timbres, títulos) aplicado a un despacho contable.
   ───────────────────────────────────────────── */

:root {
  --ink: #0A1633;
  --ink-2: #101F45;
  --ink-deep: #060E22;
  --blue: #1E3A7B;
  --gold: #C9A24A;
  --gold-hi: #E2BF6B;
  --bronze: #8A6820;
  --paper: #F4F6F9;
  --paper-2: #E8ECF3;
  --white: #FFFFFF;
  --text: #131B2E;
  --muted: #566077;
  --error: #B3261E;

  /* Variables de tema: cada sección las redefine */
  --fg: var(--text);
  --fg-muted: var(--muted);
  --accent: var(--bronze);
  --rule: rgba(10, 22, 51, .14);
  --rule-strong: var(--text);

  --f-display: "Bodoni Moda", "Bodoni MT", Didot, Georgia, serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --wrap: 1280px;
  --gut: clamp(20px, 5vw, 56px);
  --sec: clamp(76px, 10vw, 144px);
  --hdr: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Motivos grabados, usados como máscara para tomar el color del contexto */
  --cenefa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Cpath fill='none' stroke='black' stroke-width='.6' d='M0 7L2 8.55L4 9.94L6 11.05L8 11.76L10 12L12 11.76L14 11.05L16 9.94L18 8.55L20 7L22 5.45L24 4.06L26 2.95L28 2.24L30 2L32 2.24L34 2.95L36 4.06L38 5.45L40 7M0 11.33L2 11.89L4 11.97L6 11.57L8 10.72L10 9.5L12 8.04L14 6.48L16 4.97L18 3.65L20 2.67L22 2.11L24 2.03L26 2.43L28 3.28L30 4.5L32 5.96L34 7.52L36 9.03L38 10.35L40 11.33M0 11.33L2 10.35L4 9.03L6 7.52L8 5.96L10 4.5L12 3.28L14 2.43L16 2.03L18 2.11L20 2.67L22 3.65L24 4.97L26 6.48L28 8.04L30 9.5L32 10.72L34 11.57L36 11.97L38 11.89L40 11.33M0 7L2 5.45L4 4.06L6 2.95L8 2.24L10 2L12 2.24L14 2.95L16 4.06L18 5.45L20 7L22 8.55L24 9.94L26 11.05L28 11.76L30 12L32 11.76L34 11.05L36 9.94L38 8.55L40 7M0 2.67L2 2.11L4 2.03L6 2.43L8 3.28L10 4.5L12 5.96L14 7.52L16 9.03L18 10.35L20 11.33L22 11.89L24 11.97L26 11.57L28 10.72L30 9.5L32 8.04L34 6.48L36 4.97L38 3.65L40 2.67M0 2.67L2 3.65L4 4.97L6 6.48L8 8.04L10 9.5L12 10.72L14 11.57L16 11.97L18 11.89L20 11.33L22 10.35L24 9.03L26 7.52L28 5.96L30 4.5L32 3.28L34 2.43L36 2.03L38 2.11L40 2.67M0 .5H40M0 13.5H40'/%3E%3C/svg%3E");
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 13.5l5 5L20.5 5'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 12px 18px; border-radius: 2px;
  background: var(--gold); color: var(--ink); font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ── Tipografía compartida ── */

.eyebrow {
  margin-bottom: 22px;
  font: 500 .74rem/1.4 var(--f-mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}

.h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.05rem, 4.3vw, 3.6rem);
  line-height: 1.06; letter-spacing: -.014em;
  text-wrap: balance;
}
.h2 em { font-style: italic; font-weight: 400; color: var(--accent); }

.fine { margin-top: 18px; font-size: .84rem; line-height: 1.5; color: var(--fg-muted); }

.lnk {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 12px 0 7px;
  font: 500 .76rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.lnk svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.lnk:hover svg { transform: translateX(5px); }

/* ── Botones ── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px;
  border: 1px solid transparent; border-radius: 2px;
  font: 600 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: .72rem; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--ghost { border-color: rgba(255, 255, 255, .36); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .07); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--blue); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ── Encabezado ── */

.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hdr); color: #fff;
  --accent: var(--gold);
}
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 22, 51, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .09);
  opacity: 0; transition: opacity .35s;
}
.hdr.is-stuck::before { opacity: 1; }
.hdr__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.brand__mark { width: 45px; height: 32px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt b { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; letter-spacing: .01em; }
.brand__txt small {
  margin-top: 5px;
  font: 400 .6rem/1 var(--f-mono); letter-spacing: .15em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255, 255, 255, .62);
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2.3vw, 36px); }
.nav__a {
  position: relative; padding: 8px 0;
  font-size: .94rem; color: rgba(255, 255, 255, .82); text-decoration: none; white-space: nowrap;
  transition: color .25s;
}
.nav__a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__a:hover { color: #fff; }
.nav__a:hover::after { transform: scaleX(1); }

.burger { display: none; }

/* ── Hero ── */

.hero {
  --fg: #fff; --fg-muted: rgba(255, 255, 255, .74); --accent: var(--gold); --rule: rgba(255, 255, 255, .16);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100svh; padding-top: var(--hdr);
  color: var(--fg);
  background:
    radial-gradient(56% 60% at 77% 44%, rgba(30, 58, 123, .62), transparent 72%),
    var(--ink);
}
.hero__grid {
  flex: 1;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center; gap: clamp(32px, 4.5vw, 64px);
  padding-block: clamp(40px, 6vw, 76px);
}
/* El titular se dimensiona contra su columna: la primera frase
   ("Sus cuentas en orden.") mide 9.62 veces el cuerpo, así que a
   10.2cqi siempre cabe en una sola línea, en cualquier pantalla. */
.hero__copy { container-type: inline-size; }
.hero__h {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2rem, 10.2cqi, 5rem);
  line-height: 1.04; letter-spacing: -.016em;
}
.hero__h span, .hero__h em { display: block; }
.hero__h em { margin-top: .06em; font-style: italic; font-weight: 400; color: var(--gold); text-wrap: balance; }
.hero__lead { max-width: 34rem; margin-top: 28px; font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: var(--fg-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__note {
  margin-top: 22px;
  font: 400 .74rem/1.6 var(--f-mono); letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}

.hero__strip {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 40px;
  padding-block: 26px; border-top: 1px solid var(--rule);
}
.hero__strip span {
  font: 400 .72rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .56);
}
.hero__strip ul { display: flex; flex-wrap: wrap; gap: 6px 44px; }
.hero__strip li { font: 500 1rem/1.4 var(--f-body); color: rgba(255, 255, 255, .9); }

/* ── Cenefa grabada ──
   Una trenza de seis ondas desfasadas, como el borde de un billete o un título.
   Remata cada franja de tinta para que el grabado del sello recorra toda la página. */

.hero::after, .sec--ink::before, .sec--ink::after {
  content: ""; display: block; flex: none; height: 14px;
  background: var(--gold); opacity: .7;
  -webkit-mask: var(--cenefa) repeat-x center / 40px 14px;
  mask: var(--cenefa) repeat-x center / 40px 14px;
}
.sec--ink::before, .sec--ink::after { position: absolute; left: 0; right: 0; }
.sec--ink::before { top: 0; }
.sec--ink::after { bottom: 0; }

/* ── Medallón: retrato dentro de un sello grabado ── */

.medal { position: relative; width: min(100%, 540px); justify-self: center; }

.seal { position: relative; aspect-ratio: 1; color: var(--gold); }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seal path, .seal circle { fill: none; stroke: currentColor; stroke-width: .8; }
.seal text { font: 500 15px var(--f-mono); fill: currentColor; }
.seal .seal__c1 { font-size: 15px; letter-spacing: .22em; }
.seal .seal__c2 { font: 500 104px var(--f-display); letter-spacing: -.01em; }

.seal__a { animation: spin 280s linear infinite; }
.seal__b { animation: spin 340s linear infinite reverse; }
.seal__t { animation: spin 220s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.js .seal path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .seal.in path {
  animation: draw 2.6s cubic-bezier(.6, 0, .2, 1) forwards;
  animation-delay: calc(400ms + var(--i, 0) * 50ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.medal__portrait {
  position: absolute; left: 25%; top: 0; margin-top: 25%;
  width: 50%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #D8DFEB; isolation: isolate;
}
.medal__portrait img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 9%;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: multiply;
  transform: scale(1.1); transform-origin: 50% 32%;
}
.medal__portrait::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink); mix-blend-mode: lighten; pointer-events: none;
}
.medal__cap {
  margin-top: 18px; text-align: center;
  font: italic 400 1.22rem/1.3 var(--f-display); color: rgba(255, 255, 255, .88);
}

/* ── Secciones ── */

.sec { padding-block: var(--sec); color: var(--fg); }
.sec--white { background: var(--white); }
.sec--ink {
  --fg: #fff; --fg-muted: rgba(255, 255, 255, .74); --accent: var(--gold);
  --rule: rgba(255, 255, 255, .16); --rule-strong: rgba(255, 255, 255, .5);
  position: relative;
  background: var(--ink);
}

/* Roseta de marca de agua en secciones claras, como papel de seguridad */
.sec--marked { position: relative; overflow: hidden; }
.sec--marked > .wrap { position: relative; }
.sec__mark {
  position: absolute; top: -180px; right: -200px; width: 660px;
  color: var(--bronze); opacity: .2; pointer-events: none;
}
.seal--mark path, .seal--mark circle { stroke-width: .7; }
.js .seal.seal--mark path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.sec__head { max-width: 52rem; margin-bottom: clamp(40px, 6vw, 76px); }
.sec__lead { max-width: 40rem; margin-top: 22px; font-size: 1.1rem; color: var(--fg-muted); }

/* ── Situaciones ── */

.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.case {
  position: relative; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: end; align-content: start;
  padding: 30px 0 28px; border-top: 1px solid var(--rule);
  text-decoration: none;
}
.case::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px;
  background: var(--bronze); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.case:hover::before, .case:focus-visible::before { transform: scaleX(1); }
.case__t {
  grid-column: 1;
  font: 500 clamp(1.5rem, 2.3vw, 1.95rem)/1.14 var(--f-display); letter-spacing: -.008em;
  text-wrap: balance;
  transition: color .25s;
}
.case__d { grid-column: 1; margin-top: 8px; color: var(--fg-muted); }
.case__go {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px;
  font: 500 .74rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}
.case__go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.case:hover .case__t { color: var(--blue); }
.case:hover .case__go svg { transform: translateX(5px); }

.cases__end {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 36px; border-top: 1px solid var(--rule);
}
.cases__end p { max-width: 44rem; font: 500 clamp(1.4rem, 2vw, 1.65rem)/1.3 var(--f-display); }
.cases__end em { font-weight: 400; color: var(--accent); }

/* ── Servicios ── */

/* Sin JavaScript: seis filas, nombre a la izquierda y ficha a la derecha.
   Con JavaScript (.svc--js): explorador de dos columnas; en móvil, acordeón. */

.svc { border-bottom: 1px solid var(--rule); }
.svc__item {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 80px); align-items: start;
  border-top: 1px solid var(--rule);
}
.svc__tab {
  position: relative; display: block; width: 100%; padding: 26px 0;
  scroll-margin-top: calc(var(--hdr) + 12px);
  border: 0; background: none; text-align: left; cursor: default;
  font: 500 clamp(1.5rem, 2.4vw, 2.05rem)/1.12 var(--f-display); letter-spacing: -.01em; color: var(--fg);
  transition: color .3s, padding .45s var(--ease);
}
.svc__panel { position: relative; padding: 28px 0 32px; }
.svc__desc { font-size: 1.08rem; color: var(--fg-muted); }
.svc__lbl {
  margin: 26px 0 10px;
  font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.svc__inc li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--rule); }
.svc__inc li:last-child { border-bottom: 1px solid var(--rule); }
.svc__inc li::before {
  content: ""; position: absolute; left: 0; top: 1em; width: 16px; height: 16px;
  background: var(--bronze);
  -webkit-mask: var(--tick) no-repeat center / contain; mask: var(--tick) no-repeat center / contain;
}
.svc__cta { margin-top: 28px; }

@media (min-width: 961px) {
  .svc--js {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(32px, 5vw, 80px); align-items: start;
    border-bottom: 0;
  }
  .svc--js .svc__item { display: contents; }
  .svc--js .svc__name { grid-column: 1; border-top: 1px solid var(--rule); }
  .svc--js .svc__item:last-child .svc__name { border-bottom: 1px solid var(--rule); }
  .svc--js .svc__tab { cursor: pointer; color: var(--fg-muted); }
  .svc--js .svc__tab::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 30px; height: 1px;
    background: var(--bronze); transform: scaleX(0); transform-origin: left;
    transition: transform .45s var(--ease);
  }
  .svc--js .svc__tab:hover { color: var(--fg); }
  .svc--js .is-active .svc__tab { padding-left: 46px; color: var(--fg); }
  .svc--js .is-active .svc__tab::before { transform: scaleX(1); }
  .svc--js .svc__panel {
    grid-column: 2; grid-row: 1 / span 6; align-self: start;
    padding: clamp(28px, 3.4vw, 46px); padding-top: calc(clamp(28px, 3.4vw, 46px) + 14px);
    border: 1px solid var(--rule); background: var(--paper);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .svc--js .is-active .svc__panel { opacity: 1; visibility: visible; transform: none; }
  .svc--js .svc__panel::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14px;
    background: var(--bronze); opacity: .55;
    -webkit-mask: var(--cenefa) repeat-x center / 40px 14px;
    mask: var(--cenefa) repeat-x center / 40px 14px;
  }
}

/* ── Trayectoria ── */

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__photo { position: sticky; top: calc(var(--hdr) + 28px); background: var(--paper); }
.about__photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 0;
  mix-blend-mode: multiply;
  border-bottom: 1px solid var(--rule-strong);
}
.about__photo figcaption {
  margin-top: 14px;
  font: 400 .72rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-muted);
}
.about__p { max-width: 38rem; margin-top: 20px; font-size: 1.08rem; color: var(--fg-muted); }
.about__p--lead { margin-top: 26px; font-size: 1.22rem; line-height: 1.5; color: var(--fg); }

.tl { margin-top: 44px; border-top: 1px solid var(--rule-strong); }
.tl li {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 2px 20px;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.tl__y {
  grid-row: 1 / span 2;
  font: 400 .76rem/2.1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.tl__r { font: 600 1.1rem/1.3 var(--f-body); }
.tl__c { color: var(--fg-muted); }

.ledger { margin-top: 44px; max-width: 30rem; }
.ledger__cap {
  margin-bottom: 8px;
  font: 400 .72rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-muted);
}
.ledger__row { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; }
.ledger__row i { flex: 1; border-bottom: 1px dotted currentColor; opacity: .38; transform: translateY(-4px); }
.ledger__row dd {
  min-width: 3.4ch; text-align: right;
  font: 500 1.55rem/1 var(--f-display); font-variant-numeric: lining-nums tabular-nums;
}
.ledger__row--total dd { padding-bottom: 5px; border-bottom: 3px double currentColor; }

.reasons {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(56px, 8vw, 104px); padding-top: 36px; border-top: 1px solid var(--rule-strong);
}
.reasons h3 { margin-bottom: 8px; font: 600 1.06rem/1.3 var(--f-body); }
.reasons p { font-size: .98rem; color: var(--fg-muted); }

/* ── Testimonios ──
   La sección se retiró del HTML hasta tener testimonios reales.
   Los estilos quedan listos: .quotes > figure.quote > blockquote + figcaption(b, span). */

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.quote { display: flex; flex-direction: column; padding-top: 28px; border-top: 1px solid var(--rule-strong); }
.quote blockquote { flex: 1; font: 400 clamp(1.16rem, 1.55vw, 1.36rem)/1.45 var(--f-display); }
.quote blockquote::before {
  content: "\201C"; display: block; height: .42em; margin-bottom: 14px;
  font: 600 6rem/1 var(--f-display); font-optical-sizing: none; font-variation-settings: "opsz" 6; color: var(--gold);
}
.quote figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 26px; }
.quote b { font-weight: 600; }
.quote span {
  font: 400 .72rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-muted);
}

/* ── Cierre fiscal ── */

.close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.dates { display: grid; grid-template-columns: 1fr 1fr; margin-top: 44px; border-top: 1px solid var(--rule); }
.date { padding: 26px 24px 0 0; }
.date + .date { padding-left: 28px; border-left: 1px solid var(--rule); }
.date__d { font: 500 clamp(2.4rem, 4.4vw, 3.8rem)/1 var(--f-display); letter-spacing: -.01em; color: var(--gold); }
.date__l { margin-top: 12px; }
.date__c {
  min-height: 1.4em; margin-top: 6px;
  font: 400 .74rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-muted);
}

.check { padding: clamp(24px, 3.4vw, 44px); border: 1px solid var(--rule); border-radius: 3px; background: var(--ink-2); }
.check__h { font: 500 1.65rem/1.15 var(--f-display); }
.check__p { margin-top: 10px; font-size: .98rem; color: var(--fg-muted); }
.check__list { margin-top: 22px; }
.check__list li { border-top: 1px solid var(--rule); }
.check__list label {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  padding: 14px 0; cursor: pointer;
}
.check__list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box {
  display: grid; place-items: center; width: 26px; height: 26px;
  border: 1px solid rgba(255, 255, 255, .42); border-radius: 2px;
  transition: border-color .2s, background .2s;
}
.box svg {
  width: 18px; height: 18px; color: var(--gold);
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .35s var(--ease);
}
.check__list label:hover .box { border-color: var(--gold); }
.check__list input:checked + .box { border-color: var(--gold); background: rgba(201, 162, 74, .14); }
.check__list input:checked + .box svg { stroke-dashoffset: 0; }
.check__list input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 3px; }
.check__t { transition: color .2s; }
.check__list input:checked ~ .check__t { color: rgba(255, 255, 255, .6); }
.check__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 22px; border-top: 1px solid var(--rule);
}
.check__res { font: 500 .8rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* ── Proceso ── */

/* Línea de tiempo: cada paso es un nodo numerado y una línea lo une al siguiente. */
.steps {
  --node: 46px; --gap: clamp(20px, 2.4vw, 40px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); counter-reset: paso;
}
.steps li { position: relative; counter-increment: paso; padding-top: calc(var(--node) + 28px); }
.steps li::before {
  content: counter(paso, decimal-leading-zero);
  position: absolute; z-index: 1; top: 0; left: 0;
  display: grid; place-items: center; width: var(--node); height: var(--node);
  border: 1px solid var(--bronze); border-radius: 50%; background: var(--paper);
  font: 500 .76rem/1 var(--f-mono); letter-spacing: .06em; color: var(--accent);
}
.steps li::after {
  content: ""; position: absolute; top: calc(var(--node) / 2); left: var(--node);
  width: calc(100% - var(--node) + var(--gap)); height: 1px;
  background: var(--bronze); opacity: .45;
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 8px; font: 600 1.1rem/1.3 var(--f-body); }
.steps p { font-size: .98rem; color: var(--fg-muted); }

/* ── Calendario ── */

.cal__tabs { display: none; }
.js .cal__tabs { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 2px; }
.cal__tabs button {
  min-height: 46px; padding: 0 24px; border: 0; border-radius: 0; background: none;
  font: 600 .74rem/1 var(--f-body); letter-spacing: .13em; text-transform: uppercase;
  color: var(--fg-muted); cursor: pointer;
  transition: background .25s, color .25s;
}
.cal__tabs button + button { border-left: 1px solid var(--rule-strong); }
.cal__tabs button:hover { color: var(--fg); }
.cal__tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.cal__ph { margin: 32px 0 0; font: 500 1.4rem/1.2 var(--f-display); }
.js .cal__ph { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cal__pan[hidden] { display: none; }
.cal__rows { margin-top: 22px; border-top: 1px solid var(--rule-strong); }
.cal__rows li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); gap: 6px 32px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.cal__rows b { display: block; font: 600 1.1rem/1.3 var(--f-body); }
.cal__rows span { display: block; margin-top: 4px; color: var(--fg-muted); }
.when {
  text-align: right;
  font: 400 .78rem/1.5 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.cal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.cal__note { max-width: 44rem; margin-top: 0; }

/* ── Preguntas ── */

.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--hdr) + 32px); }
.faq__list { border-top: 1px solid var(--rule-strong); }
.faq__list details { border-bottom: 1px solid var(--rule); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; list-style: none; cursor: pointer;
  font: 600 1.1rem/1.35 var(--f-body);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 14px; height: 14px; color: var(--accent);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { max-width: 44rem; padding: 0 44px 26px 0; color: var(--fg-muted); }

/* ── Contacto ── */

.contact { position: relative; overflow: hidden; }
.contact__seal {
  position: absolute; right: -210px; bottom: -250px; width: 720px;
  opacity: .28; pointer-events: none;
}
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.vias { margin-top: 40px; border-top: 1px solid var(--rule); }
.vias__row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.vias__row dt { font: 400 .72rem/2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); }
.vias__row a { text-decoration: none; border-bottom: 1px solid rgba(201, 162, 74, .55); transition: color .2s; }
.vias__row a:hover { color: var(--gold); }

.formcard {
  --fg: var(--text); --fg-muted: var(--muted); --accent: var(--bronze); --rule: rgba(10, 22, 51, .16);
  padding: clamp(24px, 3.6vw, 48px); border-radius: 3px;
  background: var(--paper); color: var(--fg);
  box-shadow: 0 30px 80px rgba(3, 8, 22, .45);
}
.form__h { margin-bottom: 8px; font: 500 1.85rem/1.1 var(--f-display); }
.form__sub { margin-bottom: 24px; font-size: .96rem; color: var(--fg-muted); }
.form__hint {
  margin: -6px 0 22px; padding: 12px 14px;
  border-left: 2px solid var(--bronze); background: var(--paper-2);
  font-size: .92rem;
}
.form__2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 500; }
.field small { margin-left: 4px; font-size: .8rem; font-weight: 400; color: var(--fg-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid rgba(10, 22, 51, .3); border-radius: 2px; background: #fff;
  font: 400 1rem/1.4 var(--f-body); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23131B2E' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 12px 8px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 58, 123, .2);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field__err { margin-top: 6px; font-size: .84rem; color: var(--error); }
.form__send { width: 100%; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form__state { margin-top: 18px; padding: 16px 18px; border-radius: 2px; background: var(--paper-2); font-size: .96rem; }
.form__state b { display: block; margin-bottom: 2px; }
.form__state .btn { margin-top: 14px; }

/* ── Pie ── */

.ftr { padding-top: clamp(56px, 7vw, 88px); background: var(--ink-deep); color: rgba(255, 255, 255, .72); font-size: .95rem; --accent: var(--gold); }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.ftr__brand p { margin-top: 18px; line-height: 1.7; }
.ftr__h { margin-bottom: 16px; font: 400 .72rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ftr li { margin-bottom: 9px; }
.ftr li a { text-decoration: none; transition: color .2s; }
.ftr li a:hover { color: #fff; }
.ftr__end {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 56px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .84rem; color: rgba(255, 255, 255, .55);
}
.ftr__end a, .tc__foot a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .28); transition: color .2s; }
.ftr__end a:hover, .tc__foot a:hover { color: #fff; }
.ftr--sub { padding-top: 0; }
.ftr--sub .ftr__end { margin-top: 0; border-top: 0; }

/* ── Páginas interiores (política de privacidad) ── */

.sub-hdr .brand__txt small { display: block; }
.sub { padding: calc(var(--hdr) + clamp(48px, 7vw, 96px)) 0 var(--sec); }
.legal__body { max-width: 46rem; }
.legal__date {
  margin-top: 18px;
  font: 400 .74rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-muted);
}
.legal__intro { margin-top: 28px; font-size: 1.15rem; line-height: 1.55; }
.legal h2 {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--rule);
  font: 600 1.15rem/1.3 var(--f-body);
}
.legal p, .legal li { margin-top: 12px; color: var(--fg-muted); }
.legal ul { list-style: disc; padding-left: 1.25em; }
.legal li::marker { color: var(--bronze); }
.legal a { color: var(--blue); }
.legal .btn { margin-top: 44px; color: #fff; }

/* ── Tarjeta digital ── */

.tc {
  --fg: #fff; --fg-muted: rgba(255, 255, 255, .74); --accent: var(--gold); --rule: rgba(255, 255, 255, .16);
  position: relative; display: flex; flex-direction: column; min-height: 100svh;
  color: var(--fg);
  background:
    radial-gradient(60% 46% at 50% 26%, rgba(30, 58, 123, .62), transparent 74%),
    var(--ink);
}
.tc::before, .tc::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: var(--gold); opacity: .7;
  -webkit-mask: var(--cenefa) repeat-x center / 40px 14px;
  mask: var(--cenefa) repeat-x center / 40px 14px;
}
.tc::before { top: 0; }
.tc::after { bottom: 0; }
.tc__in {
  flex: 1; display: grid; align-content: center; gap: 48px;
  width: 100%; max-width: 1120px; margin-inline: auto;
  padding: 52px var(--gut) 24px;
}
.tc__id { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tc .medal { width: min(100%, 320px); margin-top: 28px; }
.tc__eyebrow { margin: 28px 0 14px; }
.tc__name { font: 500 clamp(2.1rem, 7vw, 3.1rem)/1.05 var(--f-display); letter-spacing: -.014em; }
.tc__name em { display: block; font-style: italic; font-weight: 400; color: var(--gold); }
.tc__lead { max-width: 26rem; margin-top: 16px; color: var(--fg-muted); }
.tc__btns { display: grid; gap: 12px; width: 100%; max-width: 360px; margin-top: 30px; }
.tc .vias { margin-top: 0; }
.tc__qr {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; align-items: center;
  margin-top: 32px; padding: 20px; border: 1px solid var(--rule); border-radius: 3px; background: var(--ink-2);
}
.tc__qr img { width: 132px; height: 132px; border-radius: 2px; }
.tc__qr p { font-size: .95rem; color: var(--fg-muted); }
.tc__qr b { display: block; margin-bottom: 4px; font-weight: 600; color: var(--fg); }
.tc__dl .lnk { margin-top: 6px; }
.tc__foot { padding: 20px var(--gut) 34px; text-align: center; font-size: .84rem; color: rgba(255, 255, 255, .55); }

@media (min-width: 900px) {
  .tc__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 80px; }
}
@media (max-width: 520px) {
  .sub-hdr__cta { display: none; }
  .tc__qr { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .tc__qr img { width: 96px; height: 96px; }
}

/* ── Acceso rápido flotante ── */

.dock {
  position: fixed; z-index: 40; right: 22px; bottom: 22px;
  display: flex; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  --accent: var(--blue);
}
.dock.on { opacity: 1; visibility: visible; transform: none; }
.dock a {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 2px;
  font: 600 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 10px 30px rgba(6, 14, 34, .35);
}
.dock__cta { background: var(--gold); color: var(--ink); transition: background .25s; }
.dock__cta:hover { background: var(--gold-hi); }

/* ── Movimiento ── */

.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

.js .hero [data-in] { animation: rise .9s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .seal__a, .seal__b, .seal__t { animation: none; }
}

/* ── Adaptación ── */

@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 40rem; }
  .steps li { padding: 11px 0 34px calc(var(--node) + 24px); }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::after { top: var(--node); left: calc(var(--node) / 2); width: 1px; height: calc(100% - var(--node)); }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}

/* Con seis enlaces más el botón, el menú completo cabe a partir de ~1200px;
   por debajo de 1240px se usa el menú de hamburguesa. */
@media (max-width: 1240px) {
  .burger {
    position: relative; z-index: 2;
    display: grid; place-content: center; gap: 7px;
    width: 44px; height: 44px; margin-right: -9px; padding: 0;
    border: 0; background: none; color: #fff; cursor: pointer;
  }
  .burger span { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
  .nav-open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-open .burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .brand { position: relative; z-index: 2; }

  .nav {
    position: fixed; inset: 0;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: var(--hdr) var(--gut) 40px;
    background: var(--ink);
    opacity: 0; visibility: hidden;
  }
  /* La transición solo existe después del primer toque, para que el menú
     no destelle al cruzar el punto de quiebre (por ejemplo, al girar una tablet). */
  .nav-anim .nav { transition: opacity .3s, visibility .3s; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav__a { padding: 8px 0; font: 500 2rem/1.2 var(--f-display); color: #fff; }
  .nav__cta { margin-top: 22px; min-height: 54px; padding: 0 30px; font-size: .78rem; }
}

@media (max-width: 960px) {
  :root { --hdr: 64px; }

  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; padding-block: 44px 36px; }
  .medal { width: min(100%, 400px); }
  .seal path, .seal circle { stroke-width: 1.1; }

  .cases { grid-template-columns: 1fr; }
  .sec__mark { top: -130px; right: -180px; width: 440px; }

  .svc__item { grid-template-columns: 1fr; }
  .svc__tab { padding: 22px 0 0; }
  .svc__panel { padding: 14px 0 30px; }
  .svc--js .svc__tab { padding: 22px 44px 22px 0; cursor: pointer; }
  .svc--js .svc__tab::after {
    content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
    color: var(--accent);
    background:
      linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
    transition: transform .3s var(--ease);
  }
  .svc--js .is-active .svc__tab::after { transform: rotate(45deg); }
  .svc--js .svc__panel { display: none; padding-top: 0; }
  .svc--js .is-active .svc__panel { display: block; }
  .about, .close, .faq, .contact__grid { grid-template-columns: 1fr; }
  .about__photo, .faq__head { position: static; }
  .about__photo { max-width: 420px; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .contact__seal { right: -300px; bottom: -340px; }
}

@media (max-width: 720px) {
  .dock { left: 12px; right: 12px; bottom: 12px; }
  .dock a { flex: 1; }
  .ftr { padding-bottom: 78px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand__txt small { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .case { grid-template-columns: 1fr; padding: 24px 0 22px; }
  .case__go { grid-column: 1; grid-row: auto; margin-top: 14px; }
  .cases__end .btn { width: 100%; }
  .tl li { grid-template-columns: 1fr; }
  .tl__y { grid-row: auto; line-height: 1.6; }
  .reasons { grid-template-columns: 1fr; }
  .dates { grid-template-columns: 1fr; }
  .date + .date { margin-top: 26px; padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .check__foot .btn { width: 100%; }
  .js .cal__tabs { display: flex; }
  .cal__tabs button { flex: 1; padding: 0 6px; font-size: .68rem; letter-spacing: .1em; }
  .svc__cta { width: 100%; }
  .cal__rows li { grid-template-columns: 1fr; }
  .when { text-align: left; }
  .cal__foot .btn { width: 100%; }
  .vias__row { grid-template-columns: 1fr; }
  .form__2 { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; gap: 32px; }
}
