/* =========================================================
   OYANGUREN ABOGADOS — Sistema de diseño v2
   Editorial · minimal · tipográfico
   Instrument Serif (display) + Hanken Grotesk (texto)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color — papel cálido / piedra / negro suave / topo / oxblood apagado */
  --bg:        #F4F1EA;   /* papel cálido (no blanco clínico) */
  --panel:     #E9E4D8;   /* piedra — para alternar secciones y romper el blanco */
  --panel-2:   #DED8C9;
  --cream:     #FBFAF6;
  --ink:       #17150F;   /* negro suave cálido */
  --muted:     #3B382F;   /* texto secundario — más contraste, más legible */
  --faint:     #78736A;   /* topo — labels, terciario */
  --line:      rgba(23,21,15,.16);   /* hairline */
  --line-2:    rgba(23,21,15,.30);
  --dark:      #131313;   /* carbón cálido — secciones oscuras / footer */
  --dark-2:    #1C1C1C;
  --on-dark:   #ECE8DE;
  --on-dark-mut:#9F988A;
  --accent:    #4E2530;   /* oxblood apagado */
  --accent-d:  #3B1D25;
  --accent-soft:#A9A9A5;  /* rosa empolvado — acentos sobre oscuro */
  --gold:      #C9A96A;   /* dorado apagado — solo como detalle/acento sobre granate */
  --gold-2:    #E1C77F;
  --wine:      #57222F;   /* granate elegante — color de marca, bandas de sección */
  --wine-2:    #4A1B27;

  /* Tipografía — Fraunces (serif de estilo antiguo, carácter/solera) + Hanken (UI moderna) */
  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Medidas */
  --maxw: 1280px;
  --gut: clamp(1.4rem, 5vw, 5rem);
  --radius: 0px;
  --radius-img: 14px;   /* esquinas suaves en fotos (como la referencia) */

  /* Transiciones */
  --ease: cubic-bezier(.23,.6,.3,1);
  --t: .55s var(--ease);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.58;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
::selection { background: var(--ink); color: var(--cream); }

/* ---------- Tipografía ---------- */
h1,h2,h3,h4 {
  font-family: var(--serif);
  font-weight: 430;
  line-height: 1.04;
  letter-spacing: -0.005em;
  font-optical-sizing: auto;
  text-wrap: balance;   /* reparte las palabras entre líneas: sin cortes feos */
}
.display {
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
h2.section-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.06; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink); line-height: 1.5; font-weight: 350; }

/* Rótulos de sección eliminados: el tratamiento versalita+filete es un
   cliché de plantilla/IA. Las secciones arrancan con el titular serif. */
.eyebrow { display: none; }

