/*
Theme Name: iALO
Theme URI: https://ialo.es
Author: iALO
Description: Tema a medida de iALO — tech-editorial sobrio y cálido. Implementación fiel de ialo-web-v1.1-design-spec. Sin builder, CSS/JS vanilla.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ialo
*/

/* =====================================================================
   FASE A — BASE GLOBAL
   Tokens (02-tokens.md) · Tipografía Fraunces+Inter · Layout editorial
   (06-layout-rules.md) · Estados globales (07-states-and-interactions.md)
   ===================================================================== */

/* ---------- 1. TOKENS (02-tokens.md) ---------- */
:root {
  /* Base — tema claro cálido */
  --bg-sand:      #F6F2EA;
  --bg-sand-2:    #EFE8DD;
  --surface-card: #FFFFFF;

  --text-ink:      #0B0F14;
  --text-graphite: #3B4450;
  --line-ash:      #D7D2C8;

  /* Marca */
  --brand-lilac: #8A6FBD;
  --brand-teal:  #00A99D;

  /* Oscuro (bloques puntuales) */
  --bg-night:   #070A0E;
  --text-paper: #F8FAFC;
  --line-night: rgba(248, 250, 252, .16);

  /* Tipografía */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui:      'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout (contenedor + columna editorial) */
  --container-max:      1240px;
  --container-pad:      96px;
  --container-pad-mob:  24px;
  --measure-max:        60ch;
  --measure-min:        42ch;

  /* Espaciado */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 24px;  --space-6: 32px;  --space-7: 48px;  --space-8: 64px;
  --space-9: 96px;  --space-10: 120px;

  /* Radios / bordes */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --border-1:  1px;

  /* Line-heights */
  --lh-tight: 1.05;
  --lh-title: 1.15;
  --lh-body:  1.65;
  --lh-ui:    1.4;

  /* Sección: fondo por defecto (Warm Sand) y color de texto */
  --section-bg:   var(--bg-sand);
  --section-ink:  var(--text-ink);
}

/* ---------- 2. RESET LIGERO ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-sand);
  color: var(--text-ink);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- 3. TIPOGRAFÍA (02-tokens.md §3) ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
h3, h4 {
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: var(--lh-title);
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }

/* Escala responsive (desktop → mobile por clamp entre los valores del spec) */
.t-h1 { font-size: clamp(40px, 2.2rem + 2.6vw, 64px); line-height: var(--lh-tight); }
.t-h2 { font-size: clamp(30px, 1.9rem + 1.6vw, 40px); line-height: var(--lh-title); }
.t-h3 { font-size: clamp(22px, 1.3rem + .4vw, 24px); line-height: var(--lh-title); font-family: var(--font-ui); font-weight: 600; }
.t-body { font-size: clamp(16px, .95rem + .2vw, 18px); line-height: var(--lh-body); }

/* H1/H2 base heredan la escala si no se marca clase */
h1 { font-size: clamp(40px, 2.2rem + 2.6vw, 64px); }
h2 { font-size: clamp(30px, 1.9rem + 1.6vw, 40px); }
h3 { font-size: clamp(22px, 1.3rem + .4vw, 24px); }

/* Eyebrow / labels — Inter Medium, tracking positivo */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-graphite);
}

/* ---------- 4. LAYOUT EDITORIAL (06-layout-rules.md) ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
@media (max-width: 1024px) { .container { padding-inline: 40px; } }
@media (max-width: 768px)  { .container { padding-inline: var(--container-pad-mob); } }

/* Sección: aire 96–120 desktop / 56–72 mobile, con color heredado del fondo */
.section {
  padding-block: clamp(56px, 4rem + 3vw, 120px);
  background: var(--section-bg);
  color: var(--section-ink);
}
.section--sand   { --section-bg: var(--bg-sand);   --section-ink: var(--text-ink); }
.section--sand-2 { --section-bg: var(--bg-sand-2); --section-ink: var(--text-ink); }

