/* =========================================================
   Gemba Consulting Group — hoja de estilos del sitio
   Tipografía: Manrope (Google Fonts)
   ========================================================= */

:root {
  /* Paleta */
  --background: oklch(97.5% .004 92);
  --paper: oklch(97.5% .004 92);
  --card: oklch(100% 0 0);
  --foreground: oklch(19% .015 170);
  --muted: oklch(93.5% .006 90);
  --muted-foreground: oklch(49% .013 170);
  --border: oklch(84% .008 90);
  --input: oklch(75% .008 90);
  --primary: oklch(44.19% .1196 254.76);      /* azul de marca */
  --primary-foreground: oklch(98% .004 92);
  --ink: oklch(31% .09 254.76);
  --forest: oklch(29% .055 165);
  --accent: oklch(91% .035 248);
  --on-blue-accent: oklch(90% .035 254.76);
  --line-dark: oklch(19% .015 170 / .2);
  --line-light: oklch(100% 0 0 / .26);
  --radius: .25rem;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(88px, 11vw, 168px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--primary-foreground);
  padding: 10px 16px; border-radius: var(--radius); transition: top .2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; line-height: 1.5;
  letter-spacing: .15em; text-transform: uppercase;
}
.display {
  font-weight: 300;
  font-size: clamp(46px, 7.2vw, 104px);
  line-height: .94;
  letter-spacing: -.025em;
}
.title {
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.03;
  letter-spacing: -.02em;
}
.title-sm {
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.015em;
}
.display em, .title em, .manifesto em { font-style: italic; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 38ch; }
.body-lg { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; max-width: 52ch; }
.muted { color: var(--muted-foreground); }
.num { font-size: 11px; font-weight: 700; letter-spacing: .15em; color: var(--primary); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 26px;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--ink); }
.btn-light { border-color: var(--line-light); color: var(--primary-foreground); }
.btn-light:hover { background: var(--primary-foreground); color: var(--primary); }
.btn-outline { border-color: var(--line-dark); }
.btn-outline:hover { background: var(--foreground); color: var(--background); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
}
.link-arrow svg { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  color: var(--foreground);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { position: relative; display: block; height: 34px; flex-shrink: 0; }
.brand-link img { height: 34px; width: auto; transition: opacity .3s; }
.brand-link .logo-white { position: absolute; inset: 0 auto auto 0; opacity: 0; }

.site-header.is-inverse { color: var(--primary-foreground); border-bottom-color: var(--line-light); }
.site-header.is-inverse .logo-color { opacity: 0; }
.site-header.is-inverse .logo-white { opacity: 1; }

.site-header.is-scrolled {
  color: var(--foreground);
  background: color-mix(in oklch, var(--background) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line-dark);
}
.site-header.is-scrolled .logo-color { opacity: 1; }
.site-header.is-scrolled .logo-white { opacity: 0; }

.main-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 30px); }
.main-nav a {
  font-size: 13px; font-weight: 500;
  position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav .nav-cta {
  padding: 10px 18px; border: 1px solid currentColor; border-radius: var(--radius);
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }

.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit;
}
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform .3s, opacity .3s; }

@media (max-width: 1080px) {
  .menu-toggle { display: block; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 96px var(--gutter) 48px;
    background: var(--primary); color: var(--primary-foreground);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .main-nav a { font-size: clamp(26px, 6vw, 40px); font-weight: 300; }
  .main-nav .nav-cta { margin-top: 20px; font-size: 12px; }
  .site-header.menu-open .main-nav { opacity: 1; visibility: visible; }
  .site-header.menu-open { color: var(--primary-foreground); background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
  .site-header.menu-open .logo-color { opacity: 0; }
  .site-header.menu-open .logo-white { opacity: 1; }
  .site-header.menu-open .brand-link { z-index: 2; }
  .site-header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--primary-foreground);
  padding: calc(var(--header-h) + 64px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero-sub { min-height: 86svh; }
.hero-image { position: absolute; inset: 0; z-index: -2; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
/* Degradado azul de marca sobre las fotos (igual que la referencia) */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, oklch(44.19% .1196 254.76 / .35) 0%, transparent 22%),
    linear-gradient(0deg, oklch(44.19% .1196 254.76 / .9), oklch(44.19% .1196 254.76 / .14) 80%);
}
@keyframes heroZoom { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-image img { animation: none; transform: none; } }

.hero-content { max-width: 1040px; }
.hero .eyebrow { margin-bottom: 28px; opacity: .9; }
.hero .display { margin-bottom: 32px; }
.hero .lead { margin-bottom: 40px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 8vw, 104px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue::after { content: ""; width: 1px; height: 56px; background: currentColor; opacity: .6; animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (max-width: 720px) { .scroll-cue { display: none; } }

/* ---------- Secciones genéricas ---------- */
.section { padding: var(--section-y) 0; }
.bg-white { background: var(--card); }
.bg-paper { background: var(--paper); }
.bg-blue { background: var(--primary); color: var(--primary-foreground); }

.section-marker {
  display: flex; align-items: baseline; gap: 14px;
  padding-top: 18px; margin-bottom: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line-dark);
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted-foreground);
}
.section-marker .num { color: var(--primary); }
.bg-blue .section-marker, .on-dark .section-marker { border-top-color: var(--line-light); color: var(--on-blue-accent); }
.bg-blue .section-marker .num, .on-dark .section-marker .num { color: var(--primary-foreground); }

.split {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px clamp(24px, 3vw, 48px);
  align-items: start;
}
.split > .split-a { grid-column: 1 / span 6; }
.split > .split-b { grid-column: 8 / span 5; }
@media (max-width: 900px) {
  .split > .split-a, .split > .split-b { grid-column: 1 / -1; }
}

/* Pilares (Nosotros) */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(64px, 8vw, 120px);
}
.pillar { border-top: 1px solid var(--line-dark); padding-top: 24px; }
.pillar .num { display: block; margin-bottom: 40px; }
.pillar h3 { font-size: 20px; font-weight: 500; line-height: 1.4; margin-bottom: 12px; }
.pillar p { color: var(--muted-foreground); max-width: 32ch; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } .pillar .num { margin-bottom: 16px; } }