/* ---------- Iconos de línea ---------- */
.ico { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3.4rem, 6.5vw, 6rem); }
.section--tight { padding-block: clamp(2.4rem, 4.5vw, 4rem); }
/* Alterna el fondo para romper el blanco continuo */
.section--tint { background: var(--panel); }
/* Banda con color de marca (granate) — para secciones señaladas */
.section--wine { background: var(--wine); color: var(--on-dark); }
.section--wine h1, .section--wine h2, .section--wine h3, .section--wine h4 { color: var(--cream); }
.section--wine p { color: rgba(243,243,241,.72); }
.section--wine .link { color: var(--cream); border-bottom-color: rgba(243,243,241,.42); }
.section--wine .link:hover { color: var(--cream); border-bottom-color: var(--cream); }
/* Índice de áreas sobre granate: filetes claros, numerales y flechas tenues, hover dorado */
.section--wine .svcx { border-top-color: rgba(243,243,241,.3); }
.section--wine .svcx__row { border-bottom-color: rgba(243,243,241,.15); }
.section--wine .svcx__num { color: rgba(243,243,241,.5); }
.section--wine .svcx__row p { color: rgba(243,243,241,.66); }
.section--wine .svcx__arrow { color: rgba(243,243,241,.5); }
.section--wine .svcx__row:hover h3 { color: var(--cream); }
.section--wine .svcx__row:hover .svcx__arrow { color: var(--cream); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 46ch; }
.measure-sm { max-width: 40ch; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: .8em;
  padding: .95em 1.7em;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .005em;
  text-transform: none;
  border: 1px solid var(--bg);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: color var(--t), background var(--t), border-color var(--t);
}
/* Flechas "→" eliminadas: motivo de plantilla que se repetía en cada enlace */
.arrow { display: none !important; }
.btn > * { position: relative; z-index: 1; }
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform var(--t);
}
.btn:hover { border-color: var(--accent); }
.btn:hover::after { transform: translateY(0); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  --bg: transparent; --fg: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { --fg: var(--cream); border-color: var(--accent); }
.btn--light { --bg: var(--cream); --fg: var(--ink); border-color: var(--cream); }
.btn--light::after { background: var(--accent); }
.btn--light:hover { --fg: var(--cream); }

/* Enlace editorial con subrayado */
.link {
  display: inline-flex;
  align-items: baseline;
  gap: .6em;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .005em;
  text-transform: none;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  transition: border-color var(--t), color var(--t);
}
.link:hover { border-color: var(--ink); color: var(--accent-d); }
.link .arrow { transition: transform .4s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

/* Skip link accesible */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--cream);
  padding: .8rem 1.2rem; font-size: .85rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* =========================================================
   HEADER — mínimo, tipográfico
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.6rem;
  transition: padding var(--t), box-shadow var(--t);
}
.header::before {
  content: "";
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity var(--t);
}
.header.scrolled { padding-block: .9rem; box-shadow: 0 1px 0 var(--line); }
.header.scrolled::before { opacity: 1; }
.header__inner {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Wordmark tipográfico — sin símbolo */
.brand { display: inline-flex; flex-direction: column; line-height: 1; gap: .3rem; color: var(--ink); }
.brand__name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: .01em;
}
/* Coletilla del wordmark eliminada (versalita espaciada = tic de plantilla).
   El logo es solo el apellido, bien compuesto. */
.brand__tag { display: none; }
.brand__name {
  letter-spacing: .005em;
}

/* Nav */
.nav { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 2rem); }
.header .nav { flex-wrap: nowrap; }
/* Los enlaces se anclan tras el logo (no al CTA): así el menú no "baila"
   entre páginas cuando el botón del header cambia de texto/anchura. */
@media (min-width: 1100px) {
  .header .nav { flex: 1; }
  /* Enlaces centrados en el espacio entre el logo y las acciones (equilibrado). */
  .header .nav__links { margin-inline: auto; }
}
.nav__links { display: flex; align-items: center; gap: clamp(.85rem, 1.35vw, 1.7rem); }
.nav__links a {
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .005em;
  text-transform: none;
  color: var(--muted);
  position: relative;
  padding-block: .3rem;
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__cta { display: inline-flex; }
.nav__cta .btn {
  white-space: nowrap; padding: .9em 1em;
  min-width: 12.5em;             /* cabe "Request a consultation": misma anchura en ES/EN y en todas las páginas */
  justify-content: center;
}

/* Botón hamburguesa */
.burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none;
  position: relative;
  z-index: 110;
}
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Toggle de idioma — control segmentado (pastilla deslizante) */
.langtoggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 3px; gap: 2px;
  flex: none;
}
.langtoggle button {
  font-size: .7rem; font-weight: 650; letter-spacing: .08em;
  padding: .34rem .72rem;
  background: transparent; color: var(--faint);
  border: 0; border-radius: 100px;
  line-height: 1; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.langtoggle button:hover { color: var(--ink); }
.langtoggle button.is-active { background: var(--ink); color: var(--cream); }

/* =========================================================
   HOME — HERO con foto a sangre
   ========================================================= */
.edhero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}
.edhero__bg { position: absolute; inset: 0; z-index: -2; }
.edhero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 38%;
  filter: grayscale(1) contrast(1.05);
}
/* Velo oscuro cargado a la izquierda y al pie para legibilidad del texto */
.edhero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,12,11,.9) 0%, rgba(14,12,11,.72) 26%, rgba(14,12,11,.4) 50%, rgba(14,12,11,.08) 72%, rgba(14,12,11,0) 86%),
    linear-gradient(to bottom, rgba(14,12,11,.5) 0%, rgba(14,12,11,0) 15%),
    linear-gradient(to top, rgba(14,12,11,.6) 0%, rgba(14,12,11,0) 32%);
}
.edhero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(7rem, 14vh, 10rem);
}
.edhero__title { max-width: 16ch; font-size: clamp(2.7rem, 5.6vw, 4.8rem); color: var(--cream); }
.edhero__title em { font-style: italic; color: var(--cream); opacity: .92; }
.edhero__lead { margin-top: clamp(1.4rem, 2.4vw, 2rem); max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.6; color: rgba(243,243,241,.82); }
.edhero__lead strong { color: var(--cream); font-weight: 600; }
.edhero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: clamp(1.8rem, 3vw, 2.6rem); }
.edhero .link { color: var(--cream); border-bottom-color: rgba(243,243,241,.42); }
.edhero .link:hover { color: var(--cream); border-bottom-color: var(--cream); }

