@font-face{font-family:"Caslon Text";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/caslon-text-400.woff2) format("woff2")}
@font-face{font-family:"Caslon Text";font-style:italic;font-weight:400;font-display:swap;src:url(fonts/caslon-text-400i.woff2) format("woff2")}
@font-face{font-family:"Caslon Text";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/caslon-text-700.woff2) format("woff2")}
@font-face{font-family:"Caslon Display";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/caslon-display-400.woff2) format("woff2")}
@font-face{font-family:"Archivo";font-style:normal;font-weight:100 900;font-stretch:62% 125%;font-display:swap;src:url(fonts/archivo.woff2) format("woff2")}

/* Versión 5. Idea: la web es un escrito. Papel blanco sobre mesa gris, tinta negra y azul de tampón.
   Caslon (la tipografía de los textos legales anglosajones y del papel impreso) con Archivo para lo funcional. */
:root {
  --paper: #ffffff; --desk: #e6eaf0; --ink: #11151c; --muted: #4a5465; --line: #cdd4de;
  --stamp: #223a9a; --stamp-fg: #ffffff; --band: #1b2d83; --band-fg: #ffffff;
  --logo-l: block; --logo-d: none;
  --display: "Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Caslon Text", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gut: max(20px, calc((100% - 1160px) / 2));
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #151c27; --desk: #0d1219; --ink: #e9ecf1; --muted: #9ba6b8; --line: #2a3445;
  --stamp: #93a7ff; --stamp-fg: #0b1230; --band: #1a2a78; --logo-l: none; --logo-d: block; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18.5px; line-height: 1.68; font-synthesis: none; padding-top: env(safe-area-inset-top, 0px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: var(--ink); text-decoration-color: var(--stamp); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; }
.page { max-width: none; margin: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--stamp); color: var(--stamp-fg); padding: 10px 16px; font-family: var(--sans); font-size: 15px; z-index: 60; }
.skip:focus { left: 8px; top: 8px; }

/* Cabecera */
header { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; padding: 14px var(--gut); background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 60px; width: auto; display: block; }
.brand .logo-l { display: var(--logo-l); }
.brand .logo-d { display: var(--logo-d); }
.hright { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; }
nav { font-family: var(--sans); font-size: 15px; font-weight: 500; display: flex; flex-wrap: wrap; gap: 6px 24px; }
nav a { text-decoration: none; padding-block: 4px; background: linear-gradient(var(--stamp), var(--stamp)) 0 100% / 0 2px no-repeat; transition: background-size 220ms var(--ease); }
nav a[aria-current="page"] { background-size: 100% 2px; }
.btn, .hcta { font-family: var(--sans); font-weight: 600; text-decoration: none; display: inline-block; background: var(--stamp); color: var(--stamp-fg); border: 0; border-radius: 2px; transition: transform 160ms var(--ease), filter 160ms var(--ease); }
.hcta { font-size: 14px; padding: 10px 18px; }
.btn { font-size: 16px; padding: 14px 26px; }
.btn:active, .hcta:active, .mbar a:active { transform: scale(0.97); }
.theme-toggle { font-family: var(--sans); font-size: 13px; display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; cursor: pointer; }
.theme-toggle[hidden] { display: none; }

/* Tipografía de títulos */
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -0.012em; margin: 0 0 20px; max-width: 18em; }
h1.small { font-size: clamp(32px, 3.6vw, 48px); margin: 0; }

