/* ==========================================================================
   GRAFS — Sistema de diseño (inspirado en Orb / withorb.com)
   Estilo: papel crema + serif editorial + etiquetas monoespaciadas + negro
   Todo el "look" se controla desde estos tokens. Cambiar aquí = cambiar toda la web.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=JetBrains+Mono:wght@400;500&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* --- Color (Brand Kit Grafs · regla 60/30/10) --- */
  --bg:        #FAFAFA;   /* secundario — fondo principal (off-white) */
  --bg-2:      #F0F0EE;   /* off-white un punto más oscuro (secciones/tarjetas) */
  --ink:       #191A1E;   /* principal — casi negro (texto, botones, dark UI) */
  --ink-soft:  #54585F;   /* texto secundario */
  --ink-faint: #989CA3;   /* etiquetas, captions */
  --line:      rgba(25,26,30,.12); /* bordes finos */
  --white:     #ffffff;

  /* Acento (10%) + extras del brand kit */
  --accent:      #F7562B; /* naranja Grafs */
  --accent-700:  #DD441C; /* naranja oscuro (hover) */
  --accent-soft: #FDEAE1; /* naranja muy claro (fondos/pastillas) */
  --xtra-blue:   #D6E9FB; /* azul claro extra */
  --xtra-coral:  #FF7D52; /* coral extra */

  /* Degradado hero (sutil, neutro con tinte cálido + azul) */
  --grad-hero: linear-gradient(165deg,#FAFAFA 0%,#FCF1EC 45%,#F1F5FB 100%);
  --pix-orange: #F7562B;
  --pix-blue:   #4A90E2;
  --pix-coral:  #FF7D52;
  --pix-cyan:   #2BB6C2;
  --pix-amber:  #E8A33A;

  /* --- Tipografía (Brand Kit) ---
     Logo: Tan Nimbus · Títulos: Uni Sans · Subtítulos: Recoleta · Texto: Poppins
     Stand-ins libres mientras no tengamos los .woff de las de pago:
       Uni Sans → Archivo · Recoleta → Fraunces · Texto → Poppins (exacta) */
  --font-serif: 'Fraunces', Georgia, serif;               /* titulares editoriales (Recoleta) */
  --font-head:  'Archivo', 'Poppins', sans-serif;         /* títulos bold (Uni Sans) */
  --font-sans:  'Poppins', system-ui, sans-serif;         /* texto */
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;/* etiquetas técnicas */

  /* --- Medidas --- */
  --r:      10px;   /* radio tarjetas */
  --r-btn:  8px;    /* radio botones */
  --maxw:   1400px; /* ancho máximo de contenido */
  --gap:    32px;
  --nav-h:  88px;   /* alto aproximado del header (para extender el hero por detrás) */
}

/* ==========================================================================
   MODO OSCURO — solo redefine tokens + algunas superficies
   ========================================================================== */
html[data-theme="dark"] {
  --bg:        #191A1E;   /* principal pasa a ser el fondo */
  --bg-2:      #232429;
  --ink:       #FAFAFA;   /* texto claro */
  --ink-soft:  #AEB2B9;
  --ink-faint: #72767D;
  --line:      rgba(255,255,255,.13);
  --accent-soft: rgba(247,86,43,.16);
  --grad-hero: linear-gradient(165deg,#191A1E 0%,#241D1A 45%,#1A1E27 100%);
}
/* Superficies que no salen de un token directo */
html[data-theme="dark"] .nav {
  background: linear-gradient(180deg, rgba(44,46,53,.62), rgba(44,46,53,.34));
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 30px rgba(0,0,0,.4);
}
html[data-theme="dark"] .mega { background: #232429; border-color: rgba(255,255,255,.10); }
html[data-theme="dark"] .topbar { background: #0F1013; color: #FAFAFA; }
html[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Cambio de logo según tema */
.logo .logo-light { display: none; }
html[data-theme="dark"] .logo .logo-dark  { display: none; }
html[data-theme="dark"] .logo .logo-light { display: inline-block; }

/* Botón de cambio de tema */
.btn.theme-toggle {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: var(--r-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}
.btn.theme-toggle svg { width: 20px; height: 20px; display: block; flex: 0 0 auto; }
.btn.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .btn.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .btn.theme-toggle .icon-sun  { display: block; }

/* --- Reset suave --- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Utilidades --- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.serif { font-family: var(--font-serif); }

/* Titulares serif con el aire editorial de Orb */
h1,h2,h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4.2vw, 52px); }
h3 { font-size: clamp(22px, 2.4vw, 30px); }
p  { margin: 0 0 1em; }
.lead { font-size: clamp(17px,1.4vw,21px); color: var(--ink-soft); max-width: 620px; }

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-btn);
  border: 1px solid var(--ink); cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark  { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(25,26,30,.05); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-700); border-color: var(--accent-700); }

/* ==========================================================================
   BARRA SUPERIOR (anuncio)
   ========================================================================== */
.topbar {
  position: relative; z-index: 70;   /* por encima del hero para tapar el sobrante del degradado */
  background: var(--ink); color: var(--bg);
  font-size: 13.5px; text-align: center; padding: 9px 16px;
}
.topbar a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   HEADER / NAV — cristal líquido (liquid glass) + megamenú
   ========================================================================== */
.nav-wrap {
  position: sticky; top: 14px; z-index: 50;
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 24px 0;
}
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px 13px 22px;
  border-radius: 18px;
  /* --- Cristal líquido --- */
  background: linear-gradient(180deg, rgba(255,255,255,.50), rgba(255,255,255,.25));
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,.55);          /* brillo de borde */
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,             /* reflejo superior */
    0 10px 30px rgba(22,19,15,.08),                 /* sombra ambiente */
    0 2px 6px rgba(22,19,15,.04);
}
.logo { display: inline-flex; align-items: center; }
.logo img {
  height: 24px; width: auto;   /* logo oscuro con fondo transparente */
}
.nav-links { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.nav-links > li > a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; transition: color .18s; }
.nav-links a:hover { color: var(--ink-soft); }
.caret { font-size: 10px; opacity: .55; transition: transform .2s; }
.menu-item.active .caret { transform: rotate(180deg); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 10px 16px; }
.nav-toggle { display: none; }

/* --- Megamenú (panel de cristal que cuelga del nav) --- */
.menu-item { position: static; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  padding: 40px 48px;
  border-radius: 20px;
  background: #FBF8F1;            /* OPACO — el menú no es transparente */
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px rgba(22,19,15,.18);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.99);
  transition: opacity .26s cubic-bezier(.2,.7,.2,1), transform .26s cubic-bezier(.2,.7,.2,1), visibility .26s;
  z-index: 60;
}
.mega.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.mega-col h5 {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: 500; margin: 0 0 18px;
}
.mega-link { display: block; margin-bottom: 16px; }
.mega-link strong { display: block; font-family: var(--font-sans); font-weight: 600; font-size: 15px; transition: color .15s; }
.mega-link span { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.mega-link:hover strong { color: var(--ink-soft); }

/* --- Overlay que oscurece/desenfoca el resto al abrir el menú --- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(22,19,15,.30);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

@media (max-width: 900px) {
  .mega { padding: 22px; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; text-align: center; overflow: hidden;
  margin-top: -120px;            /* sube generoso por detrás del header; la topbar tapa el sobrante */
  padding: 176px 24px 120px;     /* hueco para el header + aire abajo */
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--line);
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { max-width: 14ch; margin: 0 auto 24px; }
.hero .lead { margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Degradado interactivo: manchas de color que siguen el cursor --- */
.hero-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(70px);
  will-change: transform;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);   /* más ágil */
}
.hero-blob.b1 {
  width: 540px; height: 540px; top: -120px; left: 6%;
  background: radial-gradient(circle, rgba(247,86,43,.50), transparent 70%);
  transform: translate3d(calc(var(--hx,0) * 130px), calc(var(--hy,0) * 130px), 0);
}
.hero-blob.b2 {
  width: 620px; height: 620px; bottom: -220px; right: 4%;
  background: radial-gradient(circle, rgba(74,144,226,.42), transparent 70%);
  transform: translate3d(calc(var(--hx,0) * -175px), calc(var(--hy,0) * -150px), 0);
}
.hero-blob.b3 {
  width: 420px; height: 420px; top: 28%; left: 46%;
  background: radial-gradient(circle, rgba(255,125,82,.38), transparent 70%);
  transform: translate3d(calc(var(--hx,0) * 115px), calc(var(--hy,0) * -135px), 0);
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob { transition: none; transform: none !important; }
}

/* Logos de confianza */
.trust { padding: 48px 24px 56px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: center; align-items: center; }