/* Servicios */
.services-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(48px, 6vw, 80px); }
.services-head p { max-width: 40ch; color: var(--muted-foreground); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.service-card {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-dark); padding-top: 24px;
}
.service-card .num { margin-bottom: 20px; }
.service-card h3 { font-size: clamp(26px, 2.4vw, 32px); font-weight: 300; letter-spacing: -.01em; margin-bottom: 12px; }
.service-card p { color: var(--muted-foreground); margin-bottom: 28px; max-width: 30ch; }
.service-card .link-arrow { align-self: flex-start; margin-bottom: 32px; }
.service-card .media { margin-top: auto; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.service-card:hover .media img { transform: scale(1.05); }
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } .service-card .media { aspect-ratio: 16 / 10; } }

/* Método (fondo azul) */
.method-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.method-image { position: relative; min-height: 420px; }
.method-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.method-content { padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.method-content .title { margin-bottom: 28px; }
.method-content > p { color: var(--on-blue-accent); max-width: 44ch; margin-bottom: clamp(48px, 6vw, 80px); }
.steps-list { display: grid; gap: 0; }
.steps-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line-light); }
.steps-list li:last-child { border-bottom: 1px solid var(--line-light); }
.steps-list .num { color: var(--on-blue-accent); padding-top: 6px; }
.steps-list h3 { font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.steps-list p { color: var(--on-blue-accent); }
@media (max-width: 900px) { .method-section { grid-template-columns: 1fr; min-height: 0; } }

/* Industrias */
.industries-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.industries-grid .title { margin-bottom: 24px; }
.industry-text { color: var(--muted-foreground); max-width: 40ch; margin-bottom: 32px; min-height: 4.5em; }
.industry-tabs { margin-top: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line-dark); }
.industry-tab {
  width: 100%; display: flex; align-items: baseline; gap: 20px;
  background: none; border: 0; border-top: 1px solid var(--line-dark);
  padding: 22px 0; text-align: left; cursor: pointer;
  font-size: clamp(24px, 2.6vw, 34px); font-weight: 300; letter-spacing: -.01em;
  color: var(--muted-foreground); transition: color .25s, padding .3s var(--ease);
}
.industry-tab .num { font-size: 11px; }
.industry-tab:hover { color: var(--foreground); }
.industry-tab[aria-selected="true"] { color: var(--foreground); font-weight: 500; padding-left: 8px; }
.industry-panel { position: relative; min-height: 560px; overflow: hidden; border-radius: var(--radius); }
.industry-panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.2s var(--ease);
}
.industry-panel img.is-active { opacity: 1; transform: scale(1); }
.industry-panel .panel-label {
  position: absolute; left: 24px; bottom: 24px; z-index: 1;
  background: var(--card); padding: 10px 16px; border-radius: var(--radius);
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
@media (max-width: 900px) { .industries-grid { grid-template-columns: 1fr; } .industry-panel { min-height: 360px; order: -1; } }

/* Métricas */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.metric { border-top: 1px solid var(--line-dark); padding-top: 28px; }
.metric strong {
  display: block; font-weight: 200; color: var(--primary);
  font-size: clamp(64px, 9vw, 136px); line-height: .9; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; margin-bottom: 20px;
}
.metric span { color: var(--muted-foreground); max-width: 22ch; display: block; }
@media (max-width: 820px) { .metrics { grid-template-columns: 1fr; } }

/* Experiencia (imagen de fondo) */
.experience-section {
  position: relative; isolation: isolate; color: var(--primary-foreground);
  min-height: 720px; display: flex; align-items: flex-end; overflow: hidden;
  padding: var(--section-y) 0;
}
.experience-section > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.experience-section::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, oklch(44.19% .1196 254.76 / .88), oklch(44.19% .1196 254.76 / .2)); }

/* Fundido azul suave en el resto de fotos */
.service-card .media, .method-image, .industry-panel, .post-media { position: relative; }
.service-card .media::after, .method-image::after, .industry-panel::after, .post-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, oklch(44.19% .1196 254.76 / .62), oklch(44.19% .1196 254.76 / .06) 70%);
  transition: opacity .5s var(--ease);
}
.method-image::after { background: linear-gradient(90deg, oklch(44.19% .1196 254.76 / .1), oklch(44.19% .1196 254.76 / .7)); }
.service-card:hover .media::after, .post-card:hover .post-media::after { opacity: .7; }
.industry-panel .panel-label { z-index: 2; }

/* Blog (Recursos) */
.post-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.filter-btn {
  background: none; border: 1px solid var(--line-dark); border-radius: 999px; cursor: pointer;
  padding: 9px 18px; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 48px); }
