/* =============================================================
   laley21719.cl — Cumplimiento Ley 21.719 · Grupo Valit
   Diseño: acta ceremonial clara — blanco, azul-noche y cobre
   (estructura Mezcla B · paleta Mezcla A)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #eaeef3;   /* gris azulado claro — descansa la vista */
  --bg-2:      #f7f9fb;   /* sección alterna, casi blanco */
  --paper:     #ffffff;   /* tarjetas */
  --ink:       #1d2836;   /* azul-noche */
  --ink-soft:  #4c5866;
  --ink-mute:  #7d8794;
  --accent:    #b4703a;   /* cobre */
  --accent-dark: #96582a;
  --gold:      #d9a969;   /* dorado claro, para la banda oscura */
  --night:     #1d2836;   /* banda oscura */
  --night-2:   #16202c;
  --line:      #e4e9ee;
  --line-hard: #c7d0d9;

  --serif-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif-body:    "Manrope", "Segoe UI", Arial, sans-serif;
  --mono:          "IBM Plex Mono", "Courier New", monospace;

  --measure: 66ch;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);
  --maxw: 1160px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: 92px;
  font-size: 18px;   /* base de TODA la escala rem del sitio */
}
body {
  font-family: var(--serif-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  text-wrap: balance; line-height: 1.1; letter-spacing: 0;
  font-family: var(--serif-display); font-weight: 600;
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  z-index: 9999; font-family: var(--mono); font-size: .8rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }

.kicker {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker--line { display: flex; align-items: center; gap: .8rem; }
.kicker--line::before { content: ""; width: 2.4rem; height: 1px; background: var(--accent); flex: none; }

/* Doble filete ceremonial */
.rule-double { width: 140px; border: 0; border-top: 3px double var(--accent); margin: 0; }
.rule-double--center { margin-inline: auto; }

.mono { font-family: var(--mono); }
.code-tag {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em;
  border: 1px solid var(--line-hard); padding: .2rem .55rem;
  display: inline-block; white-space: nowrap; color: var(--ink-soft); background: #fff;
}
.code-tag--accent { border-color: var(--accent); color: var(--accent); }

.hairline { border: 0; border-top: 1px solid var(--line); }

.section { padding-block: clamp(3.4rem, 8vw, 6.4rem); }
.section-head { margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  margin-top: .9rem;
  max-width: 28ch;
  font-weight: 500;
}
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head--center { text-align: center; }
.section-head--center h2 { margin-inline: auto; }
.section-lede { max-width: var(--measure); color: var(--ink-soft); margin-top: 1rem; font-size: 1.05rem; }
.section-head--center .section-lede { margin-inline: auto; }

/* Reveal — defensivo */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   4. Barra superior
   ============================================================= */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(29, 40, 54, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217,169,105,.35);
}
.topbar .brand { color: #fff; }
.topbar .brand .tld { color: var(--gold); }
.topbar .brand-sub { color: rgba(238,241,244,.5); }
.topbar .topnav a:not(.btn) { color: rgba(238,241,244,.75); }
.topbar .topnav a:not(.btn):hover { color: #fff; }
.topbar .topnav a:not(.btn)::after { background: var(--gold); }
.topbar .btn-accent { border-color: var(--gold); color: var(--gold); padding: .65rem 1rem; }
.topbar .btn-accent:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.topbar-inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand {
  font-family: var(--serif-display); font-weight: 700; font-size: 1.35rem;
  text-decoration: none; white-space: nowrap; line-height: 1.1;
}
.brand .tld { color: var(--accent); }
.brand-sub {
  display: block; font-family: var(--mono); font-weight: 400;
  font-size: .54rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-mute);
  margin-top: .12rem;
}
.topnav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.9rem); }
.topnav a {
  white-space: nowrap;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft); position: relative; padding-block: .4rem;
  transition: color .25s var(--ease-out);
}
.topnav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .35s var(--ease-out);
}
.topnav a:not(.btn):hover::after { width: 100%; }
.topnav a:not(.btn):hover { color: var(--ink); }

.nav-toggle { display: none; }

/* Progreso de lectura */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent); z-index: 200; pointer-events: none;
}

/* =============================================================
   5. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .9rem 1.6rem; text-decoration: none; text-align: center;
  border: 1px solid var(--ink); border-radius: 2px;
  background: transparent; color: var(--ink);
  transition: background .3s var(--ease-out), color .3s var(--ease-out),
              border-color .3s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 6px 20px rgba(180,112,58,.22);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; box-shadow: 0 10px 26px rgba(180,112,58,.3); }
.btn-accent { border-color: var(--accent); color: var(--accent); }
.btn-accent:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost-dark { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* =============================================================
   6. Hero ceremonial (portada)
   ============================================================= */
.ceremony {
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5.4rem) clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.ceremony .kicker { margin-top: 1.2rem; display: block; }
.ceremony h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  font-weight: 500;
  margin: 1rem auto 0;
  max-width: 21ch;
}
.ceremony h1 em { font-style: italic; color: var(--accent); }
.ceremony .hero-sub {
  color: var(--ink-soft); font-size: 1.03rem; line-height: 1.75;
  max-width: 72ch; margin: 1.3rem auto 0;
}
.ceremony .hero-pill {
  margin-top: 1.6rem; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .7rem;
  border: 1px solid var(--line-hard); background: #fff;
  padding: .65rem 1.1rem; font-family: var(--mono); font-size: .76rem;
}
.ceremony .hero-pill strong { color: var(--accent); font-weight: 600; }
.ceremony .hero-actions { margin-top: 1.7rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; }
.ceremony .hero-microline {
  margin-top: 1.4rem; font-family: var(--mono); font-size: .72rem;
  color: var(--ink-mute); letter-spacing: .04em; max-width: 64ch; margin-inline: auto; line-height: 1.9;
}

