/* ============================================================
   IZURZEN — Estilo 2 · “Workstation”
   Plano · azul + blanco · barra de tareas tipo SO
   Sin degradados, sin sombras suaves, esquinas rectas.
   ============================================================ */

:root {
  --bg: #EEF3FB;
  --surface: #FFFFFF;
  --ink: #0B1B33;
  --ink-soft: #4A5A75;
  --blue: #0B5FFF;
  --blue-dark: #0844BE;
  --blue-soft: #E4ECFF;
  --blue-bright: #7FB0FF;
  --navy: #071A38;
  --navy-2: #0C2A55;
  --line: #BCCCE6;
  --line-strong: #8FA8CC;
  --radius: 2px;
  --container: 1120px;
  --narrow: 720px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 {
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  margin-bottom: 0.7rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
h2::before { content: ">_ "; color: var(--blue); }
h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }

p { color: var(--ink-soft); }
a { color: var(--blue); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.section { padding: 3rem 0; scroll-margin-top: 96px; }
.section--alt { background: var(--blue-soft); }
.section-lede { font-size: 1.03rem; max-width: 52ch; margin-bottom: 1.8rem; }
.micro-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.8rem; max-width: 52ch; }

/* ============ BOTONES ============ */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--secondary { background: var(--surface); color: var(--blue); border-color: var(--blue); }
.btn--secondary:hover { background: var(--blue-soft); }
.btn--lg { padding: 1rem 1.9rem; font-size: 0.92rem; }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.78rem; }
.btn--block { display: block; width: 100%; }

/* ============ NAV = MENÚ SUPERIOR ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface);
  border-bottom: 2px solid var(--blue);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.55rem 1.25rem;
}
.nav__brand img { width: 150px; height: auto; }
/* Menú móvil: Popover API nativo (cierra con clic fuera y Esc, sin JS) */
.nav { anchor-name: --iz-nav; }                    /* el nav es el ancla del menú */
.nav__links {
  position: fixed; inset: 68px 0 auto 0; margin: 0;   /* 68px = alto real del nav */
  display: none; flex-direction: column;
  width: auto; max-height: calc(100dvh - 68px); overflow: auto;
  background: var(--surface);
  border: 0; border-bottom: 2px solid var(--blue);
  position-anchor: --iz-nav;                        /* si hay anchor positioning… */
  top: anchor(--iz-nav bottom);                     /* …cuelga del borde real del nav */
}
.nav__links:popover-open { display: flex; }
.nav__links::backdrop { background: rgba(7, 26, 56, 0.28); }
.nav__links a {
  font-family: var(--mono); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  text-decoration: none; color: var(--ink);
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.nav__links a[aria-current="page"] { background: var(--blue); color: #fff; }
.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--radius); color: var(--ink); cursor: pointer;
}
.nav__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav__cta { display: none; }
.nav__panel-cta { margin: 0.8rem 1.25rem 1rem; }

@media (min-width: 960px) {
  .nav__toggle { display: none; }
  .nav__cta { display: inline-block; }
  .nav__panel-cta { display: none; }
  .nav__links {
    position: static; inset: auto; display: flex; flex-direction: row;
    max-height: none; overflow: visible;
    background: transparent; border: 0; padding: 0;
  }
  .nav__links a { border: 0; border-left: 1px solid var(--line); padding: 0.5rem 0.85rem; }
  .nav__links a:last-child { border-right: 1px solid var(--line); }
  .nav__links a:hover { background: var(--blue-soft); }
  .nav__brand img { width: 170px; }
}