.post-card { display: flex; flex-direction: column; }
.post-card[hidden] { display: none; }
.post-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); margin-bottom: 24px; background: var(--muted); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.04); }
.post-meta { display: flex; gap: 16px; margin-bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-foreground); }
.post-meta span { color: var(--primary); }
.post-card h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 12px; max-width: 26ch; }
.post-card h3 a:hover { color: var(--primary); }
.post-card p { color: var(--muted-foreground); margin-bottom: 24px; max-width: 48ch; }
.post-card .link-arrow { align-self: flex-start; margin-top: auto; }
@media (max-width: 760px) { .post-grid { grid-template-columns: 1fr; } }

/* Libros recomendados */
.ref-book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px); }
.ref-book { display: flex; flex-direction: column; }
.ref-cover {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; padding: clamp(24px, 3vw, 40px); margin-bottom: 24px;
  background: var(--paper); border-radius: var(--radius);
}
.ref-cover img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 24px 48px -24px oklch(19% .05 254 / .5); transition: transform .6s var(--ease); }
.ref-book:hover .ref-cover img { transform: translateY(-6px); }
.ref-book .num { margin-bottom: 12px; }
.ref-book h3 { font-size: clamp(22px, 2vw, 26px); font-weight: 400; letter-spacing: -.01em; margin-bottom: 12px; }
.ref-book p { color: var(--muted-foreground); margin-bottom: 24px; }
.ref-book .link-arrow { align-self: flex-start; margin-top: auto; }
@media (max-width: 900px) { .ref-book-grid { grid-template-columns: 1fr; } .ref-cover { aspect-ratio: 16 / 11; } }
.experience-section .title { max-width: 16ch; margin-bottom: 28px; }
.experience-section p { max-width: 46ch; color: var(--on-blue-accent); margin-bottom: 40px; }

/* Manifiesto */
.manifesto { padding: var(--section-y) 0; }
.manifesto p {
  font-weight: 300; font-size: clamp(32px, 4.8vw, 72px); line-height: 1.08; letter-spacing: -.02em;
  max-width: 22ch;
}
.manifesto em { color: var(--primary); display: block; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 120px); }
.contact-intro .title { margin-bottom: 28px; }
.contact-intro p { color: var(--muted-foreground); max-width: 38ch; margin-bottom: 36px; }
.contact-mail { font-size: clamp(18px, 1.6vw, 22px); border-bottom: 1px solid var(--line-dark); padding-bottom: 6px; transition: color .2s, border-color .2s; word-break: break-all; }
.contact-mail:hover { color: var(--primary); border-color: var(--primary); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-foreground); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--input); border-radius: 0;
  background: transparent; padding: 10px 0 12px; font-size: 17px;
  transition: border-color .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23555' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; cursor: pointer; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--primary); }
.consent { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted-foreground); }
.consent input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.consent a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-status { font-size: 14px; color: var(--primary); }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }

/* ---------- Páginas internas ---------- */
.detail-block {
  display: grid; grid-template-columns: 1fr 5fr 6fr; gap: 24px clamp(24px, 3vw, 48px);
  padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line-dark);
}
.detail-block:last-child { border-bottom: 1px solid var(--line-dark); }
.detail-block .num { padding-top: 12px; }
.detail-block .title-sm { max-width: 16ch; }
.detail-block .body-lg { color: var(--muted-foreground); }
.detail-block .body-lg + .item-list { margin-top: 32px; }
@media (max-width: 900px) { .detail-block { grid-template-columns: 1fr; } .detail-block .num { padding-top: 0; } }

.item-list li {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--line-dark); font-size: 18px;
}
.item-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.item-list li::before { content: counter(item, decimal-leading-zero); counter-increment: item; font-size: 11px; font-weight: 700; letter-spacing: .15em; color: var(--primary); }
.item-list { counter-reset: item; }

.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 32px; counter-reset: item; }
.process-list li { padding: 20px 16px 20px 0; border-top: 2px solid var(--primary); font-size: 18px; font-weight: 500; }
.process-list li::before { content: counter(item, decimal-leading-zero); counter-increment: item; display: block; font-size: 11px; font-weight: 700; letter-spacing: .15em; color: var(--primary); margin-bottom: 10px; }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr 1fr; } }

.keyword-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
}
.keyword-strip span {
  padding: clamp(24px, 3vw, 40px) 0; text-align: center;
  font-size: clamp(20px, 2.6vw, 36px); font-weight: 300; letter-spacing: -.01em;
}
.keyword-strip span + span { border-left: 1px solid var(--line-dark); }
@media (max-width: 640px) { .keyword-strip { grid-template-columns: 1fr 1fr; } .keyword-strip span:nth-child(3) { border-left: 0; } .keyword-strip span:nth-child(n+3) { border-top: 1px solid var(--line-dark); } }

.step-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.step-card { background: var(--card); padding: clamp(28px, 3vw, 44px); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 340px; }
.step-card .num { margin-bottom: auto; padding-bottom: 48px; }
.step-card h2 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 300; letter-spacing: -.015em; margin-bottom: 14px; }
.step-card p { color: var(--muted-foreground); }
@media (max-width: 900px) { .step-cards { grid-template-columns: 1fr; } .step-card { min-height: 0; } }

