/* ============================================================
   BDI — bdihn.com · v3 «The printed annual»
   Dirección de arte: taste · Motion: Emil · Revisión: Impeccable
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  /* Paleta v2 — elegante y formal */
  --bg: #FFFFFF;
  --surface: #F2F5F8;
  --ink: #1A1A1A;
  --muted: #404040;
  --accent: #C8A96A;
  --accent-ink: #081E2B;
  --field-1: #0E2A3A;
  --field-1-ink: #FFFFFF;
  --field-2: #0E2A3A;
  --field-2-ink: #FFFFFF;
  --error: #e5484d;
  --rojo-mapa: #D42B2B;
  /* Tokens v2 (antes scopeados en .insight y .pie) */
  --n950: #1A1A1A;
  --n800: #303030;
  --n700: #404040;
  --n500: #909090;
  --white: #FFFFFF;
  --tinte: #F2F5F8;
  --azul: #0E2A3A;
  --azul-deep: #081E2B;
  --azul-rgb: 14, 42, 58;
  --dorado: #C8A96A;
  --dorado-deep: #A9884E;
  --sombra-m: 0 2px 6px rgba(var(--azul-rgb), .07), 0 14px 34px -10px rgba(var(--azul-rgb), .18);
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radio: 14px;
  --radio-s: 10px;
  --radio-pill: 999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --line-fuerte: color-mix(in srgb, var(--ink) 30%, transparent);
  --max: 74rem;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  /* Bandas a todo el ancho (patrón v2): su contenido se alinea con la columna de .seccion */
  --pad-banda: clamp(1.25rem, 4vw, 3rem);
  --gutter: max(var(--pad-banda), calc((100% - var(--max)) / 2 + var(--pad-banda)));
}

html { scroll-behavior: smooth; }

body {
  min-height: 100svh;
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radio-s);
}

.mono {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.foto { border-radius: var(--radio); }

/* ------------------------------------------------------------
   Botones
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radio-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.5s var(--ease-out),
    background-color 0.5s var(--ease-out),
    color 0.5s var(--ease-out),
    border-color 0.5s var(--ease-out);
}

.btn--primario { background: var(--accent); color: var(--accent-ink); }
.btn--secundario {
  background: transparent;
  border-color: var(--line-fuerte);
  color: inherit;
}

@media (hover: hover) and (pointer: fine) {
  .btn--primario:hover { transform: translateY(-2px); background: var(--ink); color: var(--bg); }
  .btn--secundario:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.8rem var(--pad);
  /* Header oscuro fijo (estilo v3), independiente del tema claro del resto. */
  --bg: #0d060b;
  --ink: #fff;
  --muted: #9a8f97;
  --line: rgba(255, 255, 255, 0.14);
  --line-fuerte: rgba(255, 255, 255, 0.3);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.marca {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  line-height: 1;
}

.marca__gema { width: 2.1rem; height: 2.1rem; }
.marca__texto { display: flex; flex-direction: column; gap: 0.15rem; }
.marca__nombre { font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em; }
.marca__tag {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Marca legible sobre el header oscuro (mismo tratamiento que el footer). */
.top .marca__gema { filter: invert(1) brightness(0.9); }
.top .marca__nombre { color: #fff; }
.top .marca__tag { color: var(--accent); }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.4s var(--ease-out);
}

.nav__cta {
  border: 1px solid var(--line-fuerte);
  border-radius: var(--radio-pill);
  padding: 0.45rem 1.1rem;
  color: var(--ink) !important;
  transition: border-color 0.4s var(--ease-out), color 0.4s var(--ease-out) !important;
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--accent); }
  .nav__cta:hover { border-color: var(--accent); }
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radio-pill);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  transition: border-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .lang:hover { border-color: var(--accent); color: var(--accent); }
}

@media (max-width: 880px) {
  /* En móvil se conservan CTA + idioma; los enlaces de sección quedan a scroll */
  .nav { gap: 0.55rem; }
  .nav a:not(.nav__cta) { display: none; }
  .nav__cta { padding: 0.4rem 0.9rem; }
}

