/* Continuadora
   One page for owners who are thinking about handing over their company.
   Light and calm: paper, stone and white, navy as ink, brass only for details.
   Content is visible as soon as it loads; nothing moves on scroll. */

:root {
  --ink: #0e1b29;
  --deep: #0a141f;
  --paper: #ffffff;
  --stone: #f2f4f7;
  --white: #ffffff;
  --text: #16212c;
  --muted: #4b5662;
  --soft: #3a4551;
  --ivory: #f4f3f0;
  --brass: #a87f45;
  --brass-d: #85602d;
  --brass-l: #cfab72;
  --wash: #ecd7ae;
  --line: rgba(14, 27, 41, .14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 104px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
* { font-variant-numeric: lining-nums !important; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dt, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; }

/* Bilingual: every text exists in Spanish and English; only the active language shows. */
html[lang="es"] [lang="en"],
html[lang="en"] [lang="es"] { display: none !important; }

.wrap { width: min(100% - 96px, 1160px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--ink); color: var(--ivory); padding: 14px 20px; font-weight: 600; text-decoration: none; border-radius: 3px; }
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; border-radius: 3px; }
.cierre :focus-visible, .pie :focus-visible { outline-color: var(--brass-l); }
.tarjeta :focus-visible { outline-color: var(--brass); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); text-wrap: balance; }
main h2::before { content: ""; display: block; width: 56px; height: 2px; margin-bottom: 28px; background: var(--brass); }
.cierre h2::before { margin-inline: auto; background: var(--brass-l); }
h2 { font-size: 58px; line-height: 1.04; letter-spacing: -.012em; }
.sub { font-size: 21px; line-height: 1.55; margin-top: 22px; max-width: 34em; color: var(--text); text-wrap: pretty; }