.cta-band { padding: var(--section-y) 0; background: var(--card); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta-band p { font-weight: 300; font-size: clamp(30px, 4vw, 56px); line-height: 1.06; letter-spacing: -.02em; max-width: 20ch; }

/* Libros */
.books-hero { padding: calc(var(--header-h) + clamp(72px, 10vw, 140px)) 0 clamp(56px, 7vw, 96px); }
.books-hero .eyebrow { color: var(--primary); margin-bottom: 28px; }
.books-hero .display { max-width: 15ch; margin-bottom: 32px; }
.books-hero .lead { color: var(--muted-foreground); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); }
.book { display: grid; gap: 28px; }
.book-cover {
  position: relative; aspect-ratio: 3 / 4; border-radius: 2px 6px 6px 2px; overflow: hidden;
  background: var(--primary); color: var(--primary-foreground);
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 30px 60px -30px oklch(19% .05 254 / .55);
  transition: transform .6s var(--ease);
}
.book:hover .book-cover { transform: translateY(-6px); }
.book-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, oklch(0% 0 0 / .25), transparent); }
.book-cover.alt { background: var(--forest); }
.book-cover small { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; opacity: .85; }
.book-cover strong { font-size: clamp(96px, 14vw, 200px); font-weight: 200; line-height: .85; letter-spacing: -.05em; }
.book-cover span { font-size: clamp(20px, 2vw, 28px); font-weight: 300; }
.book-meta { display: flex; justify-content: space-between; align-items: center; }
.badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-foreground, var(--ink)); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.book h2 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 300; letter-spacing: -.015em; }
.book p { color: var(--muted-foreground); max-width: 44ch; }
.book .edition { font-size: 13px; font-weight: 600; color: var(--foreground); }
.books-note { margin-top: clamp(64px, 8vw, 112px); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line-dark); border-radius: var(--radius); display: grid; grid-template-columns: 1fr 3fr; gap: 16px 32px; }
.books-note .eyebrow { color: var(--primary); }
.books-note p { color: var(--muted-foreground); max-width: 60ch; }
@media (max-width: 820px) { .book-grid, .books-note { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: var(--primary-foreground); padding: clamp(72px, 9vw, 128px) 0 32px; }
.footer-lead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line-light); }
.footer-lead img { height: 40px; width: auto; }
.footer-lead p { font-weight: 300; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.02em; max-width: 18ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; padding: clamp(48px, 6vw, 72px) 0; }
.footer-cols h2 { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--on-blue-accent); margin-bottom: 20px; }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a { opacity: .9; transition: opacity .2s; }
.footer-cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line-light); font-size: 13px; color: var(--on-blue-accent); }
.footer-bottom a:hover { color: var(--primary-foreground); }
@media (max-width: 820px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.bg-paper .ref-cover { background: var(--card); }

/* =========================================================
   Mejoras: landings más completas y navegación
   ========================================================= */

/* Hero interno un poco más bajo para que el contenido asome antes */
.hero-sub { min-height: 78svh; }
.hero-sub .scroll-cue { bottom: clamp(48px, 6vw, 80px); }

/* Ruta de navegación (breadcrumb) */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 20px; font-size: 13px; color: var(--on-blue-accent);
}
.breadcrumb a { color: var(--primary-foreground); opacity: .85; transition: opacity .2s; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* Banda "Cómo trabajamos" (fondo azul) */
.steps-band .title { margin-bottom: clamp(40px, 5vw, 72px); }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); counter-reset: none; }
.steps-row li { border-top: 1px solid var(--line-light); padding-top: 24px; }
.steps-row .num { display: block; color: var(--on-blue-accent); margin-bottom: 32px; }
.steps-row h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 300; margin-bottom: 10px; }
.steps-row p { color: var(--on-blue-accent); max-width: 30ch; }
@media (max-width: 820px) { .steps-row { grid-template-columns: 1fr; } .steps-row .num { margin-bottom: 12px; } }

/* Tarjetas "Sigue explorando" (sin fotos, para no repetir imágenes) */
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.explore-card {
  position: relative; display: flex; flex-direction: column; min-height: 240px;
  padding: 28px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: var(--card);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.explore-kicker { display: flex; gap: 10px; align-items: baseline; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: auto; padding-bottom: 40px; }
.explore-card h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 300; letter-spacing: -.01em; margin-bottom: 8px; }
.explore-card p { color: var(--muted-foreground); max-width: 30ch; padding-right: 32px; }
.explore-arrow { position: absolute; right: 24px; bottom: 24px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: transform .35s var(--ease); }
.explore-arrow svg { width: 14px; height: 14px; }
.explore-card:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); transform: translateY(-4px); }
.explore-card:hover p, .explore-card:hover .explore-kicker, .explore-card:hover .num { color: var(--on-blue-accent); }
.explore-card:hover .explore-arrow { transform: translateX(4px); }
.bg-white.explore-section + .cta-band { border-top: 1px solid var(--line-dark); }
.explore-kicker { margin-bottom: 40px; padding-bottom: 0; }
.explore-card p { margin-bottom: 8px; }
@media (max-width: 640px) { .explore-card { min-height: 0; padding: 24px; } .explore-kicker { margin-bottom: 28px; } }

/* =========================================================
   Casos y clientes (landings de servicios e industrias)
   Formato breve: ficha Reto / Qué hicimos / Resultado,
   etiquetas, cifras y gráficos de barras.
   ========================================================= */
.case-grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.case-grid.no-media { grid-template-columns: 5fr 7fr; }
.case-media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--muted); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.case-media:hover img { transform: scale(1.03); }
.case-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, oklch(44.19% .1196 254.76 / .55), oklch(44.19% .1196 254.76 / .04) 60%); }
.case-media figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; font-size: 13px; color: var(--primary-foreground); }
.case-client { display: block; color: var(--primary); margin-bottom: 18px; }
.case-body .title { margin-bottom: 16px; }
.case-lead { font-size: 18px; color: var(--muted-foreground); max-width: 46ch; margin-bottom: 28px; }