/* Logos recoloreados con máscara CSS: la silueta da la forma, el color lo da background-color */
.trust-logo {
  display: inline-block;
  height: 34px;
  background-color: var(--accent);        /* naranja Grafs en modo claro */
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
  -webkit-mask-mode: alpha; mask-mode: alpha;
  transition: opacity .25s ease, background-color .25s ease;
}
.trust-logo.attica     { --logo: url(../img/attica-mono.svg);     aspect-ratio: 560.17 / 137.72; height: 27px; } /* 5% más pequeño */
.trust-logo.aceitunero { --logo: url(../img/aceitunero-mono.png); aspect-ratio: 787 / 350; }
.trust-logo.carlin     { --logo: url(../img/carlin-mono.png);     aspect-ratio: 176 / 63; }
html[data-theme="dark"] .trust-logo { background-color: #FAFAFA; }   /* blancos en modo oscuro */

/* ==========================================================================
   TARJETAS DE SERVICIO (con "arte" pixel placeholder)
   ========================================================================== */
.cards { padding: 64px 0 80px; }
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.card .eyebrow { display: flex; align-items: center; gap: 8px; }
.card-art {
  aspect-ratio: 1/1; border-radius: var(--r); margin: 6px 0 18px;
  position: relative; overflow: hidden; background: #0b0b0e;
}
/* "Pixel art" simulado con rejilla + resplandor de color */
.card-art::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(120% 80% at 30% 60%, var(--glow) 0%, transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
}
.card-art.orange { --glow: var(--pix-orange); }
.card-art.blue   { --glow: var(--pix-blue); }
.card-art.coral  { --glow: var(--pix-coral); }
.card-art.cyan   { --glow: var(--pix-cyan); }
.card-art.amber  { --glow: var(--pix-amber); }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.card p { color: var(--ink-soft); font-size: 15.5px; }

/* ==========================================================================
   SERVICIOS — SCROLL HORIZONTAL CON PINNING
   ========================================================================== */
.hservices {
  position: relative;
  /* Altura total = pin (100vh) + recorrido del scroll horizontal */
  /* Ajustada en JS si hace falta, pero 380vh es suficiente para 5 cards / 2 visibles */
  height: 380vh;
  background: var(--bg);
}
.hservices-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 120px 0 40px;   /* solo separa del header; el viewport centra las cards en el espacio restante */
  overflow: hidden;
  box-sizing: border-box;
}
.hservices-head { flex: 0 0 auto; margin-bottom: 36px; }
.hservices-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.hservices-head h2 {
  margin: 6px 0 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  max-width: 18ch;
}
.hservices-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 260px;
}
.hservices-count {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.hservices-count .hs-current { color: var(--ink); font-weight: 700; }
.hservices-count .hs-sep { margin: 0 6px; color: var(--ink-faint); }
.hservices-progress {
  width: 220px;
  height: 4px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.hservices-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 20%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .18s ease-out;
}

.hservices-viewport {
  flex: 1 1 auto;
  min-height: 0;             /* permite que el flex item realmente encoja para no desbordar */
  overflow: hidden;
  display: flex;
  align-items: center;       /* centradas verticalmente en el espacio bajo el header */
}
.hservices-track {
  display: flex;
  align-items: flex-start;        /* todas las cards arrancan desde el mismo top */
  gap: 28px;
  /* Padding lateral = mismo offset que el container, mantiene la primera card alineada */
  padding-left:  max(24px, calc((100vw - var(--maxw)) / 2 + 24px));
  padding-right: max(24px, calc((100vw - var(--maxw)) / 2 + 24px));
  will-change: transform;
  transform: translate3d(0,0,0);
}

.hcard {
  flex: 0 0 auto;
  width: clamp(300px, min(36vw, 50vh), 480px);   /* limita por alto y ancho para que la card cuadrada siempre quepa */
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: none;
  transition: transform .35s ease;
  text-decoration: none;           /* es un <a>, pero no queremos subrayados */
  color: inherit;
  cursor: pointer;
}
.hcard:hover .card-art { box-shadow: 0 30px 60px rgba(22,19,15,.14); }
.hcard:hover .card-link { color: var(--accent); }
.hcard .eyebrow {
  display: block;
  margin: 0;                       /* el gap del .hcard ya separa */
  line-height: 1.4;
  white-space: nowrap;             /* nunca wrap → todos misma altura */
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: calc(1.4em);
}
.hcard .card-art {
  aspect-ratio: 1 / 1;
  margin: 4px 0 8px;
  border-radius: var(--r);
}
.hcard p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; margin: 0; flex: 1; }
.hcard .card-link { margin-top: 8px; align-self: flex-start; }

/* En pantallas pequeñas el scroll horizontal se desactiva por JS: cae a un slider nativo */
.hservices.is-fallback { height: auto !important; }
.hservices.is-fallback .hservices-inner { position: static; height: auto; padding: 64px 0 56px; }
.hservices.is-fallback .hservices-viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
.hservices.is-fallback .hservices-track { padding-right: max(24px, calc((100vw - var(--maxw)) / 2 + 24px)); }
.hservices.is-fallback .hcard { scroll-snap-align: start; width: 84vw; max-width: 520px; }
.hservices.is-fallback .hservices-meta { display: none; }


/* ==========================================================================
   SECCIÓN DECLARACIÓN (serif grande + bullets)
   ========================================================================== */
.statement { padding: 80px 0; border-top: 1px solid var(--line); }
.statement-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.statement h2 { max-width: 12ch; margin-bottom: 28px; }
.statement ul { list-style: none; padding: 0; margin: 0; }
.statement li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 16px; }
.statement-visual { background: var(--grad-hero); border: 1px solid var(--line); border-radius: var(--r); min-height: 360px; }

/* ==========================================================================
   DECLARACIÓN SCROLL (izquierda sticky, derecha que avanza)
   ========================================================================== */