/* Sello tipográfico */
.seal {
  position: absolute; right: 5%; top: 14%;
  width: 104px; height: 104px; border-radius: 50%;
  border: 1.5px solid rgba(180,112,58,.55);
  display: grid; place-items: center; transform: rotate(-12deg);
  pointer-events: none;
}
.seal::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(180,112,58,.4); }
.seal span {
  font-family: var(--serif-display); font-style: italic; color: var(--accent);
  font-size: .78rem; text-align: center; line-height: 1.3; padding: 0 .6rem;
}

/* =============================================================
   7. Franja de cifras (filetes)
   ============================================================= */
.stats { background: var(--night); border-block: 3px double var(--gold); }
.stats-grid { display: grid; grid-template-columns: 1fr; }
.stat {
  padding: 1.7rem var(--gutter); border-top: 1px solid rgba(238,241,244,.14);
  display: grid; gap: .4rem; text-align: center; justify-items: center;
}
.stat:first-child { border-top: 0; }
.stat-num {
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.3rem); line-height: 1; color: var(--gold);
}
.stat-label { font-size: .95rem; color: #f2f4f6; max-width: 30ch; }
.stat-src { font-family: var(--mono); font-size: .64rem; color: rgba(238,241,244,.45); letter-spacing: .04em; line-height: 1.7; max-width: 34ch; }

/* =============================================================
   8. Actos (servicios I · II · III)
   ============================================================= */
.acts { display: grid; gap: 1.2rem; }
.act {
  padding: 2rem 1.7rem 1.9rem;
  background: var(--night);
  background-image: repeating-linear-gradient(135deg, rgba(217,169,105,.05) 0 1px, transparent 1px 11px);
  border: 1px solid rgba(217,169,105,.3); border-top: 3px double var(--gold);
  text-decoration: none; display: flex; flex-direction: column; gap: .6rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
  position: relative;
  box-shadow: 0 14px 36px rgba(29,40,54,.18);
}
.act:hover { transform: translateY(-5px); border-color: rgba(217,169,105,.6); box-shadow: 0 22px 50px rgba(29,40,54,.28); }
.act .rn { font-family: var(--serif-display); font-style: italic; color: var(--gold); font-size: 1.7rem; line-height: 1; }
.act h3 { font-size: 1.45rem; font-weight: 600; margin-top: .2rem; max-width: 20ch; color: #fff; }
.act p { font-size: .97rem; color: rgba(238,241,244,.75); flex: 1; max-width: 52ch; }
.act .pr { font-family: var(--mono); font-size: .78rem; color: var(--gold); letter-spacing: .04em; margin-top: .6rem; border-top: 1px solid rgba(238,241,244,.14); padding-top: .9rem; }
.act .go {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-top: .6rem;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(217,169,105,.55);
  transition: color .3s var(--ease-out);
}
.act:hover .go { color: #fff; text-decoration-color: #fff; }

/* =============================================================
   9. El problema — situaciones
   ============================================================= */
.situations { display: grid; gap: 1.1rem; }
.situation {
  padding: 1.7rem 1.6rem; background: #fff;
  border: 1px solid var(--line); border-top: 2px solid var(--accent);
}
.situation-num { font-family: var(--serif-display); font-style: italic; font-size: 1.3rem; color: var(--accent); }
.situation h3 { font-size: 1.28rem; margin-top: .4rem; font-weight: 600; }
.situation p { margin-top: .6rem; color: var(--ink-soft); font-size: .98rem; max-width: 60ch; }
.notice {
  margin-top: 1.5rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--bg-2); color: var(--ink-soft); font-size: 1rem; max-width: 80ch;
}

/* =============================================================
   10. Cita destacada (acta)
   ============================================================= */
.bigquote {
  padding-block: clamp(3.4rem, 8vw, 6rem);
  background:
    linear-gradient(100deg, rgba(22,32,44,.94) 0%, rgba(22,32,44,.78) 55%, rgba(22,32,44,.62) 100%),
    url("assets/img/cita-fondo.webp") center / cover no-repeat,
    var(--night);
  border-top: 3px double var(--gold);
}
.bigquote blockquote { color: #f2f4f6; }
.bigquote .qmark { color: var(--gold); }
.bigquote cite { color: rgba(238,241,244,.5); }
.bigquote .btn { border-color: rgba(238,241,244,.45); color: #fff; }
.bigquote .btn:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.bigquote-inner {
  max-width: 900px; margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: start;
}
.bigquote .qmark { font-family: var(--serif-display); font-size: 4.6rem; line-height: .8; color: var(--gold); }
.bigquote blockquote {
  font-family: var(--serif-display); font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-style: italic; line-height: 1.45; color: #f2f4f6; max-width: 50ch;
}
.bigquote cite {
  display: block; margin-top: 1rem; font-family: var(--mono); font-size: .62rem;
  font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: rgba(238,241,244,.5);
}
.bigquote .q-cta { margin-top: 1.3rem; }

/* =============================================================
   11. Cómo funciona — pasos con filete
   ============================================================= */
.steps { border-top: 1px solid var(--line-hard); }
.step {
  display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 1.2rem;
  padding: 1.5rem .4rem; border-bottom: 1px solid var(--line); align-items: start;
}
.step-num {
  font-family: var(--serif-display); font-style: italic; font-weight: 500;
  font-size: 2rem; color: var(--accent); line-height: 1;
}
.step h3 { font-size: 1.22rem; font-weight: 600; }
.step p { margin-top: .45rem; color: var(--ink-soft); font-size: .98rem; max-width: 64ch; }
.step-time {
  font-family: var(--mono); font-size: .62rem; color: var(--ink-mute); letter-spacing: .12em;
  text-transform: uppercase; margin-top: .5rem; display: block; white-space: nowrap;
}

/* =============================================================
   12. Qué recibes — entregables
   ============================================================= */
.deliverables { display: grid; gap: 1.2rem; }
.deliv { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.deliv h3 { font-size: 1.28rem; font-weight: 600; max-width: 24ch; }
.deliv p { margin-top: .55rem; color: var(--ink-soft); font-size: .98rem; }
.deliv .art {
  font-family: var(--mono); font-size: .62rem; color: var(--accent); letter-spacing: .1em;
  display: inline-block; margin-top: .8rem; border: 1px solid rgba(180,112,58,.4);
  padding: .18rem .55rem; text-transform: uppercase;
}
.dropcap::first-letter { /* sin dropcap en este diseño */ }

/* =============================================================
   13. Confianza — compromisos
   ============================================================= */
.commitments { counter-reset: comp; display: grid; gap: 0; border-top: 1px solid var(--line-hard); }
.commitment {
  padding: 1.5rem .4rem; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem;
}
.commitment::before {
  counter-increment: comp;
  content: counter(comp, upper-roman) ".";
  font-family: var(--serif-display); font-style: italic; font-size: 1.5rem; color: var(--accent); line-height: 1.2;
}
.commitment p { color: var(--ink-soft); font-size: 1rem; max-width: 70ch; }

/* =============================================================
   14. Aranceles — puntos conductores
   ============================================================= */
.price-conditions {
  columns: 1; column-gap: 2.6rem;
  color: var(--ink-soft); font-size: .98rem; max-width: 100%;
}
.price-conditions p { margin-bottom: .9rem; break-inside: avoid; }
.price-conditions strong { color: var(--ink); font-weight: 700; }

.fees { border-top: 1px solid var(--line-hard); margin-top: 2rem; }
.fees-caption {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mute); padding: 1rem 0 .4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.fee {
  display: flex; align-items: baseline; gap: .65rem;
  padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .96rem;
}
.fee .code { font-family: var(--mono); font-size: .72rem; color: var(--accent); min-width: 4.6rem; letter-spacing: .04em; }
.fee .name { color: var(--ink); }
.fee .name a { color: inherit; text-decoration-color: rgba(180,112,58,.5); text-underline-offset: 3px; }
.fee .name a:hover { color: var(--accent); }
.fee .plazo { display: block; font-family: var(--mono); font-size: .66rem; color: var(--ink-mute); margin-top: .2rem; letter-spacing: .03em; }
.fee .dots { flex: 1; border-bottom: 1px dotted var(--line-hard); transform: translateY(-4px); min-width: 2rem; }
.fee .val { font-family: var(--mono); font-size: .78rem; color: var(--ink); white-space: nowrap; text-align: right; }
.fee .tag {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); border: 1px solid var(--line-hard); border-radius: 999px;
  padding: .18rem .6rem; white-space: nowrap;
}
.fee .tag.open { color: #fff; background: var(--accent); border-color: var(--accent); }
.fee.is-open .name, .fee.is-open .val { font-weight: 600; }
.fee.closed .name, .fee.closed .val { color: var(--ink-mute); font-weight: 400; }
.fees-note { font-family: var(--mono); font-size: .7rem; color: var(--ink-mute); margin-top: 1rem; line-height: 1.8; max-width: 84ch; }

/* =============================================================
   14b. Autoevaluación (cuestionario)
   ============================================================= */
.exam {
  background: #fff; border: 1px solid var(--line-hard); border-top: 3px double var(--accent);
  padding: 1.4rem 1.5rem 1.3rem;
  box-shadow: 0 16px 44px rgba(29,40,54,.08);
}
.exam-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: .8rem;
}
.exam-count { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.exam-count span { color: var(--accent); }
.exam-clear {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); text-decoration: underline; text-underline-offset: 3px;
}
.exam-clear:hover { color: var(--accent); }
.exam-rows { list-style: none; padding: 0; margin: 0; }
.exam-group {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); padding: 1.2rem 0 .2rem; display: flex; align-items: baseline; gap: .8rem;
}
.exam-group span { color: var(--ink-mute); }
.exam-body {
  display: grid; grid-template-columns: 2.4rem 1fr auto; gap: .9rem; align-items: center;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
}
.exam-num { font-family: var(--serif-display); font-style: italic; font-size: 1.15rem; color: var(--ink-mute); }
.exam-q { font-family: var(--serif-body); font-size: 1.02rem; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
.exam-pair { display: inline-flex; gap: .45rem; }
.resp {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .06em;
  border: 1px solid var(--line-hard); border-radius: 999px; padding: .42rem 1.05rem;
  color: var(--ink-soft); background: #fff;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.resp:hover { border-color: var(--accent); color: var(--accent); }
.resp.elegida { background: var(--accent); border-color: var(--accent); color: #fff; }
.exam-row.respondida .exam-num { color: var(--accent); }

.verdict {
  margin-top: 1.4rem; border: 1px solid var(--line-hard); border-top: 3px double var(--gold);
  background: var(--night); color: #f2f4f6; padding: 1.5rem 1.5rem 1.6rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.verdict.entra { opacity: 1; transform: none; }
html.no-js .verdict, .verdict:not([hidden]) { opacity: 1; transform: none; }
.verdict-kicker { font-family: var(--mono); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.verdict-title { font-family: var(--serif-display); font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.7rem); margin-top: .6rem; color: #fff; }
.verdict-sub { margin-top: .6rem; color: rgba(238,241,244,.78); font-size: 1rem; max-width: 64ch; }
.verdict-lines { margin-top: 1.1rem; display: grid; gap: .6rem; }
.v-line {
  display: grid; grid-template-columns: 6.2rem 1fr; gap: .8rem; align-items: baseline;
  padding: .65rem .85rem; border: 1px solid rgba(238,241,244,.14); font-size: .92rem;
}
.v-line dt { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.v-line dd { margin: 0; color: rgba(238,241,244,.82); }
.v-line[data-tono="ok"] dt { color: #8fd0a8; }
.v-line[data-tono="falta"] dt { color: #e0a0a0; }
.v-line[data-tono="medio"] dt { color: var(--gold); }
.verdict .btn { margin-top: 1.2rem; }
.exam-note { font-family: var(--mono); font-size: .68rem; color: var(--ink-mute); margin-top: 1rem; line-height: 1.8; }

@media (max-width: 600px) {
  .exam-body { grid-template-columns: 1.8rem 1fr; }
  .exam-pair { grid-column: 2; justify-self: start; }
  .v-line { grid-template-columns: 1fr; gap: .2rem; }
}

/* =============================================================
   15. Límites
   ============================================================= */
.limits-cols { display: grid; gap: 2rem; }
.limits-block h3 {
  font-size: 1.45rem; font-weight: 600; padding-bottom: .7rem; border-bottom: 3px double var(--accent);
  display: flex; align-items: baseline; gap: .6rem;
}
.limits-block h3 .mark { font-family: var(--mono); font-size: 1rem; }
.limits-block.si h3 .mark { color: var(--accent); }
.limits-block.no h3 .mark { color: var(--ink); }
.limits-list { list-style: none; padding: 0; }
.limits-list li {
  padding: .95rem 0 .95rem 1.6rem; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); font-size: 1rem; position: relative;
}
.limits-list li::before { content: "—"; position: absolute; left: 0; font-family: var(--mono); color: var(--ink-mute); }
.limits-block.si .limits-list li::before { content: "+"; color: var(--accent); }
.limits-block.no .limits-list li::before { content: "×"; color: var(--accent); }
.limits-key {
  margin-top: 2.4rem; padding: 1.8rem 1.8rem;
  border: 1px solid var(--line-hard); border-top: 3px double var(--accent);
  background: #fff; font-size: 1.05rem; color: var(--ink);
  font-family: var(--serif-display); font-style: italic; line-height: 1.5;
}
.limits-key .kicker { margin-bottom: .7rem; font-style: normal; }

/* Módulo de límites de ficha */
.page-limits {
  border: 1px solid var(--line-hard); border-top: 3px double var(--accent);
  background: #fff; padding: 1.8rem 1.7rem;
}
.page-limits h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 600; }
.page-limits ul { list-style: none; padding: 0; margin-top: 1rem; }
.page-limits li {
  padding: .7rem 0 .7rem 1.5rem; border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: 1rem; position: relative;
}
.page-limits li::before { content: "×"; position: absolute; left: 0; font-family: var(--mono); font-size: .8rem; color: var(--accent); top: .8rem; }
.page-limits .also { margin-top: 1.1rem; font-family: var(--mono); font-size: .68rem; color: var(--ink-mute); }
.page-limits .also a { color: var(--accent); }

/* =============================================================
   16. FAQ
   ============================================================= */
.faq { border-top: 1px solid var(--line-hard); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.3rem .2rem; font-family: var(--serif-display);
  font-weight: 600; font-size: 1.22rem; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); flex: none; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 .2rem 1.4rem; color: var(--ink-soft); font-size: 1rem; max-width: 74ch; }
.faq .faq-body p + p { margin-top: .7rem; }

/* =============================================================
   17. Cierre + formulario (banda azul-noche)
   ============================================================= */
.closing {
  background: var(--night);
  color: #eef1f4;
  border-top: 3px double var(--gold);
}
.closing .kicker { color: var(--gold); }
.closing h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem); color: #fff; max-width: 22ch; margin-top: .9rem; font-weight: 500;
}
.closing h2 em { font-style: italic; color: var(--gold); }
.closing p.lede { color: rgba(238,241,244,.78); max-width: var(--measure); margin-top: 1.2rem; font-size: 1.03rem; }
.closing-conditions { font-family: var(--mono); font-size: .7rem; color: rgba(238,241,244,.5); margin-top: 1.6rem; line-height: 1.9; max-width: 72ch; }

.form-grid { display: grid; gap: 2.4rem; margin-top: 2.4rem; }
.quote-form {
  display: grid; gap: 1rem; background: #fff; color: var(--ink);
  border: 1px solid var(--line-hard); padding: 1.8rem 1.7rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .93rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-hard); padding: .7rem .8rem;
  border-radius: 2px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180,112,58,.14);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; gap: 1rem; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .8rem; color: var(--ink-soft); }
.consent input { margin-top: .25rem; accent-color: var(--accent); }
.consent a { color: var(--accent); }
.form-note { font-family: var(--mono); font-size: .7rem; color: var(--ink-mute); line-height: 1.8; }
.form-alert { padding: .9rem 1rem; font-size: .88rem; border: 1px solid; margin-bottom: .4rem; }
.form-alert.ok { border-color: var(--accent); color: var(--accent-dark); background: #fdf6ee; }
.form-alert.err { border-color: #b03a3a; color: #b03a3a; background: #fdf0f0; }
.form-alert a { color: inherit; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-side { display: grid; gap: 1.3rem; align-content: start; }
.contact-item { border-top: 1px solid rgba(238,241,244,.2); padding-top: 1rem; }
.contact-item .lbl { font-family: var(--mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(238,241,244,.45); }
.contact-item a, .contact-item span.val { display: block; margin-top: .35rem; font-size: 1rem; color: #fff; text-decoration: none; }
.contact-item a:hover { color: var(--gold); }

/* =============================================================
   18. Pie (azul-noche)
   ============================================================= */
.footer { background: var(--night-2); color: rgba(238,241,244,.7); border-top: 1px solid rgba(238,241,244,.12); }
.footer-inner { max-width: var(--maxw); margin-inline: auto; padding: 3rem var(--gutter) 2rem; display: grid; gap: 2.2rem; }
.footer-brand p { font-size: .93rem; max-width: 44ch; margin-top: .7rem; color: rgba(238,241,244,.55); }
.footer-brand .brand { color: #fff; font-size: 1.35rem; text-decoration: none; }
.footer-cols { display: grid; gap: 1.8rem; }
.footer-col h4 { font-family: var(--mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(238,241,244,.4); font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin-top: .8rem; display: grid; gap: .5rem; }
.footer-col a { font-size: .93rem; text-decoration: none; color: rgba(238,241,244,.75); }
.footer-col a:hover { color: var(--gold); }
.footer-legal {
  border-top: 1px solid rgba(238,241,244,.12); padding-top: 1.6rem;
  font-size: .84rem; line-height: 1.85; color: rgba(238,241,244,.45); max-width: 100ch;
}
.footer-legal p + p { margin-top: .8rem; }
.footer-id { font-family: var(--mono); font-size: .66rem; letter-spacing: .04em; color: rgba(238,241,244,.6); }
.footer-id a { color: inherit; }

/* =============================================================
   19. Páginas de ficha (subpáginas)
   ============================================================= */
.page-hero { border-bottom: 1px solid var(--line); padding-block: clamp(2.4rem, 6vw, 4.4rem); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); max-width: 20ch; margin-top: 1rem; font-weight: 500; }
.page-hero h1 em { font-style: italic; }
.page-hero .hero-sub { margin-top: 1.2rem; color: var(--ink-soft); font-size: 1.02rem; max-width: var(--measure); }
.page-hero .hero-pill {
  margin-top: 1.5rem; display: inline-flex; flex-wrap: wrap; align-items: center; gap: .7rem;
  border: 1px solid var(--line-hard); background: #fff;
  padding: .6rem 1rem; font-family: var(--mono); font-size: .76rem;
}
.page-hero .hero-pill strong { color: var(--accent); font-weight: 600; }
.page-hero .hero-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.page-hero .hero-microline {
  margin-top: 1.2rem; font-family: var(--mono); font-size: .72rem;
  color: var(--ink-mute); letter-spacing: .04em; max-width: 62ch; line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-microline { font-family: var(--mono); font-size: .72rem; color: var(--ink-mute); line-height: 1.9; }
.hero-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .7rem; border: 1px solid var(--line-hard); background: #fff; padding: .6rem 1rem; font-family: var(--mono); font-size: .76rem; }
.hero-pill strong { color: var(--accent); font-weight: 600; }
.hero-sub { color: var(--ink-soft); }

.breadcrumb { font-family: var(--mono); font-size: .64rem; color: var(--ink-mute); margin-bottom: 1.4rem; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.price-box {
  border: 1px solid var(--line-hard); border-top: 3px double var(--accent);
  background: #fff; padding: 1.7rem 1.6rem; display: grid; gap: .7rem;
  box-shadow: 0 14px 40px rgba(29,40,54,.08);
}
.price-box .amount {
  font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05; color: var(--ink);
}
.price-box .amount small { font-size: .45em; font-weight: 400; color: var(--ink-mute); font-family: var(--serif-body); }
.price-box .cond { color: var(--ink-soft); font-size: .98rem; }
.price-box .mono-note { font-family: var(--mono); font-size: .68rem; color: var(--ink-mute); line-height: 1.8; }

/* Maqueta de documento */
.docmock {
  background: #fff;
  border: 1px solid var(--line-hard);
  box-shadow: 0 18px 46px rgba(29,40,54,.12);
  padding: 1.3rem 1.3rem 1.1rem;
  font-size: .72rem;
  position: relative;
}
.docmock::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); pointer-events: none; }
.docmock > * { position: relative; }
.docmock-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  border-bottom: 3px double var(--accent); padding-bottom: .55rem; margin-bottom: .7rem;
}
.docmock-title { font-family: var(--serif-display); font-weight: 600; font-size: .95rem; }
.docmock-meta { font-family: var(--mono); font-size: .56rem; color: var(--ink-mute); letter-spacing: .05em; text-align: right; }
.docmock table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .56rem; }
.docmock th {
  text-align: left; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); border-bottom: 1px solid var(--line-hard);
  padding: .35rem .4rem; white-space: nowrap;
}
.docmock td { border-bottom: 1px solid var(--line); padding: .45rem .4rem; vertical-align: top; color: var(--ink-soft); }
.docmock-foot {
  margin-top: .7rem; display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: .56rem; color: var(--ink-mute); letter-spacing: .05em;
}
.docmock-foot .ver { color: var(--accent); }
.docmock-caption { margin-top: .8rem; font-family: var(--mono); font-size: .66rem; color: var(--ink-mute); line-height: 1.7; }

/* Maqueta pestañas planilla (DR-8) */
.tabsmock { background: #fff; border: 1px solid var(--line-hard); box-shadow: 0 18px 46px rgba(29,40,54,.12); font-size: .68rem; }
.tabsmock-tabs { display: flex; border-bottom: 1px solid var(--line-hard); overflow-x: auto; background: var(--bg-2); }
.tabsmock-tabs span {
  font-family: var(--mono); font-size: .56rem; letter-spacing: .04em; white-space: nowrap;
  padding: .6rem .8rem; border-right: 1px solid var(--line); color: var(--ink-mute);
}
.tabsmock-tabs span.active { background: #fff; color: var(--accent); box-shadow: inset 0 2px 0 var(--accent); }
.tabsmock-body { padding: .9rem 1rem 1rem; }

/* Secciones alternas claras */
.section--alt { background: var(--bg-2); }

/* =============================================================
   20. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-top: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
}

@media (min-width: 720px) {
  .acts { grid-template-columns: repeat(3, 1fr); }
  .deliverables { grid-template-columns: 1fr 1fr; column-gap: 2.6rem; }
  .limits-cols { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .price-conditions { columns: 2; }
  .situations { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-top: 0 !important; border-left: 1px solid var(--line); }
  .stat:first-child { border-left: 0; }
  .form-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .page-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 3rem; align-items: start; }
}

@media (max-width: 800px) { .seal { display: none; } }

@media (max-width: 959px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    border: 1px solid rgba(238,241,244,.4); padding: .5rem .85rem; color: rgba(238,241,244,.85);
  }
  .topnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--night); border-bottom: 1px solid rgba(217,169,105,.35);
    flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.4rem; gap: .2rem;
  }
  .topnav.is-open { display: flex; }
  .topnav a { padding-block: .7rem; border-bottom: 1px solid rgba(238,241,244,.14); font-size: .8rem; }
  .topnav a.btn { border: 1px solid var(--gold); margin-top: .8rem; }
}

@media (max-width: 719px) {
  .step { grid-template-columns: 3rem 1fr; }
  .step .step-time { white-space: normal; }
  .bigquote-inner { grid-template-columns: 1fr; gap: .6rem; }
  .fee { flex-wrap: wrap; }
  .fee .dots { display: none; }
  .fee .val { margin-left: auto; }
}

/* =============================================================
   21. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Los reveals, hovers y transiciones funcionales se mantienen. */
}

/* Bordes de la franja de cifras sobre azul-noche */
.stats .stat { border-color: rgba(238,241,244,.14) !important; }

/* =============================================================
   20a. Franja "exento de IVA" bajo el menú
   ============================================================= */
.iva-bar {
  background: var(--night-2);
  background-image: repeating-linear-gradient(135deg, rgba(217,169,105,.06) 0 1px, transparent 1px 11px);
  color: var(--gold);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  text-align: center; padding: .55rem var(--gutter);
  border-bottom: 1px solid rgba(217,169,105,.35);
  position: relative; z-index: 1;
}
.iva-bar span { margin-right: .4rem; }

/* =============================================================
   20b. Insignia "Exento de IVA"
   ============================================================= */
.iva-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-dark); background: rgba(180,112,58,.1);
  border: 1px solid rgba(180,112,58,.45); border-radius: 999px;
  padding: .3rem .75rem; white-space: nowrap; vertical-align: middle;
}
.iva-badge::before { content: "✓"; font-size: .7rem; color: var(--accent); }
.iva-badge--lg { font-size: .7rem; padding: .45rem 1rem; white-space: normal; }

/* =============================================================
   20c. Botón "volver arriba"
   ============================================================= */
.to-top {
  position: fixed; right: 1.35rem; bottom: 5.6rem; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--night); color: var(--gold);
  border: 1px solid rgba(217,169,105,.55);
  font-family: var(--mono); font-size: 1.1rem; line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  transition: transform .3s var(--ease-out), background .3s var(--ease-out);
}
.to-top:hover { transform: translateY(-3px); background: var(--night-2); }
@media print { .to-top { display: none !important; } }

/* =============================================================
   21a. Burbuja de WhatsApp
   ============================================================= */
.wsp {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.wsp:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 16px 36px rgba(0,0,0,.35); }
@media print { .wsp { display: none !important; } }

/* =============================================================
   21b. Texturas y ornamentos
   ============================================================= */
/* Grano de papel sobre todo el sitio */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
header, main, footer { position: relative; z-index: 1; }

/* Portada: marca de agua + rayado de libro de actas + halo cobre */
.ceremony { overflow: hidden; }
.ceremony::before {
  content: "21.719";
  position: absolute; right: -3%; top: -4rem;
  font-family: var(--serif-display); font-style: italic; font-weight: 600;
  font-size: clamp(8rem, 22vw, 19rem); line-height: 1;
  color: rgba(180,112,58,.07); pointer-events: none; white-space: nowrap;
}
.ceremony::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(52% 46% at 50% 0%, rgba(180,112,58,.10), transparent 72%),
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(29,40,54,.045) 34px 35px);
}
.ceremony .wrap { position: relative; }

/* Bandas azul-noche: rayado diagonal dorado muy fino */
.stats, .closing, .footer {
  background-image: repeating-linear-gradient(135deg, rgba(217,169,105,.05) 0 1px, transparent 1px 11px);
}
.closing { position: relative; overflow: hidden; }
.closing::before {
  content: "§"; position: absolute; right: -1%; bottom: -6rem;
  font-family: var(--serif-display); font-style: italic;
  font-size: clamp(12rem, 26vw, 24rem); line-height: 1;
  color: rgba(217,169,105,.07); pointer-events: none;
}
.closing .wrap { position: relative; }
.bigquote { position: relative; overflow: hidden; }
.bigquote::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 60% at 85% 20%, rgba(217,169,105,.08), transparent 70%);
}
.bigquote-inner { position: relative; z-index: 1; }

/* Fichas: marca de agua con el código del servicio */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before {
  content: attr(data-wm);
  position: absolute; right: -2%; top: -3rem;
  font-family: var(--serif-display); font-style: italic; font-weight: 600;
  font-size: clamp(7rem, 20vw, 15rem); line-height: 1;
  color: rgba(180,112,58,.07); pointer-events: none; white-space: nowrap;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(46% 60% at 80% 10%, rgba(180,112,58,.08), transparent 72%);
}
.page-hero .wrap { position: relative; }

/* Cuestionario: marco interior de acta */
.exam { position: relative; }
.exam::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid var(--line);
}
.exam > * { position: relative; z-index: 1; }