/* Ficha Reto / Qué hicimos / Resultado */
.case-facts { margin: 0; }
.case-facts > div { display: grid; grid-template-columns: 128px 1fr; gap: 8px 20px; padding: 16px 0; border-top: 1px solid var(--line-dark); }
.case-facts > div:last-child { border-bottom: 1px solid var(--line-dark); }
.case-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); padding-top: 4px; }
.case-facts dd { margin: 0; font-size: 17px; line-height: 1.5; }
.case-facts dd strong { font-weight: 600; }
@media (max-width: 560px) { .case-facts > div { grid-template-columns: 1fr; } }

/* Etiquetas */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 12px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; background: var(--card); }
.bg-white .tags li { background: var(--paper); }

/* Resultados: cifras + gráfico */
.case-results { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); margin-top: clamp(56px, 7vw, 96px); align-items: start; }
.case-results.full { grid-template-columns: 1fr; }
.case-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.case-results > .case-stats { margin: 0; }
.case-stat { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.case-stat strong { display: block; color: var(--primary); font-weight: 200; font-size: clamp(38px, 4vw, 56px); line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.case-stat span { display: block; color: var(--muted-foreground); max-width: 24ch; }

.bars { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.bars-title { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 20px; }
.bar-group { display: grid; grid-template-columns: 96px 1fr; gap: 8px 16px; align-items: center; padding: 10px 0; }
.bar-group + .bar-group { border-top: 1px solid var(--line-dark); }
.bar-label { font-size: 15px; font-weight: 600; grid-row: span 2; }
.bar-group.single .bar-label { grid-row: auto; }
.bar { position: relative; height: 30px; border-radius: 2px; background: var(--muted); overflow: hidden; }
.bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: var(--primary); border-radius: 2px; transform-origin: left; transition: transform 1.2s var(--ease); }
.bar.before::before { background: oklch(44.19% .1196 254.76 / .32); }
.bar.goal::before { background: transparent; border: 1.5px dashed var(--primary); }
.bar span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--primary-foreground); white-space: nowrap; }
.bar.before span, .bar.goal span { color: var(--ink); }
.reveal .bar::before { transform: scaleX(0); }
.reveal.is-visible .bar::before, .no-js .bar::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .reveal .bar::before { transform: none; transition: none; } }
.bars-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13px; color: var(--muted-foreground); }
.bars-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--primary); }
.bars-legend i.before { background: oklch(44.19% .1196 254.76 / .32); }
@media (max-width: 900px) { .case-results { grid-template-columns: 1fr; } }

/* Ruta DMAIC */
.dmaic { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: clamp(48px, 6vw, 80px); }
.dmaic li { padding: 18px 16px 18px 0; border-top: 2px solid var(--primary); }
.dmaic b { display: block; font-size: clamp(34px, 3.4vw, 48px); font-weight: 200; line-height: 1; color: var(--primary); margin-bottom: 10px; }
.dmaic em { display: block; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 8px; }
.dmaic span { display: block; color: var(--muted-foreground); font-size: 15px; max-width: 20ch; }
@media (max-width: 820px) { .dmaic { grid-template-columns: 1fr; } .dmaic li { display: grid; grid-template-columns: 52px 1fr; gap: 0 12px; } .dmaic b { grid-row: span 2; } }

/* Tira de fotos */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(40px, 5vw, 64px); }
.photo-strip figure { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--muted); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.photo-strip figure:hover img { transform: scale(1.04); }
.photo-strip figure::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, oklch(44.19% .1196 254.76 / .5), transparent 55%); }
.photo-strip figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-size: 13px; color: var(--primary-foreground); }
@media (max-width: 640px) { .photo-strip { grid-template-columns: 1fr 1fr; } .photo-strip figure:nth-child(3) { display: none; } }

/* Con quiénes hemos trabajado */
.clients-section .title { margin-bottom: clamp(40px, 5vw, 64px); }
.client-list > li { display: grid; grid-template-columns: 4fr 8fr; gap: 14px clamp(24px, 3vw, 48px); align-items: center; padding: clamp(20px, 2.6vw, 30px) 0; border-top: 1px solid var(--line-dark); }
.client-list > li:last-child { border-bottom: 1px solid var(--line-dark); }
.client-list h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; letter-spacing: -.01em; margin-bottom: 4px; }
.client-meta { display: block; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-foreground); }
.client-result { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--primary); }
@media (max-width: 760px) { .client-list > li { grid-template-columns: 1fr; } }

.client-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.client-card { border-top: 1px solid var(--line-dark); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.client-card h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 300; }
.client-card .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); margin-top: 12px; background: var(--muted); }
.client-card .media img { width: 100%; height: 100%; object-fit: cover; }
.client-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, oklch(44.19% .1196 254.76 / .45), transparent 60%); }
@media (max-width: 900px) { .client-cards { grid-template-columns: 1fr; } .client-card .media { aspect-ratio: 16 / 9; } }

/* Línea de tiempo */
.timeline-list { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px); }
.timeline-list li { position: relative; padding-top: 30px; }
.timeline-list li::before { content: ""; position: absolute; left: 0; right: calc(-1 * clamp(16px, 2vw, 28px)); top: 6px; height: 1px; background: var(--line-dark); }
.timeline-list li:last-child::before { right: 0; }
.timeline-list li::after { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--paper); }
.timeline-list .when { display: block; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.timeline-list h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 400; line-height: 1.25; margin-bottom: 8px; }
.timeline-list p { color: var(--muted-foreground); font-size: 15px; }
@media (max-width: 980px) {
  .timeline-list { grid-template-columns: 1fr; gap: 0; padding-left: 28px; }
  .timeline-list li { padding: 0 0 28px; }
  .timeline-list li::before { left: -22px; right: auto; top: 6px; bottom: 0; width: 1px; height: auto; }
  .timeline-list li:last-child::before { display: none; }
  .timeline-list li::after { left: -28px; }
}