.reveal { border-top: 1px solid var(--line); }
.reveal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* Columna izquierda: se ancla y se centra mientras la derecha hace scroll */
.reveal-left {
  position: sticky; top: 0; align-self: start;
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 60px 0;
}
.reveal-left h2 { max-width: 15ch; margin-bottom: 44px; }
.reveal-states { position: relative; min-height: 210px; }
.reveal-state { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.reveal-state.is-active { opacity: 1; transform: none; pointer-events: auto; }
.reveal-state h3 { font-family: var(--font-serif); font-weight: 500; font-size: 23px; margin-bottom: 18px; }
.reveal-state ul { list-style: none; padding: 0; margin: 0; }
.reveal-state li { position: relative; padding-left: 20px; margin-bottom: 12px; color: var(--ink-soft); font-size: 15.5px; }
.reveal-state li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Columna derecha: panel con degradado y dos etapas apiladas */
.reveal-right {
  background: linear-gradient(160deg, #FDF1EC 0%, #EFF5FB 55%, #FAFAFA 100%);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
html[data-theme="dark"] .reveal-right { background: linear-gradient(160deg, #241D1A 0%, #1B1E26 60%, #191A1E 100%); }

.diagram-stage { position: relative; min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 50px 24px; }
.diagram-stage.stage-1 { border-bottom: 1px dashed var(--line); }

/* Nodos / chips */
.node, .chip, .col-title {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .07em;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 6px 20px rgba(22,19,15,.07);
}
.node { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; font-size: 12px; }
.chip { padding: 8px 13px; font-size: 11px; border-radius: 9px; box-shadow: 0 4px 12px rgba(22,19,15,.05); }
.node.value { color: #33407a; }
.ico { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.ico.sm { width: 22px; height: 22px; font-size: 12px; border-radius: 6px; }
html[data-theme="dark"] .node, html[data-theme="dark"] .chip, html[data-theme="dark"] .col-title { background: #2a2c33; border-color: rgba(255,255,255,.12); box-shadow: 0 6px 20px rgba(0,0,0,.35); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 420px; }

.center-circle {
  width: 150px; height: 150px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
  background: transparent;
}
.center-circle.filled { background: var(--ink); color: #fff; border: none; }
html[data-theme="dark"] .center-circle { border-color: rgba(255,255,255,.5); }
html[data-theme="dark"] .center-circle.filled { background: #fff; color: var(--ink); }

.diagram-cols { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.diagram-col { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.col-title { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; font-size: 11.5px; font-weight: 500; }

@media (max-width: 900px) {
  .reveal-grid { grid-template-columns: 1fr; gap: 0; }
  .reveal-left { position: static; min-height: 0; padding: 40px 0 20px; }
  .reveal-left h2 { margin-bottom: 28px; }
  .reveal-states { min-height: 0; margin-bottom: 30px; }
  .reveal-state { position: static; opacity: 1; transform: none; margin-bottom: 24px; }   /* en móvil mostramos ambos */
  .diagram-stage { min-height: 70vh; }
}

/* ==========================================================================
   PROCESO (3 pasos numerados)
   ========================================================================== */
.process { padding: 80px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.process-head { max-width: 640px; margin-bottom: 50px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.step-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; margin-bottom: 18px; }
.step .eyebrow { margin-bottom: 8px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* ==========================================================================
   PLATAFORMA (BENTO) — cards con gráficos animados al hover
   ========================================================================== */
.platform { padding: 90px 0; border-top: 1px solid var(--line); }
.platform-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.platform-head h2 { margin: 14px 0 18px; }
.platform-head .lead { margin: 0 auto; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 30px 26px; display: flex; flex-direction: column;
  transition: box-shadow .3s ease, border-color .3s ease;
}
html[data-theme="dark"] .bento-card { background: var(--bg-2); }
.bento-card:hover { box-shadow: 0 18px 40px rgba(22,19,15,.10); border-color: rgba(247,86,43,.4); }
.bento-card .eyebrow { margin-bottom: 10px; }
.bento-card h3 { margin-bottom: 10px; }
.b-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }
.bento-link { margin-top: auto; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; display: inline-flex; gap: 6px; align-items: center; }
.bento-link:hover { color: var(--accent); }

.card-tall { grid-column: 1; grid-row: 1 / 3; }
.card-wide { grid-column: 2 / 4; grid-row: 1; }
.card-c    { grid-column: 2; grid-row: 2; }
.card-d    { grid-column: 3; grid-row: 2; }

/* --- Gráfico de barras (crece al hover, escalonado) --- */
.chart { display: flex; align-items: flex-end; gap: 16px; height: 150px; margin-top: 22px; }
.chart .bar {
  flex: 1; border-radius: 7px 7px 0 0; background: var(--accent);
  transform: scaleY(.35); transform-origin: bottom;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.chart .bar:nth-child(even) { background: #9cc2ec; }
.b-h1 { height: 45%; } .b-h2 { height: 70%; } .b-h3 { height: 55%; } .b-h4 { height: 85%; } .b-h5 { height: 100%; }
.card-wide:hover .chart .bar { transform: scaleY(1); }
.card-wide:hover .chart .bar:nth-child(2) { transition-delay: .07s; }
.card-wide:hover .chart .bar:nth-child(3) { transition-delay: .14s; }
.card-wide:hover .chart .bar:nth-child(4) { transition-delay: .21s; }
.card-wide:hover .chart .bar:nth-child(5) { transition-delay: .28s; }

/* --- Etiquetas flotantes (derivan al hover) --- */
.tags { position: relative; flex: 1; margin-top: 18px; min-height: 230px; }
.tag {
  position: absolute; font-family: var(--font-mono); font-size: 12px;
  background: rgba(74,144,226,.12); color: #2f6dbf;
  border-radius: 8px; padding: 5px 10px; white-space: nowrap;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
html[data-theme="dark"] .tag { background: rgba(74,144,226,.20); color: #9cc2ec; }
.tag:nth-child(1){ top: 4%;  left: 6%; }
.tag:nth-child(2){ top: 19%; left: 44%; }
.tag:nth-child(3){ top: 35%; left: 12%; }
.tag:nth-child(4){ top: 51%; left: 42%; }
.tag:nth-child(5){ top: 67%; left: 8%; }
.tag:nth-child(6){ top: 83%; left: 38%; }
.card-tall:hover .tag:nth-child(1){ transform: translate(10px,-8px); }
.card-tall:hover .tag:nth-child(2){ transform: translate(-12px,8px);  transition-delay: .05s; }
.card-tall:hover .tag:nth-child(3){ transform: translate(14px,6px);   transition-delay: .10s; }
.card-tall:hover .tag:nth-child(4){ transform: translate(-10px,-10px);transition-delay: .15s; }
.card-tall:hover .tag:nth-child(5){ transform: translate(12px,-6px);  transition-delay: .20s; }
.card-tall:hover .tag:nth-child(6){ transform: translate(-14px,8px);  transition-delay: .25s; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .card-tall, .card-wide, .card-c, .card-d { grid-column: auto; grid-row: auto; }
  .tags { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .chart .bar { transform: none; }
  .card-tall:hover .tag { transform: none !important; }
}

/* ==========================================================================
   TESTIMONIO
   ========================================================================== */
.quote { padding: 90px 0; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.quote blockquote { font-family: var(--font-serif); font-size: clamp(24px,2.6vw,34px); line-height: 1.3; margin: 0 0 28px; }
.quote-author { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.quote-author strong { display: block; }
.quote-photo { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 4/3; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta { text-align: center; padding: 100px 24px; background: var(--grad-hero); border-top: 1px solid var(--line); }
.cta h2 { max-width: 16ch; margin: 0 auto 18px; }
.cta .lead { margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   PÁGINA DE SERVICIO (e-commerce)
   ========================================================================== */
/* Hero de servicio: texto a la izquierda + visual a la derecha */
.svc-hero {
  position: relative; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center;   /* ocupa toda la pantalla */
  margin-top: -120px; padding: 120px 0 80px;
  background: var(--grad-hero);
}
/* Fundido suave del degradado hacia el fondo (sin salto al bajar) */
.svc-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1; pointer-events: none;
}
.svc-hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.svc-hero h1 { font-size: clamp(38px, 5vw, 66px); margin: 0 0 22px; max-width: 11ch; }
.svc-hero .lead { margin-bottom: 32px; }
.svc-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.svc-visual { display: flex; align-items: center; justify-content: center; }
.hero-pixel { width: 100%; max-width: 560px; height: auto; display: block; }

/* Mockup de tienda (browser frame con product cards) */
.shop-mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px rgba(22,19,15,.14); overflow: hidden; }
html[data-theme="dark"] .shop-mock { background: var(--bg-2); }
.shop-bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.shop-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.shop-bar span:first-child { background: var(--accent); }
.shop-body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; padding: 18px; }
.shop-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.shop-img { aspect-ratio: 1/1; background: linear-gradient(135deg, var(--accent-soft), #eef3fb); }
.shop-card:nth-child(2) .shop-img { background: linear-gradient(135deg,#eef3fb,var(--accent-soft)); }
.shop-meta { padding: 10px 12px; }
.shop-line { height: 7px; width: 80%; background: var(--line); border-radius: 4px; margin-bottom: 8px; }
.shop-line.short { width: 50%; }
.shop-price { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); }

/* Pipeline horizontal (flujo) */
.pipeline-wrap { padding: 84px 0; border-top: 1px solid var(--line); }
.pipeline-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.pipeline-head h2 { margin: 14px 0 16px; }
.pipeline { display: flex; align-items: stretch; justify-content: center; gap: 12px; flex-wrap: wrap; }
.stage { flex: 1; min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; text-align: center; transition: box-shadow .3s, transform .3s; }
html[data-theme="dark"] .stage { background: var(--bg-2); }
.stage:hover { box-shadow: 0 16px 36px rgba(22,19,15,.10); transform: translateY(-3px); }
.stage .stage-ico { width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 12px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.stage h4 { font-family: var(--font-serif); font-weight: 500; font-size: 19px; margin: 0 0 8px; }
.stage p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.pipeline .arrow { display: flex; align-items: center; color: var(--accent); font-size: 22px; }

/* Filas de características alternadas */
.feature { padding: 70px 0; border-top: 1px solid var(--line); }
.feature .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature.reverse .feat-text { order: 2; }
.feature h2 { font-size: clamp(26px,3vw,40px); margin: 14px 0 18px; }
.feature .b-desc, .feature p { color: var(--ink-soft); }
.feat-list { list-style: none; padding: 0; margin: 22px 0 0; }
.feat-list li { position: relative; padding-left: 22px; margin-bottom: 12px; color: var(--ink-soft); }
.feat-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.feat-list strong { color: var(--ink); }
.feat-visual { min-height: 340px; border: 1px solid var(--line); border-radius: 18px; background: var(--grad-hero); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
/* El gráfico de barras dentro de una feature se anima al pasar el cursor */
.feature .chart .bar { transform: scaleY(.4); }
.feature:hover .chart .bar { transform: scaleY(1); }
.feature:hover .chart .bar:nth-child(2) { transition-delay: .07s; }
.feature:hover .chart .bar:nth-child(3) { transition-delay: .14s; }
.feature:hover .chart .bar:nth-child(4) { transition-delay: .21s; }
.feature:hover .chart .bar:nth-child(5) { transition-delay: .28s; }

/* Principios (3 columnas) */
.principles { padding: 84px 0; border-top: 1px solid var(--line); }
.principles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-top: 44px; }
.principle .p-ico { width: 50px; height: 50px; border-radius: 12px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.principle h3 { font-family: var(--font-serif); font-weight: 500; font-size: 24px; margin-bottom: 12px; }
.principle p { color: var(--ink-soft); font-size: 15px; }

/* ============================================================
   FEATURE BLOCKS — bloques de servicio con visuales variados
   ============================================================ */
.feat-block { padding: 90px 0; border-top: 1px solid var(--line); }
.feat-block .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feat-block.reverse .fb-text { order: 2; }
.feat-block h2 { font-size: clamp(28px,3.2vw,44px); line-height: 1.05; margin: 14px 0 18px; }
.feat-block .fb-desc { color: var(--ink-soft); margin-bottom: 22px; max-width: 52ch; line-height: 1.65; }
.feat-block .fb-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; }
.feat-block .fb-list li { position: relative; padding-left: 24px; color: var(--ink); font-size: 16px; line-height: 1.5; }
.feat-block .fb-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.feat-block .fb-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
  transition: color .2s, border-color .2s;
}
.feat-block .fb-cta:hover { color: var(--accent); border-color: var(--accent); }
.feat-block .fb-cta .arr { transition: transform .25s; }
.feat-block .fb-cta:hover .arr { transform: translateX(4px); }

/* Visual: pila escalonada de tarjetas */
.fb-visual { position: relative; min-height: 460px; display: flex; align-items: center; justify-content: center; }
.fb-pixels {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--accent) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}
.fb-stack { position: relative; width: 100%; max-width: 380px; height: 420px; }
.fb-card {
  position: absolute; background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; width: 86%;
  box-shadow: 0 24px 50px rgba(22,19,15,.12);
}
.fb-card.c1 { top: 0; left: 0; }
.fb-card.c2 { top: 125px; left: 7%; }
.fb-card.c3 { top: 250px; left: 14%; box-shadow: 0 36px 70px rgba(22,19,15,.18); }
.fb-card h5 { font-family: var(--font-serif); font-weight: 500; font-size: 17px; margin-bottom: 12px; color: var(--ink); }
.fb-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; color: var(--ink); margin-bottom: 6px;
}
.fb-row:last-child { margin-bottom: 0; }
.fb-row .fb-val { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.fb-row.is-accent { background: var(--accent-soft); border-color: rgba(247,86,43,.25); }
.fb-row.is-accent .fb-val { color: var(--accent-700); font-weight: 600; }

/* Visual: código / mockup técnico */
.fb-code {
  background: var(--ink); color: var(--bg);
  border-radius: 14px; padding: 0;
  box-shadow: 0 30px 60px rgba(22,19,15,.20);
  max-width: 480px; width: 100%;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 13px; line-height: 1.7;
  overflow: hidden;
}
.fb-code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-sans); font-size: 12px; color: rgba(250,250,250,.65);
}
.fb-code-head .fb-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 11px;
}
.fb-code-body { padding: 18px 20px; }
.fb-code-body .ln { display: block; white-space: pre; }
.fb-code-body .kw { color: #FFB997; }
.fb-code-body .str { color: #B0E5C7; }
.fb-code-body .num { color: #C9B4FF; }
.fb-code-body .com { color: #6E737A; }
.fb-code-body .fn { color: #9CC2EC; }

/* Visual: workflow diagram (nodos conectados) */
.fb-flow {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 30px 60px rgba(22,19,15,.12);
  max-width: 460px;
  width: 100%;
}
.fb-flow-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
  font-size: 12px; color: var(--ink-faint);
  font-family: var(--font-sans);
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.fb-flow-head .fb-pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-700);
  font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .04em;
}
.fb-flow .fb-node {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  margin-bottom: 28px;
}
.fb-flow .fb-node:last-child { margin-bottom: 0; }
.fb-flow .fb-node:not(:last-child)::after {
  content: ""; position: absolute;
  left: 33px; bottom: -22px;
  width: 2px; height: 16px;
  background: var(--accent);
}
.fb-flow .fb-node:not(:last-child)::before {
  content: ""; position: absolute;
  left: 27px; bottom: -22px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid var(--accent);
  z-index: 2;
}
.fb-flow .fb-node-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.fb-flow .fb-node.is-ai .fb-node-ico { background: var(--accent); box-shadow: 0 6px 16px rgba(247,86,43,.35); }
.fb-flow .fb-node.is-done .fb-node-ico { background: #6BB07F; }
.fb-flow .fb-node-text { flex: 1; min-width: 0; }
.fb-flow .fb-node-title { font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.2; }
.fb-flow .fb-node-sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.fb-flow .fb-node-tag {
  font-size: 10px; padding: 3px 8px; border-radius: 6px;
  background: var(--bg); color: var(--ink-faint);
  font-family: ui-monospace, monospace;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

/* Visual: integraciones (grid radial con IA en el centro) */
.fb-apps {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 14px;
  padding: 6px;
}
.fb-apps::before {
  content: ""; position: absolute; inset: -30px;
  background-image: radial-gradient(var(--accent) 1.5px, transparent 1.6px);
  background-size: 14px 14px; opacity: .18;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  z-index: 0;
}
.fb-app {
  position: relative; z-index: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 500;
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(22,19,15,.06);
  transition: transform .3s, box-shadow .3s;
  cursor: default;
}
.fb-app:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(22,19,15,.12); }
.fb-app.is-ai {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
  box-shadow: 0 20px 40px rgba(22,19,15,.30);
  font-size: 14px; text-align: center; line-height: 1.1;
  font-family: var(--font-sans); font-weight: 700;
  letter-spacing: .04em;
}
.fb-app.is-ai::after {
  content: ""; position: absolute; inset: -6px;
  border: 2px dashed var(--accent); border-radius: 22px;
  opacity: .55;
  animation: fb-ai-pulse 4s linear infinite;
}
@keyframes fb-ai-pulse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.fb-app .fb-app-name {
  position: absolute; bottom: 6px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-sans); font-size: 10px; font-weight: 600;
  color: var(--ink-faint); letter-spacing: .04em;
  text-transform: uppercase;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-wrap { padding: 60px 0 30px; }
.contact-intro { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.contact-intro h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(38px,5vw,64px); line-height: 1.05;
  margin: 14px 0 18px;
}
.contact-intro .lead { margin: 0 auto; }

.contact-grid {
  display: grid; grid-template-columns: 1.2fr .8fr;
  gap: 50px; align-items: start;
  max-width: 1100px; margin: 0 auto;
}

/* Form card */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 38px;
  box-shadow: 0 30px 60px rgba(22,19,15,.08);
}
.contact-form h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 26px; line-height: 1.2; margin-bottom: 26px;
}
.cf-row { margin-bottom: 18px; }
.cf-row.cf-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 8px;
}
.cf-label .req { color: var(--accent); margin-left: 4px; }
.cf-input, .cf-textarea, .cf-select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-2); color: var(--ink);
  font-family: inherit; font-size: 15px; line-height: 1.4;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.cf-input:focus, .cf-textarea:focus, .cf-select:focus {
  outline: none; border-color: var(--accent); background: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.cf-textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.cf-select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2354585F'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 42px;
}
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip {
  display: inline-block; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink-soft);
  font-size: 13px; font-weight: 500;
  cursor: pointer; user-select: none;
  transition: all .2s;
}
.cf-chip:hover { color: var(--ink); border-color: var(--ink); }
.cf-chip input { display: none; }
.cf-chip.is-checked {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.cf-submit {
  width: 100%;
  padding: 14px 22px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-family: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: background .2s, transform .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 8px;
}
.cf-submit:hover { background: var(--accent-700); transform: translateY(-1px); }
.cf-foot { margin-top: 14px; font-size: 12px; color: var(--ink-faint); text-align: center; }
.cf-success {
  display: none; padding: 22px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid var(--accent);
  color: var(--accent-700); font-weight: 600; text-align: center;
}
.cf-success.is-visible { display: block; }

/* Side info */
.contact-side { display: flex; flex-direction: column; gap: 18px; }
.ci-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px 26px;
  transition: transform .25s, border-color .25s;
}
.ci-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.ci-card .ci-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-700); margin-bottom: 10px;
}
.ci-card h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 22px; line-height: 1.2; margin-bottom: 8px;
}
.ci-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin: 0; }
.ci-card a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ci-card a:hover { color: var(--accent); }
.ci-card.is-dark {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink); position: relative; overflow: hidden;
}
.ci-card.is-dark::before {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,86,43,.35), transparent 70%);
}
.ci-card.is-dark .ci-eyebrow { color: var(--accent); }
.ci-card.is-dark h3 { color: var(--bg); position: relative; z-index: 1; }
.ci-card.is-dark p { color: rgba(250,250,250,.7); position: relative; z-index: 1; }
.ci-card.is-dark a { color: var(--bg); border-bottom: 1px solid var(--accent); }

.ci-channels { display: flex; flex-direction: column; gap: 12px; }
.ci-channel {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; background: var(--bg-2);
  border-radius: 12px; text-decoration: none; color: var(--ink);
  transition: all .2s;
}
.ci-channel:hover { background: var(--accent-soft); }
.ci-channel .cc-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.ci-channel .cc-text { flex: 1; min-width: 0; }
.ci-channel .cc-label { font-size: 11px; color: var(--ink-faint); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ci-channel .cc-val { font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Qué pasa después (3 pasos) */
.next-steps { padding: 80px 0; border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 80px; }
.next-steps-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.next-steps-head h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(28px,3.2vw,40px); line-height: 1.1; margin: 14px 0 14px; }
.next-steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; max-width: 1000px; margin: 0 auto;
  position: relative;
}
.next-steps-grid::before {
  content: ""; position: absolute;
  top: 44px; left: 14%; right: 14%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.ns-card {
  position: relative; z-index: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
  text-align: center;
}
.ns-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 500; font-size: 22px;
  margin: -56px auto 18px;
  box-shadow: 0 10px 24px rgba(247,86,43,.25);
}
.ns-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 20px; margin-bottom: 10px; }
.ns-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin: 0; }
.ns-card .ns-time { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--accent-700); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }

/* FAQ */
.faq-wrap { padding: 80px 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.faq-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.faq-list {
  max-width: 860px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.faq-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(22,19,15,.06); }
.faq-item.is-open {
  border-color: var(--accent);
  box-shadow: 0 24px 50px rgba(247,86,43,.10);
  transform: translateY(0);
}
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px;
  background: transparent; border: 0;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
}
.faq-num {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 14px; color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
  letter-spacing: .02em;
}
.faq-q-body { flex: 1; min-width: 0; }
.faq-cat {
  display: inline-block;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-700);
  background: var(--accent-soft);
  padding: 3px 9px; border-radius: 999px;
  margin-bottom: 8px;
}
.faq-q-text {
  display: block;
  font-family: var(--font-serif); font-weight: 500;
  font-size: 19px; line-height: 1.3;
  color: var(--ink);
}
.faq-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-2); color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 400;
  flex-shrink: 0;
  transition: all .25s;
  line-height: 1;
}
.faq-item:hover .faq-toggle { background: var(--accent-soft); color: var(--accent-700); }
.faq-item.is-open .faq-toggle { background: var(--accent); color: #fff; transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 26px 0 72px;
}
.faq-item.is-open .faq-a { max-height: 600px; padding: 0 26px 26px 72px; }
.faq-a p {
  color: var(--ink-soft);
  font-size: 15.5px; line-height: 1.7;
  margin: 0;
}

@media (max-width: 640px) {
  .faq-q { padding: 18px 18px; gap: 12px; }
  .faq-num { min-width: 22px; font-size: 13px; }
  .faq-q-text { font-size: 17px; }
  .faq-a, .faq-item.is-open .faq-a { padding-left: 50px; padding-right: 18px; }
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .next-steps-grid { grid-template-columns: 1fr; gap: 50px; }
  .next-steps-grid::before { display: none; }
  .cf-row.cf-2col { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG · index + post hero
   ============================================================ */
.blog-intro { padding: 60px 0 30px; }
.blog-intro .container { max-width: 880px; }
.blog-crumb {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 24px;
}
.blog-crumb a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.blog-crumb a:hover { color: var(--accent); }
.blog-crumb .sep { color: var(--ink-faint); }
.blog-crumb .here { color: var(--accent-700); font-weight: 700; }
.blog-crumb .crumb-home {
  display: inline-flex; align-items: center;
  color: var(--ink-soft);
  line-height: 1;
}
.blog-crumb .crumb-home:hover { color: var(--accent); }
.blog-crumb .crumb-home svg { display: block; }
.blog-intro h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.02; letter-spacing: -.01em;
  margin-bottom: 20px;
}
.blog-intro .lead { max-width: 56ch; }

/* Featured post */
.blog-featured { padding: 30px 0 70px; }
.fp-card {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(22,19,15,.10);
  transition: transform .3s, box-shadow .3s;
}
.fp-card:hover { transform: translateY(-4px); box-shadow: 0 40px 80px rgba(22,19,15,.14); }
.fp-img {
  position: relative;
  background-color: var(--ink);
  background-size: cover; background-position: center;
  min-height: 380px;
}
.fp-img::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
}
.fp-img .fp-badge {
  position: absolute; top: 22px; left: 22px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  z-index: 1;
}
.fp-body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.fp-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.fp-tags .fp-tag {
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-700);
  letter-spacing: .06em; text-transform: uppercase;
}
.fp-body h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1;
  margin-bottom: 18px;
}
.fp-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-faint); margin-bottom: 22px; }
.fp-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }
.fp-author { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.fp-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 500; font-size: 18px;
}
.fp-author-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.fp-author-role { font-size: 13px; color: var(--ink-soft); }
.fp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fp-actions .btn { padding: 10px 18px; }
.fp-actions .btn-ai {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 14px;
}
.fp-actions .btn-ai:hover { border-color: var(--accent); color: var(--accent); }
.fp-actions .btn-ai .spark { color: var(--accent); }