/* Proof — franja de credenciales al pie del hero, sobre la foto */
.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  padding-block: clamp(1.6rem, 3vw, 2.2rem) clamp(1.8rem, 4vh, 3rem);
  border-top: 1px solid rgba(243,243,241,.22);
}
.proof li { font-size: .8rem; line-height: 1.45; color: rgba(243,243,241,.62); }
.proof strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  letter-spacing: 0;
  color: var(--cream);
  margin-bottom: .3rem;
}

/* Header claro mientras flota sobre el hero (solo home, sin scroll) */
body.home .header:not(.scrolled) .brand,
body.home .header:not(.scrolled) .nav__links a { color: var(--cream); }
body.home .header:not(.scrolled) .nav__links a::after { background: var(--cream); }
body.home .header:not(.scrolled) .nav__links a:not([aria-current="page"]) { color: rgba(243,243,241,.78); }
body.home .header:not(.scrolled) .nav__links a:hover { color: var(--cream); }
body.home .header:not(.scrolled) .burger span { background: var(--cream); }

body.home .header:not(.scrolled) .nav__cta .btn { --bg: transparent; --fg: var(--cream); border-color: rgba(243,243,241,.5); }
body.home .header:not(.scrolled) .nav__cta .btn:hover { border-color: var(--cream); }

/* =========================================================
   HOME — HERO estilo Outten: texto centrado + imagen que
   se expande con el scroll (efecto sticky).
   ========================================================= */
/* Zona de scroll: hero pegado (sticky) mientras la imagen crece detrás del texto */
.ohero__scroller { position: relative; height: 320vh; }
.ohero__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
}
/* Imagen: aparece y crece DETRÁS del texto al hacer scroll.
   Se anima con transform:scale + opacidad (composición GPU, sin
   relayout) y suavizado con inercia en main.js — fluida, sin tirones. */
.ohero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: var(--ohop, 0);
  border-radius: var(--ohr, 34px);
  overflow: hidden;
  transform: scale(var(--ohs, .7));
  transform-origin: 50% 0;   /* crece desde arriba: nunca queda "cortada" contra el header */
  will-change: opacity, transform;
}
.ohero__media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 36%;
  filter: grayscale(1) contrast(1.05);
}
/* Velo sobre la imagen para que el texto se lea (escala con la imagen) */
.ohero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(14,12,11,.72) 0%, rgba(14,12,11,.34) 40%, rgba(14,12,11,.5) 100%);
}
/* Texto: siempre encima, centrado. Color de tinta al inicio (sobre papel);
   el JS lo pasa a crema conforme entra la imagen detrás. */
