/* =========================================================================
   Juan Pablo Neveu — Asesoría estratégica en IA
   Sistema de diseño institucional (sin dependencias)
   ========================================================================= */

:root {
  /* Marca */
  --brand:      #003176;   /* azul institucional (marca) */
  --brand-ink:  #0B1E3D;   /* texto principal */
  --brand-deep: #071A36;   /* fondos oscuros */
  --accent:     #0098DA;   /* azul de apoyo: líneas y detalles */
  --warm:       #B4622D;   /* acento cálido para TEXTO (contraste suficiente) */
  --dot:        #F28C38;   /* "punto cálido" del Key Visual: puntos y subrayados */
  --cyan:       #0DF4FD;   /* luz, nodos (solo en pequeñas dosis) */
  --turquoise:  #5CC6D0;

  /* Neutros (Key Visual: arena, arena profunda, bruma) */
  --paper:  #FBF9F4;
  --sand:   #F4EFE6;
  --sand-2: #E7DDCC;
  --mist:   #E2F0F1;
  --line:   #E4DCCD;
  --muted:  #556275;
  --white:  #FFFFFF;

  /* Tipografía */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Medidas */
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11, 30, 61, .04), 0 12px 32px -12px rgba(11, 30, 61, .12);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--brand-ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; color: var(--brand-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--brand-ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.3; }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(780px + var(--gutter) * 2); }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--dark { background: var(--brand-deep); color: #D6DEEA; }
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }
.section--border { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-head p { color: #AFBDD1; }

.grid { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 880px) { .split, .split--even { grid-template-columns: 1fr; } }

.sticky { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 880px) { .sticky { position: static; } }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none; }
.section--dark .eyebrow { color: #8FD3F2; }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.24rem); line-height: 1.65; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.serif-em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--brand); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--font-sans); font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { background: var(--sand); color: var(--brand-deep); }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: .86rem; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem;
  color: var(--brand); text-decoration: none; border-bottom: 1.5px solid var(--sand-2); padding-bottom: 2px;
}
.link-arrow:hover { border-color: var(--accent); color: var(--brand); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand-ink); }
.brand:hover { color: var(--brand-ink); }
.brand__iso { height: 44px; width: auto; flex: none; transition: transform .6s cubic-bezier(.3, 1.5, .5, 1); }
.brand:hover .brand__iso { transform: rotate(-8deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { display: block; height: 22px; width: auto; aspect-ratio: 504.8 / 68.7; overflow: visible; }
.brand__tag { font-size: .62rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.brand--claro .brand__tag { color: #9FDDF3; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 8px 12px; font-size: .9rem; font-weight: 500;
  color: var(--brand-ink); text-decoration: none; border-radius: 999px;
}
.nav__link:hover { color: var(--brand); background: var(--sand); }
.nav__link[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--warm); border-radius: 2px;
}
.nav__cta { margin-left: 12px; }

.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font: 600 .86rem var(--font-sans); color: var(--brand-ink); cursor: pointer;
}
.nav-toggle__bars { width: 18px; height: 12px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; box-shadow: 0 24px 40px -24px rgba(11, 30, 61, .25);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__link:hover { background: transparent; }
  .nav__link[aria-current="page"]::after { left: 4px; right: auto; width: 24px; bottom: 8px; }
  .nav__cta { margin: 20px 0 0; }
}
@media (max-width: 420px) {
  .brand { gap: 9px; }
  .brand__iso { height: 36px; }
  .brand__name { height: 19px; }
  .brand__tag { font-size: .5rem; letter-spacing: .1em; }
}
@media (max-width: 380px) {
  .nav-toggle { padding: 8px 12px; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 330px) {
  .brand__name { height: 17px; }
  .brand__tag { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 15ch; }
.hero__sub {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem); color: var(--brand); margin: 6px 0 22px; line-height: 1.35;
}
.hero__visual { position: relative; }
.hero__visual svg { width: 100%; height: auto; }

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 20ch; }

/* ---------- Franja de credenciales ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
/* Franja de cifras: 4 datos en una fila (escritorio) y 2×2 (tablet y celular) */
.proof__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof__item { padding: 26px 20px; border-left: 1px solid var(--line); }
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__item:only-child { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.proof__item:only-child .proof__num { margin: 0; }
.proof__num { font-family: var(--font-serif); font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; color: var(--brand); margin-bottom: 8px; }
.proof__num--text { font-size: clamp(1.05rem, 1.5vw, 1.25rem); padding-top: 10px; line-height: 1.25; }
.proof__label { font-size: .84rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 880px) {
  .proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__item { padding: 22px 16px; border-top: 0; border-left: 1px solid var(--line); }
  .proof__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Tarjetas ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px); height: 100%;
  display: flex; flex-direction: column;
}
.card--sand { background: var(--sand); border-color: transparent; }
.card p:last-child { margin-bottom: 0; }
.card__num {
  font-family: var(--font-serif); font-size: .95rem; color: var(--warm);
  margin-bottom: 18px; letter-spacing: .02em;
}
.card h3 { margin-bottom: 10px; }
.card .link-arrow { margin-top: auto; align-self: flex-start; }
.card__body { color: var(--muted); margin-bottom: 20px; }

a.card { text-decoration: none; color: inherit; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
a.card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }

.problem { border-top: 2px solid var(--brand); padding-top: 22px; }
.problem h3 { font-size: 1.2rem; }
.problem p { color: var(--muted); margin: 0; }

/* ---------- Puntos de dolor ---------- */
.pain {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; height: 100%;
}
.pain h3 { font-size: 1.22rem; margin-bottom: 10px; }
.pain__detail { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.pain__fix {
  margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--brand-ink); line-height: 1.6;
}
.pain__fix span {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.pain__fix span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }

/* ---------- Plataformas ---------- */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 520px) { .tools { grid-template-columns: 1fr; } }
.tool {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.tool__name { font-family: var(--font-serif); font-size: 1.2rem; color: var(--brand-ink); }
.tool__use { font-size: .88rem; color: var(--muted); }

/* ---------- Ejemplos ---------- */
.examples { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); counter-reset: ex; }
@media (max-width: 760px) { .examples { grid-template-columns: 1fr; } }
.examples li {
  counter-increment: ex; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start;
  padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); color: #D6DEEA;
}
.examples li::before { content: counter(ex, decimal-leading-zero); font-family: var(--font-serif); color: #8FD3F2; font-size: .95rem; padding-top: 1px; }

/* =========================================================================
   VITRINA "ASÍ SE VE POR DENTRO"
   ========================================================================= */

/* Piezas sueltas dentro de cada servicio */
.ev-inline {
  margin-top: 28px; padding: clamp(16px, 2.4vw, 24px); border-radius: 18px; color: #C9D5E6;
  background:
    radial-gradient(600px 260px at 90% -10%, rgba(0, 152, 218, .25), transparent 60%),
    var(--brand-deep);
  box-shadow: 0 30px 60px -34px rgba(7, 26, 54, .8);
}
.ev-inline strong, .ev-inline b { color: #fff; }
.ev-inline__k { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8FD3F2; }
.ev-inline__k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.ev-inline .ev__panel { grid-template-columns: 1fr; gap: 14px; }
.ev-inline .ev__panel + .ev__panel { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); }
.ev-inline .ev__disclaimer { margin-top: 14px; }
/* Las animaciones arrancan recién cuando la pieza entra en pantalla */
.ev-inline:not(.is-visible) .ev__panel *,
.ev-inline:not(.is-visible) .ev__panel { animation-play-state: paused !important; }
.section--ev {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(0, 152, 218, .22), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(13, 244, 253, .10), transparent 60%),
    var(--brand-deep);
  color: #C9D5E6; position: relative; overflow: hidden; isolation: isolate;
}
.section--ev::after { /* grilla sutil del Key Visual */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.section--ev h2, .section--ev strong, .section--ev b { color: #fff; }
.section--ev .section-head p { color: #AFBDD1; }
.section--ev .eyebrow { color: #8FD3F2; }

.ev { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 980px) { .ev { grid-template-columns: 1fr; } }

/* Pestañas */
.ev__tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--header-h) + 24px); }
.ev__tab {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center;
  text-align: left; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); color: #AFBDD1;
  font: inherit; transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.ev__tab:hover { background: rgba(255, 255, 255, .07); transform: translateX(3px); }
.ev__tab.is-active { background: rgba(0, 152, 218, .16); border-color: rgba(13, 244, 253, .45); color: #fff; }
.ev__tab-n { font-family: var(--font-serif); font-size: 1rem; color: #8FD3F2; }
.ev__tab.is-active .ev__tab-n { color: var(--dot); }
.ev__tab-txt { display: flex; flex-direction: column; line-height: 1.3; }
.ev__tab-txt strong { font-size: .95rem; font-weight: 600; color: inherit; }
.ev__tab-txt span { font-size: .78rem; color: #8FA3BF; }
.ev__tab-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--cyan), var(--dot)); transform: scaleX(0); transform-origin: 0 50%; }
.ev.is-playing .ev__tab.is-active .ev__tab-bar { animation: evBar var(--ev-dur, 9s) linear forwards; }
@keyframes evBar { to { transform: scaleX(1); } }
@media (max-width: 980px) {
  .ev__tabs { position: static; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .ev__tabs::-webkit-scrollbar { display: none; }
  .ev__tab { flex: 0 0 auto; scroll-snap-align: start; grid-template-columns: 26px auto; padding: 10px 14px; }
  .ev__tab-txt span { display: none; }
  .ev__tab:hover { transform: none; }
}

/* Escenario */
.ev__stage { min-width: 0; }
.ev__panel { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
.ev__panel[hidden] { display: none; }
@media (max-width: 1180px) { .ev__panel { grid-template-columns: 1fr; } }
.ev__note { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; padding: 20px; font-size: .93rem; line-height: 1.6; }
.ev__note p { margin: 0 0 12px; }
.ev__note-k { font-size: .7rem !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dot) !important; }
.ev__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.ev__chips li { font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(13, 244, 253, .1); color: #8FD3F2; border: 1px solid rgba(13, 244, 253, .2); }
.ev__disclaimer { margin: 22px 0 0; font-size: .8rem; color: #7F93AF; }

/* Ventanas */
.win { border-radius: 14px; overflow: hidden; background: #0A1A33; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(13, 244, 253, .05); min-width: 0; }
.win__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: .76rem; color: #8FA3BF; }
.win__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2B3D5A; flex: none; }
.win__bar i:nth-child(1) { background: #F28C38; }
.win__bar i:nth-child(2) { background: #5CC6D0; }
.win__bar i:nth-child(3) { background: #0098DA; }
.win__bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__bar b { color: #E6EEF8; font-weight: 600; }
.win__live { font-style: normal; color: #5CF0A0; margin-left: 8px; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.win--light { background: #FBF9F4; border-color: rgba(255, 255, 255, .2); color: var(--brand-ink); }
.win--light .win__bar { background: #EFE8DC; border-bottom-color: #E4DCCD; color: var(--muted); }
.win--light .win__bar b { color: var(--brand-ink); }
.win--light .win__live { color: #1C9A5A; }

.win__code, .flow__log, .data__code {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  font: 400 .82rem/1.75 ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace; color: #D6E2F2;
}
.win__code code, .flow__log code, .data__code code { font: inherit; }
.ln { display: block; white-space: pre; }
@media (max-width: 640px) {
  .win__code, .flow__log, .data__code { font-size: .72rem; padding: 14px; }
  .ln { white-space: pre-wrap; overflow-wrap: anywhere; padding-left: 1.2em; text-indent: -1.2em; }
}
.tk-k { color: #8FD3F2; }
.tk-s { color: #F6C28B; }
.tk-c { color: #6F84A3; }
.tk-h { color: #fff; font-weight: 700; }
.tk-f { color: #5CC6D0; text-decoration: underline; text-decoration-color: rgba(92, 198, 208, .35); text-underline-offset: 3px; }
.tk-w { color: #FFB27A; }

/* Animación de aparición dentro del panel activo */
@keyframes evIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes evType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.ev__panel.is-active .ln { animation: evType .5s steps(28, end) both; animation-delay: calc(var(--i) * 120ms + 150ms); }
.ev__panel.is-active .step { animation: evIn .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 220ms + 150ms); }
.ev__panel.is-active .ev__note { animation: evIn .6s cubic-bezier(.2, .7, .2, 1) .3s both; }
.ev:not(.is-visible) .ev__panel .ln, .ev:not(.is-visible) .ev__panel .step { animation-play-state: paused; }

/* Chat (conector) */
.chat { display: flex; flex-direction: column; gap: 12px; padding: 20px; font-size: .9rem; }
.msg { padding: 12px 16px; border-radius: 14px; max-width: 88%; line-height: 1.55; }
.msg p { margin: 0 0 6px; }
.msg ol { margin: 0 0 6px 18px; }
.msg--user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg--ai { align-self: flex-start; background: #fff; border: 1px solid #E4DCCD; color: var(--brand-ink); border-bottom-left-radius: 4px; }
.msg--ai b { color: var(--brand); }
.msg sup { color: var(--accent); font-weight: 700; }
.msg__src { display: block; font-size: .78rem; color: var(--muted); margin: 6px 0 0 !important; }
.tcall { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; align-self: flex-start; max-width: 100%; font-size: .8rem; padding: 8px 12px; border-radius: 10px; background: #E2F0F1; color: var(--brand-ink); border: 1px dashed #5CC6D0; }
.tcall b { color: var(--brand); }
.tcall code { font: .76rem ui-monospace, Consolas, monospace; background: rgba(255,255,255,.7); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.tcall__ico { width: 22px; height: 22px; color: #0098DA; flex: none; }
.tcall__ico svg { width: 100%; height: 100%; }
.tcall__ok { font-size: .72rem; font-weight: 700; color: #1C9A5A; }
.tcall__ok::before { content: "✓ "; }
@media (max-width: 640px) { .chat { padding: 14px; } .msg { max-width: 100%; } .files { padding-left: 0; } .files li { overflow-wrap: anywhere; min-width: 0; } }
.files { list-style: none; display: grid; gap: 6px; padding-left: 32px; font-size: .8rem; color: var(--muted); }
.files li { display: flex; align-items: center; gap: 8px; }
.doc { flex: none; white-space: nowrap; font-size: .6rem; font-weight: 800; letter-spacing: .05em; color: #fff; background: #0098DA; padding: 2px 5px; border-radius: 4px; }

/* Flujo agéntico */
.flow { padding: 26px 20px 8px; position: relative; }
.flow__rail { position: absolute; left: 20px; right: 20px; top: 46px; height: 2px; }
.flow__rail::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 2px; background: linear-gradient(90deg, rgba(92,198,208,.25), rgba(92,198,208,.7), rgba(242,140,56,.7)); }
.flow__packet { position: absolute; top: -5px; left: 10%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(13,244,253,.18), 0 0 18px rgba(13,244,253,.8); animation: flowRun 5.5s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes flowRun { 0% { left: 10%; } 22% { left: 50%; } 34% { left: 50%; } 70% { left: 90%; } 85%, 100% { left: 90%; opacity: 1; } 92% { opacity: 0; } }
.flow__loop { position: absolute; left: 30%; width: 20%; top: 14px; height: 70px; overflow: visible; }
.flow__loop path { fill: none; stroke: #F28C38; stroke-width: 1.6; stroke-dasharray: 4 5; animation: dash 1.2s linear infinite; }
.flow__loop circle { fill: #F28C38; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.flow__loop-txt { position: absolute; left: 30%; width: 20%; top: 82px; text-align: center; font-size: .66rem; color: #F6C28B; letter-spacing: .02em; }
.flow__nodes { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; z-index: 1; margin-bottom: 64px; }
.flow__nodes li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.flow__dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #0A1A33; border: 2px solid #5CC6D0; color: #fff; font-family: var(--font-serif); margin-bottom: 6px; }
.flow__nodes b { font-size: .86rem; }
.flow__nodes small { font-size: .72rem; color: #8FA3BF; }
.flow__human .flow__dot { background: var(--dot); border-color: var(--dot); box-shadow: 0 0 0 6px rgba(242,140,56,.18); }
.flow__log { background: rgba(0,0,0,.25); border-top: 1px solid rgba(255,255,255,.06); margin: 0 -20px; font-size: .78rem; }
/* En pantallas angostas el flujo se vuelve vertical */
@media (max-width: 640px) {
  .flow { padding-top: 20px; }
  .flow__rail { display: none; }
  .flow__nodes { grid-template-columns: 1fr; gap: 0; margin-bottom: 18px; }
  .flow__nodes li { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 4px 12px; padding: 0 0 18px 0; position: relative; }
  .flow__nodes li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: rgba(92,198,208,.45); }
  .flow__dot { width: 36px; height: 36px; margin: 0; flex: none; }
  .flow__nodes b { font-size: .9rem; }
  .flow__nodes small { font-size: .78rem; }
  .flow__nodes li:nth-child(3)::after {
    content: "↺ loop: re-verifica lo dudoso (máx. 3)"; flex-basis: 100%; margin-left: 48px;
    font-size: .72rem; color: #F6C28B; border: 1px dashed rgba(242,140,56,.6); border-radius: 8px; padding: 4px 8px; flex-basis: calc(100% - 48px); box-sizing: border-box;
  }
}

/* Dentro de ventanas claras, las negritas vuelven al color de texto (las secciones oscuras las pintan de blanco) */
.section--ev .win--light b, .ev-inline .win--light b,
.section--ev .win--light strong, .ev-inline .win--light strong { color: var(--brand-ink); }
.section--ev .win--light .msg--user b, .ev-inline .win--light .msg--user b { color: #fff; }
.section--ev .win--light .msg--ai b, .ev-inline .win--light .msg--ai b { color: var(--brand); }
.section--ev .gw-cal__date b, .ev-inline .gw-cal__date b,
.section--ev .mail__btn, .ev-inline .mail__btn { color: #fff; }
.section--ev .mail__body b.tk-w, .ev-inline .mail__body b.tk-w { color: #C2410C; }

/* Gemini + Google Workspace */
.gw { display: flex; flex-direction: column; gap: 12px; padding: 18px; font-size: .88rem; color: var(--brand-ink); }
.gw-gem { width: 18px; height: 18px; flex: none; }
.gw-mail { background: #fff; border: 1px solid #E4DCCD; border-radius: 12px; padding: 12px 14px; }
.gw-mail__from { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.gw-mail__from b { display: block; font-size: .88rem; }
.gw-mail__from small { color: var(--muted); font-size: .78rem; }
.gw-mail p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.gw-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1A73E8; color: #fff; font-size: .72rem; font-weight: 700; flex: none; }
.gw-ask { align-self: flex-end; display: flex; align-items: center; gap: 8px; max-width: 92%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--brand); color: #fff; }
.gw-sum { background: linear-gradient(135deg, rgba(76,141,246,.08), rgba(155,114,242,.10)); border: 1px solid rgba(155,114,242,.25); border-radius: 12px; padding: 12px 14px; }
.gw-sum__k { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #6B4FD8; }
.gw-sum ul { margin: 0 0 0 18px; display: grid; gap: 3px; }
.gw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .gw-row { grid-template-columns: 1fr; } }
.gw-cal, .gw-tasks { background: #fff; border: 1px solid #E4DCCD; border-radius: 12px; padding: 12px; }
.gw-cal { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.gw-cal__date { text-align: center; border-radius: 10px; background: #1A73E8; color: #fff; padding: 6px 0; line-height: 1.1; }
.gw-cal__date small { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .08em; }
.gw-cal__date b { font-size: 1.35rem; color: #fff; }
.gw-cal b { display: block; font-size: .86rem; }
.gw-cal small { color: var(--muted); font-size: .76rem; }
.gw-cal .gw-cal__date small { color: rgba(255, 255, 255, .9); font-size: .64rem; }
.gw-tag { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; margin-bottom: 5px; }
.gw-tag--cal { background: #E8F0FE; color: #1A56C4; }
.gw-tag--tasks { background: #E6F4EA; color: #1E7B3A; }
.gw-tag--mail { background: #FCE8E6; color: #B3261E; margin: 0 8px 0 0; }
.gw-tasks label { display: flex; align-items: center; gap: 8px; font-size: .82rem; margin-top: 6px; }
.gw-chk { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #1E7B3A; flex: none; position: relative; }
.gw-chk::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #1E7B3A; transform: scale(0); }
.ev__panel.is-active .gw-chk::after { animation: pop .5s cubic-bezier(.3, 1.7, .5, 1) both; animation-delay: 2.4s; }
.ev__panel.is-active .gw-chk--2::after { animation-delay: 2.8s; }
.gw-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 12px; background: #FBF9F4; border: 1px dashed #E4DCCD; font-size: .84rem; color: var(--muted); }
.gw-draft b { color: var(--brand-ink); }
.ev__panel.is-active .gw-ask .gw-gem, .ev__panel.is-active .gw-sum__k .gw-gem { animation: gemSpin 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes gemSpin { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(90deg) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .gw-chk::after { transform: none; } .gw-gem { animation: none !important; } }

/* Datos (prompt code) */
.data { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.data .msg--user { font-size: .88rem; }
.data__code { background: rgba(0,0,0,.25); border-radius: 10px; padding: 14px 16px; font-size: .78rem; }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 150px; padding: 10px 6px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.chart__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.chart__bar { width: 100%; max-width: 38px; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #0DF4FD, #0098DA); transform-origin: bottom; }
.chart__col.is-low .chart__bar { background: linear-gradient(180deg, #FFB27A, #F28C38); }
.chart__lbl { font-size: .68rem; color: #8FA3BF; }
.ev__panel.is-active .chart__bar { animation: barUp .8s cubic-bezier(.3, 1.3, .5, 1) both; animation-delay: calc(1.7s + var(--j) * 90ms); }
@keyframes barUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.data .msg--ai { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #D6E2F2; max-width: 100%; }
.data .msg--ai b { color: var(--dot); }
.data .msg__src { color: #8FD3F2; }

/* Tarea programada + correo */
.sched { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.sched__card { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #E4DCCD; }
.sched__card b { display: block; color: var(--brand); }
.sched__card small { font-size: .78rem; color: var(--muted); }
.sched__clock { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--brand); position: relative; }
.sched__clock::before { content: ""; position: absolute; left: 50%; top: 8px; width: 2px; height: 14px; margin-left: -1px; background: var(--brand); border-radius: 2px; }
.sched__hand { position: absolute; left: 50%; top: 50%; width: 2px; height: 16px; margin: -16px 0 0 -1px; background: var(--dot); transform-origin: 50% 100%; border-radius: 2px; animation: tlSpin 4s linear infinite; }
.sched__ok { font-size: .72rem; font-weight: 700; color: #1C9A5A; background: #E3F5EA; padding: 4px 10px; border-radius: 999px; }
.mail { border-radius: 12px; background: #fff; border: 1px solid #E4DCCD; overflow: hidden; font-size: .86rem; }
.mail__row { display: flex; gap: 10px; padding: 9px 16px; border-bottom: 1px solid #EFE8DC; color: var(--brand-ink); }
.mail__row span { width: 52px; color: var(--muted); font-size: .78rem; }
.mail__body { padding: 14px 16px; color: var(--brand-ink); line-height: 1.7; }
.mail__body .ln { white-space: normal; }
.mail__body b { color: var(--brand); }
.mail__actions { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #FBF9F4; border-top: 1px solid #EFE8DC; }
@media (max-width: 640px) {
  .sched { padding: 14px; }
  .sched__card { grid-template-columns: 44px 1fr; }
  .sched__ok { grid-column: 2; justify-self: start; }
  .mail__row { flex-direction: column; gap: 0; }
  .mail__row span { width: auto; }
  .mail__body .ln { padding-left: 0; text-indent: 0; }
  .mail__actions { flex-wrap: wrap; }
}
.mail__btn { background: var(--brand); color: #fff; font-weight: 600; font-size: .8rem; padding: 8px 14px; border-radius: 999px; }
.mail__hint { font-size: .76rem; color: var(--muted); }

/* Ingeniería de contexto */
.ctx { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); gap: 10px; padding: 20px; align-items: start; }
.ctx__col { min-width: 0; }
@media (max-width: 640px) { .ctx { grid-template-columns: minmax(0, 1fr); padding: 14px; } .ctx__arrow { transform: rotate(90deg); justify-self: center; } .ctx__file { font-size: .72rem; } }
.ctx__h { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8FA3BF; margin: 0 0 10px; }
.ctx__arrow { align-self: center; font-size: 1.6rem; color: var(--dot); text-align: center; }
.ctx__file { display: block; font: .78rem/1.4 ui-monospace, Consolas, monospace; padding: 8px 12px; border-radius: 8px; margin-bottom: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx__file--bad { background: rgba(255,255,255,.04); color: #8FA3BF; border: 1px solid rgba(255,255,255,.08); position: relative; }
.ctx__file--bad::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1.5px; background: #F28C38; transform: scaleX(0); transform-origin: left; }
.ev__panel.is-active .ctx__file--bad::after { animation: strike .5s ease-out both; animation-delay: calc(1.6s + var(--i) * 120ms); }
@keyframes strike { to { transform: scaleX(1); } }
.ctx__file--good { background: rgba(13,244,253,.08); border: 1px solid rgba(13,244,253,.28); color: #E6EEF8; }
.ctx__file--good b { color: #fff; font-weight: 500; }
.ctx__file--good em { font-style: normal; color: var(--dot); }
.ctx__meter { padding: 4px 20px 20px; font-size: .8rem; }
.ctx__meter > span { display: block; color: #AFBDD1; margin-bottom: 8px; }
.ctx__bars { display: grid; gap: 6px; margin-bottom: 10px; }
.ctx__bar { display: block; height: 10px; border-radius: 6px; transform-origin: left; }
.ctx__bar--before { width: 100%; background: linear-gradient(90deg, #F28C38, #FFB27A); }
.ctx__bar--after { width: 38%; background: linear-gradient(90deg, #0098DA, #0DF4FD); }
.ev__panel.is-active .ctx__bar { animation: barGrow 1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: 2.9s; }
.ev__panel.is-active .ctx__bar--after { animation-delay: 3.2s; }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ctx__meter small { color: #7F93AF; line-height: 1.5; display: block; }

@media (prefers-reduced-motion: reduce) {
  .ev__panel .ln, .ev__panel .step, .ev__note, .chart__bar, .ctx__bar, .ctx__file--bad::after,
  .flow__packet, .flow__loop path, .sched__hand, .win__live, .ev__tab-bar { animation: none !important; }
  .ctx__file--bad::after { transform: scaleX(1); }
  .flow__packet, .flow__loop circle { display: none; }
}

/* ---------- Foto del hero ---------- */
.hero__photo { margin: 0; position: relative; max-width: 460px; justify-self: end; width: 100%; }
/* En celular y tablet la foto va primero, arriba del título, en formato apaisado */
@media (max-width: 920px) {
  .hero { padding-top: 28px; }
  .hero__photo { order: -1; justify-self: stretch; max-width: none; margin-bottom: 8px; }
  .hero__photo img { aspect-ratio: 4 / 3; object-position: center 22%; }
}

/* ---------- Cabeceras de páginas internas con imagen ---------- */
.page-hero--media { padding-top: clamp(28px, 4vw, 56px); }
.page-media { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-media--wide { grid-template-columns: 1fr; gap: clamp(24px, 3vw, 36px); }
@media (max-width: 880px) { .page-media { grid-template-columns: 1fr; gap: 24px; } }
.page-media__img { margin: 0; position: relative; }
.page-media__img img { width: 100%; height: auto; display: block; border-radius: 18px; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(11, 30, 61, .4); position: relative; z-index: 1; }
.page-media__img--portrait img { aspect-ratio: 4 / 5; object-position: center 20%; }
.page-media__img--land img { aspect-ratio: 16 / 5.4; object-position: center 42%; }
/* Versión reducida: no ocupa todo el ancho y deja ver el título enseguida */
.page-media__img--reduced { max-width: 820px; }
.page-media__img--reduced img { aspect-ratio: 1200 / 570; object-position: center; }
.page-media__img--portrait::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 18px; border: 2px solid var(--turquoise); z-index: 0; }
.page-media__img::after { content: ""; position: absolute; top: -10px; right: -10px; width: 24px; height: 24px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 6px var(--paper); z-index: 2; }
.page-media__img figcaption { position: absolute; z-index: 2; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--brand-ink); font-size: .8rem; font-weight: 600; box-shadow: 0 12px 26px -12px rgba(11,30,61,.35); }
@media (max-width: 880px) {
  .page-media__img--portrait { max-width: none; }
  .page-media__img--portrait img { aspect-ratio: 4 / 3; }
  .page-media__img--portrait::before { inset: 10px -8px -10px 8px; }
  .page-media__img--land img { aspect-ratio: 4 / 3; object-position: 70% center; }
  .page-media__img figcaption { position: static; display: block; margin-top: 10px; background: none; box-shadow: none; padding: 0; color: var(--muted); font-weight: 500; }
}
.page-hero .page-media h1 { max-width: 18ch; }

/* Contacto: avatar arriba del título */
.contact-avatar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.contact-avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 18%; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--turquoise); }
.contact-avatar span { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.contact-avatar b { display: block; color: var(--brand-ink); font-size: 1rem; }

/* Banda de foto arriba del título de su sección */
.photo-band--top { margin-bottom: clamp(32px, 4vw, 48px); }
.hero__photo img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; display: block; box-shadow: 0 30px 60px -30px rgba(11, 30, 61, .45); }
/* Marco desplazado y nodo satélite del Key Visual */
.hero__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 20px; border: 2px solid var(--turquoise); z-index: 0; }
.hero__photo::after { content: ""; position: absolute; top: -12px; right: -12px; width: 30px; height: 30px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 7px var(--paper); z-index: 2; animation: dotBeat 2.6s ease-out 1.6s infinite; }
.hero__chip {
  position: absolute; z-index: 2; left: -18px; bottom: 28px; display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--brand-ink);
  font-size: .84rem; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(11, 30, 61, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: enterUp .8s cubic-bezier(.2, .7, .2, 1) 1.1s both;
}
.hero__chip-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); flex: none; }
@media (max-width: 520px) { .hero__chip { left: 12px; bottom: 14px; font-size: .78rem; } .hero__photo::before { inset: 12px -10px -12px 10px; } .hero__photo::after { right: -6px; } }
@media (prefers-reduced-motion: reduce) { .hero__photo::after, .hero__chip { animation: none !important; } }

/* ---------- Fotos ---------- */
.photo-band { margin: 0 0 clamp(28px, 4vw, 44px); border-radius: 18px; overflow: hidden; position: relative; background: var(--sand-2); }
.photo-band img { width: 100%; height: auto; aspect-ratio: 1600 / 760; object-fit: cover; display: block; }
.photo-band figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px;
  background: rgba(7, 26, 54, .78); color: #fff; font-size: .82rem; font-weight: 500;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@media (max-width: 560px) {
  .photo-band img { aspect-ratio: 4 / 3; object-position: 70% center; }
  .photo-band figcaption { position: static; display: block; border-radius: 0; background: var(--brand-deep); }
}

.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }
.about__photo { position: relative; max-width: 380px; }
.about__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; display: block; position: relative; z-index: 1; }
/* Nodo satélite del Key Visual: firma la foto */
.about__photo::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 18px;
  border: 2px solid var(--turquoise); z-index: 0;
}
.about__photo::after {
  content: ""; position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 6px var(--white); z-index: 2;
}
.portrait img { object-position: center 20%; }

/* La última tarjeta de servicios, si queda sola en su fila, ocupa todo el ancho */
@media (min-width: 641px) {
  .grid--services > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}

/* ---------- Formatos de capacitación y divulgación ---------- */
.fmt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); }
@media (max-width: 760px) { .fmt-grid { grid-template-columns: 1fr; } }
.fmt {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, opacity .8s cubic-bezier(.2, .7, .2, 1);
}
.fmt.is-done:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand); }
.fmt__visual {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  background:
    radial-gradient(closest-side at 80% 20%, rgba(13, 244, 253, .18), transparent 70%),
    radial-gradient(closest-side at 15% 85%, rgba(242, 140, 56, .12), transparent 70%),
    var(--sand);
  border-bottom: 1px solid var(--line);
}
#formato-conferencias .fmt__visual, #formato-labs .fmt__visual { background:
    radial-gradient(closest-side at 20% 25%, rgba(0, 152, 218, .16), transparent 70%),
    radial-gradient(closest-side at 85% 80%, rgba(13, 244, 253, .14), transparent 70%),
    var(--mist); }
.fmt-anim { width: min(88%, 340px); height: auto; overflow: visible; }
.fmt__body { padding: clamp(22px, 2.8vw, 32px); display: flex; flex-direction: column; flex: 1; }
.fmt__num { font-family: var(--font-serif); color: var(--warm); font-size: .95rem; margin-bottom: 6px; }
.fmt__name { font-size: clamp(1.6rem, 2.8vw, 2rem); margin-bottom: 4px; }
.fmt__lema { font-family: var(--font-serif); font-style: italic; color: var(--brand); font-size: 1.1rem; margin-bottom: 14px; }
.fmt__text { color: var(--muted); margin-bottom: 20px; }
.fmt .tags { margin-top: auto; }

/* Solo las piezas animadas giran/escalan sobre su propio centro
   (no aplicar a todo: rompería los "rotate" internos de los dientes del engranaje) */
.ch-b1, .ch-b2, .ch-dot, .ch-spark, .cf-head, .tl-g1, .tl-g2, .lb-node, .lb-bub, .lb-liquid {
  transform-box: fill-box; transform-origin: center;
}
.ch-line, .cf-bar { transform-box: fill-box; }
/* Quietas hasta que la tarjeta entra en pantalla */
.fmt:not(.is-visible) .fmt-anim * { animation-play-state: paused !important; }

/* Charlas: aparece la pregunta, tipea, llega la respuesta */
@keyframes chBubble1 { 0% { opacity: 0; transform: translateY(10px) scale(.85); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes chBubble2 { 0%, 34% { opacity: 0; transform: translateY(10px) scale(.85); } 44%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes chDot     { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-7px); } }
@keyframes chLine    { 0%, 44% { transform: scaleX(0); } 58%, 100% { transform: scaleX(1); } }
@keyframes chSpark   { 0%, 52% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.3); opacity: 1; } 68%, 88% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }
.ch-b1 { animation: chBubble1 6.5s ease-in-out infinite; }
.ch-b2 { animation: chBubble2 6.5s ease-in-out infinite; }
.ch-dot { animation: chDot 1.1s ease-in-out infinite; }
.ch-dot--2 { animation-delay: .15s; }
.ch-dot--3 { animation-delay: .3s; }
.ch-line { transform-origin: left center; animation: chLine 6.5s ease-out infinite; }
.ch-line--2 { animation-delay: .25s; }
.ch-spark { animation: chSpark 6.5s ease-out infinite; }

/* Conferencias: las barras crecen y la tendencia se dibuja */
@keyframes cfBar  { 0%, 6% { transform: scaleY(0); } 26%, 86% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes cfLine { 0%, 30% { stroke-dashoffset: 1; } 58%, 86% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes cfHead { 0%, 56% { transform: scale(0); } 64% { transform: scale(1.5); } 70%, 86% { transform: scale(1); } 100% { transform: scale(0); } }
.cf-bar { transform-origin: bottom center; animation: cfBar 6s cubic-bezier(.3, 1.3, .5, 1) infinite; }
.cf-bar--2 { animation-delay: .15s; }
.cf-bar--3 { animation-delay: .3s; }
.cf-bar--4 { animation-delay: .45s; }
.cf-line { stroke-dasharray: 1; animation: cfLine 6s ease-in-out infinite; }
.cf-head { animation: cfHead 6s ease-out infinite; }

/* Talleres: los engranajes giran y las tareas se tildan */
@keyframes tlSpin  { to { transform: rotate(360deg); } }
@keyframes tlSpinR { to { transform: rotate(-360deg); } }
@keyframes tlTick  { 0%, 10% { stroke-dashoffset: 1; } 20%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.tl-g1 { animation: tlSpin 7s linear infinite; }
.tl-g2 { animation: tlSpinR 4.9s linear infinite; }
.tl-tick { stroke-dasharray: 1; animation: tlTick 6s ease-out infinite; }
.tl-tick--2 { animation-delay: .9s; }
.tl-tick--3 { animation-delay: 1.8s; }

/* Labs: burbujea el matraz y se arma el prototipo */
@keyframes lbBub    { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-46px); opacity: 0; } }
@keyframes lbLiquid { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes lbLink   { 0%, 18% { stroke-dashoffset: 1; } 52%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes lbNode   { 0%, 20% { transform: scale(0); } 30% { transform: scale(1.25); } 36%, 88% { transform: scale(1); } 100% { transform: scale(0); } }
.lb-liquid { animation: lbLiquid 3s ease-in-out infinite; }
.lb-bub { animation: lbBub 2.4s ease-in infinite; }
.lb-bub--2 { animation-delay: .8s; }
.lb-bub--3 { animation-delay: 1.5s; }
.lb-link { stroke-dasharray: 1; animation: lbLink 6.5s ease-in-out infinite; }
.lb-node { animation: lbNode 6.5s cubic-bezier(.3, 1.6, .5, 1) infinite; }
.lb-node--1 { animation-delay: .6s; }
.lb-node--2 { animation-delay: 1.4s; }
.lb-node--3 { animation-delay: 2.1s; }

@media (prefers-reduced-motion: reduce) {
  .fmt-anim * { animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
}

/* ---------- Listas ---------- */
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.dashlist { list-style: none; display: grid; gap: 8px; }
.dashlist li { position: relative; padding-left: 22px; color: var(--muted); }
.dashlist li::before { content: ""; position: absolute; left: 0; top: .8em; width: 12px; height: 1.5px; background: var(--warm); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag {
  display: inline-block; font-size: .76rem; font-weight: 600; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px; background: var(--sand); color: var(--brand);
}
.section--sand .tag { background: var(--white); }

/* ---------- Proceso ---------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 1.5px; background: var(--sand-2); }
.process li { position: relative; padding: 0 18px 0 0; counter-increment: step; }
.process__dot {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--brand);
  font-family: var(--font-serif); color: var(--brand); font-size: 1rem; margin-bottom: 20px;
}
.section--sand .process__dot { background: var(--sand); }
.process li:last-child .process__dot { background: var(--brand); color: #fff; }
.process h3 { font-size: 1.15rem; margin-bottom: 8px; }
.process p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 1.5px; height: auto; }
  .process li { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; padding: 0; }
  .process__dot { margin: 0; grid-row: span 2; }
}

/* ---------- Servicios (detalle) ---------- */
.service { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 72px); padding: clamp(40px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 16px; } }
.service__num { font-family: var(--font-serif); color: var(--warm); font-size: 1rem; margin-bottom: 10px; }
.service__lead { font-size: 1.08rem; color: var(--brand-ink); }
.service__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 24px; }
@media (max-width: 560px) { .service__cols { grid-template-columns: 1fr; } }
.service h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.service--featured { background: var(--sand); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); border-top: 0; margin: 24px 0; }

/* ---------- Explorador de servicios (Servicios) ---------- */
.svc { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) { .svc { grid-template-columns: 1fr; } }
.svc__tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--header-h) + 20px); }
.svc__tab {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; width: 100%;
  padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  font: 500 .92rem/1.3 var(--font-sans); color: var(--brand-ink); text-align: left; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.svc__tab:hover { border-color: var(--brand); transform: translateX(3px); }
.svc__tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 14px 28px -16px rgba(0, 49, 118, .8); }
.svc__tab-n { font-family: var(--font-serif); color: var(--warm); }
.svc__tab.is-active .svc__tab-n { color: var(--dot); }
.svc__tab-demo { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: rgba(13, 244, 253, .14); color: #0B7C9A; }
.svc__tab.is-active .svc__tab-demo { background: rgba(13, 244, 253, .2); color: #8FF6FB; }
@media (max-width: 960px) {
  .svc__tabs { position: static; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; }
  .svc__tabs::-webkit-scrollbar { display: none; }
  .svc__tab { flex: 0 0 auto; width: auto; scroll-snap-align: start; grid-template-columns: auto auto auto; }
  .svc__tab:hover { transform: none; }
}
.svc__stage { min-width: 0; }
.svc__panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 36px); }
.svc__panel[hidden] { display: none; }
.svc__panel.is-entering { animation: enterUp .45s cubic-bezier(.2, .7, .2, 1) both; }
.svc__title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: 12px; }
.svc__para { margin: 10px 0 0; }
.svc__panel .service__cols { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.svc__panel h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.svc__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.svc__next { background: none; border: 0; padding: 6px 0; font: 600 .9rem var(--font-sans); color: var(--brand); cursor: pointer; text-align: right; }
.svc__next:hover { color: var(--accent); }
.svc__panel .ev-inline { margin-top: 24px; }
@media (max-width: 640px) {
  .svc__panel { padding: 20px 16px; border-radius: 14px; }
  .svc__panel .ev-inline { margin-left: -10px; margin-right: -10px; padding: 14px 10px; }
  .svc__panel .ev-inline .win__code { padding: 12px 10px; }
  .svc__foot { flex-direction: column; align-items: stretch; }
  .svc__foot .btn { justify-content: center; }
  .svc__next { text-align: center; }
}

/* Herramientas como cinta compacta */
.toolbelt { margin-top: clamp(28px, 4vw, 40px); padding: 18px 20px; border-radius: 14px; background: var(--sand); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.toolbelt__k { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.toolbelt__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toolbelt__list li { display: inline-flex; flex-direction: column; padding: 8px 14px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); line-height: 1.25; }
.toolbelt__list b { font-family: var(--font-serif); font-weight: 500; color: var(--brand-ink); font-size: .98rem; }
.toolbelt__list span { font-size: .74rem; color: var(--muted); }

/* ---------- Prensa y redes ---------- */
.press-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 26px; }
.press-stats li { display: flex; flex-direction: column; }
.press-stats b { font-family: var(--font-serif); font-weight: 500; font-size: 1.9rem; line-height: 1; color: var(--brand); }
.press-stats span { font-size: .8rem; color: var(--muted); margin-top: 4px; }

.press-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.press-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .press-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .press-grid { grid-template-columns: 1fr; } }
.press {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.6vw, 28px);
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, opacity .8s cubic-bezier(.2, .7, .2, 1);
}
.press::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--accent), var(--turquoise)); transform: scaleY(0); transform-origin: top; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.press.is-done:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.press:hover::before { transform: none; }
.press--featured { background: var(--brand-deep); border-color: transparent; color: #C9D5E6; }
.press--featured .press__title a { color: #fff; }
.press--featured .press__text { color: #AFBDD1; }
.press--featured .press__links a { background: rgba(255,255,255,.08); color: #E6EEF8; border-color: rgba(255,255,255,.14); }
.press--featured .press__type { background: var(--dot); color: #fff; }
.press__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.press__date { font-family: var(--font-serif); font-size: .95rem; color: var(--warm); }
.press--featured .press__date { color: var(--dot); }
.press__type { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--brand); }
.press__title { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.3; margin: 2px 0 0; }
.press__title a { color: var(--brand-ink); text-decoration: none; }
.press__title a::after { content: ""; position: absolute; inset: 0; } /* toda la tarjeta clickeable */
.press__text { color: var(--muted); font-size: .95rem; margin: 0; }
.press__links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; position: relative; z-index: 1; }
.press__links a { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--sand); color: var(--brand); text-decoration: none; border: 1px solid transparent; }
.press__links a:hover { border-color: var(--brand); color: var(--brand); }
.press__media { margin: auto 0 0; padding-top: 6px; font-size: .78rem; font-weight: 600; color: var(--brand); }

.socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .socials { grid-template-columns: 1fr; } }
.social {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; padding: 18px 20px;
  border-radius: 16px; text-decoration: none; color: #fff; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.social:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 20px 40px -22px rgba(7, 26, 54, .8); }
.social--ig { background: linear-gradient(120deg, #071A36 0%, #003176 55%, #0098DA 100%); }
.social--in { background: linear-gradient(120deg, #071A36 0%, #0B3B66 60%, #5CC6D0 120%); }
.social__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.social__ico svg { width: 28px; height: 28px; }
.social__txt { display: flex; flex-direction: column; line-height: 1.35; }
.social__txt b { font-family: var(--font-serif); font-weight: 500; font-size: 1.3rem; }
.social__txt span { font-size: .84rem; color: #C9D5E6; }
.social__go { font-size: .82rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--brand-deep); white-space: nowrap; }
@media (max-width: 420px) { .social { grid-template-columns: 44px 1fr; } .social__ico { width: 44px; height: 44px; } .social__go { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Mención especial: Claude Desktop y Claude Code ---------- */
.cl { background:
    radial-gradient(700px 360px at 85% 50%, rgba(13, 244, 253, .10), transparent 65%),
    var(--mist); }
.cl__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 920px) { .cl__grid { grid-template-columns: 1fr; } .cl__visual { order: -1; } }
.cl__list { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.cl__list li { position: relative; padding-left: 26px; color: var(--muted); font-size: .97rem; }
.cl__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0, 152, 218, .15); }
.cl__list b { color: var(--brand-ink); }
.cl__visual { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(14px, 2vw, 22px); box-shadow: 0 30px 60px -36px rgba(11, 30, 61, .45); }
.cl-anim { width: 100%; height: auto; overflow: visible; }

.cl-path { stroke: #CFE6EA; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 5 7; animation: dash 1.4s linear infinite; }
.cl-path--out { stroke: #F6D2B3; }
.cl-pk--in { fill: #0098DA; filter: drop-shadow(0 0 4px rgba(0, 152, 218, .8)); }
.cl-pk--out { fill: #F28C38; filter: drop-shadow(0 0 4px rgba(242, 140, 56, .8)); }

.cl-hub, .cl-ring, .cl-pulse, .cl-out, .cl-check, .cl-src { transform-box: fill-box; transform-origin: center; }
.cl-ring { animation: tlSpin 12s linear infinite; }
.cl-pulse { animation: pulseRing 2.6s ease-out infinite; }
.cl-step { opacity: 0; animation: clStep 4.5s linear infinite; }
.cl-step--2 { animation-delay: 1.5s; }
.cl-step--3 { animation-delay: 3s; }
@keyframes clStep { 0%, 100% { opacity: 0; } 4%, 30% { opacity: 1; } 34% { opacity: 0; } }
.cl-out { animation: clOut 4.5s ease-in-out infinite; }
.cl-out--2 { animation-delay: .5s; }
.cl-out--3 { animation-delay: 1s; }
@keyframes clOut { 0%, 100% { transform: scale(1); } 45% { transform: scale(1); } 55% { transform: scale(1.07); } 65% { transform: scale(1); } }
.cl-check { animation: clCheck 4.5s ease-in-out infinite; }
@keyframes clCheck { 0%, 60% { transform: translateY(6px); opacity: .35; } 72%, 100% { transform: none; opacity: 1; } }
.cl-src { animation: clSrc 3.2s ease-in-out infinite; }
.cl-src + .cl-src { animation-delay: 1.1s; }
@keyframes clSrc { 0%, 100% { transform: none; } 10% { transform: translateX(3px); } 20% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cl-path, .cl-ring, .cl-pulse, .cl-out, .cl-check, .cl-src { animation: none !important; }
  .cl-step { animation: none !important; opacity: 0; }
  .cl-step:first-of-type { opacity: 1; }
  .cl-pk--in, .cl-pk--out { display: none; }
  .cl-check { opacity: 1; transform: none; }
}

/* ---------- Áreas ---------- */
.area { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); height: 100%; }
.area__icon { width: 44px; height: 44px; margin-bottom: 18px; color: var(--brand); }
.area p { color: var(--muted); margin: 0; }

/* ---------- Casos ---------- */
.case {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 4vw, 48px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.case + .case { margin-top: 24px; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }
.case__org { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.case__unit { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.case__meta { list-style: none; display: grid; gap: 12px; font-size: .9rem; border-top: 1px solid var(--line); padding-top: 18px; }
.case__meta dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.case__meta dd { margin: 2px 0 0; color: var(--brand-ink); }
.case__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .8rem; font-weight: 600;
  color: var(--brand); background: var(--sand); padding: 7px 12px; border-radius: var(--radius-sm);
}
.case__badge svg { width: 16px; height: 16px; flex: none; }
.case h3 { margin-bottom: 14px; }
.case__items { margin-top: 18px; }
.case__items h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }

.mini-case { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; border-top: 1px solid var(--line); }
.mini-case:last-child { border-bottom: 1px solid var(--line); }
.mini-case__org { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.mini-case__title { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.35; color: var(--brand-ink); }
.mini-case__meta { font-size: .86rem; color: var(--muted); }

/* ---------- Testimonios ---------- */
.quote { margin: 0; position: relative; }
.quote__text {
  font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.45;
  color: var(--brand-ink); margin: 0 0 22px;
}
.quote__text::before { content: "“"; color: var(--warm); margin-right: 2px; }
.quote__text::after { content: "”"; color: var(--warm); margin-left: 2px; }
.quote__who { font-size: .92rem; font-weight: 600; color: var(--brand-ink); }
.quote__role { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.section--dark .quote__text { color: #fff; }
.section--dark .quote__who { color: #fff; }
.section--dark .quote__role { color: #AFBDD1; }

.quote--small { padding: 24px; background: var(--sand); border-radius: var(--radius); height: 100%; }
.quote--small .quote__text { font-size: 1.08rem; margin-bottom: 14px; }
.case .quote--small { margin-top: 22px; background: var(--paper); border: 1px solid var(--line); }

/* ---------- Organizaciones ---------- */
.orgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.org { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.org__name { font-family: var(--font-serif); font-size: 1.06rem; line-height: 1.3; color: var(--brand-ink); }
.org__unit { font-size: .84rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 860px) { .orgs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .orgs { grid-template-columns: 1fr; } }

/* ---------- Principios ---------- */
.principle { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.principle__num { font-family: var(--font-serif); color: var(--warm); font-size: 1.1rem; }
.principle h3 { font-size: 1.2rem; margin-bottom: 6px; }
.principle p { color: var(--muted); margin: 0; }

.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; }
.triad > div { padding: clamp(24px, 3vw, 36px); border-left: 1px solid rgba(255,255,255,.14); }
.triad > div:first-child { border-left: 0; }
.triad h3 { color: #fff; font-size: 1.5rem; }
.triad p { color: #AFBDD1; margin: 0; }
@media (max-width: 760px) { .triad { grid-template-columns: 1fr; } .triad > div { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); } .triad > div:first-child { border-top: 0; } }

/* ---------- Perfil ---------- */
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--brand-deep);
  display: grid; place-items: center; position: relative;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__mono { font-family: var(--font-serif); font-size: 4.5rem; color: #fff; letter-spacing: -0.02em; }
.portrait__mono small { display: block; font-family: var(--font-sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #8FD3F2; text-align: center; margin-top: 10px; }

.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__when { font-family: var(--font-serif); color: var(--brand); font-size: 1.02rem; }
.timeline__what h3 { font-size: 1.12rem; margin-bottom: 4px; }
.timeline__what p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

.credential { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.credential:last-child { border-bottom: 1px solid var(--line); }
.credential__title { font-weight: 600; }
.credential__org { color: var(--muted); font-size: .92rem; }
.credential__year { font-family: var(--font-serif); color: var(--brand); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--brand-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-sans); font-size: 1.4rem; color: var(--brand); transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 14px 0 0; max-width: 680px; }

/* ---------- CTA ---------- */
.cta { background: var(--brand-deep); color: #D6DEEA; border-radius: 20px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: #AFBDD1; margin: 0; max-width: 560px; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; position: relative; z-index: 1; }
.cta__note { font-size: .84rem; color: #8FA3BF; }
.cta__pattern { position: absolute; right: -40px; top: -40px; width: 320px; opacity: .18; pointer-events: none; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--brand-ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--font-sans); color: var(--brand-ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23003176' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 152, 218, .14); }
.field__hint { font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; display: none; }
.form__status.is-ok { display: block; background: #E8F4EC; color: #1D5B33; border: 1px solid #BFDFC9; }
.form__status.is-error { display: block; background: #FBECE8; color: #8A2C17; border: 1px solid #F0C7BC; }
.form__legal { font-size: .82rem; color: var(--muted); margin: 0; }

.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.contact-aside { display: grid; gap: 28px; }
@media (max-width: 880px) { .contact-aside { order: 2; } .contact-card { order: 1; } }
.contact-line { display: grid; gap: 2px; }
.contact-line span { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-line a { font-family: var(--font-serif); font-size: 1.2rem; text-decoration: none; }

.steps-small { list-style: none; counter-reset: s; display: grid; gap: 16px; }
.steps-small li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; color: var(--muted); font-size: .95rem; }
.steps-small li::before {
  content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--brand); color: var(--brand); font-family: var(--font-serif); font-size: .9rem;
}
.steps-small strong { display: block; color: var(--brand-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #AFBDD1; padding: clamp(56px, 7vw, 80px) 0 32px; font-size: .92rem; }
.site-footer a { color: #D6DEEA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .brand { color: #fff; }
.footer__brand .brand__tag { color: #8FA3BF; }
.footer__brand p { margin-top: 18px; max-width: 360px; }
.footer__title { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; color: #8FA3BF; }

/* ---------- Animación suave de entrada ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================================
   ANIMACIONES
   Regla general: el estado base es siempre el estado final visible.
   Las animaciones usan fill "both", así que sin JS o con movimiento
   reducido el contenido se ve completo.
   ========================================================================= */

@keyframes enterUp   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes enterFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes enterZoom { from { opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes wordUp    { from { transform: translateY(110%) rotate(4deg); } to { transform: none; } }
@keyframes draw      { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop       { 0% { transform: scale(0); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes slideIn   { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes pulseRing { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes drift     { from { transform: translate3d(-4%, 3%, 0) rotate(0deg); } to { transform: translate3d(5%, -4%, 0) rotate(10deg); } }
@keyframes dotBeat   { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 98, 45, .5); } 50% { box-shadow: 0 0 0 7px rgba(180, 98, 45, 0); } }
@keyframes lateShow  { to { opacity: 1; } }

/* ── Barra de progreso de lectura ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand), var(--accent) 60%, var(--warm));
}

/* ── Entrada del hero (portada y páginas internas) ── */
.hero .eyebrow, .page-hero .eyebrow        { animation: enterUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__sub                                  { animation: enterUp .9s cubic-bezier(.2, .7, .2, 1) .75s both; }
.hero .lead, .page-hero .lead               { animation: enterUp .9s cubic-bezier(.2, .7, .2, 1) .9s both; }
.page-hero .lead + .lead                    { animation-delay: 1.02s; }
.hero .actions, .page-hero .actions         { animation: enterUp .9s cubic-bezier(.2, .7, .2, 1) 1.05s both; }
.page-hero .muted                           { animation: enterUp .9s cubic-bezier(.2, .7, .2, 1) 1s both; }
.hero__visual                               { animation: enterZoom 1.1s cubic-bezier(.2, .7, .2, 1) .25s both; }
.page-hero .portrait                        { animation: enterZoom 1.1s cubic-bezier(.2, .7, .2, 1) .1s both; }
.proof__item                                { animation: enterUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.proof__item:nth-child(1) { animation-delay: 1.2s; }
.proof__item:nth-child(2) { animation-delay: 1.32s; }
.proof__item:nth-child(3) { animation-delay: 1.44s; }
.proof__item:nth-child(4) { animation-delay: 1.56s; }
.proof__item:nth-child(5) { animation-delay: 1.68s; }
.proof__item:nth-child(6) { animation-delay: 1.8s; }
.eyebrow::before { animation: dotBeat 2.6s ease-out 1.5s infinite; }

/* Título palabra por palabra (el JS lo divide en .word > .word__in) */
html:not(.no-js) .hero h1:not(.is-split),
html:not(.no-js) .page-hero h1:not(.is-split) { opacity: 0; animation: lateShow 0s linear 1.5s forwards; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .02em .16em; margin: -.08em -.02em -.16em; }
.word__in { display: inline-block; animation: wordUp 1s cubic-bezier(.16, .84, .24, 1) both; will-change: transform; }

/* ── Diagrama del hero ── */
.hero__visual { perspective: 900px; }
.hero__visual .rec { transition: transform .35s ease-out; transform-style: preserve-3d; will-change: transform; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(11, 30, 61, .35); }
.rec-path  { stroke-dasharray: 1; animation: draw 2.4s cubic-bezier(.45, 0, .2, 1) .5s both; }
.rec-node  { transform-box: fill-box; transform-origin: center; animation: pop .7s cubic-bezier(.3, 1.7, .5, 1) both; animation-delay: var(--d, 0s); }
.rec-label { animation: slideIn .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
.rec-pulse { transform-box: fill-box; transform-origin: center; opacity: 0; animation: pulseRing 2.4s ease-out 3.2s infinite; }

/* ── Aparición al hacer scroll (mejorada y escalonada) ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
a.card.reveal:not(.is-done), .card.reveal:not(.is-done) { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal--left  { transform: translateX(-32px); }
.reveal--scale { transform: scale(.94); }
.no-js .reveal { opacity: 1; transform: none; }

/* Títulos de sección: subrayado que se dibuja */
.section-head h2, .sticky h2 { position: relative; }
html:not(.no-js) .section-head.reveal h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: 18px; border-radius: 3px;
  background: linear-gradient(90deg, var(--warm), var(--accent));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.2, .7, .2, 1) .35s;
}
html:not(.no-js) .section-head.reveal.is-visible h2::after { transform: none; }
.section-head--center.reveal h2::after { margin-left: auto; margin-right: auto; }

/* ── Proceso: la línea se dibuja y los pasos se encienden ── */
html:not(.no-js) .process::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.9s cubic-bezier(.45, 0, .2, 1) .2s; }
html:not(.no-js) .process.is-inview::before { transform: none; }
html:not(.no-js) .process .process__dot { transform: scale(0); transition: transform .6s cubic-bezier(.3, 1.7, .5, 1); }
html:not(.no-js) .process.is-inview .process__dot { transform: none; }
.process li:nth-child(1) .process__dot { transition-delay: .25s; }
.process li:nth-child(2) .process__dot { transition-delay: .6s; }
.process li:nth-child(3) .process__dot { transition-delay: .95s; }
.process li:nth-child(4) .process__dot { transition-delay: 1.3s; }
.process li:nth-child(5) .process__dot { transition-delay: 1.65s; }
@media (max-width: 900px) {
  html:not(.no-js) .process::before { transform: scaleY(0); transform-origin: 50% 0; }
}

/* ── Fondos vivos en secciones oscuras y CTA ── */
.section--dark, .cta, .site-footer { position: relative; overflow: hidden; isolation: isolate; }
.section--dark::before, .cta::before {
  content: ""; position: absolute; inset: -45%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side at 28% 32%, rgba(0, 152, 218, .26), transparent 70%),
    radial-gradient(closest-side at 74% 68%, rgba(180, 98, 45, .18), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}
.cta__pattern path { stroke-dasharray: 1; }
html:not(.no-js) .cta__pattern path { stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.45, 0, .2, 1) .3s; }
html:not(.no-js) .cta.is-visible .cta__pattern path { stroke-dashoffset: 0; }
html:not(.no-js) .cta__pattern circle { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s cubic-bezier(.3, 1.7, .5, 1); }
html:not(.no-js) .cta.is-visible .cta__pattern circle { transform: none; }
.cta__pattern circle:nth-of-type(1) { transition-delay: .3s; }
.cta__pattern circle:nth-of-type(2) { transition-delay: 1.2s; }
.cta__pattern circle:nth-of-type(3) { transition-delay: 2.2s; }
.cta__pattern { opacity: .28; }

/* ── Microinteracciones ── */
.btn--primary, .btn--light { position: relative; overflow: hidden; }
.btn--primary::after, .btn--light::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-20deg); transition: left .7s ease;
}
.btn--light::after { background: linear-gradient(100deg, transparent, rgba(0, 152, 218, .18), transparent); }
.btn--primary:hover::after, .btn--light:hover::after { left: 120%; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0, 49, 118, .7); }

a.card { position: relative; overflow: hidden; }
a.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--warm));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
a.card:hover::before { transform: none; }
a.card:hover { transform: translateY(-6px); }
a.card .card__num { transition: transform .35s ease; display: inline-block; }
a.card:hover .card__num { transform: translateX(4px); }

.problem { transition: border-color .3s ease; position: relative; }
.problem::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 100%; background: var(--warm); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.2, .7, .2, 1) .2s; }
.problem.is-visible::before { transform: none; }

.org { transition: background-color .3s ease, transform .3s ease; }
.org:hover { background: var(--sand); }
.area, .case { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, opacity .8s cubic-bezier(.2, .7, .2, 1); }
.area.is-done:hover, .case.is-done:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.area__icon { transition: transform .5s cubic-bezier(.3, 1.7, .5, 1); }
.area:hover .area__icon { transform: scale(1.12) rotate(-4deg); }

.nav__link::before {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s ease;
}
.nav__link:hover::before { transform: none; }
.nav__link[aria-current="page"]::before { display: none; }
@media (max-width: 980px) { .nav__link::before { display: none; } }

.site-header { transition: border-color .2s ease, box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(11, 30, 61, .45); }

/* ── Movimiento reducido: todo visible, sin animación ── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero h1, .page-hero h1 { opacity: 1 !important; transform: none !important; }
  html:not(.no-js) .process::before, html:not(.no-js) .process .process__dot,
  html:not(.no-js) .cta__pattern circle { transform: none !important; }
  html:not(.no-js) .cta__pattern path { stroke-dashoffset: 0 !important; }
  html:not(.no-js) .section-head.reveal h2::after { transform: none !important; }
  .rec-runner, .rec-pulse, .scroll-progress { display: none !important; }
}

/* =========================================================================
   AJUSTES MÓVILES (auditoría 13/11/2026)
   - Texto mínimo legible: 10.5–12 px en etiquetas
   - Zonas táctiles de al menos 44 px de alto
   ========================================================================= */
@media (max-width: 760px) {
  .brand { min-height: 44px; }
  .brand__tag { font-size: .68rem; letter-spacing: .06em; }
  .svc__tab-demo, .press__type { font-size: .72rem; }
  .ev__note-k, .ev-inline__k { font-size: .75rem !important; }
  .link-arrow { min-height: 44px; padding: 10px 0; }
  .press__links a { min-height: 40px; padding: 9px 14px; font-size: .82rem; }
  .footer__list { gap: 2px; }
  .footer__list a { display: inline-flex; align-items: center; min-height: 40px; }
  .cta__note a { display: inline-flex; align-items: center; min-height: 40px; }
  .contact-line a { display: inline-flex; align-items: center; min-height: 44px; }
  .faq summary { min-height: 44px; }
}
@media (max-width: 420px) { .brand__tag { font-size: .66rem; } }

/* ---------- Barra de contacto fija en celular ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 8px;
    background: rgba(7, 26, 54, .94); border-radius: 18px; box-shadow: 0 16px 36px -14px rgba(7, 26, 54, .7);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  }
  .mbar.is-on { transform: none; }
  .mbar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 14px;
    border-radius: 12px; text-decoration: none; font-weight: 700; font-size: .9rem; color: #fff;
  }
  .mbar__main { background: var(--brand); }
  .mbar__ig { background: linear-gradient(135deg, #F58529, #DD2A7B 50%, #8134AF); width: 48px; padding: 0 !important; }
  .mbar__wa { background: #1FAF54; width: 48px; padding: 0 !important; }
  .mbar svg { width: 24px; height: 24px; }
  body { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .mbar { transition: none; } }

/* ---------- Instagram: bloque de mensaje directo (Contacto) ---------- */
.ig-dm {
  display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px;
  text-decoration: none; color: #fff; background: linear-gradient(120deg, #8134AF, #DD2A7B 55%, #F58529);
  box-shadow: 0 14px 30px -18px rgba(129, 52, 175, .8); transition: transform .2s ease;
}
.ig-dm:hover { color: #fff; transform: translateY(-2px); }
.ig-dm__ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.ig-dm__ico svg { width: 26px; height: 26px; }
.ig-dm b { display: block; font-size: 1rem; }
.ig-dm span { font-size: .84rem; opacity: .92; }

/* Instagram en el bloque final de contacto */
.cta__ig {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #8134AF, #DD2A7B 55%, #F58529);
  transition: transform .2s ease;
}
.cta__ig:hover { color: #fff; transform: translateY(-2px); }
.cta__ig svg { width: 20px; height: 20px; }

/* Contacto: accesos directos arriba (Instagram / WhatsApp) */
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 22px; }
.quick__k { width: 100%; font-size: .82rem; font-weight: 600; color: var(--muted); }
.quick__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; transition: transform .2s ease; }
.quick__btn:hover { color: #fff; transform: translateY(-2px); }
.quick__btn svg { width: 20px; height: 20px; }
.quick__btn--ig { background: linear-gradient(120deg, #8134AF, #DD2A7B 55%, #F58529); }
.quick__btn--wa { background: #1FAF54; }

/* Accesos de redes dentro del menú móvil */
.nav__social { display: none; }
@media (max-width: 980px) {
  .nav__social { display: flex; gap: 10px; margin-top: 14px; }
  .nav__social a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; font-weight: 600; font-size: .9rem; text-decoration: none; color: #fff; }
  .nav__social svg { width: 20px; height: 20px; }
  .nav__social .is-ig { background: linear-gradient(135deg, #F58529, #DD2A7B 50%, #8134AF); }
  .nav__social .is-wa { background: #1FAF54; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .site-footer, .cta, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