/* Grid de posts */
.post-grid-wrap { padding: 60px 0 80px; border-top: 1px solid var(--line); background: var(--bg-2); }
.post-grid-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.post-grid-head h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(26px,3vw,38px); line-height: 1.1; }
.post-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.post-filters .pf-btn {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg);
  color: var(--ink-soft); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.post-filters .pf-btn:hover { color: var(--ink); border-color: var(--ink); }
.post-filters .pf-btn.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  text-decoration: none; color: inherit;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(22,19,15,.10); border-color: var(--accent); }
.post-card .pc-img {
  aspect-ratio: 16/10;
  background-color: var(--ink);
  background-size: cover; background-position: center;
  position: relative;
}
.post-card .pc-img::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.4px);
  background-size: 12px 12px;
}
.post-card .pc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .pc-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 10px; }
.post-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
.post-card .pc-excerpt { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin-bottom: 18px; flex: 1; }
.post-card .pc-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-faint);
}
.post-card .pc-author { display: flex; align-items: center; gap: 8px; }
.post-card .pc-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 11px; font-weight: 600;
}

/* ============================================================
   BLOG · single post (artículo abierto)
   ============================================================ */
.post-hero { padding: 50px 0 0; }
.post-hero .container { max-width: 980px; }
.post-hero h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05; letter-spacing: -.01em;
  margin: 18px 0 24px; max-width: 18ch;
}
.post-meta-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  padding: 24px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-top: 16px;
}
.post-meta-line {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-soft);
}
.post-meta-line .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }
.post-author-card {
  display: flex; align-items: center; gap: 14px;
}
.post-author-card .pa-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 500; font-size: 20px;
  flex-shrink: 0;
}
.post-author-card .pa-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.post-author-card .pa-role { font-size: 13px; color: var(--ink-soft); }
.post-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.post-actions .pa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); text-decoration: none;
  font-weight: 600; font-size: 14px;
  font-family: inherit;
  transition: all .2s; cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}
