/* Legal TBC — v2
   Identidad conservada (navy 215/56/13, dorado 42/49/58, Playfair Display + DM Sans),
   tratamiento nuevo: fondo blanco, fotografía protagonista, pocas cajas. */

:root {
  --navy-900: #0A1524;
  --navy-800: #0F1E34;
  --navy-700: #16293F;
  --navy-600: #24384F;
  --gold:     #C8A95F;
  --gold-dim: #A98C46;

  --white:    #FFFFFF;
  --paper:    #F6F5F2;
  --ink:      #131C29;
  --ink-2:    #4A5768;
  --ink-3:    #7A8697;
  --rule:     #E3E1DC;
  --rule-2:   #CFCBC3;
  --ok:       #1F6B4F;

  --f-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: 28px;
  --bar-h: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h);
}

img { max-width: 100%; display: block; }
a { color: var(--navy-800); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-dim); }
:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.022em; text-wrap: balance; margin: 0; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-dim);
  margin: 0 0 12px;
}
.eyebrow.on-dark { color: var(--gold); }

.lede { font-size: 19px; color: var(--ink-2); max-width: 60ch; }

/* ---------------- animación (reveal al hacer scroll) ---------------- */

/* Tipo Apple: fundido + leve desplazamiento + desenfoque que se resuelve. Corto y sin rebote. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.js .reveal.in { opacity: 1; transform: none; will-change: auto; }
.js .reveal.d1 { transition-delay: .12s; }
.js .reveal.d2 { transition-delay: .24s; }
.js .reveal.d3 { transition-delay: .36s; }

/* Escalonado automático de hijos dentro de listas reveladas */
.js .rows.reveal > a, .js .steps > li.reveal { transition-duration: .8s; }
.js .rows.reveal > a { opacity: 0; transform: translateY(14px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.js .rows.reveal.in > a { opacity: 1; transform: none; }
.js .rows.reveal.in > a:nth-child(2) { transition-delay: .1s; }
.js .rows.reveal.in > a:nth-child(3) { transition-delay: .2s; }
.js .rows.reveal.in > a:nth-child(4) { transition-delay: .3s; }
.js .rows.reveal.in > a:nth-child(5) { transition-delay: .4s; }
.js .rows.reveal.in > a:nth-child(6) { transition-delay: .5s; }

/* Imágenes: se acomodan (escala 1.06 → 1) al entrar */
.js figure.reveal { overflow: hidden; }
.js figure.reveal img { transform: scale(1.06); transition: transform 1.4s cubic-bezier(.22,.61,.36,1); }
.js figure.reveal.in img { transform: scale(1); }

/* Entrada de portada al cargar */
@keyframes fx-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fx-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.js .fx-up { animation: fx-up .9s cubic-bezier(.22,.61,.36,1) both; }
.js .fx-up.d1 { animation-delay: .12s; }
.js .fx-up.d2 { animation-delay: .24s; }
.js .fx-up.d3 { animation-delay: .36s; }
.js .hero img.bg { animation: fx-settle 1.8s cubic-bezier(.22,.61,.36,1) both; }

.masthead { transition: box-shadow .3s ease; }
.masthead.scrolled { box-shadow: 0 1px 0 var(--rule), 0 8px 24px -16px rgba(10,21,36,.25); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .rows.reveal > a, .js figure.reveal img, .js .fx-up, .js .hero img.bg { opacity: 1; transform: none; filter: none; transition: none; animation: none; }
}

/* ---------------- cabecera ---------------- */

.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 40;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.brand .bt { display: grid; }
.brand .bn { font-family: var(--f-display); font-size: 21px; font-weight: 700; color: var(--navy-800); line-height: 1; }
.brand .bs { font-size: 11.5px; letter-spacing: 0.04em; color: var(--gold-dim); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 14px;
}
.nav a:hover { color: var(--navy-800); }
.nav a[aria-current="page"] { color: var(--navy-800); box-shadow: inset 0 -2px 0 var(--gold); }
.nav .btn { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-white { background: #fff; color: var(--navy-800); }
.btn-white:hover { background: var(--paper); color: var(--navy-800); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-line { border-color: var(--rule-2); color: var(--navy-800); }
.btn-line:hover { border-color: var(--navy-800); }
.btn svg { width: 17px; height: 17px; flex: none; }

.wa-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--navy-800); margin-left: auto; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.wa-icon svg { width: 21px; height: 21px; fill: currentColor; }
.wa-icon:hover { background: #25A55E; border-color: #25A55E; color: #fff; }
.masthead .wrap > .btn-navy { margin-left: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule-2); border-radius: 999px; padding: 10px 12px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--navy-800); }
.nav-toggle .ico-close, .nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.nav-links { display: contents; }
.nav-contact { display: none; }

/* ---------------- portada fotográfica ---------------- */

.hero {
  position: relative;
  min-height: 560px;
  height: 72vh;
  max-height: 720px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,21,36,.10) 0%, rgba(10,21,36,.35) 45%, rgba(10,21,36,.85) 100%),
    linear-gradient(90deg, rgba(10,21,36,.55) 0%, rgba(10,21,36,0) 60%);
}
.hero .wrap { width: 100%; padding-bottom: 64px; padding-top: 80px; }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.05;
  color: #fff;
  max-width: 14ch;
  margin-bottom: 18px;
}
.hero p { color: rgba(255,255,255,.86); font-size: 18px; max-width: 54ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-note {
  border-bottom: 1px solid var(--rule);
}
.hero-note .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  min-height: 56px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-2);
}
.hero-note b { color: var(--ink); font-weight: 600; }
.hero-note .r { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-note a { text-decoration: none; }

/* ---------------- secciones ---------------- */

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.band { background: var(--paper); }
.band-navy { background: var(--navy-800); color: #DCE3EB; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy p { color: #B4C0CE; }

.sec-head { max-width: 62ch; margin-bottom: 44px; }
.sec-head h2, .split h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.12; margin-bottom: 16px; }
.sec-head p { color: var(--ink-2); margin: 0; font-size: 17.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split .txt p { color: var(--ink-2); font-size: 17.5px; max-width: 54ch; }
.split .txt .more { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.split .txt .more::after { content: "→"; color: var(--gold-dim); }
.split figure { margin: 0; }
.split figure img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.split figure.wide img { aspect-ratio: 3/2; }
.split figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; letter-spacing: .04em; }

.stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--rule); }
.stats div { display: grid; gap: 2px; }
.stats b { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--navy-800); line-height: 1.1; }
.stats span { font-size: 13px; color: var(--ink-3); }