.ohero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--ink);
}
.ohero__title {
  max-width: 17ch;
  margin-inline: auto;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  color: inherit;
}
.ohero__title em { font-style: italic; color: inherit; opacity: .9; }
.ohero__sub {
  max-width: 52ch;
  margin: clamp(1.3rem, 2.4vw, 1.9rem) auto 0;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.6;
  color: inherit; opacity: .82;
}
.ohero__sub strong { color: inherit; opacity: 1; font-weight: 600; }
.ohero__actions {
  display: flex; justify-content: center; flex-wrap: wrap;
  align-items: center; gap: 1rem 1.6rem;
  margin-top: clamp(1.7rem, 3vw, 2.3rem);
}
.ohero .link { color: inherit; border-bottom-color: currentColor; opacity: .92; }
.ohero .link:hover { opacity: 1; }
@media (max-width: 860px) {
  .ohero__scroller { height: 260vh; }
  .ohero__media { transform: scale(var(--ohs, .84)); }
}
@media (prefers-reduced-motion: reduce) {
  .ohero__scroller { height: auto; }
  .ohero__sticky { position: static; height: 100svh; }
  .ohero__media { opacity: 1; transform: none; border-radius: 0; }
  .ohero__content { color: var(--cream); }
}

/* =========================================================
   HOME — SOBRE MARTA
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about__body .eyebrow { margin-bottom: 1.6rem; }
.about__body h2 { max-width: 18ch; margin-bottom: clamp(1.2rem, 2vw, 1.7rem); }
.about__body p { max-width: 48ch; }
.about__body p + p { margin-top: 1rem; }
.about__body .link { margin-top: 2rem; }
.about__photo { overflow: hidden; border-radius: var(--radius-img); }
.about__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 12%; filter: grayscale(1) contrast(1.04); }

/* Lista reglada — credenciales */
.rlist { margin-top: 2.2rem; max-width: 48ch; }
.rlist li {
  border-top: 1px solid var(--line);
  padding-block: .95rem;
  font-size: .86rem;
  line-height: 1.55;
  color: var(--muted);
}
.rlist li:last-child { border-bottom: 1px solid var(--line); }
.rlist strong { color: var(--ink); font-weight: 600; }

/* =========================================================
   HOME — ÍNDICE DE ÁREAS (editorial, sin tarjetas)
   ========================================================= */
.sechead { margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.sechead .eyebrow { margin-bottom: 1.5rem; }
.sechead h2 { max-width: 24ch; }

.svcx { border-top: 1px solid var(--line-2); }
.svcx__row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, .8fr) minmax(0, 1.2fr) 3rem;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding-block: clamp(1.5rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line);
  transition: background var(--t);
}
.svcx__num {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--faint);
}
.svcx__row h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); transition: color var(--t); }
.svcx__row p { font-size: .92rem; line-height: 1.55; max-width: 48ch; }
.svcx__arrow {
  justify-self: end;
  font-size: 1.1rem;
  color: var(--faint);
  transition: transform .4s var(--ease), color .4s var(--ease);
}
.svcx__row:hover h3 { color: var(--accent-d); }
.svcx__row:hover .svcx__arrow { transform: translateX(6px); color: var(--ink); }
.svcx + .link, .svcx-foot { margin-top: 2.4rem; }

/* =========================================================
   HOME — SIMULADOR (banda oscura)
   ========================================================= */
.simband__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.simband__grid .eyebrow { margin-bottom: 1.6rem; }
.simband__grid h2 { max-width: 20ch; margin-bottom: 1.3rem; }
.simband__grid p { max-width: 42ch; }
.simband__grid p + p { margin-top: .8rem; }
.simband__grid .btn { margin-top: 1.9rem; }