/* Tarjetas: esquina con tilde cobre */
.situation, .deliv, .act { position: relative; }
.situation::after {
  content: ""; position: absolute; top: 10px; right: 10px;
  width: 16px; height: 16px; pointer-events: none;
  border-top: 1px solid rgba(180,112,58,.5);
  border-right: 1px solid rgba(180,112,58,.5);
}

/* Autoevaluación: textura propia (trama cruzada + halo cobre) */
#autoevaluacion {
  background:
    radial-gradient(56% 42% at 50% 0%, rgba(180,112,58,.09), transparent 72%),
    repeating-linear-gradient(45deg, rgba(29,40,54,.03) 0 1px, transparent 1px 13px),
    repeating-linear-gradient(-45deg, rgba(29,40,54,.03) 0 1px, transparent 1px 13px);
}

/* Fotografías editoriales con marco de acta */
.photo {
  background: #fff; border: 1px solid var(--line-hard);
  padding: 10px; position: relative;
  box-shadow: 0 20px 50px rgba(29,40,54,.14);
}
.photo::after {
  content: ""; position: absolute; inset: 16px; pointer-events: none;
  border: 1px solid rgba(217,169,105,.55);
}
.photo img { width: 100%; height: auto; display: block; }
.photo--band img { aspect-ratio: 21 / 9; object-fit: cover; }
.photo--tall img { aspect-ratio: 3 / 4; object-fit: cover; height: 100%; }
.photo--tall { display: flex; flex-direction: column; }
.photo--tall .photo-frame { flex: 1; }
.photo figcaption {
  font-family: var(--mono); font-size: .66rem; color: var(--ink-mute);
  letter-spacing: .06em; padding: .7rem .4rem .2rem; text-transform: uppercase;
}
.ceremony .photo { margin-top: 2.6rem; }
@media (max-width: 719px) { .photo--band img { aspect-ratio: 16 / 10; } }