/* Bloque oscuro ENCAPSULADO (solo manifiesto / cierre / strip CTA) */
.section--night {
  --section-bg: var(--bg-night);
  --section-ink: var(--text-paper);
  --line-ash: var(--line-night);
  padding-block: clamp(64px, 5rem + 3vw, 140px); /* +padding en oscuro (06 §8) */
}
.section--night .eyebrow,
.section--night .muted { color: rgba(248, 250, 252, .66); }

/* Columna de lectura: los párrafos nunca a full width (02 §3, 06 §1) */
.measure { max-width: var(--measure-max); }
.measure-min { min-width: min(100%, var(--measure-min)); }
.lead {
  font-size: clamp(18px, 1rem + .35vw, 20px);
  line-height: var(--lh-body);
  color: var(--text-graphite);
  max-width: var(--measure-max);
}
.section--night .lead { color: rgba(248, 250, 252, .82); }
.muted { color: var(--text-graphite); }

/* Encabezado de sección editorial */
.section-head { display: grid; gap: var(--space-4); max-width: 46rem; margin-bottom: var(--space-8); }
.section-head .eyebrow { margin-bottom: var(--space-1); }

/* ---------- 5. ESTADOS GLOBALES (07 §D, 02 §7) ---------- */
:focus-visible {
  outline: 2px solid var(--brand-teal); /* focus ring teal, siempre visible */
  outline-offset: 3px;
  border-radius: 3px;
}

/* Link / Text editorial: subrayado fino; hover → lila (draw) */
.link {
  color: var(--text-ink);
  text-decoration: none;
  background-image: linear-gradient(var(--brand-lilac), var(--brand-lilac));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;   /* subrayado fino por defecto */
  padding-bottom: 2px;
  transition: color .2s ease;
}
.link:hover { color: var(--brand-lilac); }
.section--night .link { color: var(--text-paper); }
.section--night .link:hover { color: #C9B8E6; }

/* Firma editorial "claridad" — subrayado lila recto, geometría constante (03 §9) */
.claridad {
  position: relative;
  white-space: nowrap;
  color: inherit;
}
.claridad::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -.16em;
  height: 2px;
  background: var(--brand-lilac);
  transform: scaleX(1);
  transform-origin: left;
}

/* Estado disabled coherente */
[disabled], .is-disabled { opacity: .58; pointer-events: none; }

/* ---------- 6. UTILIDADES MÍNIMAS ---------- */
.stack-2 > * + * { margin-top: var(--space-2); }
.stack-3 > * + * { margin-top: var(--space-3); }
.stack-4 > * + * { margin-top: var(--space-4); }
.stack-5 > * + * { margin-top: var(--space-5); }
.stack-6 > * + * { margin-top: var(--space-6); }
.tick { color: var(--brand-teal); } /* ticks funcionales en teal */
.ink-lilac { color: var(--brand-lilac); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--space-4); top: var(--space-4); z-index: 999; background: var(--text-ink); color: var(--text-paper); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); }