/* Mini-simulador — figura reglada, sin tarjeta */
.simcard { border-top: 1px solid rgba(243,243,241,.25); padding-top: 1.6rem; }
.simcard__label {
  font-size: .64rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--on-dark-mut);
}
.simcard__total { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--cream); margin: .9rem 0 1.3rem; line-height: 1; }
.simcard__bar { display: flex; height: 5px; overflow: hidden; margin-bottom: 1.4rem; background: rgba(243,243,241,.12); }
.simcard__bar span { display: block; height: 100%; width: 33.33%; }
.simcard__bar .s1 { background: var(--cream); }
.simcard__bar .s2 { background: var(--accent-soft); }
.simcard__bar .s3 { background: var(--on-dark-mut); }
.simcard__legend { display: grid; }
.simcard__legend li {
  display: flex; align-items: center; gap: .7rem;
  font-size: .86rem; color: var(--on-dark-mut);
  padding-block: .7rem;
  border-bottom: 1px solid rgba(243,243,241,.12);
}
.simcard__legend li:last-child { border-bottom: 0; }
.simcard__legend b { margin-left: auto; font-family: var(--serif); font-weight: 400; font-size: 1.05rem; color: var(--on-dark); }
.simcard__legend i { width: 8px; height: 8px; flex: none; }
.simcard__legend .d1 { background: var(--cream); }
.simcard__legend .d2 { background: var(--accent-soft); }
.simcard__legend .d3 { background: var(--on-dark-mut); }

/* =========================================================
   FOTO / SPLIT (páginas interiores)
   ========================================================= */
.photo { position: relative; overflow: hidden; background: var(--panel); border-radius: var(--radius-img); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__note {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  color: var(--faint);
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; text-align: center;
  padding: 1rem;
}
.photo__note svg { width: 30px; height: 30px; opacity: .5; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}
.split--wideL { grid-template-columns: 1.1fr .9fr; }
.split__media { position: relative; }
.split__media .photo { aspect-ratio: 4/5; }
.split__body .eyebrow { margin-bottom: 1.4rem; }
.split__body h2 { margin-bottom: 1.4rem; }
.split__body p + p { margin-top: 1.1rem; }
.split__body .btn, .split__body .link { margin-top: 2.2rem; }

/* Tarjeta sobre foto (ICAV, quiénes somos) — plana, hairline */
.floatcard {
  position: absolute;
  right: -1.4rem; bottom: -1.4rem;
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 1.3rem 1.5rem;
  max-width: 250px;
}
.floatcard__k { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); line-height: 1; }
.floatcard__v { font-size: .78rem; color: var(--muted); margin-top: .45rem; line-height: 1.5; }

/* =========================================================
   SERVICIOS (página) — filas editoriales
   ========================================================= */
.svc-list { border-top: 1px solid var(--line-2); }
.svc-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 1.3fr;
  gap: clamp(1rem, 3vw, 3.5rem);
  padding-block: clamp(2.2rem, 4.5vw, 3.6rem);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.svc-row__num { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .18em; color: var(--faint); padding-top: .6rem; }
.svc-row h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.svc-row__ico { display: none; }
.svc-row p { line-height: 1.7; font-size: .95rem; }
.svc-row p + p { margin-top: .8rem; }

/* =========================================================
   VALORES / FEATURES — reglados
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 3.5vw, 3.5rem);
}
.feature { border-top: 1px solid rgba(243,243,241,.2); padding-top: 1.6rem; }
.section:not(.dark) .feature { border-top-color: var(--line-2); }
.feature__ico { display: none; }
.feature h3 { font-size: 1.45rem; margin-bottom: .8rem; }
.feature p { font-size: .92rem; line-height: 1.65; }

/* =========================================================
   SECCIÓN OSCURA / CTA
   ========================================================= */
.dark { background: var(--dark); color: var(--on-dark); }
.dark h1,.dark h2,.dark h3 { color: var(--cream); }
.dark p { color: var(--on-dark-mut); }
.dark .eyebrow { color: var(--on-dark-mut); }
.dark .eyebrow::before,.dark .eyebrow.center::after { background: rgba(243,243,241,.3); }
.dark .link { color: var(--on-dark); border-bottom-color: rgba(243,243,241,.3); }
.dark .link:hover { color: var(--cream); border-bottom-color: var(--cream); }