/* ------------------------------------------------------------
   Hero — crossfade a sangre
   ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  gap: 2.5rem;
  padding: clamp(3rem, 8vh, 6rem) var(--pad) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
  color: #ffffff;
}

.hero__media { position: absolute; inset: 0; overflow: hidden; }

.hero__foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s var(--ease-out);
}

.hero__foto.is-activa { opacity: 1; }

.hero__scrim { position: absolute; inset: 0; background: rgba(8, 30, 43, 0.55); }

.hero__texto, .hero__lado { position: relative; z-index: 2; }

.hero__texto { max-width: 54rem; }

.eyebrow {
  color: var(--dorado);
  margin-bottom: 1.1rem;
}

.hero-h1 {
  font-size: clamp(2.25rem, 6vw, 5.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero .btn--secundario { color: #ffffff; border-color: rgba(255, 255, 255, 0.5); }

.hero__lado { display: grid; gap: 2rem; align-content: end; }

.hero__gema { display: none; }

.hero__gema .gema {
  width: 100%;
  max-width: 21rem;
  color: #ffffff;
  overflow: visible;
}

.hero__gema .faceta {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: gema-trazo 2.4s var(--ease-out) 0.3s forwards;
}

.hero__gema .cristal {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1;
}

.hero__gema line {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.85;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: gema-trazo 1.8s var(--ease-out) forwards;
}

.hero__gema line:nth-of-type(2) { animation-delay: 0.15s; }
.hero__gema line:nth-of-type(3) { animation-delay: 0.3s; }
.hero__gema line:nth-of-type(4) { animation-delay: 0.45s; }
.hero__gema line:nth-of-type(5) { animation-delay: 0.6s; }
.hero__gema line:nth-of-type(6) { animation-delay: 0.75s; }
.hero__gema line:nth-of-type(7) { animation-delay: 0.9s; }
.hero__gema line:nth-of-type(8) { animation-delay: 1.05s; }
.hero__gema line:nth-of-type(9) { animation-delay: 1.2s; }
.hero__gema line:nth-of-type(10) { animation-delay: 1.35s; }

@keyframes gema-trazo { to { stroke-dashoffset: 0; } }

.hero__lineas {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.hero__linea {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.hero__linea .mono { color: var(--dorado); grid-row: span 2; padding-top: 0.2rem; }
.hero__linea h2 { font-size: 1.05rem; letter-spacing: -0.01em; }
.hero__linea p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }

@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: end; }
  .hero__gema { display: block; justify-self: end; }
  .hero__lineas { max-width: 26rem; justify-self: end; width: 100%; }
}

/* ------------------------------------------------------------
   Secciones
   ------------------------------------------------------------ */

.seccion {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(4rem, 10vw, 7.5rem) var(--pad);
}

.seccion--gris {
  background: var(--surface);
  max-width: none;
  padding-inline: var(--gutter);
}

.seccion--azul {
  background: linear-gradient(180deg, var(--azul-deep), var(--azul));
  color: var(--field-2-ink);
  max-width: none;
  padding-inline: var(--gutter);
}

.seccion--clara {
  background: var(--white);
  color: var(--ink);
  max-width: none;
  padding-inline: var(--gutter);
}

.seccion--clara .seccion__kicker { color: var(--accent); }

.seccion--clara .seccion__intro { color: var(--muted); }

.seccion__cab { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }

.seccion__kicker {
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.seccion__cab h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.seccion__intro { color: var(--muted); margin-top: 1rem; max-width: 38rem; }
.seccion--azul .seccion__intro { color: color-mix(in srgb, var(--field-2-ink) 70%, transparent); }
.seccion__nota { margin-top: 2rem; color: var(--muted); font-size: 0.9rem; max-width: 68ch; }

/* ------------------------------------------------------------
   Líneas de negocio — índice editorial
   ------------------------------------------------------------ */

.lineas { border-top: 1px solid var(--line); }

.linea {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.5rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.linea__num { color: var(--accent); grid-row: span 2; padding-top: 0.35rem; }
.linea h3 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); margin-bottom: 0.35rem; transition: color 0.4s var(--ease-out); }
.linea p { color: var(--muted); max-width: 42rem; }

@media (hover: hover) and (pointer: fine) {
  .linea:hover h3 { color: var(--accent); }
  .linea:hover .linea__num { text-decoration: underline; text-underline-offset: 4px; }
}

/* ------------------------------------------------------------
   Banda fotográfica
   ------------------------------------------------------------ */

.banda { margin: 0; }

.banda__img {
  width: 100%;
  height: clamp(18rem, 58vh, 38rem);
  object-fit: cover;
  border-radius: 0;
}

.banda--baja .banda__img { height: auto; aspect-ratio: 1620 / 460; }

/* ------------------------------------------------------------
   Capacidades — registro editorial + foto sticky
   ------------------------------------------------------------ */

.caps__registro { display: grid; gap: 2.5rem; }

.caps { border-top: 1px solid var(--line-fuerte); }

.cap-fila {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 2fr;
  gap: 0.4rem 1.5rem;
  padding: 1.05rem 0;
  min-height: 5.5rem;
  border-bottom: 1px solid var(--line);
}