/* ---------------- lista de servicios (filas, no cajas) ---------------- */

.rows { border-top: 1px solid var(--rule-2); }
.rows a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.rows a:hover { color: inherit; }
.rows a:hover h3 { color: var(--gold-dim); }
.rows .n { font-family: var(--f-display); font-size: 14px; color: var(--gold-dim); }
.rows h3 { font-size: 1.25rem; margin-bottom: 6px; transition: color .18s ease; }
.rows p { font-size: 15.5px; color: var(--ink-2); margin: 0; max-width: 60ch; }
.rows .arrow { color: var(--rule-2); font-size: 22px; transition: color .18s ease, transform .18s ease; }
.rows a:hover .arrow { color: var(--gold-dim); transform: translateX(4px); }

.two { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.two .sticky { position: sticky; top: 110px; }

.inline-list { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 0; padding: 0; list-style: none; }
.inline-list li { padding: 0 22px 0 0; margin-right: 22px; border-right: 1px solid var(--rule-2); }
.inline-list li:last-child { border-right: 0; }
.inline-list a { text-decoration: none; font-weight: 500; font-size: 16px; }

/* ---------------- método ---------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin: 0; padding: 0; list-style: none; }
.steps li { border-top: 2px solid var(--navy-800); padding-top: 20px; }
.steps .n { font-size: 13px; color: var(--gold-dim); font-weight: 600; display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.1rem; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* ---------------- cierre fotográfico ---------------- */

.cta-photo {
  position: relative;
  color: #fff;
  padding: 120px 0;
  isolation: isolate;
  overflow: hidden;
}
.cta-photo img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-photo::before { content: ""; position: absolute; inset: 0; background: rgba(10,21,36,.78); z-index: -1; }
.cta-photo .inner { max-width: 640px; }
.cta-photo h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: #fff; margin-bottom: 14px; }
.cta-photo p { color: rgba(255,255,255,.82); font-size: 17.5px; margin-bottom: 30px; }
.cta-photo .acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- páginas interiores ---------------- */

.pagehead { padding: 34px 0 36px; border-bottom: 1px solid var(--rule); }
.pagehead h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); line-height: 1.08; }
.pagehead p { color: var(--ink-2); margin: 18px 0 0; max-width: 58ch; font-size: 18.5px; }
.crumbs { font-size: 13px; color: var(--ink-3); margin: 0 0 12px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--navy-800); }
.crumbs span { margin: 0 8px; }