/* ---------- 6b. BOTONES (mínimo global — se completa en Fase B/03) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-ui); font-weight: 600; font-size: 15px; line-height: var(--lh-ui);
  border-radius: var(--radius-md); border: var(--border-1) solid transparent;
  padding: 15px 20px; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--text-ink); color: var(--text-paper); }
.btn--primary:hover { background: #1a2028; }               /* microcontraste, sin glow */
.section--night .btn--primary { background: var(--text-paper); color: var(--text-ink); }
.section--night .btn--primary:hover { background: #e4e8ee; }
.btn--secondary { background: transparent; color: var(--text-ink); border-color: var(--line-ash); }
.btn--secondary:hover { background: var(--bg-sand-2); }
.section--night .btn--secondary { color: var(--text-paper); border-color: var(--line-night); }
.cta-block { display: grid; gap: var(--space-3); justify-items: start; }
.cta-block .microcopy { font-size: 14px; color: var(--text-graphite); max-width: 42ch; }
.section--night .cta-block .microcopy { color: rgba(248, 250, 252, .66); }
@media (max-width: 640px) {
  .btn { width: 100%; }               /* CTA principal full-width en mobile (06 §10) */
  .cta-block { justify-items: stretch; }
}

/* ---------- 6c. HEADER / FOOTER (chrome global) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg-sand) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-1) solid var(--line-ash);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 68px; }
.site-logo { display: inline-flex; background: #fff; padding: 6px 9px; border-radius: var(--radius-sm); border: var(--border-1) solid var(--line-ash); }
.site-logo img { width: 92px; display: block; }
.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav a { font-size: 15px; color: var(--text-graphite); }
.site-nav a:hover { color: var(--brand-lilac); }
.site-header .btn { padding: 10px 16px; font-size: 14px; }
@media (max-width: 900px) { .site-nav { display: none; } }

.site-footer { background: var(--bg-night); color: var(--text-paper); padding-block: var(--space-9) var(--space-7); }
.site-footer a { color: rgba(248, 250, 252, .82); }
.site-footer a:hover { color: #fff; }
.site-footer .container { display: grid; gap: var(--space-6); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-5); padding-top: var(--space-5); border-top: var(--border-1) solid var(--line-night); font-size: 14px; color: rgba(248, 250, 252, .6); }

/* =====================================================================
   FASE B — COMPONENTES (03-components.md)
   Pocos componentes, muy consistentes. Hairlines + aire, sin sombras.
   ===================================================================== */

/* Rejillas editoriales reutilizables */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.cols-7-5 { grid-template-columns: 7fr 5fr; gap: var(--space-8); align-items: start; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-7-5 { grid-template-columns: 1fr; gap: var(--space-6); }
}
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Cards (03 §3) ---- */
.card {
  background: var(--surface-card);
  border: var(--border-1) solid var(--line-ash);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
@media (max-width: 600px) { .card { padding: var(--space-5); } }
/* Hover mínimo premium: elevación mínima + borde algo más visible (única sombra del sistema) */
.card--hover:hover {
  transform: translateY(-2px);
  border-color: #C6C0B4;
  box-shadow: 0 6px 20px -14px rgba(11, 15, 20, .35);
}
.card .card-title { font-family: var(--font-ui); font-weight: 600; font-size: 18px; line-height: var(--lh-title); }
.card .card-sub { color: var(--text-graphite); font-size: 15px; margin-top: var(--space-2); }

/* Card / Featured (Diagnóstico) — 1 solo gesto: barra lateral lila 3px */
.card--featured { border-left: 3px solid var(--brand-lilac); }

/* Card / Fast lane (IA Ejecutiva) — chip editorial */
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-graphite);
  border: var(--border-1) solid var(--line-ash);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

/* Espacio consistente antes de un link/CTA al final de una card (P1 §4).
   Evita que el link editorial quede pegado al texto. No lo convierte en botón. */
.card > .link:last-child { display: inline-block; margin-top: var(--space-5); }

/* Lista editorial con ticks funcionales (teal) */
.list-check { display: grid; gap: var(--space-3); }
.list-check li { display: grid; grid-template-columns: 18px 1fr; gap: var(--space-3); align-items: start; }
.list-check svg { width: 16px; height: 16px; margin-top: .3em; color: var(--brand-teal); flex: none; }

/* ---- Tabla "3 capas" (03 §6) ---- */
.table-capas { width: 100%; border-collapse: collapse; font-family: var(--font-ui); }
.table-capas th, .table-capas td {
  text-align: left; padding: var(--space-5) var(--space-5);
  border-bottom: var(--border-1) solid var(--line-ash);
  vertical-align: top;
}
.table-capas thead th { font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-graphite); }
.table-capas tbody th { font-weight: 600; font-size: 18px; width: 34%; color: var(--text-ink); }
.table-capas tbody td { color: var(--text-graphite); }
.table-capas tbody tr { transition: background .2s ease; }
.table-capas tbody tr:hover { background: rgba(11, 15, 20, .02); }
/* Reflow a cards en mobile (mismo contenido) */
.table-capas--cards { display: none; }
@media (max-width: 760px) {
  .table-capas { display: none; }
  .table-capas--cards { display: grid; gap: var(--space-4); }
  .table-capas--cards .card .k { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-graphite); }
  .table-capas--cards .card .v { margin-top: var(--space-2); }
}