/* Proceso de certificación */
.cert-steps { margin-top: 0; }

/* Cierre de página: volver al inicio / subir */
.page-end { background: var(--card); border-top: 1px solid var(--line-dark); padding: 28px 0; }
.page-end .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.page-end .link-arrow svg { transform: rotate(180deg); }
.page-end .link-arrow:hover svg { transform: rotate(180deg) translateX(4px); }
.to-top { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.to-top .circle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .3s var(--ease); }
.to-top svg { width: 14px; height: 14px; }
.to-top:hover .circle { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); transform: translateY(-3px); }

.case-results .case-stat strong { white-space: nowrap; font-size: clamp(34px, 3.4vw, 48px); }
.client-list .tags { align-self: center; }

/* Nombre del cliente: siempre arriba a la izquierda, sobre la imagen */
.case-client-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px;
  margin-bottom: clamp(28px, 3.5vw, 44px); padding-bottom: 18px;
  border-bottom: 2px solid var(--primary);
}
.case-client-name { font-size: clamp(38px, 4.6vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--primary); }
.case-client-meta { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-foreground); }
.case-title { margin-bottom: 16px; }
.case-left .bars { border-top: 0; padding: clamp(24px, 3vw, 36px); background: var(--paper); border-radius: var(--radius); }
.case-left .bar { height: 40px; }
.case-left .bar span { font-size: 15px; }

/* Nombres en "Con quiénes hemos trabajado" más visibles */
.client-list h3, .client-card h3 { font-weight: 600; color: var(--primary); letter-spacing: -.02em; }

/* =========================================================
   Ponencias (kaigi-lean-brasil-2026.html y tarjeta en Recursos)
   Audio por capítulos sincronizado con diapositivas y subtítulos
   ========================================================= */
.talk-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 112px)) 0 clamp(40px, 5vw, 64px); }
.talk-hero .breadcrumb { color: var(--muted-foreground); }
.talk-hero .breadcrumb a { color: var(--foreground); }
.talk-hero .eyebrow { display: block; color: var(--primary); margin-bottom: 24px; }
.talk-hero .display { max-width: 14ch; margin-bottom: 28px; }
.talk-hero .display em { color: var(--primary); }
.talk-hero .lead { color: var(--muted-foreground); max-width: 46ch; }
.talk-facts { display: flex; flex-wrap: wrap; gap: 20px clamp(32px, 5vw, 72px); margin: clamp(36px, 4vw, 56px) 0 0; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.talk-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 6px; }
.talk-facts dd { margin: 0; font-size: 17px; font-weight: 500; }

.talk-es { background: var(--primary); color: var(--primary-foreground); padding: clamp(28px, 3.5vw, 44px) 0; }
.talk-es .eyebrow { color: var(--on-blue-accent); margin-bottom: 18px; }
.talk-es-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px clamp(24px, 3vw, 48px); }
.talk-es-list li { border-top: 1px solid var(--line-light); padding-top: 16px; display: grid; gap: 6px; align-content: start; }
.talk-es-list strong { font-size: 18px; font-weight: 500; }
.talk-es-list span { color: var(--on-blue-accent); font-size: 15px; max-width: 36ch; }
@media (max-width: 820px) { .talk-es-list { grid-template-columns: 1fr; } }

.talk-section .section-marker { margin-bottom: clamp(32px, 4vw, 48px); }
.talk-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-dark); margin-bottom: clamp(28px, 3.5vw, 44px); }
.talk-tab {
  display: grid; gap: 6px; align-content: start; text-align: left; cursor: pointer;
  background: none; border: 0; border-top: 2px solid transparent; margin-top: -1px;
  padding: 18px clamp(10px, 1.4vw, 20px) 18px 0; color: var(--muted-foreground);
  transition: color .25s, border-color .25s;
}
.talk-tab + .talk-tab { padding-left: clamp(10px, 1.4vw, 20px); border-left: 1px solid var(--line-dark); }
.talk-tab-title { font-size: clamp(16px, 1.4vw, 19px); font-weight: 500; line-height: 1.25; color: var(--foreground); }
.talk-tab-dur { font-size: 13px; }
.talk-tab:hover .talk-tab-title { color: var(--primary); }
.talk-tab[aria-selected="true"] { border-top-color: var(--primary); }
.talk-tab[aria-selected="true"] .talk-tab-title { color: var(--primary); font-weight: 600; }
@media (max-width: 900px) {
  .talk-tabs { grid-template-columns: 1fr; border-top: 0; }
  .talk-tab, .talk-tab + .talk-tab { grid-template-columns: 64px 1fr auto; align-items: baseline; padding: 14px 0 14px 12px; border: 0; border-top: 1px solid var(--line-dark); border-left: 2px solid transparent; margin: 0; }
  .talk-tab[aria-selected="true"] { border-left-color: var(--primary); border-top-color: var(--line-dark); }
}