/* Flecha de "abre otra página" en los actos */
.act::after {
  content: "→"; position: absolute; top: 12px; right: 16px;
  font-family: var(--mono); font-size: .95rem; color: var(--gold);
  transform: rotate(-45deg);
  transition: transform .3s var(--ease-out);
}
.act:hover::after { transform: rotate(-45deg) translateX(4px); }

/* Composición en capas de las fichas: foto + maqueta superpuesta */
.media-stack { position: relative; }
.media-stack .photo { margin: 0; }
.media-stack .photo img { aspect-ratio: 16 / 11; object-fit: cover; }
.media-stack .docmock, .media-stack .tabsmock {
  width: min(100% - 1.6rem, 540px);
  margin: -3.4rem 1.6rem 0 0;
  position: relative; z-index: 2;
}
@media (max-width: 719px) {
  .media-stack .docmock, .media-stack .tabsmock { width: auto; margin: -2rem .8rem 0 .8rem; }
}

/* Contenedores desplazables de maquetas: sin barra visible */
.mock-scroll { overflow-x: auto; scrollbar-width: none; }
.mock-scroll::-webkit-scrollbar { display: none; }
.docmock th { white-space: normal; }
.tabsmock-tabs { flex-wrap: wrap; overflow: visible; }
.tabsmock-tabs span { border-bottom: 1px solid var(--line); flex: 1 1 auto; text-align: center; }