.cta-band { position: relative; overflow: hidden; background: var(--wine); }
/* Sobre granate, el texto SIEMPRE en crema (gana a estilos heredados) */
.cta-band h1, .cta-band h2, .cta-band h3 { color: var(--cream) !important; }
.cta-band p { color: rgba(243,243,241,.78) !important; }
.cta-band .link { color: var(--cream); border-bottom-color: rgba(243,243,241,.45); }
.cta-band .link:hover { color: var(--cream); border-bottom-color: var(--cream); }
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cta-band .actions { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.cta-band .actions--right { align-items: flex-end; }
@media (max-width: 820px){ .cta-band .actions--right { align-items: flex-start; } }
.watermark { display: none; }

/* =========================================================
   PROCESO
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.8rem,3.5vw,3.5rem); }
.step { position: relative; padding-top: 1.6rem; border-top: 1px solid var(--line-2); }
.step__n {
  display: block;
  font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .2em;
  color: var(--faint);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.45rem; margin-bottom: .7rem; }
.step p { font-size: .92rem; line-height: 1.65; }

/* =========================================================
   FAQ — acordeón hairline
   ========================================================= */
.faq { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.7rem;
  background: none; border: none; text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 400;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.faq__q:hover { color: var(--accent-d); }
.faq__icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq__icon::before,.faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 1px; background: var(--ink);
  transform: translate(-50%,-50%);
  transition: transform var(--t);
}
.faq__icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq__item.open .faq__icon::after { transform: translate(-50%,-50%) rotate(0); }
.faq__a { overflow: hidden; height: 0; transition: height var(--t); }
.faq__a-inner { padding-bottom: 1.8rem; max-width: 66ch; }
.faq__a-inner p { line-height: 1.7; font-size: .95rem; }

/* =========================================================
   PUBLICACIONES
   ========================================================= */
.pub { border-top: 1px solid var(--line-2); }
.pub__item {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 1.9rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.pub__date { font-family: var(--serif); font-size: 1.05rem; color: var(--faint); }
.pub__title { font-family: var(--serif); font-size: clamp(1.25rem,2vw,1.6rem); color: var(--ink); line-height: 1.15; }
.pub__type {
  font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.pub__meta { font-size: .86rem; color: var(--muted); margin-top: .45rem; }
.pub__authors { color: var(--ink); font-weight: 500; }

/* =========================================================
   CONTACTO — formulario editorial (líneas, no cajas)
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.form { display: grid; gap: 1.8rem; }
.field { position: relative; }
.field label {
  display: block;
  font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .5rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  padding: .55rem 0 .7rem;
  transition: border-color .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); opacity: .7; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field--file input { padding: .55rem 0; font-size: .88rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.check {
  display: flex; gap: .8rem; align-items: flex-start;
  font-size: .82rem; color: var(--muted); line-height: 1.6;
}
.check input { margin-top: .3rem; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form .btn { justify-self: start; margin-top: .4rem; }

.info__block + .info__block { margin-top: 1.9rem; padding-top: 1.9rem; border-top: 1px solid var(--line); }
.info__label {
  display: flex; align-items: center; gap: .6rem;
  font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .7rem;
}
.info__label svg { width: 15px; height: 15px; }
.info__block p, .info__block a { color: var(--ink); font-size: .98rem; }
.info__block a { transition: color .3s var(--ease); }
.info__block a:hover { color: var(--accent-d); }
.map {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.95); }

/* Cabecera de página interior */
.pagehead { padding-top: clamp(8rem, 15vh, 11rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
/* Variante GRANATE — para páginas señaladas (servicios, simulador) */
.pagehead--wine { background: var(--wine); }
.pagehead--wine h1 { color: var(--cream); }
.pagehead--wine .lead { color: rgba(243,243,241,.8); }
.pagehead--wine .crumbs { color: rgba(243,243,241,.5); }
.pagehead--wine .crumbs a:hover { color: var(--cream); }
/* Header flotante en claro mientras está sobre la banda granate (sin scroll) */
body.wine-head:not(.nav-open) .header:not(.scrolled) .brand,
body.wine-head:not(.nav-open) .header:not(.scrolled) .nav__links a { color: var(--cream); }
body.wine-head:not(.nav-open) .header:not(.scrolled) .nav__links a::after { background: var(--cream); }
body.wine-head:not(.nav-open) .header:not(.scrolled) .nav__links a:not([aria-current="page"]) { color: rgba(243,243,241,.75); }
body.wine-head:not(.nav-open) .header:not(.scrolled) .nav__links a:hover { color: var(--cream); }
body.wine-head:not(.nav-open) .header:not(.scrolled) .burger span { background: var(--cream); }
body.wine-head:not(.nav-open) .header:not(.scrolled) .langtoggle { border-color: rgba(243,243,241,.4); }
body.wine-head:not(.nav-open) .header:not(.scrolled) .langtoggle button { color: rgba(243,243,241,.7); }
body.wine-head:not(.nav-open) .header:not(.scrolled) .langtoggle button:hover { color: var(--cream); }
body.wine-head:not(.nav-open) .header:not(.scrolled) .langtoggle button.is-active { background: var(--cream); color: var(--wine); }
body.wine-head:not(.nav-open) .header:not(.scrolled) .nav__cta .btn { --bg: transparent; --fg: var(--cream); border-color: rgba(243,243,241,.5); }
body.wine-head:not(.nav-open) .header:not(.scrolled) .nav__cta .btn:hover { border-color: var(--cream); }
.pagehead .eyebrow { margin-bottom: 1.8rem; }
.pagehead h1 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; max-width: 24ch; }
.pagehead p { margin-top: 1.4rem; max-width: 56ch; }
/* Migas de pan eliminadas del diseño: no aportaban nada */
.crumbs { display: none; }

/* =========================================================
   FOOTER — carbón, reglado
   ========================================================= */
.footer { background: var(--dark); color: var(--on-dark-mut); padding-top: clamp(2.4rem,4vw,3.4rem); }
.footer__main {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 2rem clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(1.8rem, 3vw, 2.6rem);
  border-bottom: 1px solid rgba(243,243,241,.12);
}
.footer .brand { color: var(--cream); }
.footer .brand__tag { color: var(--on-dark-mut); }
.footer__id { max-width: 40ch; }
.footer__about { font-size: .9rem; color: var(--on-dark-mut); line-height: 1.6; margin-top: .9rem; }
.footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: .7rem 2.6rem; align-content: start; }
.footer__nav a { font-size: .9rem; color: var(--on-dark-mut); transition: color .3s var(--ease); }
.footer__nav a:hover { color: var(--cream); }
.footer__meta { display: grid; gap: .7rem; justify-items: start; align-content: start; }
.footer__meta a, .footer__meta span { font-size: .9rem; color: var(--on-dark-mut); transition: color .3s var(--ease); }
.footer__meta a:hover { color: var(--cream); }
.footer__meta a[href^="tel"], .footer__meta a[href^="mailto"] { color: var(--on-dark); }
.footer__meta a[href^="tel"]:hover, .footer__meta a[href^="mailto"]:hover { color: var(--cream); }
.footer__meta .footer__in { display: inline-flex; align-items: baseline; gap: .35rem; font-size: .9rem; color: var(--on-dark); transition: color .3s var(--ease); }
.footer__meta .footer__in:hover { color: var(--cream); }
.footer__meta .footer__in__arrow { font-size: .82em; color: var(--gold); transition: transform .4s var(--ease); }
.footer__meta .footer__in:hover .footer__in__arrow { transform: translate(2px, -2px); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center;
  padding-block: 1.4rem;
  font-size: .78rem; color: var(--on-dark-mut);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer__legal a:hover { color: var(--cream); }

/* =========================================================
   FOTOS DE AMBIENTE — planas, sin sombra
   ========================================================= */
.figbw { overflow: hidden; margin-top: 2.4rem; border-radius: var(--radius-img); }
.figbw img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.04); }
.bandbw { overflow: hidden; border-radius: var(--radius-img); }
.bandbw img { display: block; width: 100%; height: auto; aspect-ratio: 21/8; object-fit: cover; object-position: 50% 28%; filter: grayscale(1) contrast(1.04); }

/* =========================================================
   ANIMACIÓN DE ENTRADA — sutil
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .svcx__row { grid-template-columns: 3rem minmax(0,1fr) 2rem; }
  .svcx__row p { grid-column: 2; }
}

@media (max-width: 980px) {
  .features, .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .proof { grid-template-columns: 1fr 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__photo { max-width: 340px; }
  .simband__grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  /* En vertical el recorte de cover deja la cara fuera con 60%: anclar a la derecha de la foto */
  .ohero__media img { object-position: 80% 36%; }
  .edhero__inner { justify-content: flex-end; padding-top: clamp(6.5rem, 14vh, 9rem); padding-bottom: 1.4rem; }
  .edhero__bg img { object-position: 64% 20%; }
  .edhero__scrim { background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.18) 26%, rgba(10,10,10,.55) 58%, rgba(10,10,10,.95) 100%); }
  .edhero__foot { grid-template-columns: 1fr; align-items: start; }
  .edhero__actions { justify-content: flex-start; }
  .proof { grid-template-columns: 1fr 1fr; gap: 1.3rem 1.2rem; }
  .split, .split--wideL { grid-template-columns: 1fr; gap: 2.5rem; }
  .split__media { order: -1; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: .8rem; }
  .pub__item { grid-template-columns: 1fr; gap: .5rem; }
  .pub__type { justify-self: start; }
  .floatcard { position: static; margin-top: 1rem; max-width: none; }
  .bandbw img { aspect-ratio: 16/9; }
}