.post-actions .pa-btn:hover { border-color: var(--accent); color: var(--accent); }
.post-actions .pa-btn .spark { color: var(--accent); display: inline-flex; align-items: center; }
.post-actions .pa-btn .spark svg { width: 14px; height: 14px; }
.post-actions .pa-btn .caret { color: var(--ink-faint); font-size: 11px; }
.post-actions .pa-btn .pa-time {
  font-size: 12px; font-weight: 600;
  color: var(--ink-soft);
  padding-left: 8px; margin-left: 2px;
  border-left: 1px solid var(--line);
}
.post-actions .pa-btn.is-playing { border-color: var(--accent); color: var(--accent); }
.post-actions .pa-btn.is-playing .spark { animation: pa-pulse 1.4s ease-in-out infinite; }
@keyframes pa-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* Botón "Escuchar artículo" */
.post-listen {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 9px 22px 9px 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(247,86,43,.06), rgba(247,86,43,.02));
  border: 1px solid var(--line);
  margin: 36px auto 0;
  cursor: pointer; user-select: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  font-family: inherit;
  text-align: left;
}
.post-listen-wrap { display: flex; justify-content: center; }
.post-listen:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(247,86,43,.15); border-color: rgba(247,86,43,.3); }
.post-listen .pl-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-700));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(247,86,43,.35);
  position: relative;
}
.post-listen .pl-btn svg { width: 18px; height: 18px; }
.post-listen .pl-btn::after {
  content: "✦"; position: absolute; top: -2px; right: -2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px;
  box-shadow: 0 2px 5px rgba(247,86,43,.25);
}
.post-listen .pl-info { display: flex; flex-direction: column; gap: 1px; }
.post-listen .pl-title {
  font-weight: 700; color: var(--accent-700);
  font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
  line-height: 1.2;
}
.post-listen .pl-title .pl-help {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700;
}
.post-listen .pl-time { font-size: 12px; color: var(--ink-soft); line-height: 1.2; }

/* Resumen IA panel */
.post-summary {
  margin: 22px auto 0; max-width: 720px;
  background: var(--bg-2);
  border: 1px solid rgba(247,86,43,.3);
  border-radius: 18px;
  overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height .4s ease, opacity .3s, margin .4s;
}
.post-summary.is-open { max-height: 1200px; opacity: 1; margin-top: 22px; }
.post-summary .ps-inner { padding: 24px 28px 26px; }
.post-summary .ps-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.post-summary .ps-title {
  font-weight: 700; color: var(--accent-700); font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.post-summary .ps-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
  cursor: pointer; font-size: 14px; color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.post-summary .ps-close:hover { border-color: var(--accent); color: var(--accent); }
.post-summary ul { margin: 0; padding-left: 24px; font-size: 15px; line-height: 1.65; color: var(--ink); }
.post-summary ul li { margin-bottom: 8px; }
.post-summary ul li::marker { color: var(--accent); }
.post-summary .ps-foot {
  font-size: 11px; color: var(--ink-faint); margin-top: 16px;
  padding-top: 12px; border-top: 1px dashed var(--line);
  letter-spacing: .04em;
}

/* Estados del botón listen */
.post-listen.is-playing .pl-btn { animation: pl-pulse 1.6s ease-in-out infinite; }
@keyframes pl-pulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(247,86,43,.35); }
  50% { box-shadow: 0 10px 24px rgba(247,86,43,.55), 0 0 0 8px rgba(247,86,43,.12); }
}

/* Cover */
.post-cover {
  max-width: 1100px;
  margin: 40px auto 0;
  aspect-ratio: 16 / 8;
  border-radius: 24px;
  background-color: var(--ink);
  background-size: cover; background-position: center;
  position: relative;
  box-shadow: 0 40px 80px rgba(22,19,15,.18);
}
.post-cover::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background-image: radial-gradient(rgba(255,255,255,.15) 1.5px, transparent 1.6px);
  background-size: 16px 16px;
}

/* Body */
.post-body-wrap { padding: 60px 0 30px; }
.post-body { max-width: 720px; margin: 0 auto; }

/* Layout grid con TOC */
.post-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px) 260px;
  gap: 60px;
  justify-content: center;
  align-items: start;
}
.post-body-grid > .post-body { max-width: none; margin: 0; }

/* TOC */
.post-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  width: 100%;
  max-width: 280px;
}
.post-toc-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-700);
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: 18px;
  margin-left: 22px;
}
.post-toc-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 22px; line-height: 1.15; color: var(--ink);
  margin: 0 0 22px;
  padding-left: 22px;
}
.post-toc-list {
  list-style: none; padding: 0; margin: 0;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  display: flex; flex-direction: column;
  position: relative;
  border-left: 1.5px solid var(--line);
}
.post-toc-list::-webkit-scrollbar { width: 6px; }
.post-toc-list::-webkit-scrollbar-track { background: transparent; }
.post-toc-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.post-toc-list li { margin-left: -1.5px; }
.post-toc-list li a {
  display: block;
  padding: 10px 4px 10px 22px;
  font-size: 15px; line-height: 1.5;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.post-toc-list li a:hover { color: var(--ink); }
.post-toc-list li a.is-active {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--accent);
}

@media (max-width: 1100px) {
  .post-body-grid { grid-template-columns: 1fr; gap: 0; }
  .post-toc { display: none; }
}
.post-body .post-lead {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 22px; line-height: 1.5; color: var(--ink);
  margin-bottom: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.post-body p { font-size: 17px; line-height: 1.75; color: var(--ink); margin-bottom: 22px; }
.post-body h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(26px,2.6vw,34px); line-height: 1.15; margin: 50px 0 18px; }
.post-body h3 { font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 1.2; margin: 36px 0 14px; }
.post-body ul, .post-body ol { margin: 0 0 22px 24px; font-size: 17px; line-height: 1.7; color: var(--ink); }
.post-body ul li, .post-body ol li { margin-bottom: 10px; }
.post-body ul li::marker { color: var(--accent); }
.post-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 26px; margin: 36px 0;
  font-family: var(--font-serif); font-style: italic;
  font-size: 24px; line-height: 1.4; color: var(--ink);
}
.post-body code { background: var(--bg-2); padding: 2px 7px; border-radius: 4px; font-size: 0.92em; font-family: ui-monospace, monospace; color: var(--accent-700); }
.post-body pre { background: var(--ink); color: var(--bg); padding: 22px 24px; border-radius: 14px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 28px 0; }
.post-body pre code { background: transparent; padding: 0; color: var(--bg); }
.post-body a { color: var(--accent-700); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.post-body a:hover { color: var(--accent); }
.post-body img { max-width: 100%; border-radius: 14px; margin: 28px 0; }

/* Highlight box */
.post-callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 22px 26px; margin: 30px 0;
}
.post-callout .pc-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-700);
  margin-bottom: 6px;
}
.post-callout p { font-size: 16px; margin: 0; color: var(--ink); }

/* Compartir flotante */
.post-share-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 0; margin: 50px 0 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
}
.post-share-bar .ps-label { font-weight: 700; color: var(--ink); }
.post-share-bar .ps-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink); text-decoration: none;
  transition: all .2s;
}
.post-share-bar .ps-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Author bio (al final) */
.post-author-bio {
  max-width: 720px; margin: 50px auto 0;
  padding: 30px 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex; gap: 24px; align-items: center;
}
.post-author-bio .pab-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 500; font-size: 28px;
  flex-shrink: 0;
}
.post-author-bio h4 { font-family: var(--font-serif); font-weight: 500; font-size: 19px; margin-bottom: 6px; }
.post-author-bio p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin: 0 0 8px; }
.post-author-bio .pab-links { display: flex; gap: 14px; font-size: 13px; }
.post-author-bio .pab-links a { color: var(--accent-700); text-decoration: none; font-weight: 600; }
.post-author-bio .pab-links a:hover { color: var(--accent); }

/* Related posts */
.post-related { padding: 60px 0 80px; background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 60px; }
.post-related h3 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(22px,2.4vw,30px); margin-bottom: 30px; }

@media (max-width: 900px) {
  .post-meta-bar { flex-direction: column; align-items: flex-start; }
  .post-author-bio { flex-direction: column; text-align: center; }
}