.cap-fila dt span { color: var(--muted); }
.cap-fila dd span { font-weight: 500; }

.caps__foto { margin: 0; }

.caps__foto .foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 900px) {
  .caps__registro { grid-template-columns: 1.35fr 1fr; align-items: start; gap: 3.5rem; }
  .caps__foto { position: sticky; top: 5.5rem; }
}

@media (hover: hover) and (pointer: fine) {
  .cap-fila { transition: background-color 0.4s var(--ease-out); }
  .cap-fila:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
  .cap-fila:hover dt span { color: var(--accent); }
}

/* ------------------------------------------------------------
   Cómo trabajamos
   ------------------------------------------------------------ */

.pasos {
  display: grid;
  gap: 2rem;
  counter-reset: paso;
}

.paso { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.paso .step { color: var(--accent); display: block; margin-bottom: 0.7rem; font-size: 1rem; }
.paso h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.paso p { color: var(--muted); font-size: 1rem; }

@media (min-width: 800px) {
  .pasos { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
}

/* ------------------------------------------------------------
   Valuador — panel sticky field-1
   ------------------------------------------------------------ */

.valuador { display: grid; }

.valuador__panel {
  background: var(--field-1);
  color: var(--field-1-ink);
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad);
  display: grid;
  align-content: center;
  gap: 1rem;
}

.valuador__panel > * { max-width: 46rem; margin-inline: auto; width: 100%; }

.valuador__panel .seccion__kicker { color: var(--field-1-ink); }
.valuador__panel h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.04em; }
.valuador__panel .seccion__intro { color: color-mix(in srgb, var(--field-1-ink) 78%, transparent); }

.valuador__cuerpo {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
  display: grid;
}

.valuador__cuerpo > * { max-width: 46rem; margin-inline: auto; width: 100%; }

.valuador__form { display: grid; gap: 1.35rem; }

.valuador__form label,
.contacto__form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 1rem;
}

.valuador__form input,
.valuador__form select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-fuerte);
  border-radius: var(--radio);
  color: var(--ink);
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 500;
  transition: border-color 0.4s var(--ease-out);
}

.valuador__form input:focus,
.valuador__form select:focus {
  outline: none;
  border-color: var(--accent);
}

.valuador__form select option { color: var(--ink); }

.valuador__resultado {
  margin-top: 2.2rem;
  border: 1px solid var(--line-fuerte);
  border-radius: var(--radio);
  padding: 1.6rem;
  display: grid;
  gap: 0.4rem;
}

.valuador__etiqueta { color: var(--muted); }

