/* BERMEX · Berjen de México
   Paper and two inks from the logo (blue for what is seen, steel for what is behind) plus the red pen of the legal review.
   Mona Sans throughout: light and slightly wide for titles, italic for anything the red pen writes. */

@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-sans.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-sans-italic.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-style: italic; font-display: swap; }

:root {
  --paper: #f3f4f4;
  --sheet: #fbfcfc;
  --ink: #0f1a30;
  --ink-2: #434d64;
  --blue: #1f458c;
  --blue-d: #13295a;
  --steel: #929fad;
  --line: #cdd3db;
  --red: #b93425;
  --gut: clamp(20px, 4.2vw, 60px);
  --font: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --contract: Georgia, "Times New Roman", Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: min(1280px, 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.c-b { fill: var(--cb, #1f458c); }
.c-g { fill: var(--cg, #929fad); }

/* ---------- buttons and links ---------- */
.btn { --bg: var(--blue); display: inline-flex; align-items: center; min-height: 50px; padding: 12px 26px 12px 22px; border: 0; cursor: pointer;
  color: #fff; font-weight: 550; text-decoration: none; letter-spacing: .005em;
  /* the bottom-right corner is cut at the 30 degrees of the logo's cube */
  background: linear-gradient(330deg, transparent 9px, var(--bg) 9.5px); }
.btn:hover { --bg: var(--ink); }
.lnk { display: inline-flex; align-items: center; gap: .45em; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); font-weight: 550;
  text-decoration: underline; text-decoration-color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.lnk::after { content: "\2192"; transition: transform .2s; }
.lnk:hover { text-decoration-color: var(--blue); color: var(--blue); }
.lnk:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__cubo { width: 31px; height: 36px; }
.brand__palabra { width: 109px; height: 20px; fill: url(#bx-grad); }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav__links a { color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none; padding: 8px 0; }
.nav__links a:not(.nav__cta):hover { color: var(--blue); box-shadow: 0 1px 0 var(--blue); }
.nav__links .nav__cta { color: #fff; padding: 10px 22px 10px 18px; background: linear-gradient(330deg, transparent 8px, var(--blue) 8.5px); }
.nav__links .nav__cta:hover { background: linear-gradient(330deg, transparent 8px, var(--ink) 8.5px); }
.nav__toggle { display: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: none; color: var(--ink); font-weight: 550; cursor: pointer; }

/* ---------- drawings ---------- */
.azul polygon, .azul polyline, .azul line, .azul circle, .azul path { fill: none; stroke: var(--ln, #1f458c); stroke-width: 2.3; stroke-linejoin: round; stroke-linecap: round; }
.azul .f { fill: var(--paper); stroke: none; }
.azul .h { stroke: var(--hid, #929fad); stroke-width: 1.9; }
.azul .d { stroke-width: 1; opacity: .58; }
.azul .g { stroke: var(--hid, #929fad); stroke-width: 1.3; }
.azul .gd { stroke: var(--hid, #929fad); stroke-width: 1.3; stroke-dasharray: 10 9; }
.azul .lot { fill: var(--sheet); stroke-width: 1.5; stroke-dasharray: 14 6 2 6; }
.azul .lot2 { stroke-width: 1; stroke-dasharray: 5 5; opacity: .7; }
.azul .vx { fill: var(--paper); stroke-width: 1.7; }
.azul .pt { fill: var(--blue); font: 500 18px var(--font); }
.rojo path { fill: none; stroke: var(--red); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.rojo .rh { stroke-width: 1.4; opacity: .78; }
.rojo .rl { stroke-width: 1.2; }
.rojo .rn circle { fill: var(--paper); stroke: var(--red); stroke-width: 1.7; }
.rojo .rn text { fill: var(--red); font: 600 16px var(--font); }
.rojo .rt { fill: var(--red); font: italic 400 20px var(--font); }
.rojo .rn--m { display: none; }
.rojo .rn--m text { font-size: 30px; }
.rojo .rn--m circle { stroke-width: 2.4; }
.nota { text-decoration: none; cursor: pointer; }
.nota:hover .rt, .nota:focus-visible .rt { text-decoration: underline; text-decoration-thickness: 1px; }
.nota:focus-visible { outline: none; }
.nota:focus-visible .rn circle { fill: var(--red); }
.nota:focus-visible .rn text { fill: #fff; }
.marca path { transition: stroke-width .2s; }
.rojo:has(.nota[data-n="1"]:is(:hover, :focus-visible)) .marca[data-n="1"] path:not(.rh),
.rojo:has(.nota[data-n="2"]:is(:hover, :focus-visible)) .marca[data-n="2"] path:not(.rh),
.rojo:has(.nota[data-n="3"]:is(:hover, :focus-visible)) .marca[data-n="3"] path:not(.rh),
.rojo:has(.nota[data-n="4"]:is(:hover, :focus-visible)) .marca[data-n="4"] path:not(.rh),
.rojo:has(.nota[data-n="5"]:is(:hover, :focus-visible)) .marca[data-n="5"] path,
.rojo:has(.nota[data-n="6"]:is(:hover, :focus-visible)) .marca[data-n="6"] path { stroke-width: 3.6; opacity: 1; }
.rojo:has(.nota[data-n="5"]:is(:hover, :focus-visible)) .marca[data-n="5"] .rh,
.rojo:has(.nota[data-n="6"]:is(:hover, :focus-visible)) .marca[data-n="6"] .rh { stroke-width: 2.2; }

/* the drawing arrives in blue, then the red pen goes over it */
@media (prefers-reduced-motion: no-preference) {
  .js .lamina .obj { opacity: 0; animation: llega .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * .13s + .1s); }
  .js .lamina .marca path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: traza .65s ease-out forwards; animation-delay: calc(var(--d) * .38s + 1s); }
  .js .lamina .marca .rh { animation-duration: .3s; }
  .js .lamina .nota, .js .lamina .rn--m { opacity: 0; animation: llega .5s ease-out both; animation-delay: calc(var(--d) * .38s + 1.3s); }
  .lamina [data-n="1"], .lamina .rn--m:nth-of-type(1) { --d: 0; }
  .lamina [data-n="2"], .lamina .rn--m:nth-of-type(2) { --d: 1; }
  .lamina [data-n="3"], .lamina .rn--m:nth-of-type(3) { --d: 2; }
  .lamina [data-n="4"], .lamina .rn--m:nth-of-type(4) { --d: 3; }
  .lamina [data-n="5"], .lamina .rn--m:nth-of-type(5) { --d: 4; }
  .lamina [data-n="6"], .lamina .rn--m:nth-of-type(6) { --d: 5; }
}
@keyframes llega { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes traza { to { stroke-dashoffset: 0; } }

/* ---------- hero ---------- */
.hero { padding: clamp(20px, 2.6vw, 40px) 0 clamp(48px, 6vw, 88px); overflow: clip; }
.hero__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(8px, 1.5vw, 28px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 3.9vw + .5rem, 4.4rem); font-weight: 300; font-stretch: 108%; line-height: 1.04; letter-spacing: -.024em; }
.hero h1 em { display: block; margin-top: .14em; color: var(--blue); font-weight: 300; }
.lede { max-width: 31em; margin-top: clamp(20px, 2.2vw, 32px); font-size: clamp(1.08rem, .5vw + .95rem, 1.24rem); line-height: 1.55; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: clamp(24px, 2.6vw, 38px); }
.hero__fig { margin-right: calc(var(--gut) * -.4); }
.lamina { width: 100%; height: auto; overflow: visible; }
.hero__fig figcaption { max-width: 34em; margin: 6px 0 0 4%; padding-left: 14px; border-left: 2px solid var(--red); font-size: .9rem; line-height: 1.45; }
.notas { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- sections ---------- */
.sec { padding: 0 0 clamp(72px, 9vw, 128px); }
/* two hairlines, like the ruled margins of a notary's protocol page */
.sec > .wrap::before { content: ""; display: block; height: 5px; border-block: 1px solid var(--line); margin-bottom: clamp(48px, 6vw, 84px); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 68px); }
.sec h2 { font-size: clamp(2rem, 2.4vw + .9rem, 3.1rem); font-weight: 300; font-stretch: 106%; line-height: 1.08; letter-spacing: -.02em; }
.sec__head p { max-width: 34em; }

/* ---------- the three branches ---------- */
.ramas { --gap: clamp(36px, 5.6vw, 84px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.rama { position: relative; }
.rama + .rama::before { content: ""; position: absolute; left: calc(var(--gap) / -2); top: 0; bottom: 0; width: 1px; background: var(--line); }
.figura { width: 100%; max-width: 400px; height: auto; aspect-ratio: 420 / 404; margin: 0 auto 18px; }
.rama h3 { font-size: 1.7rem; font-weight: 400; font-stretch: 106%; letter-spacing: -.012em; line-height: 1.15; }
.rama__que { margin-top: 8px; min-height: 3.2em; }
.rama ul { margin-top: 18px; border-top: 1px solid var(--line); }
.rama li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 1rem; }
.rama__punto { margin-top: 20px; color: var(--red); font-style: italic; line-height: 1.45; }
.rama__punto span { display: block; margin-bottom: 2px; font-style: normal; font-weight: 600; font-size: .86rem; }

/* ---------- services ---------- */
.lista { border-bottom: 1px solid var(--line); }
.serv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px clamp(24px, 5vw, 80px); padding: clamp(22px, 2.6vw, 34px) 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.serv h3 { font-size: clamp(1.4rem, 1.3vw + .9rem, 2rem); font-weight: 300; font-stretch: 104%; line-height: 1.15; letter-spacing: -.014em; transition: color .2s; }
.serv:hover h3 { color: var(--blue); }
.serv:target h3 { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.serv__txt > p:first-child { max-width: 40em; }
.serv__ent { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; font-size: .95rem; }
.serv__ent span { color: var(--ink-2); }
/* the dashes that fill a line to the margin so nothing can be added to it */
.serv__ent i { flex: 1; min-width: 24px; border-bottom: 1px dashed var(--steel); transform: translateY(-4px); }
.serv__ent b { color: var(--ink); font-weight: 600; text-align: right; }

/* ---------- legal route ---------- */
.ruta { background: var(--blue-d); color: #cfd8ea; padding-top: clamp(64px, 8vw, 112px); }
.ruta > .wrap::before { display: none; }
.ruta h2, .ruta h3, .ruta h4 { color: #fff; }
.ruta__tipos { display: flex; flex-wrap: wrap; gap: 0 clamp(20px, 3vw, 44px); border-bottom: 1px solid rgb(255 255 255 / .2); }
.ruta__tipos button { padding: 14px 0 16px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; color: #aab8d4; font-size: 1.12rem; font-weight: 500; cursor: pointer; }
.ruta__tipos button:hover { color: #fff; }
.ruta__tipos button[aria-selected="true"] { color: #fff; border-bottom-color: var(--paper); }
.ruta :focus-visible { outline-color: #fff; }
html:not(.js) .ruta__tipos { display: none; }
.js .ruta__nojs { display: none; }
.ruta__nojs { margin: 40px 0 0; font-size: 1.5rem; font-weight: 400; }
.js .ruta__tipo:not(.on), .js .ruta__panel:not(.on) { display: none; }
.ruta__etapas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: clamp(28px, 3.4vw, 48px); counter-reset: e; }
.ruta__etapas li { position: relative; }
/* the track between stages */
.ruta__etapas li::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 1px; background: rgb(255 255 255 / .28); }
.ruta__etapas li:first-child::before { left: 20px; }
.ruta__etapas li:last-child::before { right: calc(100% - 20px); }
.ruta__etapas button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; padding: 0 8px 0 0; border: 0; background: none; color: #aab8d4; text-align: left; cursor: pointer; }
html:not(.js) .ruta__etapas { display: none; }
/* stage markers are the outline of the logo's cube */
.ruta__num { display: grid; place-items: center; flex: none; width: 38px; height: 43px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: #33487a; color: #dfe6f3; font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.ruta__nom { font-weight: 500; font-size: 1rem; line-height: 1.25; }
.ruta__etapas button:hover .ruta__num { background: #4a6096; }
.ruta__etapas button:hover { color: #fff; }
.ruta__etapas button.pasada .ruta__num { background: #5d73a8; color: #fff; }
.ruta__etapas button[aria-pressed="true"] { color: #fff; }
.ruta__etapas button[aria-pressed="true"] .ruta__num { background: var(--paper); color: var(--blue-d); }
.ruta__etapas button[aria-pressed="true"] .ruta__nom { font-weight: 650; }
.ruta__panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 80px); align-items: start; margin-top: clamp(28px, 3.4vw, 48px); }
.ruta__que h4 { display: flex; align-items: center; gap: 14px; font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); font-weight: 300; font-stretch: 106%; }
.js .ruta__que h4 .ruta__num { display: none; }
.ruta__que ul { margin-top: 18px; border-top: 1px solid rgb(255 255 255 / .2); }
.ruta__que li { padding: 13px 0; border-bottom: 1px solid rgb(255 255 255 / .2); color: #eef2f9; font-size: 1.06rem; }
/* the remark comes on a slip of the same paper as the rest of the site */
.ruta__obs { padding: 26px 28px 28px; background: var(--paper); color: var(--ink); transform: rotate(-.7deg); box-shadow: 0 18px 36px -22px rgb(0 0 0 / .6); }
.ruta__obs-t { color: var(--red); font-weight: 600; font-size: .9rem; }
.ruta__obs-x { margin-top: 8px; color: var(--red); font-style: italic; font-size: clamp(1.2rem, .8vw + 1rem, 1.5rem); line-height: 1.32; }
.ruta__ir { display: inline-flex; gap: .45em; margin-top: 22px; color: var(--ink); font-weight: 550; font-size: .98rem; text-decoration: underline; text-decoration-color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.ruta__ir::after { content: "\2192"; }
.ruta__ir:hover { color: var(--blue); text-decoration-color: var(--blue); }
.ruta .ruta__obs :focus-visible { outline-color: var(--blue); }

/* ---------- method ---------- */
.metodo { padding-top: clamp(72px, 9vw, 128px); }
.metodo > .wrap::before { display: none; }
.metodo__in { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.metodo__txt > p { max-width: 30em; margin-top: 22px; }
.reglas { margin-top: clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.reglas > div { padding: 16px 0; border-top: 1px solid var(--line); }
.reglas dt { color: var(--ink); font-weight: 600; }
.reglas dd { margin-top: 2px; }
.clausula { display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 16vw, 210px); gap: 0 clamp(16px, 2vw, 28px); align-items: start; }
.hoja { padding: clamp(24px, 3.4vw, 48px) clamp(22px, 3.4vw, 50px) clamp(30px, 4vw, 58px); background: #fff; color: #1b2233; font: 400 1.08rem/1.75 var(--contract);
  box-shadow: 0 0 0 1px rgb(15 26 48 / .07), 0 30px 50px -36px rgb(15 26 48 / .45); }
.hoja p + p { margin-top: 1em; }
.hoja__t { font-weight: 700; }
.hoja del { color: #8b93a1; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.hoja ins { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.llamada { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-left: .3em; border: 1.5px solid var(--red); border-radius: 50%; color: var(--red); font: italic 600 .78rem/1 var(--font); vertical-align: .22em; }
.margen { padding-top: clamp(64px, 7vw, 100px); counter-reset: m; color: var(--red); font-style: italic; font-size: 1rem; line-height: 1.38; }
.margen li { position: relative; padding: 0 0 22px 30px; counter-increment: m; }
.margen li::before { content: counter(m, lower-alpha); position: absolute; left: 0; top: .05em; display: grid; place-items: center; width: 1.45em; height: 1.45em; border: 1.5px solid var(--red); border-radius: 50%; font-weight: 600; font-size: .8rem; line-height: 1; }
.clausula figcaption { grid-column: 1 / -1; margin-top: 16px; font-size: .88rem; }

/* ---------- contact ---------- */
.contacto__in::before { grid-column: 1 / -1; margin-bottom: clamp(16px, 2vw, 30px) !important; }
.contacto__in { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.contacto__txt { position: sticky; top: 104px; }
.contacto__txt > p { max-width: 28em; margin-top: 22px; }
.ficha { margin-top: clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.ficha > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.ficha dd { color: var(--ink); font-weight: 550; text-align: right; }
.ficha a { text-decoration-color: var(--steel); text-underline-offset: 4px; }
.ficha a:hover { color: var(--blue); }
.contacto__cubo { width: clamp(120px, 14vw, 190px); aspect-ratio: 434 / 502; height: auto; margin-top: clamp(36px, 5vw, 72px); }
.form { display: grid; gap: 20px; padding: clamp(22px, 3.2vw, 44px); background: #fff; box-shadow: 0 0 0 1px rgb(15 26 48 / .07), 0 30px 50px -36px rgb(15 26 48 / .4); }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form legend, .campo > span { display: block; margin-bottom: 7px; padding: 0; color: var(--ink); font-size: .92rem; font-weight: 600; }
.form__tipo { display: flex; flex-wrap: wrap; gap: 10px; }
.form__tipo legend { float: left; width: 100%; }
.form__tipo label { position: relative; flex: 1 1 130px; }
.form__tipo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.form__tipo span { display: grid; place-items: center; min-height: 48px; padding: 8px 12px; border: 1px solid #b3bcc8; color: var(--ink); font-weight: 550; transition: background .15s, color .15s, border-color .15s; }
.form__tipo input:hover + span { border-color: var(--blue); }
.form__tipo input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.form__tipo input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.form__fila { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.campo { display: block; }
.campo input, .campo select, .campo textarea { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #b3bcc8; border-radius: 0; background: #fff; color: var(--ink); }
.campo textarea { resize: vertical; line-height: 1.5; }
.campo select { appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231f458c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 13px center / 12px 8px; }
.campo ::placeholder { color: #7c8698; opacity: 1; }
.campo input:hover, .campo select:hover, .campo textarea:hover { border-color: var(--blue); }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.campo [aria-invalid="true"] { border-color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }
.form__error { color: var(--red); font-weight: 550; }
.form__acc { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form__nota { font-size: .88rem; line-height: 1.5; }

/* ---------- footer ---------- */
.pie { background: var(--ink); color: #b9c3d6; padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 4vw, 44px); }
.pie__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px clamp(24px, 5vw, 80px); }
.pie__marca { display: flex; align-items: center; gap: 14px; --cb: #f3f4f4; --cg: #6f7f96; }
.pie__cubo { width: 40px; height: 46px; }
.pie__palabra { width: 136px; height: 25px; fill: #f3f4f4; }
.pie__txt { grid-column: 1; max-width: 26em; color: #dbe1ec; }
.pie__nav { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; align-content: start; }
.pie__nav a { padding: 7px 0; color: #dbe1ec; text-decoration: none; }
.pie__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.pie :focus-visible { outline-color: #fff; }
.pie__legal { grid-column: 1 / -1; margin-top: 14px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .16); font-size: .86rem; }

/* ---------- privacy page ---------- */
.legal { padding: clamp(32px, 5vw, 72px) 0 clamp(72px, 9vw, 120px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem); font-weight: 300; font-stretch: 106%; line-height: 1.06; letter-spacing: -.02em; }
.legal__fecha { margin-top: 14px; }
.legal h2 { margin: 44px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 1.35rem; font-weight: 550; }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 12px; }
.legal ul { padding-left: 1.2em; list-style: square; }
.legal li { padding: 3px 0; }
.legal li::marker { color: var(--blue); }
.legal a { color: var(--blue); text-underline-offset: 4px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1040px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero h1 { max-width: 13em; }
  .hero__fig { margin-right: 0; }
  .hero__fig figcaption { margin-left: 0; }
  .lamina .nota { display: none; }
  .rojo .rn--m { display: block; }
  .notas { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 22px; border-top: 1px solid var(--line); }
  .notas a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 10px; height: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
  .notas__n { grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--red); border-radius: 50%; color: var(--red); font-weight: 600; font-size: .88rem; }
  .notas__x { color: var(--red); font-style: italic; line-height: 1.35; }
  .notas__s { color: var(--ink); font-size: .88rem; font-weight: 550; }
  .notas__s::after { content: " \2192"; }
  .metodo__in, .contacto__in { grid-template-columns: minmax(0, 1fr); }
  .contacto__cubo { display: none; }
  .contacto__txt { position: static; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .js .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gut) 22px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .js .nav__links.is-open { display: flex; }
  html:not(.js) .nav__in { flex-wrap: wrap; padding-bottom: 10px; }
  html:not(.js) .nav__toggle { display: none; }
  html:not(.js) .nav__links { flex-wrap: wrap; gap: 4px 18px; }
  .js .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .js .nav__links a:not(.nav__cta):hover { box-shadow: none; }
  .js .nav__links .nav__cta { margin-top: 16px; padding: 14px 18px; border-bottom: 0; text-align: center; }
  .sec__head { grid-template-columns: minmax(0, 1fr); }
  .ramas { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .rama + .rama::before { display: none; }
  .rama__que { min-height: 0; }
  .figura { max-width: 340px; margin-left: 0; }
  .figura--nave, .figura--plaza { aspect-ratio: 420 / 250; }
  .serv { grid-template-columns: minmax(0, 1fr); }
  .ruta__etapas { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
  .ruta__etapas li:nth-child(3)::before { right: calc(100% - 20px); }
  .ruta__etapas li:nth-child(4)::before { left: 20px; }
  .ruta__panel { grid-template-columns: minmax(0, 1fr); }
  .pie__in { grid-template-columns: minmax(0, 1fr); }
  .pie__nav { grid-column: 1; grid-row: auto; }
}
@media (max-width: 620px) {
  .notas { grid-template-columns: minmax(0, 1fr); }
  .clausula { grid-template-columns: minmax(0, 1fr); }
  .margen { padding-top: 22px; }
  .margen li { padding-bottom: 12px; }
  .form__fila { grid-template-columns: minmax(0, 1fr); }
  .serv__ent { flex-wrap: wrap; gap: 2px 12px; }
  .serv__ent i { display: none; }
  .serv__ent span { width: 100%; }
  .serv__ent b { text-align: left; }
  .ruta__tipos { flex-direction: column; border-bottom: 0; }
  .ruta__tipos button { padding: 12px 0; border-bottom: 1px solid rgb(255 255 255 / .2); margin: 0; text-align: left; }
  .ruta__tipos button[aria-selected="true"] { border-bottom: 3px solid var(--paper); }
  .ruta__etapas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .ruta__etapas li::before { display: none; }
  .ruta__etapas button { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; }
  .ruta__nom { font-size: .88rem; }
  .ruta__obs { transform: none; }
  .acciones .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .nav, .skip, .form__acc, .nav__toggle { display: none; }
  .ruta { background: none; color: var(--ink-2); }
  .ruta h2, .ruta h3, .ruta h4, .ruta__que li { color: var(--ink); }
}