/* Newsletter */
.newsletter {
  padding: 60px 0; border-top: 1px solid var(--line);
}
.newsletter .container {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center;
  background: var(--ink); color: var(--bg);
  border-radius: 24px; padding: 50px 50px;
  position: relative; overflow: hidden;
}
.newsletter .container::before {
  content: ""; position: absolute; right: -50px; bottom: -50px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,86,43,.35), transparent 70%);
}
.newsletter h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(26px,3vw,36px); line-height: 1.1; margin-bottom: 12px; position: relative; z-index: 1; }
.newsletter p { color: rgba(250,250,250,.7); position: relative; z-index: 1; }
.newsletter form {
  display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1;
}
.newsletter input[type="email"] {
  flex: 1; min-width: 200px;
  padding: 14px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06); color: var(--bg);
  font-size: 14px; font-family: inherit;
}
.newsletter input[type="email"]::placeholder { color: rgba(250,250,250,.5); }
.newsletter button {
  padding: 13px 22px; border-radius: 999px;
  border: 0; background: var(--accent); color: #fff;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .2s;
}
.newsletter button:hover { background: var(--accent-700); }

@media (max-width: 900px) {
  .fp-card { grid-template-columns: 1fr; }
  .fp-img { min-height: 240px; }
  .fp-body { padding: 28px 24px; }
  .post-grid { grid-template-columns: 1fr; }
  .newsletter .container { grid-template-columns: 1fr; padding: 36px 28px; }
}

/* ============================================================
   PROCESS TIMELINE — zigzag vertical
   ============================================================ */
.process-wrap { padding: 70px 0 100px; }
.process-head { text-align: center; max-width: 720px; margin: 0 auto 70px; }
.process-head h1 { font-size: clamp(34px,4vw,52px); line-height: 1.05; margin: 14px 0 18px; }
.process-head .lead { margin: 0 auto; }

.process-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 0;
}
.process-timeline::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 0%, var(--accent) 8%, var(--accent) 92%, transparent 100%);
  opacity: .5;
}
.pt-stage {
  position: relative;
  display: grid; grid-template-columns: 1fr 80px 1fr;
  gap: 36px; margin-bottom: 56px;
  align-items: start;
}
.pt-stage:last-child { margin-bottom: 0; }
.pt-marker {
  grid-column: 2;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  margin: 0 auto;
  box-shadow: 0 14px 30px rgba(247,86,43,.28);
}
.pt-marker .pt-num {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 28px; color: var(--accent); line-height: 1;
}
.pt-marker::before {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%; border: 1px dashed var(--accent);
  opacity: .35;
}
.pt-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
  box-shadow: 0 18px 40px rgba(22,19,15,.06);
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.pt-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(22,19,15,.10); }
.pt-stage.left  .pt-card { grid-column: 1; text-align: right; }
.pt-stage.right .pt-card { grid-column: 3; text-align: left; }
.pt-card::after {
  content: ""; position: absolute; top: 32px;
  width: 14px; height: 14px;
  background: var(--bg); border: 1px solid var(--line);
  transform: rotate(45deg);
}
.pt-stage.left  .pt-card::after { right: -8px; border-left: 0; border-bottom: 0; }
.pt-stage.right .pt-card::after { left:  -8px; border-right: 0; border-top:    0; }
.pt-week {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-700);
  background: var(--accent-soft);
  padding: 4px 10px; border-radius: 6px;
  margin-bottom: 14px;
}
.pt-card h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 24px; line-height: 1.15; margin-bottom: 10px;
  color: var(--ink);
}
.pt-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; }
.pt-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pt-stage.left  .pt-card ul { align-items: flex-end; }
.pt-card ul li {
  position: relative; padding-left: 22px;
  font-size: 14px; color: var(--ink); line-height: 1.45;
}
.pt-stage.left  .pt-card ul li { padding-left: 0; padding-right: 22px; }
.pt-card ul li::before {
  content: "✓"; position: absolute; top: 0;
  color: var(--accent); font-weight: 700;
}
.pt-stage.left  .pt-card ul li::before { right: 0; left: auto; }
.pt-stage.right .pt-card ul li::before { left: 0; }

@media (max-width: 900px) {
  .process-timeline::before { left: 32px; }
  .pt-stage { grid-template-columns: 64px 1fr; gap: 16px; }
  .pt-marker { grid-column: 1; width: 56px; height: 56px; }
  .pt-marker .pt-num { font-size: 22px; }
  .pt-stage.left .pt-card,
  .pt-stage.right .pt-card { grid-column: 2; text-align: left; }
  .pt-stage.left .pt-card::after,
  .pt-stage.right .pt-card::after { left: -8px; right: auto; border-right: 0; border-top: 0; }
  .pt-stage.left  .pt-card ul,
  .pt-stage.right .pt-card ul { align-items: flex-start; }
  .pt-stage.left  .pt-card ul li { padding-left: 22px; padding-right: 0; }
  .pt-stage.left  .pt-card ul li::before { left: 0; right: auto; }
}

/* ============================================================
   SPRINT CARD — qué entregas en cada ciclo
   ============================================================ */
.sprint-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(22,19,15,.10);
  max-width: 460px; width: 100%;
}
.sprint-card .sc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.sprint-card .sc-head .sc-title { font-family: var(--font-serif); font-weight: 500; font-size: 19px; }
.sprint-card .sc-head .sc-day {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; letter-spacing: .04em;
}
.sprint-card .sc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sprint-card .sc-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; color: var(--ink);
}
.sprint-card .sc-item .sc-tag {
  margin-left: auto; font-size: 10px; padding: 3px 8px; border-radius: 6px;
  background: var(--bg); color: var(--ink-faint);
  font-family: ui-monospace, monospace; border: 1px solid var(--line);
  letter-spacing: .04em;
}
.sprint-card .sc-item .sc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.sprint-card .sc-item.is-done .sc-dot { background: #6BB07F; }
.sprint-card .sc-item.is-todo .sc-dot { background: var(--ink-faint); }

/* ============================================================
   CASOS DE ÉXITO — portfolio
   ============================================================ */
.cases-wrap { padding: 70px 0 60px; }
.cases-intro { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.cases-intro h1 { font-size: clamp(34px,4vw,52px); line-height: 1.05; margin: 14px 0 18px; }
.cases-intro .lead { margin: 0 auto; }

.case-featured {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 44px 44px 44px;
  margin-bottom: 60px;
  overflow: hidden;
  position: relative;
}
.case-featured::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--accent) 1.5px, transparent 1.6px);
  background-size: 14px 14px; opacity: .07;
  pointer-events: none;
}
.case-featured .cf-img {
  position: relative; z-index: 1;
  aspect-ratio: 4/3;
  border-radius: 18px;
  background-color: var(--ink);
  background-size: cover; background-position: center;
  box-shadow: 0 30px 60px rgba(22,19,15,.18);
}
.case-featured .cf-body { position: relative; z-index: 1; }
.case-featured .cf-pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.case-featured h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(28px,3vw,40px); line-height: 1.1; margin-bottom: 16px; }
.case-featured .cf-desc { color: var(--ink-soft); font-size: 17px; line-height: 1.6; margin-bottom: 24px; }
.case-featured .cf-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.case-featured .cf-metric { padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.case-featured .cf-metric .cf-num { font-family: var(--font-serif); font-size: 28px; font-weight: 500; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.case-featured .cf-metric .cf-label { font-size: 12px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; }
.case-featured .cf-services { display: flex; flex-wrap: wrap; gap: 8px; }
.case-featured .cf-service {
  font-size: 12px; padding: 5px 10px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--ink-soft);
}

.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.case-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(22,19,15,.10); border-color: var(--accent); }
.case-card .cc-img {
  aspect-ratio: 16/10;
  background-color: var(--ink);
  background-size: cover; background-position: center;
  position: relative;
}
.case-card .cc-img .cc-logo {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 12px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--ink);
  font-family: var(--font-sans); letter-spacing: .03em;
}
.case-card .cc-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.case-card .cc-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-700); margin-bottom: 10px; }
.case-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
.case-card .cc-desc { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin-bottom: 18px; flex: 1; }
.case-card .cc-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.case-card .cc-metric { padding: 10px 12px; background: var(--bg-2); border-radius: 10px; }
.case-card .cc-metric .cc-num { font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: var(--accent); line-height: 1; }
.case-card .cc-metric .cc-label { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.case-card .cc-foot { padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.case-card .cc-services { color: var(--ink-faint); }
.case-card .cc-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.case-card .cc-link:hover { color: var(--accent); }

/* Banda métricas globales */
.cases-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  padding: 50px 40px;
  background: var(--ink); color: var(--bg);
  border-radius: 24px;
  margin-top: 70px;
}
.cases-stats .cs-item { text-align: center; }
.cases-stats .cs-num { font-family: var(--font-serif); font-weight: 500; font-size: clamp(36px,4vw,54px); color: var(--accent); line-height: 1; margin-bottom: 8px; }
.cases-stats .cs-label { font-size: 13px; color: rgba(250,250,250,.65); letter-spacing: .04em; }

@media (max-width: 900px) {
  .case-featured { grid-template-columns: 1fr; padding: 30px; }
  .case-featured .cf-metrics { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .cases-stats { grid-template-columns: 1fr 1fr; padding: 36px 24px; gap: 24px; }
}

/* Visual: tarjeta de syllabus / progreso de curso */
.fb-lessons {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px; max-width: 420px; width: 100%;
  box-shadow: 0 30px 60px rgba(22,19,15,.12);
}
.fb-lessons h5 { font-family: var(--font-serif); font-weight: 500; font-size: 19px; margin: 0 0 6px; color: var(--ink); }
.fb-lessons .fl-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.fb-lessons .fl-bar { height: 6px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.fb-lessons .fl-bar > i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.fb-lessons ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fb-lessons li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: var(--bg-2); border-radius: 10px;
  font-size: 14px; color: var(--ink);
}
.fb-lessons li .fl-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
}
.fb-lessons li.is-pending { color: var(--ink-soft); }
.fb-lessons li.is-pending .fl-check { background: var(--bg); border: 1px solid var(--line); color: var(--ink-faint); }
.fb-lessons li .fl-dur { margin-left: auto; color: var(--ink-faint); font-size: 12px; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .feat-block .container { grid-template-columns: 1fr; gap: 50px; }
  .feat-block.reverse .fb-text { order: 0; }
  .fb-visual { min-height: 480px; }
  .fb-stack { max-width: 320px; }
}

/* ============================================================
   GALERÍA DE MÓDULOS — grid de tarjetas
   ============================================================ */
.gallery-wrap { padding: 84px 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.gallery-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.gallery-head h2 { font-size: clamp(28px,3.2vw,40px); margin: 14px 0 14px; }
.gallery-head .lead { margin: 0 auto; }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.gallery-filters .gf-btn {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink-soft); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.gallery-filters .gf-btn:hover { color: var(--ink); border-color: var(--ink); }
.gallery-filters .gf-btn.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.g-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.g-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(22,19,15,.08); border-color: var(--accent); }
.g-card .g-thumb {
  position: relative;
  height: 150px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  overflow: hidden;
}
.g-card .g-thumb::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--accent) 1px, transparent 1.2px);
  background-size: 10px 10px;
  opacity: .15;
}
.g-card .g-ico {
  position: relative; z-index: 1;
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 12px 30px rgba(22,19,15,.18);
}
.g-card .g-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-700); margin-bottom: 10px;
}
.g-card h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 20px; line-height: 1.2; margin-bottom: 10px;
  color: var(--ink);
}
.g-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; margin: 0; flex: 1; }
.g-card .g-foot {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
}
.g-card .g-foot .g-status { color: var(--ink-faint); }
.g-card .g-foot .g-link {
  color: var(--ink); font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.g-card .g-foot .g-link:hover { color: var(--accent); }

@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .gallery-filters .gf-btn { white-space: nowrap; }
}