/* ---------- Drawings (shared line language) ---------- */
.ln { fill: none; stroke: var(--lc, var(--ink)); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hl { stroke-width: 1; stroke-opacity: .42; }
.ct { stroke-width: 1.9; }
.br { stroke: var(--acc, var(--brass)); }
.far { stroke-opacity: .6; }
.ld { stroke-width: 1; stroke-opacity: .8; }
.u { fill: var(--ufill, none); }
.fw { fill: var(--white); }
.fs { fill: #e2e7ed; }
.fp { fill: var(--stone); }
.nost { stroke: none; }
.ibg { fill: var(--white); }
.dot { fill: var(--ink); stroke: none; }
.dot-b { fill: var(--brass); stroke: none; }
.lb { font: 500 17px var(--sans); fill: var(--text); }
.lb-b { font: 600 17px var(--sans); fill: var(--brass-d); }
.lb-k { font: 500 19px var(--sans); fill: var(--text); }
.lb-kb { font: 600 19px var(--sans); fill: var(--brass-d); }
.lb-n { font: 400 16px var(--sans); fill: var(--soft); }
.sign { font: 600 17px var(--sans); letter-spacing: 1.5px; fill: var(--ink); }
.only-m { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 62px; padding: 0 34px; font: 600 18px/1.1 var(--sans); text-decoration: none; border-radius: 3px; border: 1.5px solid transparent; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: #1b2d41; }
.btn-line { border-color: var(--ink); color: var(--ink); min-height: 50px; padding: 0 24px; font-size: 17px; }
.btn-line:hover { background: var(--ink); color: var(--ivory); }
.link-down { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font: 600 18px/1.2 var(--sans); color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1.5px; text-underline-offset: 7px; }
.link-down .i { width: 20px; height: 20px; color: var(--brass-d); }
.link-down:hover { text-decoration-color: var(--ink); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid rgba(244, 243, 240, .1); }
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 96px; }
.logo { grid-column: 1; grid-row: 1; justify-self: start; display: block; border-radius: 2px; }
.logo img { display: block; width: 228px; height: auto; }
.top-right { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 22px; }
.lang { display: inline-flex; border: 1px solid rgba(244, 243, 240, .3); border-radius: 3px; overflow: hidden; }
.lang button { min-width: 48px; min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: rgba(244, 243, 240, .72); font: 600 15px/1 var(--sans); letter-spacing: .08em; cursor: pointer; }
.lang button + button { border-left: 1px solid rgba(244, 243, 240, .2); }
.lang button[aria-pressed="true"] { background: var(--ivory); color: var(--ink); }
.lang button:not([aria-pressed="true"]):hover { color: var(--ivory); background: rgba(244, 243, 240, .08); }
.top .btn-line { border-color: rgba(244, 243, 240, .55); color: var(--ivory); }
.top .btn-line:hover { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.menu { grid-column: 2; grid-row: 1; justify-self: center; display: flex; align-items: center; gap: 30px; }
.menu a { padding: 10px 0; color: rgba(244, 243, 240, .78); font: 500 16px/1 var(--sans); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover, .menu a:focus-visible { color: var(--ivory); border-bottom-color: var(--brass-l); }

/* ---------- 1. Opening ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: min(740px, calc(100vh - 97px)); padding: 96px 0 104px; color: var(--ivory);
  background: radial-gradient(70% 80% at 82% 40%, rgba(32, 56, 84, .55), rgba(32, 56, 84, 0) 70%), linear-gradient(180deg, var(--ink) 0%, var(--deep) 100%); }
.hero-art { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: min(68%, 1000px); }
.hero-art canvas { display: block; width: 100%; height: 100%; }
.hero-text { max-width: 640px; }
.hero h1 { color: var(--ivory); }
.hero h1 em { color: var(--brass-l); }
.hero .lead { color: #d3d9e0; }
.hero .btn-primary { background: var(--ivory); color: var(--ink); }
.hero .btn-primary:hover { background: var(--brass-l); }
.hero .link-down { color: var(--ivory); text-decoration-color: var(--brass-l); }
.hero .link-down .i { color: var(--brass-l); }
.hero .link-down:hover { text-decoration-color: var(--ivory); }
h1 { font-size: clamp(56px, 6.5vw, 94px); line-height: .96; letter-spacing: -.018em; }
h1 em { font-weight: 500; font-style: italic; letter-spacing: -.012em; }
.lead { font-size: 21px; line-height: 1.55; max-width: 27em; margin-top: 32px; color: var(--text); text-wrap: pretty; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; margin-top: 42px; }
.disco { position: relative; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(115% 115% at 32% 18%, #f3f5f8 0%, #e3e8ee 62%, #d6dde5 100%); box-shadow: 0 36px 60px -44px rgba(14, 27, 41, .4); }
.disco img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.disco::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px solid rgba(168, 127, 69, .6); pointer-events: none; }

/* ---------- 2. The figure ---------- */
.dato { padding: 128px 0; }
.dato-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 72px; align-items: center; max-width: 1060px; margin-inline: auto; }
.cifra { display: flex; align-items: baseline; gap: 20px; font-family: var(--serif); font-weight: 600; color: var(--brass); white-space: nowrap; }
.cifra b { font-size: 250px; line-height: .8; letter-spacing: -.02em; }
.cifra > span { font-size: 64px; line-height: 1; color: var(--ink); }
.dato-txt { font: 500 42px/1.14 var(--serif); color: var(--ink); max-width: 14em; text-wrap: balance; }
.casas { display: flex; gap: 10px; margin-top: 32px; max-width: 520px; }
.casas svg { flex: 1 1 0; min-width: 0; max-width: 44px; aspect-ratio: 44 / 40; height: auto; }
/* Drawings reused with <use> take their colours through inherited custom properties. */
.casas .on { --lc: var(--brass); --ufill: rgba(207, 171, 114, .22); }
.casas .off { --lc: rgba(14, 27, 41, .35); }
.dato-fuente { margin-top: 22px; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 36em; }

/* ---------- 3. What continues ---------- */
.continua { background: var(--stone); padding: 120px 0 112px; }
.escena { margin-top: 56px; }
.escena svg { width: 100%; height: auto; }
.vecina { opacity: .45; }
.grupo { stroke-width: 2; }

/* ---------- 4. The handover ---------- */
.relevo { padding: 128px 0; }
.plazo { margin-top: 64px; }
.plazo svg { width: 100%; height: auto; }

/* ---------- 5. The process ---------- */
.proceso { background: var(--stone); padding: 128px 0 136px; }
.pasos { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 28px; margin-top: 72px; }
.pasos::before { content: ""; position: absolute; top: 36px; left: 36px; right: calc((100% - 140px) / 6 - 36px); height: 1.5px; background: rgba(14, 27, 41, .38); }
.pasos li { position: relative; }
.n { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--ink); font: 600 35px/1 var(--serif); color: var(--ink); padding-bottom: 3px; }
.pasos li:last-child .n { background: var(--ink); color: var(--ivory); }
.pasos h3 { font-size: 26px; line-height: 1.1; margin-top: 8px; min-height: 2.2em; }
.pasos .cuando { margin-top: 26px; font: 600 13px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-d); }
.pasos p { margin-top: 12px; font-size: 18px; line-height: 1.5; color: var(--soft); text-wrap: pretty; }

/* ---------- 6. Does the company fit ---------- */
.encaje { padding: 128px 0; }
.encaje-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 96px; align-items: center; }
.mapa img { width: 100%; height: auto; }
.mapa figcaption { display: flex; align-items: center; gap: 14px; margin-top: 24px; font: 500 18px/1.4 var(--sans); color: var(--text); }
.mapa figcaption::before { content: ""; flex: none; width: 36px; height: 1px; background: var(--brass); }
.areas { margin-top: 40px; border-top: 1.5px solid var(--ink); }
.areas li { display: flex; align-items: center; gap: 26px; padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.areas .a { width: 64px; height: 64px; flex: none; }
.areas h3 { font-size: 34px; line-height: 1.1; }
.areas p { margin-top: 6px; font-size: 18px; line-height: 1.45; color: var(--soft); }
.criterios { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 80px; border-top: 1.5px solid var(--ink); }
.criterios li { position: relative; padding: 28px 22px 4px 58px; border-left: 1px solid var(--line); font-size: 19px; line-height: 1.4; color: var(--text); text-wrap: balance; }
.criterios li:first-child { border-left: 0; padding-left: 34px; }
.criterios li::before { content: ""; position: absolute; left: 26px; top: 36px; width: 16px; height: 8px; border-left: 2px solid var(--brass-d); border-bottom: 2px solid var(--brass-d); transform: rotate(-45deg); }
.criterios li:first-child::before { left: 2px; }

/* ---------- 7. Questions ---------- */
.preguntas { background: var(--stone); padding: 136px 0; }
.preg-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 96px; align-items: start; }
.preg-cab { position: sticky; top: 128px; }
.dialogo { border-top: 1.5px solid var(--ink); }
/* Questions open and close (native <details>): a brass plus that turns into a minus. */
.dialogo details { border-bottom: 1px solid var(--line); }
.dialogo summary { position: relative; display: block; padding: 28px 64px 28px 0; font: italic 500 32px/1.16 var(--serif); color: var(--ink); cursor: pointer; list-style: none; transition: color .2s; }
.dialogo summary::-webkit-details-marker { display: none; }
.dialogo summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: linear-gradient(var(--brass), var(--brass)) center / 20px 2px no-repeat, linear-gradient(var(--brass), var(--brass)) center / 2px 20px no-repeat;
  transition: background-size .25s ease; }