/* ---- Método 01–04 (03 §7) ---- */
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
@media (max-width: 760px) { .method-grid { grid-template-columns: 1fr; } }
.method-step { display: grid; gap: var(--space-3); }
.method-num {
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: clamp(56px, 3rem + 4vw, 88px);
  color: rgba(138, 111, 189, .13);   /* lila 13% sobre sand (03 §7) */
}
.method-step h3 { font-size: 20px; }
.method-step p { color: var(--text-graphite); font-size: 15px; max-width: 42ch; }

/* ---- Sí / No (03 §8) — preferible en night ---- */
.sino { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); }
@media (max-width: 760px) { .sino { grid-template-columns: 1fr; gap: var(--space-6); } }
.sino h3 { font-family: var(--font-ui); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-4); }
.sino ul { display: grid; gap: var(--space-3); }
.sino li { display: grid; grid-template-columns: 18px 1fr; gap: var(--space-3); align-items: start; font-size: 16px; }
.sino li svg { width: 16px; height: 16px; margin-top: .3em; flex: none; }
.sino--si li svg { color: var(--brand-teal); }              /* ticks funcionales teal */
.sino--no li { color: rgba(248, 250, 252, .7); }            /* "no" con marcas discretas */
.sino--no li svg { color: rgba(248, 250, 252, .5); }

/* ---- Strip CTA (03 §4) ---- */
.strip { display: grid; gap: var(--space-5); justify-items: start; }
.strip h2 { max-width: 20ch; }
@media (max-width: 640px) { .strip { justify-items: stretch; } }

/* ---- Manifiesto (03 §5) — night, Fraunces grande, 1 microdetalle ---- */
.manifiesto { max-width: 24ch; }
.manifiesto .statement { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 1.8rem + 3vw, 52px); line-height: var(--lh-tight); }
.manifiesto--rule { border-left: var(--border-1) solid var(--line-night); padding-left: var(--space-6); }

/* ---- Testimonial Card (03 §10) — variante de Card / Base ---- */
.testimonial-grid { align-items: start; }   /* cada card a su altura natural */
.testimonial { display: grid; gap: var(--space-5); }
.testimonial-quote { display: grid; gap: var(--space-3); }
.testimonial .quote { font-size: 16px; line-height: var(--lh-body); color: var(--text-graphite); }
.testimonial .quote--lead { color: var(--text-ink); }
.testimonial .quote--lead::before { content: "\201C"; color: var(--brand-lilac); font-family: var(--font-display); font-size: 1.4em; line-height: 0; margin-right: .08em; }
.testimonial--full .quote { font-size: 16px; }
.testimonial .byline { display: flex; align-items: center; gap: var(--space-3); }
.testimonial .avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--bg-sand-2); border: var(--border-1) solid var(--line-ash); filter: grayscale(1); flex: none; }
.testimonial .who { font-size: 14px; line-height: 1.35; }
.testimonial .who b { font-weight: 600; }
.testimonial .who span { color: var(--text-graphite); }
.testimonial .who-link { display: inline-block; margin-top: 2px; color: var(--brand-teal, #00A99D); font-size: 13px; text-decoration: none; }
.testimonial .who-link:hover { text-decoration: underline; }
/* Estado pendiente de contenido (GAP: sin testimonios en los specs) */
.testimonial--empty { border-style: dashed; color: var(--text-graphite); }
.testimonial--empty .quote { color: var(--text-graphite); }

/* ---- Acordeón (FAQ / entregables si excede) — solo UI ---- */
.accordion details { border-bottom: var(--border-1) solid var(--line-ash); }
.accordion summary { cursor: pointer; list-style: none; padding: var(--space-5) 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: var(--space-4); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--brand-lilac); font-size: 20px; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion .answer { padding-bottom: var(--space-5); color: var(--text-graphite); max-width: var(--measure-max); }

/* ---- Rutas: rail horizontal (estilos; interacción en Fase D) ---- */
.rutas-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 78vw); gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-4); -webkit-overflow-scrolling: touch; }
.rutas-rail .card { scroll-snap-align: start; }
.rutas-progress { font-family: var(--font-display); font-size: 14px; color: var(--text-graphite); letter-spacing: .04em; }
.rutas-rail::-webkit-scrollbar { height: 4px; }
.rutas-rail::-webkit-scrollbar-thumb { background: var(--line-ash); border-radius: 4px; }