/* Nav móvil — panel marfil, tipográfico.
   Se activa ya por debajo de 1100px: con 6 enlaces + toggle + CTA el nav
   de escritorio no cabe en tablets ni ventanas medias (quedaba cortado). */
@media (max-width: 1099px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 400px);
    background: var(--bg);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2.6rem;
    padding: 5rem clamp(1.8rem,7vw,3rem) 3rem;
    transform: translateX(100%);
    transition: transform .55s var(--ease);
    z-index: 105;
    overflow-y: auto;
  }
  .nav__links { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .nav__links a {
    color: var(--ink);
    font-size: 1.9rem;
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
  }
  .nav__links a::after { background: var(--accent); }
  .langtoggle { align-self: flex-start; }
  .langtoggle button { font-size: .8rem; padding: .45rem .95rem; }
  .nav__cta { width: 100%; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  body.nav-open .nav { transform: translateX(0); box-shadow: -40px 0 90px rgba(0,0,0,.18); }
  body.nav-open { overflow: hidden; }
  /* El header (z 100) crea contexto de apilamiento: sin esto el velo (z 104)
     tapa el panel del menú (z 105, hijo del header) y bloquea los toques. */
  body.nav-open .header { z-index: 106; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(15,15,15,.35);
    opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); z-index: 104;
  }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
}

@media (max-width: 560px) {
  .footer__main { flex-direction: column; gap: 2rem; }
  .proof { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .brand__name { font-size: 1.3rem; }
  .svcx__row h3 { font-size: 1.35rem; }
}

/* =========================================================
   FOCO ACCESIBLE (navegación por teclado)
   Anillo visible y de marca solo con :focus-visible (no
   aparece al hacer clic con ratón). Los campos de formulario
   conservan su foco por subrayado (diseño editorial).
   ========================================================= */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
/* Sobre fondos oscuros o foto, anillo en crema para contraste */
.dark a:focus-visible,
.dark button:focus-visible,
.footer a:focus-visible,
.footer button:focus-visible,
.edhero a:focus-visible,
.edhero button:focus-visible,
.btn--light:focus-visible,
body.home .header:not(.scrolled) a:focus-visible,
body.home .header:not(.scrolled) button:focus-visible {
  outline-color: var(--cream);
}
/* El barrido de relleno del botón (overflow:hidden) no recorta el
   outline; separamos un poco más para que respire sobre el sólido. */
.btn:focus-visible { outline-offset: 4px; }