.talk-player { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(20px, 2.6vw, 36px); align-items: start; }
.talk-stage { min-width: 0; }
.talk-screen { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--card); border: 1px solid var(--line-dark); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.talk-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .4s var(--ease); }
.talk-screen img.is-on { opacity: 1; }
.talk-cc {
  min-height: 4.4em; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 12px clamp(14px, 3vw, 40px); background: var(--ink); color: var(--primary-foreground);
  font-size: clamp(16px, 1.5vw, 20px); line-height: 1.4; border-radius: 0 0 var(--radius) var(--radius);
}
.talk-cc.is-off span { visibility: hidden; }
.talk-controls { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; margin-top: 16px; }
.talk-play { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-foreground); display: grid; place-items: center; cursor: pointer; transition: background .25s; }
.talk-play:hover { background: var(--ink); }
.talk-play svg { width: 18px; height: 18px; fill: currentColor; }
.talk-play .i-pause, .talk-play.is-playing .i-play { display: none; }
.talk-play.is-playing .i-pause { display: block; }
.talk-btn { background: none; border: 1px solid var(--line-dark); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.talk-btn:hover { border-color: var(--primary); color: var(--primary); }
#talk-ccbtn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.talk-bar { position: relative; height: 36px; cursor: pointer; touch-action: none; }
.talk-track, .talk-fill { position: absolute; left: 0; top: 16px; height: 4px; border-radius: 2px; }
.talk-track { right: 0; background: var(--border); }
.talk-fill { width: 0; background: var(--primary); }
.talk-tick { position: absolute; top: 10px; width: 2px; height: 16px; background: var(--foreground); opacity: .3; }
.talk-time { font-size: 13px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  .talk-controls { grid-template-columns: auto auto 1fr auto auto; }
  .talk-bar { grid-column: 1 / -1; grid-row: 2; }
  .talk-time { grid-column: 3; text-align: center; }
}
.talk-onscreen { margin-top: 20px; padding: 18px 20px; background: var(--card); border-radius: var(--radius); }
.talk-onscreen .eyebrow { display: block; color: var(--primary); margin-bottom: 8px; }
.talk-onscreen p { color: var(--muted-foreground); max-width: 72ch; }

.talk-slides { display: grid; gap: 4px; }
.talk-slides button { width: 100%; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; text-align: left; background: none; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background .2s, border-color .2s; }
.talk-slides button:hover { background: var(--card); }
.talk-slides button.is-on { background: var(--card); border-color: var(--primary); }
.talk-slides img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line-dark); border-radius: 2px; background: var(--card); }
.talk-slides b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.talk-slides small { display: block; font-size: 12px; color: var(--muted-foreground); margin-top: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .talk-player { grid-template-columns: minmax(0, 1fr); }
  .talk-slides { grid-auto-flow: column; grid-auto-columns: 160px; overflow-x: auto; padding-bottom: 6px; }
  .talk-slides button { grid-template-columns: 1fr; align-items: start; }
  .talk-slides img { width: 100%; }
}

.talk-panels { margin-top: clamp(64px, 8vw, 112px); }
.talk-panel[hidden] { display: none; }
.talk-panel-head { display: grid; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.talk-panel-head .eyebrow { color: var(--primary); }
.talk-panel-head .body-lg { color: var(--muted-foreground); max-width: 60ch; }
.talk-ideas { margin-top: clamp(40px, 5vw, 64px); }
.talk-ideas .pillar .num { margin-bottom: 20px; }
.talk-quote { margin: clamp(48px, 6vw, 80px) 0; padding: 0; }
.talk-quote p { font-weight: 300; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -.02em; max-width: 26ch; color: var(--primary); }
.talk-quote cite { display: block; margin-top: 16px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-foreground); }
.talk-ex { background: var(--card); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 48px); display: grid; gap: 28px; }
.talk-ex-head { display: grid; gap: 10px; }
.talk-ex-head .eyebrow { color: var(--primary); }
.talk-ex-head h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; letter-spacing: -.01em; line-height: 1.15; max-width: 30ch; }
.talk-ex-head p { color: var(--muted-foreground); max-width: 60ch; }
.talk-ex-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px clamp(20px, 2.4vw, 32px); }
.talk-ex-items li { border-top: 2px solid var(--primary); padding-top: 14px; display: grid; gap: 6px; align-content: start; }
.talk-ex-k { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); }
.talk-ex-items strong { font-size: 19px; font-weight: 500; line-height: 1.3; }
.talk-ex-items p { color: var(--muted-foreground); font-size: 15px; }

.talk-transcript { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.talk-transcript summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 22px 0; cursor: pointer; list-style: none; }
.talk-transcript summary::-webkit-details-marker { display: none; }
.talk-transcript summary > span:first-child { font-size: clamp(22px, 2.2vw, 28px); font-weight: 300; }
.talk-transcript summary > span:first-child::after { content: " +"; color: var(--primary); }
.talk-transcript[open] summary > span:first-child::after { content: " −"; }
.talk-summary-hint { font-size: 13px; color: var(--muted-foreground); }
.talk-segs { display: grid; gap: 4px; padding-bottom: 28px; max-width: 820px; }
.talk-seg { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-dark); }
.talk-seg:first-child { border-top: 0; }
.talk-jump { align-self: start; background: none; border: 0; padding: 2px 0; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; font-variant-numeric: tabular-nums; }
.talk-seg h4 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.talk-seg h4 span { margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-foreground); }
.talk-seg p { color: var(--muted-foreground); line-height: 1.65; padding: 2px 8px; margin: 0 -8px 8px; border-radius: var(--radius); transition: background .3s, color .3s; }
.talk-seg p.is-on { background: var(--accent); color: var(--foreground); }
.talk-panel-end { margin-top: clamp(32px, 4vw, 48px); }