.valuador__rango {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.valuador__nota { font-size: 0.9rem; color: var(--muted); }

.valuador__nota--formula { color: var(--ink); }
.valuador__nota--explica { margin-top: 0.6rem; }

/* ---- Artículos internos (Insights) ---- */
.articulo__hero {
  max-width: 52rem;
  margin: 0 auto;
  padding: calc(var(--pad) * 1.5) var(--pad) var(--pad);
}

.articulo__hero .eyebrow { display: block; margin-bottom: 1rem; }

.articulo__volver { margin: 0 0 1.25rem; }
.articulo__volver a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.articulo__volver a:hover { color: var(--accent); }

.articulo__hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.articulo__meta { color: var(--muted); font-size: 0.95rem; margin: 0; }

.prosa {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 var(--pad) 3rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.prosa h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  font-weight: 600;
  margin: 2.5rem 0 1rem;
}

.prosa p { margin: 0 0 1.1rem; }

.prosa ul {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.prosa li { margin-bottom: 0.5rem; }

.prosa .dato {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: var(--radio-s);
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.prosa .dato p { margin: 0 0 0.4rem; }
.prosa .dato p:last-child { margin-bottom: 0; }

.articulo__cta {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 var(--pad) 3.5rem;
}

@media (min-width: 900px) {
  .valuador__panel { padding-block: clamp(3rem, 6vw, 4.5rem); }
}

/* ------------------------------------------------------------
   ADN
   ------------------------------------------------------------ */

.adn__intro { max-width: 60rem; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.adn__intro-titulo {
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-bottom: 0.8rem;
}
.adn__intro p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.adn__msv {
  display: grid;
  gap: 2rem;
  max-width: 60rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}

.adn__declaracion {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radio);
  box-shadow: var(--sombra-m);
  padding: clamp(1.2rem, 3vw, 2rem);
  margin: 0;
  overflow: hidden;
}
.adn__foto { margin: 0; }
.adn__foto img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: calc(var(--radio) * 0.6);
}
.adn__label { color: var(--accent); margin-bottom: 0.6rem; }
.adn__texto {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink);
}

.valores__cab { max-width: 60rem; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.valores__cab p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

@media (min-width: 800px) {
  .adn__msv { gap: 2.5rem; }
  .adn__declaracion { grid-template-columns: 220px 1fr; }
  .adn__foto { height: 100%; }
  .adn__foto img { height: 100%; aspect-ratio: auto; }
}

.valores { display: grid; gap: 2rem; }

.valor { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.valor h3 { font-size: 1.2rem; margin-bottom: 0.4rem; color: var(--dorado); }
.valor p { color: var(--muted); font-size: 1rem; }

@media (min-width: 800px) {
  .valores { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
}

/* ------------------------------------------------------------
   Dinámica
   ------------------------------------------------------------ */

.dinamica { display: grid; gap: 2rem; }

.dinamica__item { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.dinamica__num { color: var(--accent); display: block; margin-bottom: 0.7rem; }
.dinamica__item h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.dinamica__item p { color: var(--muted); font-size: 1rem; }

@media (min-width: 800px) {
  .dinamica { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
}

/* ------------------------------------------------------------
   Equipo
   ------------------------------------------------------------ */

.equipo { display: grid; gap: 2.5rem; }

.miembro { display: flex; flex-direction: column; height: 100%; }
.miembro__foto { margin: 0; }
.miembro__foto .foto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.miembro__datos { display: flex; flex-direction: column; flex: 1; padding-top: 1rem; }
.miembro__datos h3 { font-size: 1.3rem; }
.miembro__rol { color: var(--accent); margin: 0.25rem 0 0.6rem; }
.miembro__bio { color: var(--muted); font-size: 1rem; flex: 1; }
.miembro__linkedin {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.miembro__linkedin:hover { text-decoration: underline; }

@media (min-width: 800px) {
  .equipo { grid-template-columns: repeat(3, 1fr); gap: 3rem; align-items: stretch; }
}

/* ------------------------------------------------------------
   Clientes — marquee
   ------------------------------------------------------------ */

.clientes {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.clientes__kicker {
  text-align: center;
  color: var(--muted);
  margin-bottom: 1.8rem;
  padding-inline: var(--pad);
}

.clientes__lista {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  width: max-content;
  animation: bdi-marquee 30s linear infinite;
}

.clientes__lista li { flex: 0 0 auto; display: grid; place-items: center; }
.clientes__lista img { max-height: 3.2rem; width: auto; opacity: 0.85; }

@media (hover: hover) and (pointer: fine) {
  .clientes:hover .clientes__lista,
  .clientes:focus-within .clientes__lista { animation-play-state: paused; }
}

@keyframes bdi-marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------
   Insights — tarjetas estilo v2 (media 16/9 con imagen real)
   ------------------------------------------------------------ */

.insights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  grid-auto-rows: 1fr;
}

.insights > li {
  display: grid;
}

.insight {
  display: grid;
  height: 100%;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radio);
  box-shadow: var(--sombra-m);
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}

.insight__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--azul), var(--azul-deep));
}

.insight__media .foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.insight__cuerpo {
  padding: 1.4rem 1.5rem 1.6rem;
  display: grid;
  gap: .5rem;
  align-content: start;
}

.insight__tag {
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dorado-deep);
}

.insight__cuerpo h3 { font-size: 1.28rem; }
.insight__cuerpo p { color: var(--n700); font-size: .95rem; }

.insight__flecha {
  margin-top: auto;
  padding-top: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--azul);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: transform .3s ease;
}

.insight__flecha::after { content: "→"; }

@media (hover: hover) and (pointer: fine) {
  .insight:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 6px rgba(var(--azul-rgb), .09), 0 22px 44px -12px rgba(var(--azul-rgb), .25);
  }
  .insight:hover .insight__media .foto { transform: scale(1.04); }
  .insight:hover .insight__flecha { transform: translateX(4px); }
}

/* ------------------------------------------------------------
   Contacto
   ------------------------------------------------------------ */

.contacto { display: grid; gap: 3rem; }

.contacto__lado { display: grid; gap: 2.2rem; align-content: start; }
.contacto__datos address { font-style: normal; display: grid; gap: 0.5rem; font-size: 1.05rem; }
.contacto__datos address a { text-decoration: none; }
.contacto__datos address a:hover { color: var(--accent); }
.contacto__c { color: var(--muted); font-size: 0.9rem; }

.contacto__mapa {
  height: clamp(18rem, 30vw, 24rem);
  border-radius: var(--radio);
  border: 1px solid rgba(26, 26, 26, 0.15);
  overflow: hidden;
  background: #e5e3df;
}