.banner { margin: 0; }
.banner img { width: 100%; aspect-ratio: 21/8; object-fit: cover; }

.article { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 80px; align-items: start; }
.prose { max-width: 66ch; }
.prose h2 { font-size: 1.55rem; margin: 52px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.prose p { color: var(--ink-2); }
.prose p.lede { color: var(--ink); }
.prose ul { padding-left: 0; margin: 0 0 1.2em; list-style: none; display: grid; gap: 10px; }
.prose ul li { padding-left: 26px; position: relative; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 12px; height: 1px; background: var(--gold-dim); }
.prose strong { color: var(--ink); font-weight: 600; }

.callout { border-left: 2px solid var(--gold); padding: 6px 0 6px 24px; margin: 32px 0; }
.callout h3 { font-size: 1.08rem; margin: 0 0 8px; }
.callout p { font-size: 15.5px; margin: 0; }

.linklist { display: grid; gap: 0; border-top: 1px solid var(--rule-2); margin: 18px 0 30px; }
.linklist a { padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.linklist a span { color: var(--rule-2); }
.linklist a:hover span { color: var(--gold-dim); }

.faq { border-top: 1px solid var(--rule-2); margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--f-body); font-size: 22px; font-weight: 300; color: var(--gold-dim); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 30px 22px 0; color: var(--ink-2); font-size: 15.8px; }
.faq .ans p:last-child { margin-bottom: 0; }

.aside { position: sticky; top: 110px; display: grid; gap: 28px; }
.aside-box { border-top: 2px solid var(--navy-800); padding-top: 18px; }
.aside-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.aside-box p { font-size: 14.8px; color: var(--ink-2); }
.aside-box .btn { margin-top: 14px; width: 100%; }
.aside-box h4 { font-family: var(--f-body); font-size: 13px; color: var(--ink-3); margin: 0 0 6px; }
.aside-box .linklist { margin: 0; border-top: 0; }

/* ---------------- perfil ---------------- */

.profile { display: grid; grid-template-columns: 380px minmax(0,1fr); gap: 80px; align-items: start; }
.profile figure { margin: 0; position: sticky; top: 110px; }
.profile figure img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: center top; }
.profile figure img.retrato { aspect-ratio: 1/1; }
.profile figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; letter-spacing: .04em; }
.datos { margin-top: 24px; border-top: 1px solid var(--rule-2); }
.datos div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.datos dt { color: var(--ink-3); }
.datos dd { margin: 0; color: var(--ink); }

.timeline { border-top: 1px solid var(--rule-2); margin-top: 6px; }
.timeline > div { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.timeline .yr { font-size: 13.5px; font-weight: 600; letter-spacing: .05em; color: var(--gold-dim); font-variant-numeric: tabular-nums; padding-top: 4px; }
.timeline h3 { font-size: 1.1rem; margin-bottom: 4px; }
.timeline p { font-size: 15px; color: var(--ink-2); margin: 0; }
.firms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.firms span { border: 1px solid var(--rule-2); padding: 8px 14px; font-size: 13.5px; color: var(--ink-2); border-radius: 999px; }

/* ---------------- contacto ---------------- */

.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 80px; align-items: start; }