/* =====================================================================
   FASE C1 — BLOQUES DE LA HOME (04-home-blueprint.md)
   ===================================================================== */

/* Hero aside (columna 5): verdad diferencial editorial */
.hero-aside { align-self: end; }
.hero-truth {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 1.1rem + 1.4vw, 28px); line-height: var(--lh-title);
  color: var(--text-graphite); border-left: 2px solid var(--brand-lilac);
  padding-left: var(--space-5); max-width: 26ch;
}
@media (max-width: 900px) { .hero-aside { align-self: start; } }

/* Fricción: lista de cards pequeñas */
.friccion-list { display: grid; gap: var(--space-3); align-content: start; }
.friccion-list .card { padding: var(--space-4) var(--space-5); font-size: 15px; color: var(--text-graphite); }

/* Rutas: rail + progreso 01/04 + controles */
.rutas { display: grid; gap: var(--space-5); }
.rutas-num { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--brand-lilac); letter-spacing: .04em; }
.rutas-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.rutas-ctrl { display: flex; gap: var(--space-2); }
.rutas-btn {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  border: var(--border-1) solid var(--line-ash); background: var(--surface-card);
  color: var(--text-ink); font-size: 16px; line-height: 1;
  transition: border-color .2s ease, background .2s ease;
}
.rutas-btn:hover { border-color: var(--brand-lilac); }
.rutas-btn[disabled] { opacity: .4; }

/* Cierre (night): postura + contacto en 2 columnas */
.closure { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 3rem + 3vw, 96px); align-items: start; }
@media (max-width: 900px) { .closure { grid-template-columns: 1fr; gap: var(--space-8); } }
.closure-team { margin-top: var(--space-6); padding-top: var(--space-5); border-top: var(--border-1) solid var(--line-night); }
.closure-team strong { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: rgba(248,250,252,.66); }
.closure-team ul li { color: rgba(248,250,252,.9); font-size: 15px; }