.talk-glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin: 0; }
.talk-glossary div { padding: 18px 0; border-top: 1px solid var(--line-dark); }
.talk-glossary dt { font-size: 18px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.talk-glossary dd { margin: 0; color: var(--muted-foreground); }

.talk-book { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.talk-book .ref-cover { margin: 0; background: var(--card); }
.talk-book .section-marker { margin-bottom: 32px; }
.talk-book .title { margin-bottom: 20px; }
.talk-book-actions { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-top: 32px; }
@media (max-width: 820px) { .talk-book { grid-template-columns: 1fr; } .talk-book .ref-cover { aspect-ratio: 16 / 11; } }

/* Tarjeta destacada en Recursos */
.talk-feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.talk-feature-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-dark); }
.talk-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.talk-feature-media:hover img { transform: scale(1.03); }
.talk-feature-media .badge { position: absolute; left: 16px; bottom: 16px; background: var(--primary); color: var(--primary-foreground); }
.talk-feature .post-meta { margin-bottom: 16px; }
.talk-feature h3 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 300; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 16px; }
.talk-feature h3 a:hover { color: var(--primary); }
.talk-feature-body > p { color: var(--muted-foreground); margin-bottom: 24px; max-width: 46ch; }
.talk-feature-chapters { margin-bottom: 28px; }
.talk-feature-chapters a { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line-dark); transition: color .2s; }
.talk-feature-chapters li:last-child a { border-bottom: 1px solid var(--line-dark); }
.talk-feature-chapters a:hover { color: var(--primary); }
.talk-feature-chapters small { font-size: 13px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.talk-feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
@media (max-width: 900px) { .talk-feature { grid-template-columns: 1fr; } }

/* Workbooks con portada en imagen (proporción de la portada: 630 x 907) */
.book-cover.has-image { padding: 0; aspect-ratio: 630 / 907; background: var(--primary); }
.book-cover.has-image::before { z-index: 1; }
.book-cover.has-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Landings de workbooks (workbook-5s.html, workbook-tpm.html) ---------- */
.wb-hero { padding: calc(var(--header-h) + clamp(56px, 8vw, 112px)) 0 clamp(64px, 8vw, 112px); }
.wb-hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.wb-hero .breadcrumb { color: var(--muted-foreground); margin-bottom: 28px; }
.wb-hero .breadcrumb a { color: var(--foreground); }
.wb-hero .eyebrow { color: var(--primary); margin-bottom: 24px; }
.wb-hero .display { font-size: clamp(42px, 6vw, 88px); margin-bottom: 28px; }
.wb-hero .lead { color: var(--muted-foreground); margin-bottom: 40px; }
.wb-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.wb-hero-cover { position: relative; max-width: 440px; justify-self: end; width: 100%; }
.wb-hero-cover img { width: 100%; border-radius: var(--radius); box-shadow: 0 40px 80px -36px oklch(19% .05 254 / .55); }
.wb-hero-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; z-index: 1; border-radius: var(--radius) 0 0 var(--radius); background: linear-gradient(90deg, oklch(0% 0 0 / .25), transparent); }
@media (max-width: 860px) { .wb-hero-grid { grid-template-columns: 1fr; } .wb-hero-cover { justify-self: start; max-width: 320px; } }

.wb-contents { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 clamp(24px, 4vw, 56px); counter-reset: wb; }
.wb-contents li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line-dark); font-size: 17px; }
.wb-contents li.is-open { color: var(--primary); font-weight: 600; }
.wb-contents li.is-open small { display: block; font-size: 12px; font-weight: 600; color: var(--muted-foreground); letter-spacing: .04em; margin-top: 4px; }

.wb-preview { display: grid; gap: clamp(24px, 3vw, 40px); max-width: 820px; margin: 0 auto; }
.wb-page { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 4px oklch(19% .05 254 / .06), 0 28px 56px -32px oklch(19% .05 254 / .45); }
.wb-page img { width: 100%; aspect-ratio: 1240 / 1771; object-fit: cover; }
.wb-page-label { display: block; text-align: center; font-size: 12px; color: var(--muted-foreground); margin-top: 12px; letter-spacing: .04em; }
.wb-locked { position: relative; border-radius: var(--radius); overflow: hidden; max-width: 820px; margin: clamp(24px, 3vw, 40px) auto 0; }
.wb-locked > img { width: 100%; aspect-ratio: 1240 / 1771; object-fit: cover; max-height: 760px; object-position: top; }
.wb-locked::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(97.5% .004 92 / .2) 0%, oklch(97.5% .004 92 / .85) 45%, var(--paper) 100%); }
.wb-locked-card {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 32px)); padding: clamp(28px, 4vw, 48px);
  background: var(--card); border: 1px solid var(--line-dark); border-radius: var(--radius);
  box-shadow: 0 32px 64px -32px oklch(19% .05 254 / .45); text-align: center;
}
.wb-locked-card .eyebrow { color: var(--primary); margin-bottom: 16px; }
.wb-locked-card h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 300; line-height: 1.12; letter-spacing: -.015em; margin-bottom: 16px; }
.wb-locked-card p { color: var(--muted-foreground); margin: 0 auto 28px; max-width: 40ch; }
.wb-lock-icon { width: 40px; height: 40px; margin: 0 auto 16px; color: var(--primary); }
@media (max-width: 560px) { .wb-locked > img { max-height: 620px; } }

/* Tarjetas de workbooks en libros.html con enlace a su landing */
a.book-cover { display: block; }
.book .link-arrow { justify-self: start; }