.channels { display: grid; gap: 0; border-top: 1px solid var(--rule-2); }
.channel { padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 2px 14px; text-decoration: none; color: inherit; }
.channel:hover { color: inherit; }
.channel svg { width: 20px; height: 20px; stroke: var(--gold-dim); fill: none; stroke-width: 1.5; grid-row: span 2; margin-top: 5px; }
.channel .k { font-size: 12.5px; color: var(--ink-3); }
.channel .v { font-size: 16.5px; font-weight: 500; color: var(--navy-800); }
.channel:hover .v { color: var(--gold-dim); }

form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field label .req { color: var(--gold-dim); }
.field input, .field textarea, .field select {
  font-family: var(--f-body); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--rule-2); border-radius: 6px; padding: 13px 15px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy-800); outline: none; box-shadow: 0 0 0 3px rgba(200,169,95,.22); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13.8px; color: var(--ink-2); }
.consent input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--navy-800); }
.form-note { font-size: 13.6px; color: var(--ink-2); display: flex; gap: 11px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.form-note svg { width: 17px; height: 17px; stroke: var(--ok); fill: none; stroke-width: 1.8; flex: none; margin-top: 2px; }

.sent { border-top: 2px solid var(--ok); padding: 22px 0; display: none; }
.sent h3 { font-size: 1.25rem; color: var(--ok); margin-bottom: 8px; }
.sent p { font-size: 15px; color: var(--ink-2); margin: 0; }
.sent .btn { margin-top: 14px; }
.sent .relay { margin-top: 16px; border-top: 1px dashed var(--rule-2); padding-top: 14px; font-size: 13.3px; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ink-2); display: grid; gap: 5px; }
.sent .relay b { color: var(--ok); }

/* ---------------- pie ---------------- */