@media (max-width: 900px) {
  .svc-hero .container,
  .feature .container { grid-template-columns: 1fr; gap: 36px; }
  .feature.reverse .feat-text { order: 0; }
  .principles-grid { grid-template-columns: 1fr; gap: 30px; }
  .stage { min-width: 140px; }
  .pipeline .arrow { transform: rotate(90deg); }
}

/* ==========================================================================
   QUIÉNES SOMOS — hero de-zoom + marquee + patrón
   ========================================================================== */
.about-hero { position: relative; height: 230vh; margin-top: -120px; background: var(--grad-hero); color: var(--ink); }
.about-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }

.about-top { position: absolute; top: 42px; left: 0; right: 0; text-align: center; z-index: 5; }
.about-top img { height: 24px; width: auto; margin: 0 auto 12px; display: block; }
.about-top .eyebrow { color: var(--ink-soft); margin: 0; }

/* Marquee (dos filas que se desplazan en sentidos opuestos) */
.about-marquee { position: absolute; left: 0; width: 100%; white-space: nowrap; overflow: hidden; z-index: 1; }
.about-marquee.row1 { top: 38%; }
.about-marquee.row2 { top: 50%; }
.about-marquee .track { display: inline-block; will-change: transform; line-height: 1; }
.about-marquee.row1 .track { font-family: var(--font-serif); font-style: italic; font-size: 8.5vw; color: var(--accent); animation: marq-l 28s linear infinite; }
.about-marquee.row2 .track { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 8.5vw; color: var(--ink); opacity: .88; animation: marq-r 34s linear infinite; }
@keyframes marq-l { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes marq-r { from { transform: translateX(-50%); }  to { transform: translateX(0); } }

/* Foto a pantalla completa que se aleja (de-zoom) al hacer scroll, revelando el marquee */
.about-photo { position: relative; z-index: 2; margin: 0; width: 100vw; height: 100vh; transform: scale(var(--z, 1.05)); transform-origin: center; will-change: transform; }
.about-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);   /* blanco y negro */
  border-radius: 3px;
}

/* Intro tras el hero */
.about-intro { padding: 100px 0; }
.about-intro h2 { max-width: 18ch; margin: 14px 0 20px; }
.about-intro .lead { max-width: 680px; }

@media (max-width: 768px) {
  .about-marquee.row1 .track, .about-marquee.row2 .track { font-size: 12vw; }
  .about-hero { height: 200vh; }
}
@media (prefers-reduced-motion: reduce) {
  .about-marquee .track { animation: none; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: 70px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; }
.footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 18px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 12px; }
.footer li a { font-size: 15px; color: var(--ink-soft); }
.footer li a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-faint); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .cards-grid, .steps, .footer-grid { grid-template-columns: 1fr 1fr; }
  .statement-grid, .quote-grid { grid-template-columns: 1fr; }
  .statement-visual { min-height: 240px; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .cards-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 20px 50px; }
}

/* ==========================================================================
   FORMACIÓN IA — beneficios (grid con check) + método a 4 columnas
   ========================================================================== */
.benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 44px; }
.benefit {
  display: flex; gap: 14px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; transition: box-shadow .25s, transform .25s, border-color .25s;
}
html[data-theme="dark"] .benefit { background: var(--bg-2); }
.benefit:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(22,19,15,.07); border-color: rgba(247,86,43,.4); }
.benefit .b-ico {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.benefit p { margin: 0; font-weight: 600; font-size: 15.5px; line-height: 1.4; color: var(--ink); }

/* Método: cuatro pasos en una fila (override de .steps, que es de 3) */
.steps.steps-4 { grid-template-columns: repeat(4,1fr); }

@media (max-width: 1000px) {
  .steps.steps-4 { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .steps.steps-4 { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
}

/* Beneficios — diagrama HUB (cajas-pastilla + líneas con flechas a núcleo central, ref. Orb) */
.benefit-hub {
  position: relative; width: 100%; max-width: 1000px; margin: 56px auto 0;
  aspect-ratio: 1200 / 460; z-index: 1;
}
/* fondo atmosférico de la sección: franjas verticales difuminadas, fade suave (ref. Orb) */
#beneficios { position: relative; overflow: hidden; }
#beneficios > .container { position: relative; z-index: 1; }
#beneficios::before {
  content: ""; position: absolute; left: -12%; right: -12%; top: 0; bottom: -8%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 65% at 16% 50%, rgba(247,86,43,.13), transparent 68%),
    radial-gradient(55% 70% at 72% 52%, rgba(43,182,194,.14), transparent 68%),
    radial-gradient(42% 55% at 92% 40%, rgba(74,144,226,.08), transparent 68%),
    repeating-linear-gradient(90deg, rgba(43,182,194,.085) 0 60px, transparent 60px 132px),
    repeating-linear-gradient(0deg,  rgba(247,86,43,.06) 0 52px, transparent 52px 132px),
    repeating-linear-gradient(90deg, rgba(74,144,226,.05) 84px 150px, transparent 150px 264px),
    repeating-linear-gradient(0deg,  rgba(43,182,194,.04) 96px 150px, transparent 150px 288px);
  filter: blur(16px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 82%, transparent 100%);
}
html[data-theme="dark"] #beneficios::before { opacity: .6; }

/* MÉTODO + intro — scrollytelling: imagen comparativa fija (sticky) izq. + paneles de texto que se intercambian (estilo Orb) */
.scrolly { position: relative; }
/* formacion-ia: sin líneas divisorias entre secciones (solo esta página) */
body.page-formacion section { border-top: none; }
/* formacion-ia: tamaño de H2 de sección unificado (el hero conserva su tamaño inline) */
body.page-formacion h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; }
/* formacion-ia: la pregunta de FAQ ahora es h3 pero conserva el estilo del texto previo */
body.page-formacion h3.faq-q-text { margin: 0; }
/* formacion-ia: unificar el tamaño del texto de cuerpo entre intro (scrollytelling), método y ¿para quién? */
body.page-formacion .svc-hero-text .lead,
body.page-formacion .scrolly-panel .fb-desc,
body.page-formacion .method-list .ml-body p,
body.page-formacion .principle p { font-size: 16px; line-height: 1.6; }
/* ====================== diseño web (webs.html) — mismo tratamiento que formacion-ia ====================== */
/* quitar el "título de arriba" (eyebrow) de todas las secciones MENOS la 1 (el hero va en <header>, conserva el suyo) */
body.page-disenoweb section .eyebrow { display: none; }
/* excepción: los subtítulos PASO 1/2/3 de las tarjetas ladder SÍ se muestran */
body.page-disenoweb .ladder-card .eyebrow { display: block; }
/* sin líneas divisorias entre secciones (solo esta página) */
body.page-disenoweb section { border-top: none; }
/* tamaño de H2 de sección unificado (el hero conserva su tamaño) */
body.page-disenoweb h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; }
/* lead del hero al mismo tamaño de cuerpo que el resto */
body.page-disenoweb .svc-hero-text .lead { font-size: 16px; line-height: 1.6; }
/* la pregunta de FAQ ahora es h3 pero conserva el estilo del texto previo */
body.page-disenoweb h3.faq-q-text { margin: 0; }
/* cita estilo testimonial: logo que alterna por tema (como el del nav) */
body.page-disenoweb .quote-logo .ql-dark  { display: inline-block; }
body.page-disenoweb .quote-logo .ql-light { display: none; }
html[data-theme="dark"] body.page-disenoweb .quote-logo .ql-dark  { display: none; }
html[data-theme="dark"] body.page-disenoweb .quote-logo .ql-light { display: inline-block; }