/* Foto inclinada y solapada en Qué recibes */
.photo--tilt { z-index: 2; }
@media (min-width: 960px) {
  .photo--tilt { transform: rotate(-1.6deg); margin-bottom: -4.5rem; }
}

/* Submenú de Servicios */
.nav-item { position: relative; display: flex; align-items: center; align-self: stretch; }
.submenu { display: none; }
@media (min-width: 960px) {
  .nav-item:hover .submenu, .nav-item:focus-within .submenu { display: grid; }
  .submenu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: var(--night); border: 1px solid rgba(217,169,105,.35); border-top: 2px solid var(--gold);
    min-width: 300px; padding: .45rem 0; z-index: 60;
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
  }
  .submenu a { padding: .65rem 1.1rem; }
  .submenu a:not(.btn)::after { display: none; }
  .submenu a:hover { background: rgba(217,169,105,.1); }
}
@media (max-width: 959px) {
  .submenu { display: grid; }
  .nav-item { flex-direction: column; align-items: stretch; align-self: auto; }
  .submenu a { padding-left: 1.2rem; color: rgba(238,241,244,.55); }
}

/* Perfil del perito (Quién responde) */
.perito-card {
  background: #fff; border: 1px solid var(--line-hard); border-top: 3px double var(--accent);
  box-shadow: 0 20px 50px rgba(29,40,54,.1);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  display: grid; gap: 2rem;
}
.photo--square img { aspect-ratio: 1 / 1; object-fit: cover; }
.perito-foto { align-self: start; max-width: 420px; }
.perito-texto h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); font-weight: 500; margin-top: .8rem; }
.perito-texto h2 em { font-style: italic; color: var(--accent); }
.perito-rol {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); margin: .6rem 0 1.1rem; border-bottom: 1px solid var(--line); padding-bottom: .9rem;
}
.perito-texto p:not(.kicker):not(.perito-rol) { color: var(--ink-soft); font-size: .98rem; max-width: 60ch; }
.perito-texto p + p { margin-top: .8rem; }
@media (min-width: 960px) {
  .perito-card { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; }
}