/* Formulario (sobre night) */
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: 13px; color: rgba(248,250,252,.72); letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-md);
  background: rgba(248,250,252,.04); border: var(--border-1) solid var(--line-night);
  color: var(--text-paper); font-family: var(--font-ui); font-size: 16px; line-height: var(--lh-ui);
}
.field textarea { resize: vertical; min-height: 108px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand-teal); outline-offset: 1px; border-color: transparent; }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: var(--space-3); align-items: start; font-size: 13px; color: rgba(248,250,252,.66); line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--brand-teal); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; }
.form-msg.ok { background: rgba(0,169,157,.14); border: var(--border-1) solid rgba(0,169,157,.4); color: #7FE3DA; }
.form-msg.err { background: rgba(197,48,30,.14); border: var(--border-1) solid rgba(197,48,30,.4); color: #F0A99E; }

/* Equipo (Quiénes somos) */
.team-card { display: grid; gap: var(--space-3); }
.team-photo { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/5; background: var(--bg-sand-2); margin-bottom: var(--space-2); max-width: 320px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Contacto (página): vías de contacto */
.contact-ways { display: grid; gap: 0; }
.contact-way { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-4); padding-block: var(--space-4); border-bottom: var(--border-1) solid var(--line-night); align-items: baseline; }
.contact-way .k { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(248,250,252,.6); }
.contact-way .v { color: var(--text-paper); font-size: 16px; }
a.contact-way { background: none; padding-bottom: var(--space-4); }

/* Footer ampliado */
.footer-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: clamp(32px,3rem+2vw,80px); margin-bottom: var(--space-7); }
.footer-brand { max-width: 34ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.footer-col { display: grid; gap: var(--space-3); align-content: start; }
.footer-col h4 { font-family: var(--font-ui); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(248,250,252,.5); font-weight: 600; margin: 0; }
.footer-col a { font-size: 15px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; gap: var(--space-7); } }
@media (max-width: 560px) { .footer-nav { grid-template-columns: 1fr 1fr; } }

/* Menú móvil */
.nav-toggle { display: none; width: 44px; height: 44px; border: var(--border-1) solid var(--line-ash); border-radius: var(--radius-md); background: var(--surface-card); place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 1.5px; background: var(--text-ink); position: relative; transition: transform .25s ease; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.site-header.nav-open .nav-toggle span { background: transparent; }
.site-header.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .site-header .container { position: relative; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    background: var(--bg-sand); border-bottom: var(--border-1) solid var(--line-ash);
    padding: var(--space-5) var(--container-pad-mob); gap: var(--space-4);
    display: none;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { font-size: 17px; }
  .site-header .btn--primary { display: none; }
}

/* Páginas legales (prose editorial) */
.legal { color: var(--text-graphite); }
.legal > * + * { margin-top: var(--space-4); }
.legal h2 { margin-top: var(--space-7); color: var(--text-ink); }
.legal h3 { margin-top: var(--space-5); color: var(--text-ink); }
.legal p { line-height: var(--lh-body); }
.legal strong { color: var(--text-ink); }
.legal ul { list-style: disc; padding-left: var(--space-5); display: grid; gap: var(--space-2); }
.legal ul li::marker { color: var(--brand-lilac); }
.legal-table { overflow-x: auto; margin-top: var(--space-4); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: var(--border-1) solid var(--line-ash); vertical-align: top; }
.legal thead th { font-weight: 600; color: var(--text-ink); font-size: 13px; letter-spacing: .03em; text-transform: uppercase; }

/* Lista numerada estilo informe (agenda IA Ejecutiva) */
.numbered { display: grid; gap: 0; }
.numbered li {
  display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); align-items: baseline;
  padding-block: var(--space-4); border-bottom: var(--border-1) solid var(--line-ash);
}
.numbered .num { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--brand-lilac); }

/* Hilo editorial (firma discreta, P #7) — trazo hairline que se dibuja al entrar.
   Vive en la columna editorial (izquierda), no centrado. Sin glow/blur/sombra. */
.hilo {
  display: block; height: 2px; width: 0; background: var(--text-ink);
  margin-bottom: var(--space-5); border-radius: 2px;
  transition: width 300ms var(--ease, cubic-bezier(.16,1,.3,1));
}
.hilo--in { width: 140px; }
/* Color del hilo según el fondo (criterio aprobado): negro (text-ink) sobre
   secciones claras; blanco (text-paper) sobre secciones oscuras, donde el negro
   sería invisible. Mismo gesto hairline en ambos casos. */
.section--night .hilo { background: var(--text-paper); }

/* ---------- 7. MOTION BUDGET / REDUCED MOTION (07 §E) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