.foot { background: var(--navy-900); color: #97A5B6; padding: 64px 0 0; font-size: 14.8px; }
.foot a { color: #C4CEDA; text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; }
.foot h4 { font-family: var(--f-body); font-size: 13.5px; font-weight: 600; color: var(--gold); margin: 0 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot .fbrand img { width: 150px; margin-bottom: 18px; }
.foot .fbrand p { font-size: 14.3px; color: #8494A7; max-width: 32ch; }
.legalbar { border-top: 1px solid #1B2A3D; padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13.2px; color: #748396; }
.legalbar .lb-links { display: flex; gap: 20px; flex-wrap: wrap; }
.tbd { border-bottom: 1px dotted var(--gold); cursor: help; }

/* ---------------- barra móvil / sello demo ---------------- */




/* ---------------- adaptaciones ---------------- */

@media (max-width: 1000px) {
  .split, .two, .article, .contact-grid, .profile { grid-template-columns: 1fr; gap: 44px; }
  .two .sticky, .aside, .profile figure { position: static; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .split figure { order: -1; }
  .split figure img { aspect-ratio: 3/2; }
}

@media (max-width: 760px) {
  :root { --bar-h: 0px; --gutter: 22px; }
  body { font-size: 16.5px; }
  section { padding: 64px 0; }

  .masthead .wrap { min-height: 70px; }
  .brand img { height: 40px; }
  .brand .bn { font-size: 20px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: fixed; inset: 0; z-index: 39;
    background: var(--navy-900); color: #fff;
    flex-direction: column; justify-content: space-between;
    padding: 96px 28px 40px;
  }
  .nav.open { display: flex; }
  html.menu-open { overflow: hidden; }
  html.menu-open .masthead { background: var(--navy-900); border-color: transparent; }
  .masthead .brand, .masthead .nav-toggle { position: relative; z-index: 41; }
  html.menu-open .brand .bn { color: #fff; }
  html.menu-open .nav-toggle { border-color: rgba(255,255,255,.35); }
  html.menu-open .nav-toggle svg { stroke: #fff; }
  .nav-links { display: grid; gap: 4px; }
  .nav-links a { color: #fff; font-size: 27px; font-weight: 500; letter-spacing: -0.01em; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-links a[aria-current="page"] { color: var(--gold); box-shadow: none; }
  .nav-contact { display: grid; gap: 8px; font-size: 15px; }
  .nav-contact a { color: #C4CEDA; }
  .nav-contact .nav-cta { color: var(--gold); font-weight: 600; font-size: 17px; margin-bottom: 10px; }
  .nav-contact span { color: #7A8AA0; font-size: 13px; }
  .masthead .wrap > .btn-navy { display: none; }
  .wa-icon { width: 40px; height: 40px; margin-left: auto; margin-right: 10px; }

  .hero-note .wrap { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 14px; padding-bottom: 14px; }

  .rows a { grid-template-columns: 1fr auto; }
  .rows .n { display: none; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .legalbar { flex-direction: column; gap: 12px; }
  .cta-photo { padding: 80px 0; }
  .pagehead { padding: 24px 0 26px; }
  .banner img { aspect-ratio: 16/9; }
  .demoflag { bottom: calc(var(--bar-h) + 12px); }


}

/* ---------------- contacto: estructura del sitio original ---------------- */

.pagehead-navy { background: var(--navy-800); color: #fff; text-align: center; padding: 72px 0 64px; }
.pagehead-navy h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); color: #fff; }
.pagehead-navy p { color: #C3CCD9; font-size: 18px; margin: 14px auto 0; max-width: 60ch; }

.contact-title { font-size: 1.6rem; margin-bottom: 14px; }
.contact-intro { color: var(--ink-2); max-width: 52ch; margin-bottom: 30px; }

.info-list { display: grid; gap: 22px; }
.info-item { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; text-decoration: none; color: inherit; }
.info-item:hover { color: inherit; }
.info-item .tile { width: 52px; height: 52px; border-radius: 8px; background: #E9EBEE; display: grid; place-items: center; }
.info-item .tile svg { width: 22px; height: 22px; fill: none; stroke: var(--navy-800); stroke-width: 1.6; }
.info-item .k { display: block; font-weight: 600; font-size: 15px; color: var(--ink); margin-top: 3px; }
.info-item .v { display: block; font-size: 15.5px; color: var(--ink-2); margin-top: 2px; }
.info-item .k2 { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
a.info-item:hover .v { color: var(--gold-dim); }

.wa-box { margin-top: 34px; background: #E8F5EC; border: 1px solid #CFE8D6; border-radius: 10px; padding: 24px 26px; }
.wa-box h3 { font-size: 1.15rem; margin-bottom: 6px; }
.wa-box p { font-size: 15px; color: var(--ink-2); margin-bottom: 16px; }
.btn-wa { background: #25A55E; color: #fff; }
.btn-wa:hover { background: #1F8F51; color: #fff; }

.form-card { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 34px 36px 32px; box-shadow: 0 20px 50px -30px rgba(10,21,36,.25); }
.form-card .contact-title { margin-bottom: 22px; }
.btn-block { width: 100%; padding: 15px 22px; }
.form-foot { font-size: 12.8px; color: var(--ink-3); margin: 4px 0 0; text-align: center; }
.contact-grid { grid-template-columns: minmax(0,1fr) 520px; gap: 64px; }

@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .pagehead-navy { padding: 48px 0 42px; }
  .form-card { padding: 26px 22px; }
}

/* ---------------- ficha compacta del profesional (mobile) ---------------- */
.prof-card { display: none; }

/* ---------------- mobile: corto y escaneable ---------------- */
@media (max-width: 760px) {
  section { padding: 60px 0; }
  section.tight { padding: 44px 0; }
  .sec-head { margin-bottom: 26px; }
  .sec-head p, .split .txt p, .two .sticky p { font-size: 15.5px; }


  .hero { display: block; min-height: 0; height: auto; max-height: none; color: var(--ink); background: var(--white); overflow: visible; }
  .hero::before { display: none; }
  .hero img.bg { position: relative; inset: auto; width: 100%; height: 46vh; min-height: 260px; max-height: 420px; z-index: auto; object-position: center 35%; }
  .hero .wrap { padding: 30px 22px 6px; }
  .hero .eyebrow { color: var(--gold-dim); margin-bottom: 10px; }
  .hero h1 { color: var(--ink); font-size: 2rem; max-width: none; margin-bottom: 12px; }
  .hero p { display: block; color: var(--ink-2); font-size: 16px; margin-bottom: 18px; }
  .hero-cta { gap: 18px; align-items: center; }
  .hero-cta .btn-white { background: var(--navy-800); color: #fff; padding: 12px 22px; }
  .hero-cta .btn-ghost { border: 0; color: var(--navy-800); padding: 0; font-weight: 600; }
  .hero-cta .btn-ghost::after { content: " →"; color: var(--gold-dim); }
  .hero-note { display: none; }

  .split { gap: 22px; }
  .split figure, .split figcaption { display: none; }
  .split .txt .more { margin-top: 14px; }

  .prof-card { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; margin: 0 0 22px; }
  .prof-card img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; object-position: center top; background: #EEF0F3; }
  .prof-card b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
  .prof-card span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }

  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; padding-top: 18px; }
  .stats b { font-size: 1.15rem; }
  .stats span { font-size: 12px; }

  .two { gap: 22px; }
  .rows a { padding: 20px 0; gap: 12px; }
  .rows .arrow { color: var(--gold-dim); }
  .rows h3 { font-size: 1.08rem; margin-bottom: 0; }
  .rows p { display: none; }

  .steps { gap: 18px; }
  .steps li { border-top: 1px solid var(--rule); padding-top: 14px; }
  .steps .n { margin-bottom: 4px; }
  .steps h3 { font-size: 1.02rem; margin-bottom: 4px; }
  .steps p { font-size: 14px; }

  .inline-list { gap: 8px; }
  .inline-list li { border: 1px solid var(--rule-2); border-radius: 999px; padding: 7px 13px; margin: 0; }
  .inline-list a { font-size: 14px; }

  .faq summary { font-size: 1rem; padding: 14px 32px 14px 0; }
  .faq .ans { font-size: 15px; }

  .cta-photo { padding: 56px 0; }
  .cta-photo h2 { font-size: 1.6rem; }
  .cta-photo p { font-size: 15.5px; }
  .cta-photo .btn-ghost { display: none; }
  .cta-photo .btn-white { padding: 12px 22px; }

  .pagehead p { font-size: 16px; }
  .banner img { aspect-ratio: 4/3; }
  .prose h2 { font-size: 1.35rem; margin-top: 36px; }
  .callout { padding-left: 16px; }
  .foot { padding-top: 44px; }
  .foot-grid { gap: 26px; padding-bottom: 30px; }
  .foot .fbrand img { width: 120px; }
}

/* retrato en la home: fondo blanco de la foto integrado al bloque */
.retrato-home { background: var(--paper); }
.retrato-home img { aspect-ratio: 1/1; object-fit: cover; object-position: center top; }

/* ---------------- bloque de consulta en la home ---------------- */
.quick { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.quick-txt h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 14px; }
.quick-txt p { color: var(--ink-2); max-width: 44ch; }
.quick-form { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--rule); padding: 28px; }
.quick-form textarea { min-height: 120px; }
.quick-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.quick-alt { font-size: 14.5px; font-weight: 600; text-decoration: none; }
.qual { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .quick { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 760px) {
  .quick-form { padding: 20px; }
  .quick-actions .btn { padding: 12px 22px; }
  .qual { grid-template-columns: 1fr; }
}