/* Sección alterna con veladura de líneas de acta */
.section--alt {
  background-image: repeating-linear-gradient(180deg, transparent 0 34px, rgba(29,40,54,.035) 34px 35px);
}

/* Página actual en el menú y en el pie (aria-current, pedido L4) */
.topbar .topnav a[aria-current]:not(.btn) { color: #fff; }
.topbar .topnav a[aria-current]:not(.btn)::after { width: 100%; }
.topbar .topnav .nav-item:has(a[aria-current]) > a:not(.btn) { color: #fff; }
.topbar .topnav .nav-item:has(a[aria-current]) > a:not(.btn)::after { width: 100%; }
.topbar .topnav .submenu a[aria-current]:not(.btn) { color: var(--gold); }
.footer-col a[aria-current] { color: var(--gold); }

/* =============================================================
   21c. Aviso de cookies (Ley 21.719) — lo crea initCookies() en main.js
   Plantilla aviso-cookies de dutchysites, con los colores del sitio.
   ============================================================= */
.aviso-cookies {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  z-index: 140; width: min(680px, calc(100% - 11rem));
  display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap;
  background: var(--paper); color: var(--ink-soft);
  border: 1px solid var(--line-hard); border-top: 3px double var(--accent); border-radius: 2px;
  box-shadow: 0 18px 44px rgba(29, 40, 54, .2);
  padding: 1rem 1.2rem;
  font-size: .82rem; line-height: 1.55;
}
.aviso-cookies[hidden] { display: none; }
.aviso-cookies p { flex: 1 1 260px; margin: 0; }
.aviso-cookies a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.aviso-cookies-botones { display: flex; gap: .6rem; flex: 0 0 auto; }
.aviso-cookies .btn { padding: .65rem 1.2rem; min-width: 7.2rem; }
.enlace-cookies {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; letter-spacing: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px;
}
.enlace-cookies:hover { color: var(--gold); }
@media (max-width: 760px) {
  .aviso-cookies { width: calc(100% - 1.6rem); bottom: .8rem; padding: .95rem 1rem; }
  .aviso-cookies-botones { width: 100%; }
  .aviso-cookies .btn { flex: 1 1 0; min-width: 0; }
  /* los botones flotantes (WhatsApp y volver arriba) suben sobre el aviso */
  .con-aviso-cookies .wsp { bottom: calc(var(--aviso-h, 0px) + 1.4rem); }
  .con-aviso-cookies .to-top { bottom: calc(var(--aviso-h, 0px) + 5.8rem); }
}

/* =============================================================
   22. Impresión
   ============================================================= */
@media print {
  .topbar, .progress, .quote-form, .btn, .nav-toggle, .seal { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.4rem; }
}

/* Línea de fuentes citadas (orden OC-51) */
.fuentes { margin-top: 1.4rem; font-size: .86rem; line-height: 1.6; color: var(--ink-mute); max-width: var(--measure); }
.fuentes a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