/* ============ BARRA DE TAREAS (inyectada por JS) ============ */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  height: 56px;
  background: var(--navy);
  border-top: 2px solid var(--blue);
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0 0.7rem;
  font-family: var(--mono);
}
.taskbar__start {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 40px; padding: 0 0.85rem;
  background: #FFFFFF; color: var(--navy); text-decoration: none;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}
.taskbar__start:hover { background: var(--blue-soft); }
.taskbar__start img { width: 22px; height: 22px; }
.taskbar__apps { display: flex; gap: 0.35rem; overflow-x: auto; flex: 1; }
.taskbar__app {
  display: inline-flex; align-items: center; height: 40px;
  padding: 0 0.9rem; color: #CFE0FF; text-decoration: none;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
  border: 1px solid transparent; white-space: nowrap;
}
.taskbar__app:hover { background: var(--navy-2); color: #fff; }
.taskbar__app[aria-current="page"] { background: var(--blue); color: #fff; }
.taskbar__tray {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: #CFE0FF; font-size: 0.82rem;
  padding-left: 0.5rem; border-left: 1px solid #1E3A63;
}
.taskbar__mail { color: #CFE0FF; text-decoration: none; font-size: 1rem; }
.taskbar__mail:hover { color: #fff; }
@media (max-width: 760px) {
  .taskbar__apps { display: none; }
  .taskbar__start span { display: none; }
}

/* ============ HERO ============ */
.hero { padding-top: 2.5rem; padding-bottom: 1rem; }
.hero__inner { max-width: 820px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--blue); border: 1px solid var(--blue);
  background: var(--surface); padding: 0.3rem 0.7rem; margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.hero__badge .dot { width: 8px; height: 8px; background: var(--blue); }
.hero__sub { font-size: 1.12rem; max-width: 56ch; margin: 1.1rem 0 1.9rem; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.hero__micro { font-size: 0.86rem; color: var(--ink-soft); }

.wave-sep { margin-top: 2.5rem; line-height: 0; }
.wave-sep svg { width: 100%; max-width: var(--container); margin: 0 auto; display: block; height: 44px; }
.wave-sep path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-dasharray: 6 5; }

/* ============ LISTA “¿TE SUENA?” ============ */
.id-block { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.id-list { list-style: none; margin: 1.4rem 0; display: grid; gap: 0.7rem; }
.id-list li {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue);
  padding: 0.9rem 1.1rem; font-weight: 500; color: var(--ink);
}
.id-icon {
  flex: 0 0 24px; width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
}
.id-icon svg { width: 12px; height: 12px; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.id-icon--cross { background: #FDEBEC; }
.id-icon--cross svg { stroke: #C42B32; }
.id-icon--check { background: var(--blue-soft); }
.id-icon--check svg { stroke: var(--blue); }
.id-closing { font-size: 1.03rem; margin-bottom: 1.4rem; }
.id-cta { display: flex; flex-wrap: wrap; }

/* ============ TARJETAS Y REJILLAS ============ */
.tech, .cases, .setup, .legal { background: var(--blue-soft); }
.tech-grid, .gains-grid, .cases-grid, .services-grid, .setup-grid, .legal-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem;
}
.tech-card, .gain-card, .case-card, .service-card, .legal-card,
.post-card, .sector-card, .case-detail, .price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.tech-card h3, .gain-card h3, .legal-card h3 { font-size: 1.08rem; }
.tech-card p, .case-card p, .service-card p, .legal-card p,
.post-card p, .sector-card p, .gain-card p, .case-detail dd { font-size: 0.95rem; }
.gain-card h3 { font-size: 1.25rem; }
.tech-tag {
  display: inline-block; font-family: var(--mono);
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--blue); border: 1px solid var(--blue);
  padding: 0.08rem 0.5rem; margin-left: 0.4rem; vertical-align: middle;
}

/* ============ PROCESO (tipo gestor de tareas) ============ */
.process-steps {
  list-style: none; display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem; margin-top: 1.8rem;
}
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--blue); padding: 1rem 0.6rem; text-align: center;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; background: var(--blue); color: #fff;
  font-family: var(--mono); font-weight: 700; margin-bottom: 0.5rem;
}
.step h3 { font-size: 0.78rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em; margin: 0; }

/* ============ LEGAL ============ */
.legal-icon {
  display: inline-flex; width: 42px; height: 42px;
  background: var(--blue-soft); border: 1px solid var(--line);
  align-items: center; justify-content: center; margin-bottom: 0.9rem;
}
.legal-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============ EQUIPO ============ */
.team-quote { display: grid; gap: 1rem; margin: 1.4rem 0 1.6rem; font-size: 1.05rem; color: var(--ink); }
.team-quote p { color: var(--ink); }
.team-signature {
  font-family: var(--mono); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; border-top: 2px solid var(--blue);
  display: inline-block; padding-top: 0.7rem; color: var(--ink);
}

/* ============ CTA FINAL ============ */
.final-cta { background: var(--navy); border-top: 3px solid var(--blue); }
.final-cta h2 { color: #fff; }
.final-cta h2::before { color: var(--blue-bright); }
.final-cta .section-lede { color: #B9CCE8; max-width: 52ch; margin-left: auto; margin-right: auto; }
.final-cta p { color: #B9CCE8; }

/* ============ FOOTER (barra de estado) ============ */
.footer { background: var(--surface); border-top: 2px solid var(--blue); padding: 1.6rem 0; }
.footer__inner { display: flex; flex-direction: column; gap: 0.35rem; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); }
.footer__brand { font-weight: 700; letter-spacing: 0.08em; color: var(--ink); }
.footer__contact a, .footer a { color: var(--blue); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
@media (min-width: 960px) {
  .footer__inner { flex-direction: row; align-items: center; gap: 1.8rem; }
}

/* ============ PÁGINAS INTERNAS ============ */
.page-hero { padding: 2.2rem 0 0.5rem; }
.page-hero__inner { max-width: 820px; }
.breadcrumb { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero__sub { font-size: 1.1rem; max-width: 60ch; margin: 1rem 0 1.7rem; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue);
  border: 1px solid var(--blue); padding: 0.2rem 0.6rem; margin-bottom: 0.7rem;
}

/* ============ CASOS DETALLADOS ============ */
.case-stack { display: grid; gap: 1rem; }
.case-detail { border-left: 3px solid var(--blue); }
.case-detail h3 { font-size: 1.15rem; }
.case-detail dl { margin-top: 0.9rem; display: grid; gap: 0.85rem; }
.case-detail dt { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.case-detail dd { margin: 0.15rem 0 0; color: var(--ink-soft); }

/* ============ BLOQUE IA LOCAL (ventana tipo terminal) ============ */
.local-block { background: var(--navy); border: 1px solid #12315E; border-top: 3px solid var(--blue); padding: 1.9rem 1.5rem; position: relative; }
.local-block::before { content: "\25CF \25CF \25CF"; position: absolute; top: 0.5rem; right: 1rem; font-size: 0.6rem; letter-spacing: 4px; color: #3E5F90; }
.local-block h2, .local-block h3 { color: #fff; }
.local-block h2::before { color: var(--blue-bright); }
.local-block > p { color: #B9CCE8; }
.local-grid { display: grid; gap: 1rem; margin-top: 1.4rem; }
.local-item { border-top: 1px solid #1E3A63; padding-top: 0.8rem; }
.local-item h3 { font-size: 0.96rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.03em; }
.local-item p { color: #B9CCE8; font-size: 0.92rem; }
.local-warn { margin-top: 1.4rem; border: 1px solid #6E2530; background: #2A1420; padding: 1rem 1.1rem; }
.local-warn h3 { color: #FF9AA2; font-size: 0.95rem; }
.local-warn p { color: #E7B9BE; font-size: 0.9rem; }
@media (min-width: 680px) { .local-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ REQUISITOS ============ */
.spec-wrap { overflow-x: auto; margin-top: 1.4rem; }
.spec-table { width: 100%; min-width: 460px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); }
.spec-table th, .spec-table td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.spec-table th { background: var(--blue); color: #fff; font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.spec-table td:first-child { font-weight: 600; color: var(--ink); font-family: var(--mono); font-size: 0.82rem; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-note { margin-top: 1rem; font-size: 0.9rem; max-width: 60ch; }

/* ============ SECTORES / BLOG / ARTÍCULO ============ */
.sector-grid { display: grid; gap: 1rem; }
.sector-card { display: block; text-decoration: none; transition: background-color 0.12s ease; }
.sector-card:hover { background: var(--blue-soft); }
.sector-card h3 { color: var(--ink); }
.sector-card__link { display: inline-block; margin-top: 0.8rem; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); }
@media (min-width: 820px) { .sector-grid { grid-template-columns: repeat(3, 1fr); } }

.post-list { list-style: none; display: grid; gap: 1rem; }
.post-meta { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); margin-bottom: 0.4rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }

.article { max-width: var(--narrow); }
.article p, .article li { font-size: 1.02rem; }
.article h2 { margin-top: 2rem; }
.article h3 { margin-top: 1.4rem; font-family: var(--mono); }
.article ul, .article ol { margin: 1rem 0 1rem 1.25rem; }
.article li { margin-bottom: 0.4rem; color: var(--ink-soft); }
.article .lead { font-size: 1.12rem; color: var(--ink); }
.article code { font-family: var(--mono); background: var(--blue-soft); padding: 0.1rem 0.35rem; font-size: 0.88em; color: var(--ink); }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--blue); background: var(--surface); padding: 1rem 1.2rem; margin: 1.4rem 0; }
.callout p { color: var(--ink); font-size: 0.96rem; }
.post-foot { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

.contact-grid { display: grid; gap: 0.5rem; margin-top: 1rem; }
.contact-grid a { font-weight: 600; font-size: 1.02rem; text-decoration: none; }

/* ============ ANIMACIÓN ON-SCROLL ============ */
/* Reveal: base SIEMPRE visible (a prueba de fallo de la mejora).
   Sustituye al IntersectionObserver de app.js. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: iz-reveal linear both;
      animation-duration: 1ms;              /* Firefox exige duración != 0 */
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }
  }
}
@keyframes iz-reveal {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 819px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
  .section { padding: 4rem 0; }
  .cases-grid, .tech-grid, .legal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .section { padding: 5rem 0; }
  .gains-grid, .services-grid, .legal-grid, .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-top: 3.5rem; }
}

/* ============================================================
   VARIANTE MPA SIN JS — interacciones nativas
   ============================================================ */

/* --- Sombra del nav al hacer scroll (sustituye a initNavScrolled) --- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .nav {
      animation: iz-nav-shadow linear both;
      animation-duration: 1ms;
      animation-timeline: scroll(root block);
      animation-range: 0 6rem;
    }
  }
}
@keyframes iz-nav-shadow {
  from { box-shadow: 0 2px 0 rgba(11, 27, 51, 0); }
  to   { box-shadow: 0 2px 0 rgba(11, 27, 51, 0.08); }
}

/* --- Navegación multipágina tipo SPA, sin JavaScript ---
   Cross-Document View Transitions: el navegador anima entre documentos.
   Sin soporte, la navegación normal sigue funcionando. */
@view-transition { navigation: auto; }
.nav { view-transition-name: nav; }         /* el menú persiste sin cross-fade */
::view-transition-old(root) { animation: iz-vt-out 0.26s ease both; }
::view-transition-new(root) { animation: iz-vt-in 0.26s ease both; }
@keyframes iz-vt-out { to   { opacity: 0; } }
@keyframes iz-vt-in  { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}


/* ============================================================
   VARIACIÓN B · EDITORIAL
   La imagen entra en la retícula, no detrás del texto:
   hero a dos columnas, filas alternadas imagen/texto y
   pies de foto con crédito. Tono de revista técnica.
   ============================================================ */

/* ---- Utilidades de imagen ---- */
.media { position: relative; overflow: hidden; background: var(--navy-2); }
.media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 4 / 5; }

/* ---- Pie de foto editorial ---- */
.fig { margin: 0; }
.fig .media { border: 1px solid var(--line); }
.fig__cap {
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.5;
  color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em;
  margin-top: 0.55rem; padding-left: 0.7rem; border-left: 2px solid var(--blue);
}
.fig__cred { color: var(--line-strong); }

/* ---- Hero a dos columnas ---- */
.hero--split { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.hero--split__grid { display: grid; gap: 2rem; align-items: center; }
.hero--split__body { max-width: 620px; }
.hero--split__media { border-top: 3px solid var(--blue); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .hero--split__grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .hero--split .hero__cta { flex-direction: column; align-items: flex-start; }
}

/* ---- Sección a dos columnas (texto + imagen) ---- */
.split { display: grid; gap: 1.8rem; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 0.85fr; gap: 3rem; }
  .split--reverse > *:first-child { order: 2; }
}

/* ---- Filas alternadas imagen/texto ---- */
.feature-rows { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.feature-row {
  display: grid; gap: 1.2rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--blue); padding: 1.2rem;
}
.feature-row h3 { font-size: 1.15rem; }
.feature-row p { font-size: 0.97rem; }
@media (min-width: 820px) {
  .feature-row { grid-template-columns: 0.9fr 1.1fr; gap: 2rem; padding: 1.5rem; }
  .feature-row:nth-child(even) .feature-row__media { order: 2; }
}

/* ---- Sectores como listado editorial con miniatura ---- */
.sector-list { display: grid; margin-top: 1.4rem; border-top: 2px solid var(--blue); }
.sector-row {
  display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: center;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: background-color 0.12s ease;
}
.sector-row:hover { background: var(--blue-soft); }
.sector-row__thumb { border: 1px solid var(--line); }
.sector-row h3 { margin-bottom: 0.25rem; }
.sector-row p { font-size: 0.94rem; margin-bottom: 0.4rem; }
.sector-row__go { font-family: var(--mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); }
@media (min-width: 640px) { .sector-row { grid-template-columns: 150px 1fr; gap: 1.6rem; } }

/* ---- Equipo: retrato + texto ---- */
.team-split { display: grid; gap: 1.6rem; align-items: start; }
.team-split .fig { max-width: 340px; }
@media (min-width: 820px) {
  .team-split { grid-template-columns: 0.7fr 1.3fr; gap: 2.6rem; align-items: center; }
}

/* ---- Cierre: banda fina antes del CTA ---- */
.photo-band { position: relative; margin: 0; background: var(--navy); }
.photo-band img { width: 100%; height: 100%; max-height: 46vh; object-fit: cover; display: block; }
.photo-band figcaption {
  position: absolute; left: 0; bottom: 0; max-width: 92%;
  background: rgba(7, 26, 56, 0.88); color: #CFE0FF;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 0.45rem 0.9rem; line-height: 1.45;
}

/* ---- Página interna: hero a dos columnas con imagen ---- */
.page-hero--split { padding: 2.4rem 0 0.8rem; }
.page-hero--split__grid { display: grid; gap: 1.8rem; align-items: center; }
.page-hero--split__body { max-width: 640px; }
@media (min-width: 900px) {
  .page-hero--split__grid { grid-template-columns: 1.1fr 0.9fr; gap: 2.8rem; }
}

/* ---- Casos con imagen + texto en fila ---- */
.case-detail--media { display: grid; gap: 1.2rem; }
.case-detail--media .fig { max-width: 100%; }
@media (min-width: 860px) {
  .case-detail--media { grid-template-columns: 0.8fr 1.2fr; gap: 2rem; align-items: start; }
  .case-detail--media:nth-child(even) .fig { order: 2; }
}

/* Blog: miniatura editorial de cada entrada */
.post-card__media { display: block; text-decoration: none; margin-bottom: 1rem; }
.post-card__media .fig__cap { margin-top: 0.45rem; }

/* ============================================================
   VARIACIÓN D · EDITORIAL CON FONDOS
   Base: azul_editorial_b. Solo cambia el trato de la imagen:
   en la portada, la primera y la última sección pasan a ser
   fondo a sangre con el texto encima. En las páginas internas
   se eliminan las bandas que ocupaban todo el ancho.
   ============================================================ */

/* ---- Hero de portada con imagen de fondo ---- */
.hero--bg {
  position: relative; overflow: hidden; background: var(--navy);
  min-height: 620px; display: flex; align-items: flex-end;
  padding: 0; border-bottom: 3px solid var(--blue);
}
.hero--bg .hero__media { position: absolute; inset: 0; }
.hero--bg .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--bg .hero__scrim { position: absolute; inset: 0; background: rgba(7, 26, 56, 0.74); }
.hero--bg .hero__inner { position: relative; z-index: 2; max-width: 880px; padding: 6rem 1.25rem 3.2rem; }
.hero--bg h1 { color: #fff; }
.hero--bg .hero__sub { color: #C6D8F2; }
.hero--bg .hero__badge { background: transparent; color: #9CC0FF; border-color: #4E7BC4; }
.hero--bg .hero__badge .dot { background: #9CC0FF; }
.hero--bg .hero__micro { color: #9FB6D8; }
.hero--bg .hero__cta { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0.8rem 1.2rem; }
@media (min-width: 760px) { .hero--bg { min-height: 74vh; } }

/* ---- CTA final con imagen de fondo ---- */
.final-cta--photo { position: relative; overflow: hidden; background: var(--navy); }
.final-cta--photo .final-cta__media { position: absolute; inset: 0; }
.final-cta--photo .final-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.final-cta--photo .final-cta__scrim { position: absolute; inset: 0; background: rgba(7, 26, 56, 0.84); }
.final-cta--photo .container { position: relative; z-index: 2; }