/* animación de entrada deslizando desde la derecha (al hacer scroll) */
.reveal-r { opacity: 0; transform: translateX(48px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal-r.in { opacity: 1; transform: none; }
.principles-grid .reveal-r:nth-child(2), .cards-grid .reveal-r:nth-child(2) { transition-delay: .08s; }
.principles-grid .reveal-r:nth-child(3), .cards-grid .reveal-r:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .reveal-r { opacity: 1; transform: none; transition: none; } }

/* POR QUÉ GRAFS — acordeón (izq.) + imagen (der.) */
.why-grafs { padding: 90px 0; }
.wg-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.wg-left .eyebrow { margin: 0 0 10px; }
.wg-acc { border-top: 1px solid var(--line); }
.wg-item { border-bottom: 1px solid var(--line); }
.wg-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 16px; padding: 22px 0;
  font-family: var(--font-serif); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; color: var(--ink);
  transition: color .2s ease;
}
.wg-q:hover { color: var(--accent); }
.wg-ico { position: relative; flex: 0 0 auto; width: 11px; height: 11px; }
.wg-ico::before, .wg-ico::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.wg-ico::before { left: 0; right: 0; top: 5px; height: 1.5px; }
.wg-ico::after { top: 0; bottom: 0; left: 5px; width: 1.5px; }
.wg-item.is-open .wg-ico::after { transform: scaleY(0); opacity: 0; }
.wg-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.wg-a-inner { overflow: hidden; }
.wg-a-inner p { margin: 0 0 22px 34px; color: var(--ink-soft); line-height: 1.7; max-width: 52ch; }
.wg-item.is-open .wg-a { grid-template-rows: 1fr; }
.wg-right { position: sticky; top: 110px; }
.wg-img {
  aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
}
.wg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wg-img-ph { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 900px) {
  .wg-grid { grid-template-columns: 1fr; gap: 32px; }
  .wg-right { position: static; order: -1; }
  .wg-img { aspect-ratio: 16 / 10; }
}
.scrolly-sticky { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; }
.scrolly-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; width: 100%; }
/* visuales izquierda: dos frames que se funden (comparativa <-> ilustración método) */
.scrolly-visuals { position: relative; min-height: 460px; }
.sv-frame {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}
.sv-frame.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease; }
.scrolly-panels { position: relative; min-height: 62vh; }
/* ilustración método: tarjetas flotantes estilo Orb */
.method-illu { position: relative; width: 100%; max-width: 420px; min-height: 400px; margin: 0 auto; }
.method-illu::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: 0; border-radius: 26px;
  background:
    radial-gradient(50% 60% at 24% 28%, rgba(43,182,194,.20), transparent 70%),
    radial-gradient(52% 60% at 82% 72%, rgba(247,86,43,.16), transparent 70%);
  filter: blur(32px);
}
/* liquid glass (estilo Apple): translúcido + desenfoque del fondo */
.mi-card {
  position: absolute; border-radius: 18px;
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 10px 30px rgba(22,19,15,.08), inset 0 1px 0 rgba(255,255,255,.6);
}
html[data-theme="dark"] .mi-card {
  background: rgba(42,44,50,.45); border-color: rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
}
/* tarjeta 1 (mini): roadmap horizontal de nodos, sin texto (no repite los pasos) */
.mi-mini { top: 6px; left: 0; width: 54%; padding: 18px 20px; z-index: 2; }
.mi-mini-road { position: relative; display: flex; align-items: center; justify-content: space-between; }
.mi-mini-line { position: absolute; left: 15px; right: 15px; top: 50%; height: 2px; background: var(--line); transform: translateY(-50%); }
.mi-mini-fill { position: absolute; left: 15px; width: 33%; top: 50%; height: 2px; background: var(--accent); transform: translateY(-50%); }
.mi-node-sm {
  position: relative; z-index: 1; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.7); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-faint);
}
.mi-node-sm.is-done { background: var(--accent); border-color: var(--accent); color: #fff; }
.mi-node-sm.is-now { border-color: var(--accent); color: var(--accent); background: rgba(255,255,255,.85); }
/* conector tipo cable entre tarjeta 1 y tarjeta 2 */
.mi-wire {
  position: absolute; left: 30px; top: 64px; width: 64px; height: 118px; z-index: 1;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  border-bottom-left-radius: 16px; opacity: .5;
}
/* tarjeta 2 (protagonista): diagnóstico de tareas */
.mi-diag { bottom: 0; right: 0; width: 76%; padding: 22px 24px; z-index: 3; display: flex; flex-direction: column; gap: 18px; }
.mi-diag-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.mi-q { display: flex; flex-direction: column; gap: 9px; }
.mi-q-text { margin: 0; font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mi-opt { display: flex; align-items: center; gap: 10px; }
.mi-radio { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); }
.mi-opt.is-sel .mi-radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 42%, transparent 46%); }
.mi-opt-bar { height: 8px; border-radius: 4px; background: rgba(25,26,30,.10); }
html[data-theme="dark"] .mi-opt-bar { background: rgba(255,255,255,.14); }

/* LOGOS IA — marquee de tarjetas grises (auto-scroll continuo) */
.logos-strip {
  overflow: hidden; padding: 44px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-track { display: flex; gap: 18px; width: max-content; animation: logos-scroll 40s linear infinite; }
.logos-strip:hover .logos-track { animation-play-state: paused; }
.logo-card {
  flex: 0 0 auto; width: 200px; height: 108px; background: var(--bg-2); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.logo-wm {
  font-family: var(--font-head, var(--font-sans)); font-weight: 700; font-size: 21px; letter-spacing: .01em;
  color: var(--ink-faint); opacity: .85;
}
@keyframes logos-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; } }
@media (max-width: 600px) { .logo-card { width: 152px; height: 88px; } .logo-wm { font-size: 17px; } }
.scrolly-panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}
.scrolly-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease; }
.scrolly-panel h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; margin: 0 0 18px; }
.scrolly-panel .fb-desc { color: var(--ink-soft); margin-bottom: 18px; max-width: 52ch; line-height: 1.65; }
.scrolly-spacer { height: 88vh; }
@media (max-width: 980px) {
  .scrolly-sticky { position: static; min-height: 0; padding: 50px 0; }
  .scrolly-grid { grid-template-columns: 1fr; gap: 36px; }
  .scrolly-panels { min-height: 0; display: flex; flex-direction: column; gap: 40px; }
  .scrolly-panel { position: static; opacity: 1; visibility: visible; transform: none; }
  .scrolly-visuals { min-height: 0; display: flex; flex-direction: column; gap: 24px; }
  .sv-frame { position: static; opacity: 1; visibility: visible; transform: none; }
  .scrolly-spacer { display: none; }
}

/* MÉTODO — lista numerada de pasos */
.method-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 20px; }
.method-list li { display: flex; gap: 16px; align-items: flex-start; }
.method-list .ml-num {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.method-list .ml-body h3 { margin: 3px 0 6px; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.2; }
.method-list .ml-body p { margin: 0; color: var(--ink-soft); line-height: 1.6; max-width: 46ch; }
@media (max-width: 980px) {
  #practica .fb-visual { position: static; }
}
.bh-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bh-line { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .55; }
.bh-arrow { fill: var(--accent); }
.bh-dot { fill: var(--accent); }
/* núcleo central */
.bh-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2; width: 19%; min-width: 116px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 18px; box-shadow: 0 18px 44px rgba(22,19,15,.10);
}
html[data-theme="dark"] .bh-core { background: var(--bg-2); }
.bh-core-ico {
  width: 54px; height: 54px; border-radius: 13px; background: var(--ink); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1;
}
.bh-core-label {
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--ink);
}
/* pastillas de beneficios */
.bh-items { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }
.bh-item {
  position: absolute; transform: translateY(-50%); width: 23%;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; box-shadow: 0 8px 22px rgba(22,19,15,.05);
  font-family: var(--font-sans); font-size: 15.5px; font-weight: 600; line-height: 1.32; color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
html[data-theme="dark"] .bh-item { background: var(--bg-2); }
.bh-item:hover { box-shadow: 0 16px 32px rgba(22,19,15,.09); border-color: rgba(247,86,43,.45); }
/* posiciones: izquierda (ancla derecha a 25%) y derecha (ancla izquierda a 75%) */
.pos-l1, .pos-l2, .pos-l3 { right: 75%; }
.pos-r1, .pos-r2, .pos-r3 { left: 75%; }
.pos-l1 { top: 19.6%; } .pos-l2 { top: 50%; } .pos-l3 { top: 80.4%; }
.pos-r1 { top: 19.6%; } .pos-r2 { top: 50%; } .pos-r3 { top: 80.4%; }
.bh-item.pos-l1:hover, .bh-item.pos-l2:hover, .bh-item.pos-l3:hover { transform: translateY(-50%) translateX(-3px); }
.bh-item.pos-r1:hover, .bh-item.pos-r2:hover, .bh-item.pos-r3:hover { transform: translateY(-50%) translateX(3px); }
/* responsive: apila en columna y oculta las líneas */
@media (max-width: 860px) {
  .benefit-hub { aspect-ratio: auto; max-width: 460px; padding: 24px 16px; }
  .bh-lines { display: none; }
  .bh-core { position: static; transform: none; width: auto; min-width: 0; margin: 0 auto 20px; flex-direction: row; gap: 14px; }
  .bh-items { position: static; display: flex; flex-direction: column; gap: 12px; }
  .bh-item { position: static; transform: none; width: 100%; }
  .bh-item.pos-l1:hover, .bh-item.pos-l2:hover, .bh-item.pos-l3:hover,
  .bh-item.pos-r1:hover, .bh-item.pos-r2:hover, .bh-item.pos-r3:hover { transform: translateY(-2px); }
}

/* ==========================================================================
   LADDER — tarjetas escalonadas que descienden (estilo Orb)
   Tres columnas; cada una arranca más abajo que la anterior. En móvil se apila.
   ========================================================================== */
.ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
  margin-top: 56px;
}
.ladder-card { max-width: 33ch; }
/* el descenso escalonado */
.ladder .l2 { margin-top: 104px; }
.ladder .l3 { margin-top: 208px; }

.ladder-ico {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 30px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.ladder-ico svg {
  width: 28px; height: 28px;
  color: var(--ic, var(--accent));
  display: block;
}
html[data-theme="dark"] .ladder-ico { background: var(--bg-2); border: 1px solid var(--line); }
.ladder-card:hover .ladder-ico { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(22,19,15,.16); }

.ladder-card .eyebrow { color: var(--accent); font-size: 12.5px; margin-bottom: 12px; }
.ladder-card h3 { margin-bottom: 16px; max-width: 13ch; }
.ladder-card p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; margin: 0; }

@media (max-width: 960px) {
  .ladder { grid-template-columns: 1fr; gap: 44px; margin-top: 44px; }
  .ladder .l2, .ladder .l3 { margin-top: 0; }
  .ladder-card { max-width: 46ch; }
}