.dialogo details[open] summary::after { background-size: 20px 2px, 2px 0; }
.dialogo summary:hover { color: var(--brass-d); }
.dialogo summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.dialogo .resp { margin: -6px 0 0; padding: 0 64px 30px 0; font-size: 20px; line-height: 1.5; color: var(--text); max-width: 34em; text-wrap: pretty; }
.dialogo details[open] .resp { animation: resp-abre .25s ease-out; }
@keyframes resp-abre { from { opacity: 0; transform: translateY(-6px); } }
.dialogo strong { font-weight: 600; color: var(--ink); }

/* ---------- 8. Contact ---------- */
.cierre { background: var(--ink); color: var(--ivory); padding: 136px 0 120px; text-align: center; }
.cierre h2 { color: var(--ivory); font-size: 64px; }
.cierre-sub { font-size: 21px; line-height: 1.55; margin-top: 24px; color: #cfd6de; }
.tarjeta { max-width: 1010px; margin: 64px auto 0; padding: 56px 64px 48px; background: var(--white); color: var(--text); text-align: left; border-radius: 4px; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .6); }
.perfil { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 52px; align-items: center; padding-bottom: 44px; }
.disco-lg { width: 264px; }
.disco-lg::after { inset: -14px; }
.t-nombre { font: 600 46px/1.04 var(--serif); color: var(--ink); text-wrap: balance; }
.t-cargo { margin-top: 12px; font: 600 14px/1.4 var(--sans); letter-spacing: .17em; text-transform: uppercase; color: var(--brass-d); }
.escribir { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.escribir .btn { min-height: 56px; padding: 0 28px; }
.escribir .btn .i { width: 22px; height: 22px; color: var(--brass-l); }
.mail-txt { font-size: 17px; color: var(--soft); text-decoration: underline; text-decoration-color: rgba(168, 127, 69, .6); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.mail-txt:hover { color: var(--ink); text-decoration-color: var(--ink); }
/* The founder's CV: four tiles, then education */
.t-lema { margin: 18px 0 0; padding: 0; max-width: 30em; font: italic 500 23px/1.4 var(--serif); color: var(--text); text-wrap: pretty; }
.cv { min-width: 0; padding-top: 40px; border-top: 1px solid var(--line); }
.cv-bloque { margin-bottom: 18px; font: 600 14px/1.4 var(--sans); letter-spacing: .17em; text-transform: uppercase; color: var(--brass-d); }
/* Experience as horizontal bars: icon, title, then the sentence, one bar per area. */
.cv-tiles { display: grid; gap: 10px; }
.cv-tiles li { display: grid; grid-template-columns: 44px minmax(0, 15.5rem) minmax(0, 1fr); column-gap: 28px; align-items: center; padding: 24px 32px; background: var(--stone); border-left: 3px solid var(--brass); border-radius: 0 4px 4px 0; }
.cv-ico { display: block; width: 44px; height: 44px; }
.cv-tiles h4 { margin: 0; font: 600 22px/1.2 var(--serif); color: var(--ink); text-wrap: balance; }
.cv-tiles p { font-size: 17px; line-height: 1.55; color: var(--soft); text-wrap: pretty; }
.cv-tiles + .cv-bloque { margin-top: 40px; }
.cv-edu { display: flex; align-items: center; gap: 28px; }
.cv-edu img { flex: none; width: 104px; height: auto; opacity: .88; }
.cv-edu p { font-size: 18px; line-height: 1.5; color: var(--text); text-wrap: pretty; }
.cv-edu + .cv-bloque { margin-top: 40px; }
.cv-lista + .cv-bloque { margin-top: 36px; }
.cv-intro { max-width: 44em; font-size: 18px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.cv-lead { margin-top: 22px; font: 600 15px/1.4 var(--sans); color: var(--ink); }
.cv-lista { display: grid; gap: 12px; max-width: 46em; margin: 14px 0 0; padding: 0; list-style: none; }
.cv-lista li { position: relative; padding-left: 28px; font-size: 17px; line-height: 1.55; color: var(--soft); text-wrap: pretty; }
.cv-lista li::before { content: ""; position: absolute; left: 0; top: .8em; width: 14px; height: 2px; background: var(--brass); }
/* Where the founder has worked and studied: a slow strip of logos */
.cv-bloque-marcas { margin: 34px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.cv-bloque-marcas + .marcas { margin-top: 18px; padding-top: 0; border-top: 0; }
.marcas { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.cinta { display: flex; width: max-content; animation: cinta 36s linear infinite; }
.marcas:hover .cinta { animation-play-state: paused; }
.cinta ul { display: flex; align-items: center; gap: 88px; padding-right: 88px; }
.cinta img { display: block; width: auto; opacity: .85; }
.m-ow { height: 20px; } .m-bcg { height: 32px; } .m-rocket { height: 28px; } .m-esade { height: 30px; }
@keyframes cinta { to { transform: translateX(-33.3333%); } }
@media (prefers-reduced-motion: reduce) {
  .marcas { -webkit-mask-image: none; mask-image: none; }
  .cinta { width: auto; animation: none; }
  .cinta ul { flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; width: 100%; padding-right: 0; }
  .cinta ul[aria-hidden] { display: none; }
}
.notas { display: grid; gap: 10px; margin-top: 56px; font-size: 18px; line-height: 1.5; color: #cfd6de; }
.final-cta { margin-top: 44px; text-align: center; }
.final-cta .btn-primary { min-width: 300px; background: var(--ivory); color: var(--ink); }
.final-cta .btn-primary:hover { background: var(--brass-l); }

/* ---------- Footer ---------- */
.pie { background: var(--deep); color: #b8c0c8; padding: 44px 0; }
.pie-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pie img { width: 200px; height: auto; }
.pie p { font-size: 16px; }
.pie a { color: inherit; text-decoration: underline; text-decoration-color: rgba(184, 192, 200, .4); text-underline-offset: 4px; }
.pie a:hover { color: var(--ivory); }
.f-ok a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .wrap { width: min(100% - 64px, 1160px); }
  h2, .cierre h2 { font-size: 48px; }
  .cifra b { font-size: 200px; }
  .cifra > span { font-size: 52px; }
  .dato-txt { font-size: 36px; }
  .preg-grid, .encaje-grid { gap: 56px; }
  .pasos { gap: 0 18px; }
  .pasos::before { right: calc((100% - 90px) / 6 - 36px); }
  .pasos h3 { font-size: 22px; }
  .pasos p { font-size: 17px; }
  .areas h3 { font-size: 29px; }
  .criterios { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .criterios li:nth-child(4) { border-left: 0; padding-left: 34px; }
  .criterios li:nth-child(4)::before { left: 2px; }
  .tarjeta { padding: 48px 44px 40px; }
  .perfil { gap: 40px; }
  .disco-lg { width: 220px; }
  .t-nombre { font-size: 40px; }
  .top-right { gap: 14px; }
  .menu { gap: 22px; }
  .menu a { font-size: 15px; }
}

/* ---------- Small tablet ---------- */
@media (max-width: 900px) {
  .logo img { width: 190px; }
  .menu { gap: 18px; }
  .menu a { font-size: 14px; }
  .top-right .btn-line { width: auto; min-height: 48px; padding: 0 18px; font-size: 16px; }
  .only-d { display: none; }
  .only-m { display: block; }
  .escena .only-m { max-width: 560px; margin-inline: auto; }
  .plazo .only-m { max-width: 520px; }
  .lb { font-size: 27px; }
  .lb-b { font-size: 27px; }
  .sign { font-size: 17px; }
  .lb-k, .lb-kb { font-size: 17px; }
  .lb-n { font-size: 15px; }
  .grupo-m { margin-top: 30px; }
  .grupo-m .propia { --ufill: var(--white); }
  .grupo-txt { margin-top: 14px; text-align: center; font: 600 18px/1.45 var(--sans); color: var(--brass-d); text-wrap: balance; }
  .pasos { grid-template-columns: 1fr; gap: 0; margin-top: 52px; max-width: 600px; }
  .pasos::before { display: none; }
  .pasos li:not(:last-child)::before { content: ""; position: absolute; top: 36px; bottom: -36px; left: 35px; width: 1.5px; background: rgba(14, 27, 41, .38); }
  .pasos li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 24px; padding-bottom: 36px; }
  .pasos li:last-child { padding-bottom: 0; }
  .n { grid-row: 1 / span 3; }
  .pasos li > :not(.n) { grid-column: 2; }
  .pasos .cuando { margin-top: 8px; }
  .pasos h3 { margin-top: 4px; min-height: 0; font-size: 28px; }
  .pasos p { margin-top: 6px; }
  .tarjeta { max-width: 640px; }
  .perfil { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 28px; padding-bottom: 36px; }
  .escribir { justify-content: center; }
  .t-lema { margin-inline: auto; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  html { scroll-padding-top: 124px; }
  .wrap { width: min(100% - 40px, 1160px); }
  h2, .cierre h2 { font-size: 38px; line-height: 1.07; }
  .sub { font-size: 18px; margin-top: 16px; }
  .btn { min-height: 60px; padding: 0 26px; font-size: 18px; width: 100%; }

  .top-in { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; min-height: 0; }
  .top-in > .logo, .top-in > .top-right { margin-block: 11px; }
  .menu { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; gap: 0; border-top: 1px solid rgba(244, 243, 240, .1); }
  .menu a { flex: 1 1 auto; padding: 13px 4px; text-align: center; font-size: 15px; white-space: nowrap; border-bottom: 0; }
  .menu a + a { border-left: 1px solid rgba(244, 243, 240, .1); }
  .logo { grid-column: 1; justify-self: start; min-width: 0; }
  .logo img { width: 156px; max-width: 100%; }
  .top-right { grid-column: 2; gap: 8px; }
  .top-right .btn-line { order: -1; width: auto; min-height: 46px; padding: 0 12px; font-size: 16px; }
  .lang button { min-width: 38px; min-height: 46px; padding: 0 6px; font-size: 14px; }

  .hero { display: block; min-height: 0; padding: 0 0 64px; }
  .hero-art { position: relative; width: auto; height: 236px; }
  .disco::after { inset: -11px; }
  .hero-text { text-align: center; }
  h1 { font-size: 46px; line-height: 1; letter-spacing: -.012em; }
  .lead { font-size: 18px; margin: 20px auto 0; }
  .acciones { flex-direction: column; gap: 10px; margin-top: 28px; }
  .link-down { min-height: 52px; }

  .dato { padding: 80px 0; }
  .dato-grid { grid-template-columns: 1fr; gap: 0; }
  .cifra { gap: 14px; }
  .cifra b { font-size: 150px; }
  .cifra > span { font-size: 42px; }
  .dato-cuerpo { margin-top: 18px; }
  .dato-txt { font-size: 30px; line-height: 1.15; }
  .casas { gap: 6px; margin-top: 26px; }
  .casas svg { max-width: 30px; }
  .dato-fuente { font-size: 15px; margin-top: 16px; }

  .continua { padding: 80px 0 76px; }
  .escena { margin-top: 36px; }

  .t-lema { font-size: 19px; }
  .cv { padding-top: 30px; }
  .cv-tiles li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; padding: 20px 20px 22px; }
  .cv-ico { width: 36px; height: 36px; }
  .cv-tiles h4 { font-size: 21px; }
  .cv-tiles p { grid-column: 1 / -1; margin-top: 12px; font-size: 16px; }
  .cv-edu { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cinta ul { gap: 56px; padding-right: 56px; }
  .m-ow { height: 17px; } .m-bcg { height: 27px; } .m-rocket { height: 24px; } .m-esade { height: 26px; }

  .relevo { padding: 84px 0; }
  .plazo { margin-top: 36px; }

  .proceso { padding: 84px 0 88px; }
  .pasos { margin-top: 40px; }
  .pasos li:not(:last-child)::before { top: 28px; bottom: -28px; left: 27px; }
  .pasos li { grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; padding-bottom: 32px; }
  .n { width: 56px; height: 56px; font-size: 27px; }
  .pasos h3 { font-size: 26px; margin-top: 4px; }
  .pasos p { font-size: 17px; margin-top: 4px; }

  .encaje { padding: 80px 0 84px; }
  .encaje-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .encaje-grid > div { display: contents; }
  .encaje-grid h2 { order: 1; }
  .encaje-grid .mapa { order: 2; margin-top: 30px; }
  .encaje-grid .areas { order: 3; margin-top: 34px; }
  .mapa figcaption { font-size: 17px; margin-top: 16px; }
  .areas li { gap: 16px; padding: 18px 0 20px; align-items: flex-start; }
  .areas .a { width: 48px; height: 48px; margin-top: 2px; }
  .areas h3 { font-size: 27px; }
  .areas p { font-size: 17px; }
  .criterios { grid-template-columns: 1fr; margin-top: 40px; }
  .criterios li, .criterios li:first-child, .criterios li:nth-child(4) { font-size: 17px; padding: 15px 0 15px 34px; border-left: 0; border-bottom: 1px solid var(--line); }
  .criterios li::before, .criterios li:first-child::before, .criterios li:nth-child(4)::before { left: 2px; top: 22px; }

  .preguntas { padding: 84px 0; }
  .preg-grid { grid-template-columns: 1fr; gap: 36px; }
  .preg-cab { position: static; }
  .dialogo summary { padding: 22px 44px 22px 0; font-size: 25px; }
  .dialogo summary::after { right: 4px; width: 18px; height: 18px; margin-top: -9px; background-size: 18px 2px, 2px 18px; }
  .dialogo details[open] summary::after { background-size: 18px 2px, 2px 0; }
  .dialogo .resp { padding: 0 8px 24px 0; font-size: 17px; }

  .cierre { padding: 84px 0 76px; }
  .cierre-sub { font-size: 18px; margin-top: 16px; }
  .tarjeta { padding: 36px 22px 28px; margin-top: 40px; }
  .disco-lg { width: 200px; }
  .disco-lg::after { inset: -9px; }
  .t-nombre { font-size: 32px; }
  .escribir { flex-direction: column; gap: 12px; margin-top: 24px; }
  .mail-txt { font-size: 16px; }
  main h2::before { width: 44px; margin-bottom: 22px; }
  .notas { margin-top: 40px; font-size: 17px; }

  .pie { padding: 36px 0; }
  .pie-in { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Print: every section, dark on white, contact details included ---------- */
@media print {
  .top, .skip, .lang, .acciones, .link-down, .hero-art, .final-cta { display: none !important; }
  .hero h1, .hero h1 em, .hero .lead { color: var(--ink) !important; }
  body { background: #fff; font-size: 12pt; }
  .continua, .encaje, .proceso, .dato, .relevo, .preguntas, .hero { background: #fff !important; padding: 28pt 0 !important; }
  .cierre { background: #fff !important; color: var(--ink) !important; padding: 28pt 0 !important; }
  .cierre h2, .cierre-sub, .notas { color: var(--ink) !important; }
  .tarjeta { box-shadow: none; border: 1px solid #999; }
  .pie { background: #fff; color: var(--ink); }
  .preg-cab { position: static; }
  section { break-inside: avoid; }
}

/* ---------- Contact form (popup) ---------- */
html:has(.modal[open]) { overflow: hidden; }
.modal { width: min(600px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 0; border-radius: 6px; background: var(--white); color: var(--text); box-shadow: 0 50px 110px -30px rgba(0, 0, 0, .65); overflow: auto; overscroll-behavior: contain; }
.modal::backdrop { background: rgba(6, 12, 19, .74); }
.modal[open] { animation: f-aparece .28s ease-out; }
@keyframes f-aparece { from { opacity: 0; transform: translateY(14px); } }
.f-in { position: relative; padding: 48px 48px 38px; }
.modal h2 { font: 600 38px/1.08 var(--serif); color: var(--ink); outline: none; }
.modal h2::before { content: ""; display: block; width: 56px; height: 2px; margin-bottom: 24px; background: var(--brass); }
.f-sub { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--soft); }
.f-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-top: 30px; }
.f-campo { display: grid; gap: 7px; }
.f-campo.ancho { grid-column: 1 / -1; }
.f-et { font: 600 14px/1.3 var(--sans); letter-spacing: .02em; color: var(--ink); }
.f-campo input, .f-campo textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1px solid #c3cbd4; border-radius: 4px; background: var(--white); color: var(--ink); font: 400 17px/1.4 var(--sans); }
.f-campo textarea { min-height: 120px; resize: vertical; }
.f-campo input:focus, .f-campo textarea:focus { border-color: var(--brass); outline: 2px solid rgba(168, 127, 69, .35); outline-offset: 0; }
.f-campo input.mal, .f-ok input.mal { border-color: #b3261e; outline: 2px solid rgba(179, 38, 30, .25); }
.f-ok { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; font-size: 15px; line-height: 1.45; color: var(--soft); cursor: pointer; }
.f-ok input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.f-aviso { margin-top: 14px; font-size: 15px; color: #b3261e; }
.f-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f-pie { display: flex; align-items: center; gap: 22px; margin-top: 26px; }
.f-pie .btn { flex: none; min-width: 160px; }
.f-pie .btn[disabled] { opacity: .6; cursor: wait; }
.f-legal { font-size: 13px; line-height: 1.45; color: var(--soft); }
.f-gracias .btn { margin-top: 28px; }
.f-ok-correo .btn + * { margin-left: 0; }
.f-gracias .f-mailto { margin-right: 12px; }
.f-gracias .f-sub a { color: var(--ink); text-underline-offset: 3px; }
.f-cerrar { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--soft); cursor: pointer; }
.f-cerrar:hover { background: var(--stone); color: var(--ink); }
.f-cerrar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 760px) {
  .modal { width: calc(100% - 20px); max-height: calc(100% - 20px); }
  .f-in { padding: 40px 22px 26px; }
  .modal h2 { font-size: 30px; }
  .modal h2::before { margin-bottom: 18px; }
  .f-campos { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 24px; }
  .f-pie { flex-direction: column; align-items: stretch; gap: 14px; }
  .f-pie .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .modal[open], .dialogo details[open] .resp { animation: none; } .dialogo summary::after { transition: none; } }
@media print { .modal { display: none !important; } }

/* ---------- Legal pages (aviso legal, privacidad) ---------- */
.legal-top { background: var(--ink); }
.legal-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.legal-top .logo img { width: 200px; height: auto; }
.legal-top .volver { color: rgba(244, 243, 240, .8); font: 500 15px/1.3 var(--sans); text-decoration: none; }
.legal-top .volver:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }
.legal { padding: 72px 0 100px; background: var(--white); }
.legal .wrap { max-width: 760px; }
.legal h1 { font: 600 52px/1.06 var(--serif); color: var(--ink); }
.legal h1::before { content: ""; display: block; width: 56px; height: 2px; margin-bottom: 26px; background: var(--brass); }
main.legal h2::before { display: none; }
.legal h2 { margin-top: 44px; font: 600 27px/1.2 var(--serif); color: var(--ink); }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 10px; padding-left: 1.3em; list-style: disc; }
.legal li { margin-top: 6px; }
.legal li::marker { color: var(--brass); }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal .actualizado { margin-top: 16px; font-size: 15px; color: var(--soft); }
.legal .en-nota { margin-top: 6px; font-size: 15px; font-style: italic; color: var(--soft); }
.falta { background: #fff1bf; color: var(--ink); padding: 0 .25em; border-radius: 2px; }
@media (max-width: 760px) {
  .legal-top-in { min-height: 64px; }
  .legal-top .logo img { width: 150px; }
  .legal { padding: 48px 0 72px; }
  .legal h1 { font-size: 38px; }
  .legal h2 { margin-top: 36px; font-size: 23px; }
  .legal p, .legal li { font-size: 16px; }
}