/* El mapa es un bloque neutro claro dentro de la isla clara (tiles OSM) */
.leaflet-container { background: #e5e3df; font: inherit; }

/* Pin del mapa: silueta del icono location-dot de Font Awesome (SVG inline,
   sin cargar la librería completa), en rojo para resaltar sobre los tiles */
.mapa-pin {
  width: 30px;
  height: 40px;
}

.mapa-pin svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--rojo-mapa);
  stroke: #fff;
  stroke-width: 12;
  paint-order: stroke;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}

.leaflet-popup-content-wrapper {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radio-s, 10px);
  box-shadow: 0 10px 30px rgba(8, 30, 43, 0.25);
}

.leaflet-popup-tip { background: #fff; }

.leaflet-popup-content { margin: 0.9rem 1.1rem; line-height: 1.45; }

.leaflet-popup-content a { color: var(--accent); font-weight: 600; }

/* Formulario claro sobre la isla (el valuador sigue oscuro) */
.contacto__form label { color: var(--ink); }

.contacto__form input,
.contacto__form select,
.contacto__form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.2);
  border-radius: var(--radio);
  color: var(--ink);
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 500;
  transition: border-color 0.4s var(--ease-out);
}

.contacto__form input:focus,
.contacto__form select:focus,
.contacto__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Botón azul marino, como en v2 */
.seccion--clara .btn--primario {
  background: #0E2A3A;
  color: #fff;
}

.seccion--clara .btn--primario:hover { background: #16405a; }

.contacto__form { display: grid; gap: 1.15rem; }
.contacto__form textarea { min-height: 8.5rem; resize: vertical; }

/* Campos obligatorios: asterisco discreto dorado tras la etiqueta. */
.contacto__form label:has(:required) > span::after {
  content: " *";
  color: var(--accent);
  font-weight: 600;
}

.hp { display: none; }

.conta__nota { font-size: 0.9rem; min-height: 1.4em; color: var(--muted); }
.conta__nota.ok { color: var(--accent); }
.conta__nota.err { color: var(--error); }

@media (min-width: 900px) {
  .contacto { grid-template-columns: 1fr 1.1fr; align-items: start; gap: 3.5rem; }
  .contacto__mapa { position: sticky; top: 5.5rem; }
}

/* ------------------------------------------------------------
   Footer (CSS de v2, verbatim; variables scopeadas en .pie)
   ------------------------------------------------------------ */

.pie {
  --n950: #1A1A1A;
  --n800: #303030;
  --n700: #404040;
  --n500: #909090;
  --azul-deep: #081E2B;
  --dorado: #C8A96A;
  --white: #FFF;
  --f-display: "Source Serif 4", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radio-s: 8px;
  background: linear-gradient(180deg, var(--n950) 0%, var(--azul-deep) 100%);
  color: var(--n500);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3rem var(--gutter);
  max-width: none;
  /* Misma tipografía que v2 (el body de v4 usa otra fuente y otro interlineado) */
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

.pie a { text-decoration: none; color: var(--n500); }
.pie a:hover { color: var(--white); }

.pie__marca { display: flex; align-items: center; gap: 1.15rem; }

.pie__logo { flex: 0 0 auto; line-height: 0; }
.pie__logo img { width: 96px; height: 96px; object-fit: contain; filter: invert(1) brightness(.9); }

.pie__texto { min-width: 0; }

.pie__nombre {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--white);
  font-size: 1.22rem;
}

.pie__tag {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-top: 0.3rem;
}

.pie__legal {
  font-size: 0.85rem;
  line-height: 1.85;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.pie__c {
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--n800);
  line-height: 1.9;
}

.ic { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; }

.sociales { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; gap: 0.55rem; }

.sociales__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--n700);
  border-radius: var(--radio-s);
  color: var(--n500);
}

.sociales__link:hover { border-color: var(--dorado); color: var(--dorado); }

.sociales__link[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.sociales svg { width: 1.05rem; height: 1.05rem; fill: currentColor; display: block; }

@media (max-width: 800px) {
  .pie { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Reveal (JS añade .js a <html>; estado base siempre visible)
   ------------------------------------------------------------ */

.reveal {
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0ms),
    transform 0.9s var(--ease-out) var(--d, 0ms);
}

.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   Movimiento reducido
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { transition: none; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__foto { transition: none; }
  .hero__foto.is-activa { opacity: 1; }
  .hero__gema .faceta, .hero__gema line { stroke-dashoffset: 0; animation: none; }
  .clientes__lista { animation: none; }
  .clientes { overflow-x: auto; }
  .insight__media .foto { transition: none; }
}