/* Páginas interiores */
main { display: block; }
.pagehead { padding: 64px var(--gut) 44px; background: var(--desk); border-bottom: 1px solid var(--line); }
.pagehead p { margin: 18px 0 0; max-width: 36em; color: var(--muted); }
.block { padding: 56px var(--gut); border-top: 1px solid var(--line); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px 64px; scroll-margin-top: 80px; }
.pagehead + .block { border-top: 0; }
.block > h2 { font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: 0; margin: 4px 0 0; line-height: 1.3; color: var(--stamp); }
.block.area > h2 { font-family: var(--display); font-size: 28px; font-weight: 400; color: var(--ink); line-height: 1.15; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.block .body > :first-child { margin-top: 0; }
.block p { margin: 0 0 16px; max-width: 37em; }
.block p:last-child { margin-bottom: 0; }
.more { font-family: var(--sans); font-size: 15px; }
.list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; max-width: 37em; }
.list li { padding-left: 24px; position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 11px; height: 2px; background: var(--stamp); }
.list.principles { gap: 14px; }
.list.principles strong { font-weight: 700; }
.areas { margin: 0; padding: 0; list-style: none; display: grid; gap: 30px; }
.areas h3 { font-family: var(--sans); font-size: 20px; font-weight: 700; line-height: 1.25; margin: 0 0 4px; }
.areas h3 a { text-decoration: none; }
.areas p { color: var(--muted); margin: 0; max-width: 34em; }
ol.process { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; gap: 28px; max-width: 38em; }
ol.process li { counter-increment: p; padding-left: 58px; position: relative; }
ol.process li::before { content: counter(p) "."; position: absolute; left: 0; top: -4px; font-family: var(--display); font-size: 38px; line-height: 1.1; color: var(--stamp); }
ol.process strong { display: block; font-family: var(--sans); font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.facts { margin: 0 0 24px; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 24px; font-family: var(--sans); font-size: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.ph { background: color-mix(in srgb, var(--stamp) 14%, transparent); padding: 0 4px; }
svg.ico { color: var(--stamp); flex: none; display: block; }
svg.ico .g { stroke: var(--ink); opacity: .55; }
figure.portrait { margin: 0; flex: none; }
figure.portrait img { display: block; width: 200px; height: auto; border: 6px solid var(--paper); outline: 1px solid var(--line); }
.who-row { display: flex; align-items: flex-start; gap: 16px 36px; }
.who-row > div { min-width: 0; }
.who-row p { margin: 0 0 14px; }
.doc { padding: 8px var(--gut) 64px; }
.doc .updated { font-family: var(--sans); font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.doc h2 { font-family: var(--display); font-size: 26px; margin: 40px 0 10px; line-height: 1.25; }
.doc p, .doc li { max-width: 42em; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.rule { width: 64px; height: 3px; background: var(--stamp); margin: 0 0 26px; }

/* Formulario de contacto */
.form { display: grid; gap: 20px; max-width: 38em; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form label, .form legend { font-family: var(--sans); font-size: 14.5px; font-weight: 600; display: block; margin-bottom: 6px; padding: 0; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea { width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--muted); border-radius: 0; padding: 12px; transition: border-color 160ms var(--ease); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--stamp); outline: 2px solid var(--stamp); outline-offset: 0; }
.form textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--sans); font-size: 15px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 15px; margin: 0; }
.checks input, .consent input { width: 18px; height: 18px; accent-color: var(--stamp); margin: 0; flex: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent input { margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button.btn { cursor: pointer; justify-self: start; }
.form .hint { font-family: var(--sans); font-size: 14px; color: var(--muted); margin: 0; }
.form .msg, .notice { font-family: var(--sans); font-size: 15px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--stamp); background: var(--desk); margin: 0; }
.notice { max-width: 38em; margin: 0 0 22px; color: var(--muted); }
.form .msg[hidden] { display: none; }
.form .msg button { font: inherit; font-weight: 600; color: var(--stamp); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-family: var(--sans); font-weight: 600; font-size: 16.5px; list-style: none; position: relative; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--stamp); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; max-width: 38em; color: var(--muted); }

/* Pie */
footer { border-top: 1px solid var(--line); padding: 28px var(--gut) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer a { color: var(--muted); }
.mbar { display: none; }

/* ============ PORTADA ============ */
.home { overflow-x: clip; }
.desk { background: var(--desk); padding: 56px var(--gut) 72px; border-bottom: 1px solid var(--line); }
.desk-in { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 40px 56px; align-items: start; }

.part { padding: 100px var(--gut) 0; }
.part h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.012em; margin: 0 0 14px; max-width: 18em; }
.part .sub { color: var(--muted); max-width: 36em; margin: 0 0 40px; }

/* Áreas: índice tipográfico, sin tarjetas */
.indice { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ink); }
.indice a { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 8px 48px; padding: 24px 0 24px 0; border-top: 1px solid var(--line); text-decoration: none; background: linear-gradient(var(--stamp), var(--stamp)) 0 0 / 3px 0 no-repeat; transition: background-size 260ms var(--ease), padding-left 260ms var(--ease); }
.indice li:first-child a { border-top: 1px solid var(--ink); }
.indice h3 { font-family: var(--sans); font-size: 20px; font-weight: 700; line-height: 1.25; margin: 0; }
.indice p { margin: 0; color: var(--muted); font-size: 17.5px; line-height: 1.55; }
.indice .otros h3 { font-weight: 500; }

/* Cómo trabajo + hoja de encargo */
.cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px 80px; align-items: start; }
.pasos { list-style: none; margin: 0; padding: 0; }
.pasos li { padding: 22px 0; border-top: 1px solid var(--line); }
.pasos li:first-child { border-top: 1px solid var(--ink); }
.pasos li:last-child { border-bottom: 1px solid var(--ink); }
.pasos .ord { display: block; font-style: italic; color: var(--stamp); font-size: 19px; line-height: 1.2; margin-bottom: 4px; }
.pasos strong { display: block; font-family: var(--sans); font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.pasos .t { color: var(--muted); display: block; }
.encargo { position: relative; box-shadow: 7px 7px 0 -1px var(--paper), 7px 7px 0 0 var(--line); background: var(--paper); border: 1px solid var(--ink); padding: 34px 34px 28px 40px; font-family: var(--sans); font-size: 14px; color: var(--ink); max-width: 430px; justify-self: center; }
.encargo h3 { font-family: var(--display); font-size: 26px; margin: 0 0 18px; line-height: 1.1; }
.encargo dl { margin: 0; }
.encargo dt { font-weight: 700; margin-top: 16px; }
.encargo dd { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.encargo .fill { display: block; height: 22px; border-bottom: 1px dotted var(--muted); }
.encargo .firma { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.encargo .firma span { border-top: 1px solid var(--ink); padding-top: 4px; font-size: 12.5px; color: var(--muted); }
.encargo .nota { margin: 20px 0 0; font-size: 12px; font-style: italic; color: var(--muted); }

/* Principios */
.principios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin: 0; }
.principios div { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.principios dt { font-family: var(--sans); font-weight: 700; font-size: 19px; margin-bottom: 6px; }
.principios dd { margin: 0; color: var(--muted); max-width: 26em; }

/* Dónde actúo: plano */
.donde { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: center; }
.partidos { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--ink); max-width: 30em; }
.partidos li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 14px; color: var(--muted); }
.partidos strong { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--ink); }
.plano { width: 100%; max-width: 540px; justify-self: center; }
.plano svg { width: 100%; height: auto; display: block; overflow: visible; }
.plano .isl { fill: url(#trama); stroke: var(--stamp); stroke-width: 1.6; stroke-linejoin: round; }
.plano .trama-l { stroke: var(--stamp); stroke-width: 1; opacity: .35; }
.plano .pin circle.c { fill: var(--stamp); }
.plano .pin circle.r { fill: var(--paper); stroke: var(--stamp); stroke-width: 1.6; transition: transform 300ms var(--ease); transform-box: fill-box; transform-origin: center; }
.plano .pin text { font-family: var(--sans); font-size: 14px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }

.faq2 { max-width: 52em; }

/* Cierre: la banda de tampón */
.cierre { margin-top: 110px; background-color: var(--band); background-image: linear-gradient(90deg, color-mix(in srgb, var(--band) 97%, transparent) 0%, color-mix(in srgb, var(--band) 90%, transparent) 42%, color-mix(in srgb, var(--band) 55%, transparent) 100%), url(img/cierre-1600.jpg); background-size: cover; background-position: center; color: var(--band-fg); padding: 88px var(--gut); }
@media (max-width: 900px) { .cierre { background-image: linear-gradient(180deg, color-mix(in srgb, var(--band) 94%, transparent) 0%, color-mix(in srgb, var(--band) 84%, transparent) 100%), url(img/cierre-900.jpg); } }
.cierre h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -0.015em; margin: 0 0 22px; max-width: 14em; color: var(--band-fg); }
.cierre p { max-width: 32em; margin: 0 0 30px; color: color-mix(in srgb, var(--band-fg) 82%, transparent); }
.cierre .row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.cierre .btn { background: #fff; color: var(--band); font-size: 17px; padding: 16px 30px; }
.cierre .tel { font-family: var(--sans); font-size: 19px; font-weight: 600; color: var(--band-fg); text-decoration-color: rgba(255,255,255,.6); }
.cierre .ph { background: rgba(255,255,255,.14); }
.cierre .lema { margin: 44px 0 0; font-style: italic; font-size: 21px; max-width: 28em; color: var(--band-fg); }
.tel { font-family: var(--sans); }

/* ============ Responsive ============ */
@media (max-width: 1040px) {
  .cols, .donde { grid-template-columns: minmax(0, 1fr); }
  .block { grid-template-columns: minmax(0, 1fr); padding-block: 40px; }
}
@media (max-width: 720px) {
  body { font-size: 18px; padding-bottom: 76px; }
  header { padding-block: 10px; }
  .brand img { height: 50px; }
  .hright { display: contents; }
  .hcta { display: none; }
  nav { width: 100%; gap: 6px 14px; font-size: 14px; }
  .theme-toggle { position: absolute; top: 14px; right: var(--gut); padding: 5px 11px; }
  .pagehead { padding-block: 40px 30px; }
  .desk { padding-block: 32px 48px; }  .part { padding-top: 64px; }
  .indice a { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .principios { grid-template-columns: minmax(0, 1fr); }
  .cierre { margin-top: 72px; padding-block: 60px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dt { margin-top: 12px; }
  .form .row { grid-template-columns: minmax(0, 1fr); }
  .form button.btn { width: 100%; }
  .who-row { flex-direction: column; }
  .mbar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); font-family: var(--sans); font-size: 15px; font-weight: 600; }
  .mbar a { text-align: center; text-decoration: none; padding: 12px 8px; border-radius: 2px; transition: transform 160ms var(--ease); }
  .mb-call { border: 1px solid var(--ink); color: var(--ink); }
  .mb-go { background: var(--stamp); color: var(--stamp-fg); }
}

/* Movimiento: solo con ratón y solo cuando aclara algo */
@media (hover: hover) and (pointer: fine) {
  nav a:hover { background-size: 100% 2px; }
  .btn:hover, .hcta:hover { filter: brightness(1.14); }
  .cierre .btn:hover { filter: none; background: #e8ecff; }
  .theme-toggle:hover { border-color: var(--stamp); }
  .indice a:hover { background-size: 3px 100%; padding-left: 18px; }
  .areas h3 a:hover { text-decoration: underline; text-decoration-color: var(--stamp); }
  .donde:has(li[data-p="palma"]:hover) .pin-palma .r, .donde:has(li[data-p="inca"]:hover) .pin-inca .r, .donde:has(li[data-p="manacor"]:hover) .pin-manacor .r { transform: scale(2.1); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .btn:active, .hcta:active, .mbar a:active { transform: none; }
}

.promesa strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.balanza-x { flex: none; width: 240px; color: var(--stamp); }
.balanza-x svg { display: block; width: 100%; height: auto; }
@media (max-width: 720px) { .balanza-x { width: 180px; } }

.lema { margin: 0; padding-left: 16px; border-left: 3px solid var(--stamp); font-size: 19px; font-style: italic; line-height: 1.45; max-width: 15em; color: var(--ink); }
footer > span { line-height: 1.7; }
.form label.consent { display: flex; font-weight: 400; margin: 0; }

/* Fotografías: mismo ancho y misma proporción en Despacho y Áreas; alineadas con el bloque de texto */
.band { margin: 100px 0 0; height: clamp(260px, 33vw, 480px); border-block: 1px solid var(--line); background: var(--desk); overflow: hidden; }
.band img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
@media (max-width: 720px) {
  .band { margin-top: 64px; height: 250px; }
    .who-row   .who-row       }

.capa1 { font-family: var(--sans); font-size: 13px; line-height: 1.55; color: var(--muted); margin: 10px 0 0; max-width: 46em; }
.capa1 strong { color: var(--ink); }

/* ============ Portada (v5.3): texto y formulario a la izquierda, fotografía a la derecha ============ */
.desk-in { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px 88px; align-items: stretch; }
.intro h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.018em; margin: 0 0 22px; text-wrap: balance; }
.intro .h1-sub { display: block; margin-top: 18px; font-family: var(--sans); font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--stamp); max-width: 26em; }
.intro .lead { margin: 0 0 30px; color: var(--muted); max-width: 33em; text-wrap: pretty; }
.sheet { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--stamp); padding: 28px 30px 26px; box-shadow: 0 34px 60px -38px rgba(17, 30, 70, .42); max-width: 640px; }
.tell label { display: block; font-family: var(--display); font-size: 26px; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 14px; }
.tell textarea { display: block; width: 100%; font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--ink); background: color-mix(in srgb, var(--desk) 38%, var(--paper)); border: 1px solid var(--line); border-radius: 2px; padding: 12px 16px; resize: vertical; min-height: 104px; }
.tell textarea::placeholder { color: var(--muted); opacity: .8; }
.tell textarea:focus { outline: 2px solid var(--stamp); outline-offset: 1px; background: var(--paper); }
.tell-foot { display: flex; align-items: center; gap: 22px; margin-top: 16px; }
.tell .btn { flex: none; margin: 0; }
.tell-hint { flex: 1; font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }

.hero-photo { position: relative; margin: 0; min-height: 0; box-shadow: 0 34px 60px -36px rgba(10, 22, 52, .55); background: var(--desk); }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 44%; background: linear-gradient(to top, rgba(9, 20, 48, .92), rgba(9, 20, 48, 0)); pointer-events: none; }
.lema-foto { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; margin: 0; padding-left: 14px; border-left: 2px solid rgba(255, 255, 255, .75); font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.35; color: #fff; }
.lema-firma { display: block; margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: 14px; line-height: 1.4; letter-spacing: .01em; color: rgba(255,255,255,.9); }
.lema-firma strong { display: block; font-weight: 600; color: #fff; }
:root[data-theme="dark"] .hero-photo img { filter: brightness(.92); }

.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; margin-top: 56px; border: 0; }
.strip > div { position: relative; padding: 18px 0 0; border: 0; font-family: var(--sans); font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.strip > div::before { content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 3px; background: var(--stamp); }
.strip strong { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 3px; }

/* Fotografías de páginas interiores: se muestran enteras, sin recortar */
.foto-n { margin: 0; flex: none; }
.foto-n img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--desk); }
.foto-retrato { width: 225px; }
.foto-apaisada { width: 340px; }
.who-row { align-items: flex-start; }
.pagehead.con-foto { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px 64px; align-items: center; padding-block: 44px; }

@media (max-width: 1040px) {
  .desk-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
  .intro { display: contents; }
  .intro h1 { order: 1; max-width: 14em; }
  .intro .lead { order: 2; }
  .hero-photo { order: 3; width: 100%; max-width: 420px; margin: 0 0 32px; }
  .hero-photo img { height: auto; aspect-ratio: 1 / 1; object-position: 50% 62%; }
  .sheet { order: 4; max-width: 640px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
}
@media (max-width: 720px) {
  .intro h1 { font-size: 36px; }
  .intro .lead { margin-bottom: 24px; }
  .lema-foto { font-size: 18px; left: 18px; right: 18px; bottom: 16px; }
  .lema-firma { font-size: 13px; margin-top: 9px; }
  .sheet { padding: 24px 20px 22px; }
  .tell label { font-size: 24px; }
  .tell-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .tell .btn { width: 100%; text-align: center; }
  .strip { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .foto-retrato { width: 200px; }
  .foto-apaisada { width: 100%; }
  .pagehead.con-foto { grid-template-columns: minmax(0, 1fr); padding-block: 36px; }
}
