/* ==========================================================================
   KAVORA · Consultoría Tecnológica — estilos de la one-page
   Paleta y tipografía según láminas 03 y 05 aprobadas.
   ========================================================================== */

:root {
  /* Paleta de marca */
  --grafito: #152126;
  --grafito-deep: #0D1618;      /* tono de los bordes del banner aprobado */
  --grafito-soft: #1D2C31;
  --marfil: #F6F5F0;
  --papel: #EDEBE4;
  --acero: #788990;
  --acero-claro: #A9B6BA;
  --jade: #5FC5AE;              /* acento sobre fondos oscuros */
  --jade-logo: #13A38B;         /* jade del monograma */
  --jade-deep: #0E7C6B;         /* botones y acentos sobre fondo claro */
  --jade-text: #0B6A5B;         /* texto jade pequeño sobre marfil/papel (≥ 5:1) */
  --acero-text: #56676D;        /* acero para texto sobre marfil (≥ 4.5:1) */
  --bermellon: #B3282F;

  --ink: #152126;
  --ink-soft: #3E4F55;

  --font-head: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 136px);
  --radius: 4px;
  --line-dark: rgba(246, 245, 240, 0.14);
  --line-light: rgba(21, 33, 38, 0.14);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--grafito-deep);
  color: var(--marfil);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Foco visible y consistente */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
  border-radius: 2px;
}
.section-light :focus-visible,
.section-paper :focus-visible { outline-color: var(--jade-deep); }

main:focus { outline: none; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 22, 24, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); background: rgba(13, 22, 24, 0.97); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.site-nav a {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: rgba(246, 245, 240, 0.82);
  padding: 6px 0;
  position: relative;
  transition: color .2s ease;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--jade);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--marfil); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav .nav-cta {
  border: 1px solid rgba(95, 197, 174, 0.6);
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--marfil);
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: rgba(95, 197, 174, 0.12); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--line-dark);
  color: var(--marfil);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--grafito-deep);
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 24px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  .site-nav.is-open { display: block; animation: menuIn .22s ease; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line-dark); }
  .site-nav li:last-child { border-bottom: 0; padding-top: 16px; }
  .site-nav a { display: block; padding: 16px 0; font-size: 1rem; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { text-align: center; padding: 14px 16px; }
}
@media (max-width: 420px) {
  .brand img { height: 32px; }
  .nav-toggle-label { display: none; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translateX(3px); }
.btn-primary { background: var(--jade-deep); color: var(--marfil); }
.btn-primary:hover { background: #0B6A5B; }
.btn-ghost { border-color: rgba(246, 245, 240, 0.55); color: var(--marfil); background: transparent; }
.btn-ghost:hover { border-color: var(--marfil); background: rgba(246, 245, 240, 0.06); }
.btn-whatsapp { margin-top: 8px; border-color: rgba(95, 197, 174, 0.6); color: var(--marfil); }
.btn-whatsapp:hover { background: rgba(95, 197, 174, 0.12); }
.btn[hidden] { display: none; }

/* ---------- Elementos editoriales ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 18px;
}
.section-light .eyebrow, .section-paper .eyebrow { color: var(--jade-text); }

.rule {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--jade-logo);
  margin: 24px 0 28px;
}

.section { padding-block: var(--section-y); position: relative; }
.section h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); max-width: 22ch; }
.section-intro { font-size: 1.125rem; max-width: 62ch; }

.section-dark { background: var(--grafito); color: var(--marfil); }
.section-dark .section-intro, .section-dark p { color: rgba(246, 245, 240, 0.84); }
.section-light { background: var(--marfil); color: var(--ink); }
.section-paper { background: var(--papel); color: var(--ink); }
.section-light p, .section-paper p { color: var(--ink-soft); }
.section-light strong, .section-paper strong { color: var(--ink); }

.section-head-wide { margin-bottom: clamp(40px, 6vw, 72px); }

.grid-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.grid-split .section-head { position: sticky; top: calc(var(--header-h) + 32px); }

.prose p { font-size: 1.125rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- A. Hero ---------- */
.hero {
  background: var(--grafito-deep);
  padding-bottom: clamp(64px, 8vw, 112px);
  border-bottom: 1px solid var(--line-dark);
}
.hero-banner {
  margin: 0 auto;
  max-width: 1320px;
  background: var(--grafito-deep);
}
.hero-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 2172 / 724;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line-dark);
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: 24px;
}
.hero .lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: rgba(246, 245, 240, 0.84);
  max-width: 60ch;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line-dark);
}
.hero-facts li { padding: 14px 0 14px 24px; border-bottom: 1px solid var(--line-dark); }
.hero-facts li:last-child { border-bottom: 0; }
.fact-k {
  display: block;
  font-family: var(--font-head);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acero-claro);
  margin-bottom: 2px;
}
.fact-v { font-size: 1rem; color: var(--marfil); }

/* ---------- C. Servicios ---------- */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 8 servicios: 4×2, 2×4 o 1×8, sin celdas vacías */
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.service {
  background: var(--papel);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  transition: background-color .25s ease;
}
.service:hover { background: #F2F0EA; }
.service-num {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--jade-text);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.service h3 { font-size: 1.25rem; color: var(--ink); }
.service p { font-size: 1rem; }
.service-benefit {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  font-size: 0.9375rem !important;
  color: var(--ink) !important;
}
.service-benefit span {
  display: block;
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade-text);
  margin-bottom: 4px;
}

/* ---------- D. Soluciones ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
  border: 1px solid currentColor;
}
.tag-product { color: var(--jade); background: rgba(95, 197, 174, 0.08); }
.tag-demo { color: var(--acero-claro); }
.tag-custom { color: var(--marfil); }

.product {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--line-dark);
  background: linear-gradient(135deg, rgba(95, 197, 174, 0.06), rgba(246, 245, 240, 0.02) 60%);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.product h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 4px; }
.product-sub {
  font-family: var(--font-head);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jade) !important;
  margin-bottom: 20px;
}
.product-body p { max-width: 68ch; }

.text-link {
  display: inline-flex;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--jade);
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 197, 174, 0.4);
  padding-bottom: 2px;
  margin-top: 8px;
}
.text-link:hover { border-bottom-color: var(--jade); }

.solutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}
/* 4 tarjetas: 2x2 en tablet/escritorio para evitar una tarjeta huérfana */
@media (min-width: 760px) {
  .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.solution {
  padding: clamp(28px, 3vw, 36px);
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease;
}
.solution:hover { border-color: rgba(95, 197, 174, 0.45); }
.solution .tag { align-self: flex-start; margin-bottom: 20px; }
.solution h3 { font-size: 1.25rem; }
.solution p { font-size: 1rem; }
.solution-note {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9375rem !important;
  color: var(--acero-claro) !important;
}

/* ---------- E. Sectores ---------- */
.sectors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
}
.sectors li { padding: 22px 0; border-top: 1px solid var(--line-light); }
.sectors h3 { font-size: 1.0625rem; color: var(--ink); margin-bottom: 6px; }
.sectors p { font-size: 0.9875rem; margin: 0; }

/* ---------- F. Cómo trabajamos ---------- */
.section-mist { overflow: hidden; }
.section-mist::before {
  /* referencia discreta a las montañas brumosas del banner aprobado */
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/banner-kavora-1200.jpg") right bottom / auto 140% no-repeat;
  opacity: 0.16;
  /* la máscara deja ver solo las montañas del extremo derecho (nunca el sello ni el logo) */
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 40%);
  mask-image: linear-gradient(to left, #000 0%, transparent 40%);
  pointer-events: none;
}
.section-mist > .container { position: relative; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  counter-reset: none;
}
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 40px; height: 2px;
  background: var(--jade-logo);
}
.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 500;
  color: var(--jade);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.0625rem; }
.step p { font-size: 0.9875rem; margin: 0; }

/* ---------- G. Fundador ---------- */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.founder-visual { position: sticky; top: calc(var(--header-h) + 32px); }
.photo-placeholder {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(160deg, rgba(95, 197, 174, 0.10), transparent 50%),
    var(--grafito);
  border: 1px dashed rgba(246, 245, 240, 0.35);
  outline: 1px solid var(--line-light);
  outline-offset: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--acero-claro);
  text-align: center;
}
.placeholder-mark { width: 30%; height: auto; opacity: 0.35; }
.placeholder-text {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.8;
}
/* Cuando haya foto real: <img class="founder-photo" ...> */
.founder-photo-frame {
  position: relative;
  background: var(--grafito);
  padding: 10px;
  outline: 1px solid var(--line-light);
  outline-offset: 10px;
}
.founder-photo-frame::after {
  /* línea jade inferior, como el subrayado del logotipo */
  content: "";
  position: absolute;
  left: 10px; bottom: -22px;
  width: 64px; height: 2px;
  background: var(--jade-logo);
}
.founder-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }

.founder h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.founder-role {
  font-family: var(--font-head);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acero-text) !important;
  margin: 0;
}
.founder-disclaimer {
  font-size: 0.9375rem !important;
  font-style: italic;
  color: var(--acero-text) !important;
  border-left: 2px solid var(--line-light);
  padding-left: 16px;
}

.seal {
  margin: 48px 0 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.seal img { width: 52px; height: auto; }
.seal figcaption {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* ---------- H. Contacto ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-info > p { font-size: 1.125rem; max-width: 46ch; }
.contact-list { margin: 32px 0 24px; }
.contact-list div { padding: 14px 0; border-top: 1px solid var(--line-dark); }
.contact-list dt {
  font-family: var(--font-head);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acero-claro);
}
.contact-list dd { margin: 2px 0 0; color: var(--marfil); }
.contact-list a { color: var(--jade); }
.is-pending { color: var(--acero-claro); font-style: italic; }

.contact-form {
  background: rgba(246, 245, 240, 0.03);
  border: 1px solid var(--line-dark);
  padding: clamp(24px, 4vw, 48px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--marfil);
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--marfil);
  background: rgba(13, 22, 24, 0.6);
  border: 1px solid rgba(246, 245, 240, 0.45);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field textarea:hover { border-color: rgba(246, 245, 240, 0.65); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 1px;
  border-color: var(--jade);
}
.field [aria-invalid="true"] { border-color: #E8777C; }
.field-error { display: block; margin-top: 6px; font-size: 0.875rem; color: #F2A3A6; }

.form-help { font-size: 0.9375rem !important; color: var(--acero-claro) !important; }
.form-status { font-size: 1rem; }
.form-status:not(:empty) { margin-top: 20px; }
.form-status .status-box {
  padding: 16px 18px;
  border-left: 3px solid var(--jade);
  background: rgba(95, 197, 174, 0.08);
}
.form-status .status-box.is-warning { border-left-color: #E0A84F; background: rgba(224, 168, 79, 0.08); }
.form-status p { margin: 0 0 10px; color: var(--marfil) !important; }
.form-status p:last-child { margin-bottom: 0; }
.status-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--grafito-deep);
  border-top: 1px solid var(--line-dark);
  padding-block: 56px;
  color: rgba(246, 245, 240, 0.8);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 40px;
  align-items: start;
}
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-mark { width: 44px; height: auto; flex-shrink: 0; }
.footer-brand p { margin: 0; }
.footer-name { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.22em; color: var(--marfil); }
.footer-desc { font-family: var(--font-head); font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acero-claro); }
.footer-slogan { margin-top: 10px !important; font-style: italic; color: var(--jade); }
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
}
.footer-nav a { text-decoration: none; font-size: 0.9375rem; display: inline-block; padding: 4px 0; }
.footer-nav a:hover { color: var(--jade); }
.footer-meta { font-size: 0.9375rem; }
.footer-meta p { margin: 0 0 4px; }
.to-top { display: inline-block; margin-top: 12px; color: var(--jade); text-decoration: none; padding: 4px 0; }

/* ---------- Animaciones discretas ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .step:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-content,
  .grid-split,
  .founder,
  .contact,
  .product { grid-template-columns: minmax(0, 1fr); }
  .grid-split .section-head,
  .founder-visual { position: static; }
  .hero-facts { border-left: 0; border-top: 1px solid var(--line-dark); }
  .hero-facts li { padding-left: 0; }
  .founder-visual { max-width: 420px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .sectors { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .section-mist::before { opacity: 0.1; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .nav-toggle, .contact-form, .skip-link { display: none !important; }
  body, .section-dark, .hero { background: #fff !important; color: #000 !important; }
}

/* ---------- Ajustes de accesibilidad y móvil (posteriores a la revisión) ---------- */
.hero-banner-caption { display: none; }
@media (max-width: 600px) {
  .hero-banner-caption {
    display: block;
    margin: 0;
    padding: 10px var(--gutter) 0;
    text-align: center;
    font-family: var(--font-head);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(246, 245, 240, 0.78);
  }
  .hero-banner-caption em {
    display: block;
    margin-top: 2px;
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 0.875rem;
    color: var(--jade);
  }
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- WhatsApp ---------- */
.btn-whatsapp { gap: 10px; }
.wa-icon { width: 20px; height: 20px; flex-shrink: 0; }
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: var(--jade-deep);
  color: var(--marfil);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(246, 245, 240, 0.18);
  transition: background-color .2s ease, transform .2s ease;
}
.wa-float:hover { background: var(--jade-text); transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float[hidden] { display: none; }
@media (max-width: 600px) {
  .wa-float { padding: 0; width: 56px; height: 56px; justify-content: center; }
  .wa-float-label { display: none; }
}
@media print { .wa-float { display: none !important; } }


/* ---------- Franja «apareció en» (hero) ---------- */
.featured-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
  color: var(--marfil);
}
.featured-label {
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade);
}
.featured-names {
  flex: 1 1 320px;
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(246, 245, 240, 0.86);
}
.featured-names i { font-style: normal; color: var(--acero); margin: 0 6px; }
.featured-arrow { color: var(--jade); transition: transform .2s ease; }
.featured-strip:hover .featured-arrow { transform: translateX(4px); }
.featured-strip:hover .featured-names { color: var(--marfil); }

/* ---------- Foto ilustrativa (Propuesta) ---------- */
.proposal-photo { margin: clamp(48px, 6vw, 88px) 0 0; }
.proposal-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 40%;
  filter: saturate(0.82) contrast(1.02);
}
.proposal-photo figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.photo-credit { font-size: 0.8125rem; color: var(--acero-text); }
@media (max-width: 600px) {
  .proposal-photo img { aspect-ratio: 4 / 3; }
}

/* ---------- Fundador: bloques ---------- */
.founder-block { margin-top: 36px; }
.founder-block h3,
.logo-group h3,
.press h3 {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jade-text);
  margin-bottom: 12px;
}
.honors { list-style: none; margin: 0; padding: 0; }
.honors li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-light);
  font-size: 0.9875rem;
  color: var(--ink-soft);
}
.honors li:last-child { border-bottom: 1px solid var(--line-light); }
.honor-year { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.honors a, .research a, .press-list a { color: var(--jade-text); }
.research { font-size: 0.9875rem; }

/* ---------- Trayectoria, clientes y prensa ---------- */
.press { margin-top: 0; }
.press-outlets {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.press-outlets li {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border: 1px solid var(--line-light);
  background: var(--marfil);
  color: var(--ink);
}
.press-list { list-style: none; margin: 0; padding: 0; }
.press-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 6px 32px;
  padding: 18px 0;
  border-top: 1px solid var(--line-light);
}
.press-list li:last-child { border-bottom: 1px solid var(--line-light); }
.press-meta { font-size: 0.875rem; color: var(--acero-text); }
.press-outlet { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.press-list a { font-size: 1.0625rem; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.press-list a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .press-list li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .featured-names { flex-basis: 100%; }
}


/* ---------- Clientes y trayectoria ---------- */
.section-clients { overflow: hidden; }
.section-clients::before {
  /* niebla de montaña muy tenue, tomada del extremo derecho del banner aprobado */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 70%;
  background: url("assets/banner-kavora-1200.jpg") right top / auto 100% no-repeat;
  opacity: 0.12;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 38%);
  mask-image: linear-gradient(to left, #000 0%, transparent 38%);
  pointer-events: none;
}
.section-clients > .container { position: relative; }

.client-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: transform .3s ease;
}
.client-plate img { max-width: 100%; height: auto; object-fit: contain; }
.client-plate-light { background: var(--marfil); }
.client-plate-dark { background: var(--grafito-deep); border-bottom: 1px solid var(--line-dark); }

.client-feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--line-dark);
  background: linear-gradient(135deg, rgba(95, 197, 174, 0.07), rgba(246, 245, 240, 0.02) 55%);
  margin-bottom: clamp(20px, 2.5vw, 28px);
  position: relative;
}
.client-feature::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 96px; height: 2px;
  background: var(--jade-logo);
}
.client-feature .client-plate { min-height: 100%; padding: clamp(32px, 5vw, 64px); }
.client-feature .client-plate img { max-height: 150px; width: auto; }
.client-feature-body { padding: clamp(28px, 4vw, 56px); }
.client-feature-body .tag { margin-bottom: 18px; }
.client-feature-body h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 6px; }
.client-unit {
  font-family: var(--font-head);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jade) !important;
  margin-bottom: 18px;
}
.client-feature-body > p { max-width: 60ch; }
.client-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.client-facts dt {
  font-family: var(--font-head);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acero-claro);
}
.client-facts dd { margin: 2px 0 0; font-size: 0.9375rem; color: var(--marfil); }

.client-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 28px);
}
.client-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  border: 1px solid var(--line-dark);
  transition: border-color .25s ease;
}
.client-card:hover { border-color: rgba(95, 197, 174, 0.45); }
.client-card:hover .client-plate, .client-feature:hover .client-plate { transform: scale(1.015); }
.client-card .client-plate img { max-height: 56px; width: auto; }
.client-card-body { padding: 24px 26px; }
.client-card-body .tag { margin-bottom: 14px; }
.client-card-body h3 { font-size: 1.25rem; margin-bottom: 8px; }
.client-card-body p { font-size: 0.9875rem; margin-bottom: 10px; }
.client-place {
  margin: 0 !important;
  font-family: var(--font-head);
  font-size: 0.75rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acero-claro) !important;
}

/* Línea de tiempo */
.timeline-wrap { margin-top: clamp(64px, 8vw, 112px); }
.timeline-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 32px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.timeline::before {
  /* línea fina que recorre los hitos */
  content: "";
  position: absolute;
  top: 34px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--line-dark), rgba(95, 197, 174, 0.6));
}
.timeline li { position: relative; padding: 0 16px 0 0; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 30px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--grafito);
  border: 1px solid var(--jade);
}
.timeline li.tl-now::before { background: var(--jade); box-shadow: 0 0 0 5px rgba(95, 197, 174, 0.18); }
.tl-year {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--jade);
  height: 24px;
}
.tl-logo {
  display: flex;
  align-items: center;
  height: 44px;
  margin-top: 28px;
  margin-bottom: 14px;
}
.tl-logo img {
  max-height: 26px;
  max-width: min(100%, 110px);
  width: auto;
  /* logos institucionales en marfil monocromo para un conjunto sobrio */
  filter: grayscale(1) brightness(0) invert(0.93);
  opacity: 0.85;
}
.tl-logo img.tl-k { filter: none; opacity: 1; max-height: 34px; }
.tl-logo-text {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 245, 240, 0.85);
  line-height: 1.3;
}
.timeline h4 {
  font-family: var(--font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--marfil);
}
.timeline p { font-size: 0.875rem; line-height: 1.5; margin: 0; color: rgba(246, 245, 240, 0.72) !important; }
.timeline-note { margin-top: 36px; font-size: 0.875rem; font-style: italic; color: var(--acero-claro) !important; }

@media (max-width: 1080px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 48px; }
  .timeline::before { display: none; }
  .timeline li { border-top: 1px solid var(--line-dark); padding-top: 0; }
  .timeline li::before { top: -5px; }
  .tl-year { margin-top: 18px; }
}
@media (max-width: 900px) {
  .client-feature { grid-template-columns: minmax(0, 1fr); }
  .client-feature .client-plate { padding: 32px; }
  .client-feature .client-plate img { max-height: 110px; }
  .client-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .client-card { grid-template-columns: minmax(0, 1fr); }
  .client-card .client-plate { padding: 22px; }
  .client-card .client-plate img { max-height: 44px; }
  .client-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* línea de tiempo vertical en móvil */
  .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-left: 22px; }
  .timeline::before {
    display: block;
    top: 6px; bottom: 6px; left: 4px; right: auto;
    width: 1px; height: auto;
    background: linear-gradient(to bottom, var(--line-dark), rgba(95, 197, 174, 0.6));
  }
  .timeline li { border-top: 0; padding: 0 0 28px 0; }
  .timeline li::before { top: 4px; left: -22px; }
  .tl-year { margin-top: 0; height: auto; }
  .tl-logo { margin-top: 8px; margin-bottom: 8px; height: 32px; }
  .tl-logo img { max-height: 24px; }
}

/* ---------- Casos de éxito (one-page) ---------- */
.cases-total {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--jade-logo);
  border-bottom: 1px solid var(--line-light);
  margin-bottom: clamp(32px, 4vw, 48px);
}
.cases-total > div { padding: 24px 24px 24px 0; }
.cases-total > div + div { padding-left: 24px; border-left: 1px solid var(--line-light); }
.ct-value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}
.ct-label { display: block; margin-top: 6px; font-size: 0.9375rem; color: var(--ink-soft); }
.ct-basis { display: block; margin-top: 6px; font-size: 0.8125rem; line-height: 1.45; color: var(--acero-text); }

.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 28px); }
.case-card { background: var(--grafito); color: var(--marfil); position: relative; }
.case-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 72px; height: 2px; background: var(--jade-logo);
}
.case-link { display: flex; flex-direction: column; height: 100%; padding: clamp(24px, 3vw, 40px); text-decoration: none; color: inherit; }
.case-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.case-logo { padding: 14px 18px; min-width: 150px; height: 64px; }
.case-logo img { max-height: 34px; width: auto; }
.client-plate-dark.case-logo { border: 1px solid var(--line-dark); }
.tag-case { color: var(--jade); }
.case-card h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.25; margin-bottom: 14px; }
.case-card p { font-size: 1rem; color: rgba(246, 245, 240, 0.8) !important; }
.case-kpis {
  list-style: none; margin: 10px 0 26px; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  border-top: 1px solid var(--line-dark); padding-top: 20px;
}
.case-kpis strong {
  display: block; font-family: var(--font-head); font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600; color: var(--jade); line-height: 1.15; margin-bottom: 6px;
}
.case-kpis span { display: block; font-size: 0.8125rem; line-height: 1.45; color: rgba(246, 245, 240, 0.74); }
.case-cta {
  margin-top: auto; align-self: flex-start;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; color: var(--marfil);
  border-bottom: 1px solid var(--jade); padding-bottom: 3px;
}
.case-cta span { display: inline-block; transition: transform .2s ease; }
.case-link:hover .case-cta span { transform: translateX(4px); }
.case-card { transition: transform .25s ease, box-shadow .25s ease; }
.case-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(13, 22, 24, 0.22); }

.case-quote {
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 28px 0 0 28px;
  border-left: 2px solid var(--jade-logo);
}
.case-quote p {
  font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500;
  line-height: 1.3; color: var(--ink) !important; margin-bottom: 14px; max-width: 32ch;
}
.case-quote footer { font-size: 0.9375rem; color: var(--ink-soft); }
.quote-original { display: block; margin-top: 4px; font-style: italic; font-size: 0.875rem; color: var(--acero-text); }
.cases-note { margin-top: 28px; font-size: 0.8125rem !important; line-height: 1.55; color: var(--acero-text) !important; max-width: 90ch; }
.clients-more { margin-top: 8px; font-size: 1rem; }
.clients-more a { color: var(--jade); }

@media (max-width: 900px) {
  .cases { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .cases-total { grid-template-columns: minmax(0, 1fr); }
  .cases-total > div, .cases-total > div + div { padding: 18px 0; border-left: 0; }
  .cases-total > div + div { border-top: 1px solid var(--line-light); }
  .case-kpis { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .case-top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Páginas de caso ---------- */
.case-hero { background: var(--grafito-deep); padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.case-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/banner-kavora-1200.jpg") right center / auto 100% no-repeat;
  opacity: 0.18;
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 38%);
  mask-image: linear-gradient(to left, #000 0%, transparent 38%);
  pointer-events: none;
}
.case-hero > .container { position: relative; }
.breadcrumb { font-size: 0.875rem; margin-bottom: 28px; color: var(--acero-claro); }
.breadcrumb a { color: var(--acero-claro); text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.breadcrumb a:hover { color: var(--marfil); }
.case-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 22ch; margin-bottom: 20px; }
.case-hero .lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: rgba(246, 245, 240, 0.84); max-width: 62ch; }
.case-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.case-meta div { font-size: 0.9375rem; }
.case-meta dt { font-family: var(--font-head); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acero-claro); }
.case-meta dd { margin: 2px 0 0; color: var(--marfil); }
.case-hero .case-logo { display: inline-flex; margin-bottom: 26px; }

.kpi-band { background: var(--grafito); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.kpi-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-grid li { padding: clamp(24px, 3vw, 40px) 24px clamp(24px, 3vw, 40px) 0; }
.kpi-grid li + li { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.kpi-grid strong { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 2.5vw, 2.125rem); font-weight: 600; color: var(--jade); line-height: 1.1; margin-bottom: 8px; }
.kpi-grid span { display: block; font-size: 0.9375rem; color: rgba(246, 245, 240, 0.78); line-height: 1.45; }
.kpi-grid em { display: block; margin-top: 6px; font-style: normal; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acero-claro); }

.case-section .grid-split { align-items: start; }
.before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-light); margin-top: 8px; }
.before-after > div { padding: clamp(22px, 3vw, 32px); }
.before-after > div + div { border-left: 1px solid var(--line-light); background: rgba(19, 163, 139, 0.06); }
.before-after h3 { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; color: var(--acero-text); }
.before-after > div + div h3 { color: var(--jade-text); }
.before-after ul { margin: 0; padding-left: 18px; }
.before-after li { margin-bottom: 8px; font-size: 0.9875rem; color: var(--ink-soft); }

.flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; padding: 0 0 26px 56px; }
.flow li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-head); font-weight: 600; font-size: 0.875rem; color: var(--jade);
  width: 38px; height: 38px; border: 1px solid rgba(95, 197, 174, 0.5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.flow li::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 6px; width: 1px; background: var(--line-dark); }
.flow li:last-child::after { display: none; }
.flow h3 { font-size: 1.0625rem; margin-bottom: 4px; padding-top: 8px; }
.flow p { font-size: 0.9875rem; margin: 0; }

.results-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.results-list li { padding: 18px 0; border-top: 1px solid var(--line-light); }
.results-list strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); margin-bottom: 4px; }
.results-list span { font-size: 0.9375rem; color: var(--ink-soft); }

.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stack li { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 500; padding: 8px 14px; border: 1px solid var(--line-dark); color: rgba(246, 245, 240, 0.88); }

.method-note { font-size: 0.875rem !important; color: var(--acero-text) !important; border-left: 2px solid var(--line-light); padding-left: 16px; margin-top: 28px; }
.case-cta-band { text-align: left; }
.case-cta-band .hero-actions { margin-top: 28px; }
.case-next { margin-top: 40px; font-size: 0.9375rem; }
.case-next a { color: var(--jade-text); }

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .kpi-grid li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .results-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .kpi-grid li, .kpi-grid li + li { padding: 22px 0; border-left: 0; }
  .kpi-grid li + li { border-top: 1px solid var(--line-dark); }
  .before-after { grid-template-columns: minmax(0, 1fr); }
  .before-after > div + div { border-left: 0; border-top: 1px solid var(--line-light); }
}
.btn-ghost-dark { border-color: rgba(21, 33, 38, 0.45); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); background: rgba(21, 33, 38, 0.05); }
.tag-progress { color: #E0A84F; }

/* ---------- Galería de capturas (páginas de caso) ---------- */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.shot { margin: 0; }
.shot-first { grid-column: 1 / -1; }
.browser {
  border: 1px solid var(--line-dark);
  background: var(--grafito);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px;
  background: #0F1A1D; border-bottom: 1px solid var(--line-dark);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(246, 245, 240, 0.18); }
.browser-bar span {
  margin-left: 10px; font-family: var(--font-head); font-size: 0.6875rem; letter-spacing: 0.04em;
  color: var(--acero-claro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; height: auto; display: block; }
.shot figcaption { margin-top: 12px; font-size: 0.9375rem; color: rgba(246, 245, 240, 0.78); }
.shots-note { margin-top: 28px; font-size: 0.875rem; font-style: italic; color: var(--acero-claro) !important; }
@media (max-width: 760px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.section-deep { background: var(--grafito-deep); }
.case-shot {
  margin: calc(-1 * clamp(24px, 3vw, 40px)) calc(-1 * clamp(24px, 3vw, 40px)) 28px;
  height: 200px; overflow: hidden; border-bottom: 1px solid var(--line-dark); background: #fff;
}
.case-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s ease; }
.case-link:hover .case-shot img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .case-link:hover .case-shot img { transform: none; } }
.shots .shot:last-child:nth-child(even) { grid-column: 1 / -1; }
.section-paper .section-intro strong { color: var(--ink); }
.tag-live { color: var(--jade); background: rgba(95, 197, 174, 0.08); }
.solution-try { margin-top: 16px; align-self: flex-start; }
.product-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.product-shot { display: block; margin-top: 24px; border: 1px solid var(--line-dark); overflow: hidden; max-height: 220px; }
.product-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
/* Video de recorrido */
.tour-video { margin: 0; }
.tour-video video { width: 100%; height: auto; display: block; background: var(--grafito-deep); aspect-ratio: 16 / 9; }
.tour-video figcaption { margin-top: 12px; font-size: 0.9375rem; color: rgba(246, 245, 240, 0.78); }
.tour-block { margin-bottom: clamp(40px, 5vw, 64px); }

/* ==========================================================================
   Producto (.pp-), casos (.cs-) y componentes compartidos (.kv-)
   ========================================================================== */
.kv-head-center { text-align: center; }
.kv-head-center h2, .kv-head-center .section-intro, .kv-head-center .rule { margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.browser-light { border-color: var(--line-light); box-shadow: 0 24px 48px rgba(21, 33, 38, 0.16); }
.pp-caption { margin-top: 12px; font-size: 0.875rem; color: var(--acero-text); }

/* Sub-nav del producto */
.pp-page section[id], .pp-page article[id] { scroll-margin-top: 56px; }
.pp-subnav { position: sticky; top: var(--header-h); z-index: 90; background: rgba(21, 33, 38, 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); }
.pp-subnav-inner { display: flex; align-items: center; gap: 20px; min-height: 56px; }
.pp-subnav-name { font-family: var(--font-head); font-weight: 600; color: var(--marfil); white-space: nowrap; }
.pp-subnav ul { position: relative; list-style: none; margin: 0; padding: 0; display: flex; gap: 2px;
  flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.pp-subnav ul::-webkit-scrollbar { display: none; }
.pp-subnav ul a { display: block; padding: 16px 12px 14px; font-size: 0.9375rem; color: var(--acero-claro);
  text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.pp-subnav ul a:hover { color: var(--marfil); }
.pp-subnav ul a.is-current { color: var(--marfil); border-bottom-color: var(--jade); }
.pp-subnav .btn { flex-shrink: 0; }

/* Hero del producto */
.pp-hero { background: var(--grafito-deep); color: var(--marfil); padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); overflow: hidden; }
.pp-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pp-hero h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); max-width: 16ch; margin-bottom: 20px; }
.pp-h1-name { display: block; font-size: 0.42em; letter-spacing: 0.04em; color: var(--jade); margin-bottom: 10px; }
.pp-hero .lead { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: rgba(246, 245, 240, 0.84); max-width: 46ch; }
.pp-hero .hero-actions { margin-top: 28px; }
.pp-trust { margin-top: 18px; font-size: 0.875rem; color: var(--acero-claro); }
.pp-hero-visual { position: relative; margin: 0; padding-bottom: 28px; }
.pp-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--marfil); color: var(--ink); font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600;
  border-radius: 6px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); max-width: calc(100% - 24px); }
.pp-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--jade-logo); flex-shrink: 0; }
.pp-chip-a { left: -20px; bottom: 0; }
.pp-chip-b { right: 16px; top: 52px; }

/* Franja de datos */
.pp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.pp-facts > div { padding: clamp(22px, 3vw, 32px) 24px; }
.pp-facts > div:first-child { padding-left: 0; }
.pp-facts > div + div { border-left: 1px solid var(--line-dark); }
.pp-facts dt { font-family: var(--font-head); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acero-claro); }
.pp-facts dd { margin: 6px 0 0; color: var(--marfil); font-size: 1rem; }

/* Pestañas compartidas */
.kv-tablist { display: flex; gap: 4px; border-bottom: 1px solid var(--line-light); margin-bottom: clamp(28px, 4vw, 48px);
  overflow-x: auto; scrollbar-width: thin; }
.kv-tablist[hidden] { display: none; }
.kv-tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 12px 18px; min-height: 44px; font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem;
  color: var(--acero-text); cursor: pointer; white-space: nowrap; transition: color .2s ease, border-color .2s ease; }
.kv-tab:hover { color: var(--ink); }
.kv-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--jade-deep); }
.section-dark .kv-tablist { border-bottom-color: var(--line-dark); }
.section-dark .kv-tab { color: var(--acero-claro); }
.section-dark .kv-tab:hover, .section-dark .kv-tab[aria-selected="true"] { color: var(--marfil); }
.section-dark .kv-tab[aria-selected="true"] { border-bottom-color: var(--jade); }
.kv-panel + .kv-panel { margin-top: clamp(56px, 7vw, 96px); }     /* sin JS: apilados */
.kv-tabs.is-enhanced .kv-panel + .kv-panel { margin-top: 0; }
.kv-panel[hidden] { display: none; }
.kv-panel:focus-visible { outline-offset: 6px; }

/* Split texto / imagen */
.pp-split, .pp-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pp-split h3, .pp-row h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; margin-bottom: 12px; }
.pp-split-media, .pp-row-media { margin: 0; min-width: 0; }
.pp-bullets { list-style: none; margin: 20px 0 0; padding: 0; }
.pp-bullets li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 1.0625rem; }
.pp-bullets li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 2px; background: var(--jade-deep); }
.section-dark .pp-bullets li::before { background: var(--jade); }

/* Filas zig-zag */
.pp-rows { display: grid; gap: clamp(72px, 9vw, 128px); }
.pp-row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pp-row:nth-child(even) .pp-row-media { order: -1; }
.pp-media-panel { background: var(--papel); padding: clamp(24px, 4vw, 48px); display: flex; justify-content: center; }
.pp-phone { width: min(300px, 100%); border: 10px solid var(--grafito); border-radius: 30px; overflow: hidden;
  background: #fff; box-shadow: 0 24px 48px rgba(21, 33, 38, 0.22); }
.pp-phone img { display: block; width: 100%; height: auto; }

/* Grilla de módulos */
.pp-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.pp-module { display: flex; flex-direction: column; gap: 8px; padding: clamp(22px, 2.6vw, 32px);
  background: var(--marfil); border: 1px solid var(--line-light); color: inherit; text-decoration: none;
  transition: border-color .2s ease, transform .2s ease; }
a.pp-module:hover { border-color: var(--jade-deep); transform: translateY(-2px); }
.pp-module svg { width: 28px; height: 28px; color: var(--jade-deep); margin-bottom: 6px; }
.pp-module h3 { font-size: 1.125rem; margin: 0; }
.pp-module p { font-size: 0.9875rem; margin: 0; }
.pp-more { margin-top: auto; padding-top: 8px; font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; color: var(--jade-text); }
.pp-modules-note { margin-top: 24px; font-size: 0.9375rem; text-align: center; }

/* Video de recorrido con portada */
.kv-tour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.kv-chapters { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: ch; }
.kv-chapters li { counter-increment: ch; display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-dark); color: rgba(246, 245, 240, 0.86); }
.kv-chapters li::before { content: counter(ch, decimal-leading-zero); font-family: var(--font-head); font-weight: 600; font-size: 0.8125rem; color: var(--jade); min-width: 24px; padding-top: 2px; }
.kv-tour-media { margin: 0; min-width: 0; }
.kv-tour-screen { position: relative; }
.kv-tour-screen video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; background: var(--grafito-deep); }
.kv-tour-cover { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; color: var(--marfil); font-family: var(--font-head);
  background: radial-gradient(120% 90% at 30% 20%, rgba(95, 197, 174, 0.18), transparent 60%), rgba(13, 22, 24, 0.8); }
.kv-tour-cover strong, .kv-tour-cover small { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); }
.kv-tour-cover[hidden] { display: none; }
.kv-tour-cover strong { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
.kv-tour-cover small { font-size: 0.8125rem; color: var(--acero-claro); }
.kv-play { width: 64px; height: 64px; border-radius: 50%; background: var(--jade-deep); position: relative; transition: transform .2s ease; }
.kv-play::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 18px solid var(--marfil); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.kv-tour-cover:hover .kv-play { transform: scale(1.06); }
.kv-tour-cover:focus-visible { outline: 2px solid var(--jade); outline-offset: -4px; }

/* Franja de privacidad */
.pp-trust-strip { padding-block: calc(var(--section-y) / 2); }
.pp-trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pp-trust-list li { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.pp-trust-list svg { width: 24px; height: 24px; color: var(--jade-deep); flex-shrink: 0; }

/* FAQ */
.pp-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pp-faq-list { max-width: 760px; border-top: 1px solid var(--line-light); }
.pp-faq-list details { border-bottom: 1px solid var(--line-light); }
.pp-faq-list summary { list-style: none; cursor: pointer; position: relative; padding: 20px 44px 20px 0; min-height: 44px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.pp-faq-list summary::-webkit-details-marker { display: none; }
.pp-faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; line-height: 1; color: var(--jade-text); }
.pp-faq-list details[open] summary::after { content: "\2212"; }
.pp-faq-list details p { margin: 0 0 20px; max-width: 65ch; }

/* CTA final */
.pp-cta-inner, .cs-close-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

/* ---------- Casos (.cs-) ---------- */
.cs-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cs-hero.case-hero::before { opacity: 0.08; }
.cs-hero-links { margin-top: 22px; font-size: 0.9375rem; }
.cs-hero-links a { color: var(--jade); }
.cs-glance { background: rgba(246, 245, 240, 0.04); border: 1px solid var(--line-dark); padding: clamp(22px, 3vw, 32px); }
.cs-glance dl { margin: 0; }
.cs-glance dl > div { padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.cs-glance dl > div:first-child { padding-top: 0; }
.cs-glance dt { font-family: var(--font-head); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acero-claro); }
.cs-glance dd { margin: 4px 0 0; color: var(--marfil); font-size: 0.9875rem; overflow-wrap: anywhere; }
.cs-glance-cta { display: inline-block; margin-top: 18px; font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; color: var(--jade); }
.kpi-grid em a { color: inherit; }
.kpi-grid em.kpi-basis { text-transform: none; letter-spacing: 0.02em; font-size: 0.8125rem; }
.cs-tldr .before-after { max-width: 960px; margin: 0 auto; }
.cs-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.cs-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.cs-steps li { counter-increment: st; padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--line-dark); background: rgba(246, 245, 240, 0.03); }
.cs-steps li::before { content: counter(st, decimal-leading-zero); display: block; margin-bottom: 14px; font-family: var(--font-head); font-weight: 600; font-size: 0.875rem; color: var(--jade); }
.cs-steps h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.cs-steps p { font-size: 0.9875rem; margin: 0; }
.cs-screens { margin-top: clamp(64px, 8vw, 112px); }
.cs-screen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.cs-count { display: block; font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; color: var(--jade); margin-bottom: 10px; }
.cs-screen h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 10px; }
.cs-screen-media { margin: 0; min-width: 0; }
.cs-screen-media img { background: #fff; }
.cs-quote-band .case-quote { max-width: 880px; margin: 0 auto; }
.cs-quote-band .case-quote p { max-width: none; font-size: clamp(1.5rem, 3.2vw, 2.4rem); }
.cs-stack-light li { border-color: var(--line-light); color: var(--ink); background: var(--marfil); }
.cs-next-card { display: grid; gap: 12px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line-dark); background: var(--grafito);
  color: var(--marfil); text-decoration: none; transition: border-color .2s ease; }
.cs-next-card:hover { border-color: rgba(95, 197, 174, 0.55); }
.cs-next-card .case-logo { justify-self: start; }
.cs-next-label { font-family: var(--font-head); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acero-claro); }
.cs-next-card strong { font-family: var(--font-head); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3; }
.cs-next-arrow { color: var(--jade); font-size: 1.25rem; transition: transform .2s ease; }
.cs-next-card:hover .cs-next-arrow { transform: translateX(4px); }

/* Ajustes de las páginas de caso */
.cs-page .section-dark p.eyebrow { color: var(--jade); }
.section-dark .pp-caption { color: var(--acero-claro); }
.cs-hero .breadcrumb { margin-bottom: 32px; }
.cs-hero-grid > .cs-glance { margin-top: 4px; }
.cs-screen { align-items: start; }
.cs-screen-text { padding-top: clamp(0px, 3vw, 40px); }
.cs-screen-text p { font-size: 1.0625rem; }
.cs-screens + .shots-note { margin-top: 28px; }
.cs-close .section-intro { max-width: 52ch; }
.cs-close .hero-actions { margin-top: 28px; }

/* Ajustes de la página de producto */
.pp-hero-text .breadcrumb { margin-bottom: 24px; }
.pp-trust-strip h2.pp-trust-title { font-size: 0.75rem; max-width: none; margin-bottom: 22px; letter-spacing: 0.18em; }
.pp-faq-head h2 { max-width: 14ch; }
.pp-faq-head .rule { margin-bottom: 0; }
.pp-cta .section-intro { margin-bottom: 0; }
.pp-cta-actions { justify-content: flex-end; }
.kv-tour .shots-note { margin-top: 24px; margin-bottom: 0; }
.pp-page .section-dark p.eyebrow { color: var(--jade); }
.pp-hero .hero-actions { gap: 12px; }
.pp-hero .hero-actions .btn { padding-inline: 20px; }
.pp-hero-visual { padding-top: 20px; }
.pp-hero-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); }
.pp-chip-b { top: 0; right: 28px; }
.pp-cta-inner { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 600px) {
  .pp-page .kv-tab { flex: 1 1 0; white-space: normal; text-align: center; line-height: 1.3; }
  .pp-module { padding: 20px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .pp-chip-a { left: 12px; }
  .cs-screen { grid-template-columns: minmax(0, 1fr); }
  .cs-screen-text { max-width: 62ch; }
}
@media (max-width: 900px) {
  .pp-hero-grid, .pp-split, .pp-row, .pp-row:nth-child(even), .kv-tour, .pp-faq,
  .pp-cta-inner, .cs-close-grid, .cs-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .pp-row:nth-child(even) .pp-row-media { order: 0; }
  .pp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pp-facts > div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .pp-modules, .cs-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-trust-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pp-hero h1 { max-width: 20ch; }
  .pp-cta-actions { justify-content: flex-start; }
  .pp-cta-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .pp-subnav-name, .pp-subnav .btn { display: none; }
  .pp-subnav ul a { padding-inline: 10px; }
  .pp-facts { grid-template-columns: minmax(0, 1fr); }
  .pp-facts > div, .pp-facts > div + div { padding: 16px 0; border-left: 0; }
  .pp-facts > div + div { border-top: 1px solid var(--line-dark); }
  .pp-modules, .cs-steps { grid-template-columns: minmax(0, 1fr); }
  .pp-chip { font-size: 0.75rem; padding: 8px 10px; }
  .pp-chip-b { display: none; }
  .pp-media-panel { padding: 20px; }
  .kv-tab { padding: 10px 12px; font-size: 0.875rem; }
}
@media (prefers-reduced-motion: reduce) {
  a.pp-module:hover, .cs-next-card:hover .cs-next-arrow, .kv-tour-cover:hover .kv-play { transform: none; }
}
@media print {
  .pp-subnav, .kv-tour-cover, .kv-tablist { display: none !important; }
  .kv-panel[hidden] { display: block !important; }
}

/* ==========================================================================
   Home: mejoras de conversión (.hp-). Solo index.html usa estas clases.
   ========================================================================== */

/* Header: CTA rellena (también en casos/producto) y nav de escritorio en la home desde 981px */
.site-nav .nav-cta { background: var(--jade-deep); border-color: var(--jade-deep); }
.site-nav .nav-cta:hover { background: var(--jade-text); border-color: var(--jade-text); }
@media (min-width: 981px) and (max-width: 1180px) {
  .hp-header .nav-toggle { display: none; }
  .hp-header .site-nav {
    position: static; display: block; background: none; border: 0; padding: 0;
    max-height: none; overflow: visible; animation: none;
  }
  .hp-header .site-nav ul { flex-direction: row; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
  .hp-header .site-nav li { border-bottom: 0; }
  .hp-header .site-nav li:last-child { padding-top: 0; }
  .hp-header .site-nav a { display: inline; padding: 6px 0; font-size: 0.875rem; }
  .hp-header .site-nav a::after { display: block; }
  .hp-header .site-nav .nav-cta { display: inline-block; padding: 8px 16px; text-align: left; }
  .hp-header .site-nav .nav-cta::after { display: none; }
}

/* P1. Fila de clientes bajo el hero */
.hp-proof {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 24px; margin-top: clamp(40px, 5vw, 64px);
}
.hp-proof .featured-label { margin: 0; }
.hp-proof-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hp-proof .client-plate { height: 56px; min-width: 112px; padding: 10px 18px; }
.hp-proof .client-plate img { height: 28px; width: auto; max-width: none; }
.hp-proof .client-plate.hp-proof-kcl img { height: 40px; }
.hp-proof .client-plate-dark { border: 1px solid var(--line-dark); }
.hp-proof .client-plate:hover { transform: translateY(-2px); }
.hp-proof .text-link { margin-top: 0; }
.hp-proof + .featured-strip { margin-top: 16px; }

/* P2. Casos: una métrica grande por tarjeta */
.hp-case-metric {
  margin: 0 0 18px; font-size: 0.9375rem; color: rgba(246, 245, 240, 0.8);
}
.hp-case-metric strong {
  display: block; margin-bottom: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em; line-height: 1; color: var(--jade);
}
.case-card .case-kpis.hp-kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hp-inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line-light);
}
.hp-inline-cta p {
  margin: 0; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.3; color: var(--ink); max-width: 36ch;
}
.section-paper .hp-inline-cta p, .section-light .hp-inline-cta p { color: var(--ink); }
.hp-inline-cta-dark { border-top-color: var(--line-dark); }
.section-dark .hp-inline-cta-dark p { color: var(--marfil); }

/* P3. Servicios en tres grupos */
.hp-svc-groups {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.hp-svc-group { display: flex; flex-direction: column; min-width: 0; }
.hp-svc-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px; border-bottom: 2px solid var(--jade-logo);
}
.hp-svc-head svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--jade-deep); }
.hp-svc-head h3 { margin: 0; font-size: 1.25rem; color: var(--ink); }
.hp-svc-list { list-style: none; margin: 0 0 20px; padding: 0; }
.hp-svc-group .service {
  background: transparent; padding: 22px 0; display: block;
  border-bottom: 1px solid var(--line-light);
}
.hp-svc-group .service:hover { background: transparent; }
.hp-svc-group .service-num { display: block; margin-bottom: 6px; }
.hp-svc-group .service h4 {
  font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; line-height: 1.25;
  margin: 0 0 8px; color: var(--ink);
}
.hp-svc-group .service p { font-size: 0.9875rem; margin-bottom: 12px; }
.hp-svc-group .service-benefit { margin-top: 0; padding-top: 0; border-top: 0; }
.hp-svc-link { margin-top: auto; align-self: flex-start; }
.hp-svc-group .hp-svc-link { color: var(--jade-text); border-bottom-color: rgba(11, 106, 91, 0.4); }
.hp-svc-group .hp-svc-link:hover { border-bottom-color: var(--jade-text); }

/* P4. Tres formas de empezar */
.hp-engage-wrap { margin-top: clamp(56px, 7vw, 88px); }
.hp-engage-title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 24px; }
.hp-engage {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px);
}
.hp-engage li {
  display: flex; flex-direction: column; position: relative;
  padding: clamp(22px, 2.6vw, 32px); border: 1px solid var(--line-dark); background: rgba(246, 245, 240, 0.03);
}
.hp-engage li::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 40px; height: 2px; background: var(--jade-logo);
}
.hp-engage-q {
  margin: 0 0 10px; font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--jade) !important;
}
.hp-engage h4 { font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; line-height: 1.25; margin: 0 0 10px; color: var(--marfil); }
.hp-engage li > p:not(.hp-engage-q) { font-size: 0.9875rem; margin-bottom: 16px; }
.hp-engage .text-link { margin-top: auto; align-self: flex-start; }

/* P7. El fundador junto al contacto */
.hp-contact-person {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin: 8px 0 0; padding: 14px 0 0;
}
.hp-contact-person img {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; object-position: 50% 30%; border: 1px solid var(--line-dark);
}
.hp-contact-person > div { flex: 1 1 200px; min-width: 0; }
.hp-contact-name { margin: 0 0 2px; font-size: 0.9375rem; color: var(--marfil) !important; }
.hp-contact-person .text-link { margin-top: 2px; font-size: 0.875rem; }

/* P8. Propuesta: dos pilares y foto más baja */
.hp-propuesta-body { min-width: 0; }
.hp-pillars {
  list-style: none; margin: clamp(32px, 4vw, 44px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px);
}
.hp-pillars li {
  position: relative; padding: clamp(22px, 2.6vw, 28px);
  background: var(--papel); border: 1px solid var(--line-light);
}
.hp-pillars li::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 72px; height: 2px; background: var(--jade-logo);
}
.hp-pillars h3 { font-size: 1.125rem; margin-bottom: 8px; color: var(--ink); }
.hp-pillars p { font-size: 1rem; margin: 0; }
@media (min-width: 601px) {
  #propuesta .proposal-photo img { aspect-ratio: 21 / 7; }
}

/* FAQ de la home: misma cabecera que DentaFlow */
#preguntas .pp-faq-list a { color: var(--jade-text); }

/* Responsive */
@media (max-width: 900px) {
  .hp-svc-groups { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .hp-engage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .hp-engage, .hp-pillars { grid-template-columns: minmax(0, 1fr); }
  .case-card .case-kpis.hp-kpis-2 { grid-template-columns: minmax(0, 1fr); }
  .hp-inline-cta .btn { width: 100%; }
  .hp-proof { gap: 12px 16px; }
  .hp-proof-logos { width: 100%; }
  .hp-proof-logos { gap: 8px; }
  .hp-proof .client-plate { min-width: 0; height: 52px; padding: 10px 12px; }
  .hp-proof .client-plate img { height: 22px; }
  .hp-proof .client-plate.hp-proof-kcl img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-proof .client-plate:hover { transform: none; }
}

/* ============ Testimonios (cartas de referencia) ============ */
.hp-testi-wrap { margin-top: clamp(56px, 7vw, 88px); }
.hp-testi {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.hp-testi-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: rgba(246, 245, 240, 0.03); border-top: 2px solid var(--jade-logo);
}
.hp-testi-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: 40px; align-items: end; }
.hp-testi-lead blockquote { grid-row: span 2; }
.hp-testi-card blockquote { margin: 0; }
.hp-testi-card blockquote p:first-child {
  font-family: var(--font-head); font-weight: 500; line-height: 1.35;
  font-size: 1.125rem; color: var(--marfil); margin: 0 0 10px;
}
.hp-testi-lead blockquote p:first-child { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.3; }
.hp-testi-card .quote-original { color: var(--acero-claro); }
.hp-testi-context { font-size: 0.9375rem; color: var(--acero-claro); margin: 0; }
.hp-testi-who { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 2px; }
.hp-testi-who strong { font-family: var(--font-head); font-weight: 600; color: var(--marfil); font-size: 0.9375rem; }
.hp-testi-who span { font-size: 0.875rem; color: var(--acero-claro); }
@media (max-width: 900px) {
  .hp-testi { grid-template-columns: minmax(0, 1fr); }
  .hp-testi-lead { display: flex; }
}

/* ============ Agendar llamada ============ */
.hp-hero-note { margin-top: 14px; font-size: 0.9375rem; color: var(--acero-claro); }
.hp-booking {
  margin: 28px 0; padding: 22px 24px; border: 1px solid var(--line-dark);
  border-left: 2px solid var(--jade-logo); border-radius: var(--radius);
  background: rgba(246, 245, 240, 0.04);
}
.hp-booking p { margin: 0 0 12px; font-size: 0.9375rem; }
.hp-booking .hp-booking-title { font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; color: var(--marfil); margin-bottom: 6px; }
.step .text-link { white-space: nowrap; }

/* ============ Distinciones en la trayectoria ============ */
.tl-awards { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tl-awards li {
  position: static; padding: 0 !important; border: 0 !important;
  display: flex; gap: 6px; align-items: flex-start;
  font-size: 0.8125rem; line-height: 1.4; color: var(--jade);
}
.tl-awards li::before { display: none !important; }
.tl-awards svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.hp-testi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .hp-testi { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Redes sociales (.soc-). Ocultas hasta configurarlas en script.js.
   ========================================================================== */
.soc-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.soc-group[hidden], .soc-contact[hidden], .soc-link[hidden], .soc-founder-link[hidden] { display: none !important; }
.soc-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  border: 1px solid var(--line-dark); color: var(--acero-claro);
  text-decoration: none; transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.soc-link svg { width: 18px; height: 18px; display: block; }
.soc-link:hover { color: var(--jade); border-color: rgba(95, 197, 174, 0.55); background: rgba(95, 197, 174, 0.08); }
.soc-link:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
/* Sobre fondos claros */
.section-light .soc-link, .section-paper .soc-link { border-color: var(--line-light); color: var(--acero-text); }
.section-light .soc-link:hover, .section-paper .soc-link:hover { color: var(--jade-text); border-color: var(--jade-deep); background: rgba(14, 124, 107, 0.06); }
.section-light .soc-link:focus-visible, .section-paper .soc-link:focus-visible { outline-color: var(--jade-deep); }
.soc-footer { margin: 12px 0 4px; }
.soc-contact { margin-top: 24px; }
.soc-contact-label { margin: 0 0 10px !important; font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acero-claro) !important; }
.soc-founder-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem;
  color: var(--jade-text); text-decoration: none;
}
.soc-founder-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.section-dark .soc-founder-link { color: var(--jade); }
@media print { .soc-group, .soc-contact, .soc-founder-link { display: none !important; } }

/* ==========================================================================
   Artículos (.ar-). Listado articulos/index.html y páginas de artículo.
   ========================================================================== */
.ar-hero h1 { max-width: 24ch; }
.ar-hero .lead { max-width: 60ch; }
.ar-hero .breadcrumb [aria-current] { color: var(--marfil); }

/* Firma del artículo */
.ar-byline {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-dark);
  font-size: 0.9375rem; color: var(--acero-claro);
}
.ar-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex: none; border: 1px solid var(--line-dark); }
.ar-byline p { margin: 0; }
.ar-byline strong { color: var(--marfil); font-weight: 600; }
.ar-byline a { color: inherit; text-decoration: none; }
.ar-byline a:hover strong { color: var(--jade); }

/* Cuerpo del artículo: columna de lectura */
.ar-main { background: var(--marfil); color: var(--ink); padding-block: clamp(48px, 7vw, 96px); }
.ar-body { max-width: 68ch; margin-inline: auto; font-size: 1.125rem; line-height: 1.72; color: var(--ink-soft); }
.ar-body > :first-child { margin-top: 0; }
.ar-body p { margin: 0 0 1.15em; }
.ar-body strong { color: var(--ink); }
.ar-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.875rem); color: var(--ink); margin: 2.2em 0 0.6em; max-width: none; }
.ar-body h3 { font-size: clamp(1.15rem, 2vw, 1.3rem); color: var(--ink); margin: 1.8em 0 0.5em; }
.ar-body a { color: var(--jade-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ar-body a:hover { text-decoration-thickness: 2px; }
.ar-body a:focus-visible { outline-color: var(--jade-deep); }
.ar-body ul, .ar-body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.ar-body li { margin-bottom: 0.45em; padding-left: 0.2em; }
.ar-body ul li::marker { color: var(--jade-deep); }
.ar-body ol li::marker { color: var(--jade-text); font-family: var(--font-head); font-weight: 600; font-size: 0.9em; }
.ar-body blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--jade-logo);
  font-family: var(--font-head); font-weight: 500; font-size: 1.1875rem; line-height: 1.5; color: var(--ink);
}
.ar-body blockquote p { margin-bottom: 0.5em; }
.ar-body blockquote p:last-child { margin-bottom: 0; }
.ar-body hr { border: 0; height: 2px; width: 64px; background: var(--jade-logo); margin: 2.4em 0; }
.ar-body figure { margin: 2em 0; }
.ar-body figcaption { font-size: 0.9375rem; color: var(--acero-text); margin-top: 8px; }

/* Recuadro «En resumen» / nota destacada */
.ar-callout {
  margin: 2em 0; padding: 22px 26px; background: var(--papel);
  border-left: 3px solid var(--jade-deep); border-radius: var(--radius);
  font-size: 1.0625rem;
}
.ar-callout-title { font-family: var(--font-head); font-size: 0.75rem !important; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--jade-text) !important; margin: 0 0 10px !important; }
.ar-callout ul, .ar-callout ol { margin-bottom: 0; }
.ar-callout > :last-child { margin-bottom: 0; }

/* Tabla simple */
.ar-table-wrap { margin: 2em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-light); border-radius: var(--radius); }
.ar-table-wrap:focus-visible { outline: 2px solid var(--jade-deep); outline-offset: 2px; }
.ar-table { width: 100%; border-collapse: collapse; font-size: 0.9875rem; line-height: 1.5; }
.ar-table caption { caption-side: top; text-align: left; padding: 12px 16px 0; font-size: 0.875rem; color: var(--acero-text); }
.ar-table th, .ar-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-light); }
.ar-table thead th { font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); background: var(--papel); white-space: nowrap; }
.ar-table tbody tr:last-child th, .ar-table tbody tr:last-child td { border-bottom: 0; }
.ar-table tbody th { color: var(--ink); font-weight: 600; }

/* Cierre: llamada a la acción */
.ar-cta {
  max-width: 68ch; margin: clamp(48px, 7vw, 80px) auto 0; padding: clamp(24px, 4vw, 36px);
  background: var(--grafito); color: var(--marfil); border-radius: var(--radius);
  border-top: 2px solid var(--jade-logo);
}
.ar-cta h2 { font-size: clamp(1.3rem, 2.4vw, 1.625rem); margin: 0 0 10px; color: var(--marfil); max-width: 26ch; }
.ar-cta p { color: rgba(246, 245, 240, 0.84); margin: 0 0 22px; font-size: 1.0625rem; }
.ar-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ar-cta-actions .text-link { margin-top: 0; }

/* Seguí leyendo */
.ar-more { max-width: 68ch; margin: clamp(40px, 6vw, 64px) auto 0; }
.ar-more h2 { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--jade-text); margin: 0 0 12px; }
.ar-related { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.ar-related li { border-bottom: 1px solid var(--line-light); }
.ar-related a {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 16px 0; min-height: 44px; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; color: var(--ink);
}
.ar-related a::after { content: "→"; color: var(--jade-deep); flex: none; transition: transform .2s ease; }
.ar-related a:hover { color: var(--jade-text); }
.ar-related a:hover::after { transform: translateX(4px); }
.ar-related a:focus-visible { outline-color: var(--jade-deep); }
.ar-related-cat { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.875rem; color: var(--acero-text); margin-bottom: 2px; }
.ar-more-all { display: inline-block; margin-top: 18px; color: var(--jade-text); font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; text-decoration: none; border-bottom: 1px solid rgba(14, 124, 107, 0.4); }
.ar-more-all:hover { border-bottom-color: var(--jade-deep); }

/* Listado de artículos */
.ar-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ar-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; background: var(--marfil); border: 1px solid var(--line-light); border-radius: var(--radius);
  border-top: 2px solid var(--jade-logo); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ar-card:hover { border-color: rgba(14, 124, 107, 0.45); border-top-color: var(--jade-deep); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(21, 33, 38, 0.08); }
.ar-card-cat { margin: 0 !important; font-family: var(--font-head); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--jade-text) !important; }
.ar-card-title { margin: 0; font-size: 1.25rem; line-height: 1.3; max-width: none !important; }
.ar-card-title a { color: var(--ink); text-decoration: none; }
.ar-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.ar-card-title a:focus-visible { outline: none; }
.ar-card-title a:focus-visible::after { outline: 2px solid var(--jade-deep); outline-offset: 2px; }
.ar-card:hover .ar-card-title a { color: var(--jade-text); }
.ar-card-summary { margin: 0 !important; font-size: 1rem; color: var(--ink-soft); }
.ar-card-meta { margin: auto 0 0 !important; padding-top: 14px; font-size: 0.875rem; color: var(--acero-text) !important; }
.ar-empty { margin: 0; padding: 28px; border: 1px dashed var(--line-light); border-radius: var(--radius); color: var(--acero-text) !important; text-align: center; }
.ar-list:has(li) + .ar-empty { display: none; }

/* Banda de cierre del listado */
.ar-cta-band .section-intro { max-width: 56ch; }
.ar-cta-band .hero-actions { margin-top: 28px; }
.ar-cta-band h2 { max-width: 20ch; }

@media (max-width: 1080px) { .ar-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ar-list { grid-template-columns: minmax(0, 1fr); }
  .ar-card { padding: 22px 20px; }
  .ar-body { font-size: 1.0625rem; }
  .ar-callout { padding: 18px 18px; }
  .ar-cta-actions .btn { width: 100%; }
  .ar-table th, .ar-table td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ar-card:hover, .ar-related a:hover::after { transform: none; }
}
@media print {
  .ar-cta, .ar-more, .ar-cta-band, .site-footer, .wa-float, .case-hero::before { display: none !important; }
  .ar-hero { background: #fff !important; color: #000 !important; padding: 0 0 16px !important; }
  .ar-hero h1, .ar-hero .lead, .ar-byline, .ar-byline strong, .ar-hero .eyebrow, .breadcrumb, .breadcrumb a { color: #000 !important; }
  .ar-main { background: #fff !important; padding: 0 !important; }
  .ar-body { max-width: none; font-size: 11.5pt; line-height: 1.55; color: #000; }
  .ar-body h2, .ar-body h3 { color: #000; break-after: avoid; page-break-after: avoid; }
  .ar-body blockquote, .ar-callout, .ar-table-wrap, .ar-body figure { break-inside: avoid; page-break-inside: avoid; }
  .ar-callout { background: #fff; border: 1px solid #999; border-left: 3px solid #000; }
  .ar-body a { color: #000; }
  .ar-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  .ar-table-wrap { overflow: visible; }
}
/* Columna de lectura compartida por título, cuerpo, cierre y relacionados */
.ar-col, .ar-cta, .ar-more { font-size: 1.125rem; }
.ar-col { max-width: 68ch; margin-inline: auto; }
@media (max-width: 600px) { .ar-col, .ar-cta, .ar-more { font-size: 1.0625rem; } }
.ar-byline { flex-wrap: nowrap; align-items: center; }
.ar-byline p { flex: 1 1 auto; min-width: 0; line-height: 1.5; }
@media (max-width: 600px) { .ar-cta-actions .btn { padding-inline: 16px; font-size: 0.875rem; } }
/* Imagen dentro del artículo y recuadro de ejemplo de la plantilla */
.ar-body figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line-light); }
.ar-ph-img {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9;
  background: var(--papel); border: 1px dashed var(--acero); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; color: var(--acero-text);
}

/* ==========================================================================
   Fundador: resumen en la home (#fundador, #clientes, #prensa) y página fundador.html (.fd-)
   ========================================================================== */
.founder-creds { list-style: none; margin: 24px 0 0; padding: 0; }
.founder-creds li {
  position: relative; padding: 12px 0 12px 22px;
  border-top: 1px solid var(--line-light); font-size: 0.9875rem; color: var(--ink-soft);
}
.founder-creds li:last-child { border-bottom: 1px solid var(--line-light); }
.founder-creds li::before {
  content: ""; position: absolute; left: 0; top: calc(12px + 0.75em);
  width: 10px; height: 2px; background: var(--jade-logo);
}
.founder-creds strong { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.founder-more { margin-top: 28px; }
.hp-more-links { margin: 20px 0 0; }
.section-dark .hp-more-links .text-link { color: var(--jade); }
.section-light .hp-more-links .text-link, .section-paper .hp-more-links .text-link { color: var(--jade-text); border-bottom-color: rgba(11, 106, 91, 0.4); }
.section-light .hp-more-links .text-link:hover, .section-paper .hp-more-links .text-link:hover { border-bottom-color: var(--jade-text); }
.hp-testi-duo .hp-testi-lead { grid-column: auto; display: flex; align-items: stretch; }
@media (max-width: 900px) { .hp-testi-lead { align-items: stretch; } }
.hp-testi-duo .hp-testi-lead blockquote p:first-child { font-size: clamp(1.2rem, 2vw, 1.45rem); }

.fd-intro { padding-top: clamp(32px, 5vw, 56px); }
.fd-intro .breadcrumb, .fd-intro .breadcrumb a { color: var(--acero-text); }
.fd-intro .breadcrumb a { border-bottom-color: var(--line-light); }
.fd-intro .breadcrumb a:hover { color: var(--ink); }
.founder h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.fd-intro .founder-block h2 {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--jade-text); margin-bottom: 12px; max-width: none;
}
.fd-page .timeline-wrap { margin-top: clamp(32px, 4vw, 56px); }
.fd-close .hp-inline-cta { margin-top: 0; }
.fd-close .hero-actions { margin-top: 0; }
/* ==========================================================================
   VX · Servicios en tarjetas, método como diagrama de flujo, sectores con íconos
   ========================================================================== */
.vx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Servicios: tres tarjetas --- */
.vx-svc-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px); align-items: stretch;
}
.vx-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-light); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(13, 22, 24, 0.04), 0 10px 30px -18px rgba(13, 22, 24, 0.25);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.vx-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--jade-logo), var(--jade));
}
.vx-card:hover, .vx-card:focus-within {
  transform: translateY(-4px); border-color: rgba(19, 163, 139, 0.45);
  box-shadow: 0 2px 4px rgba(13, 22, 24, 0.05), 0 22px 44px -22px rgba(13, 22, 24, 0.35);
}
.vx-card-head { padding: clamp(26px, 2.6vw, 34px) clamp(22px, 2.4vw, 32px) 22px; }
.vx-card-icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px;
  border-radius: 16px; background: var(--grafito); color: var(--jade);
  box-shadow: inset 0 0 0 1px rgba(95, 197, 174, 0.25);
}
.vx-card-icon svg { width: 34px; height: 34px; }
.vx-card h3 { font-size: clamp(1.25rem, 1.8vw, 1.4rem); color: var(--ink); margin: 0 0 8px; }
.section-light .vx-card-lead { margin: 0; font-size: 1.0625rem; line-height: 1.45; color: var(--jade-text); font-weight: 600; }

.vx-svc-list {
  list-style: none; margin: 0; padding: 0 clamp(22px, 2.4vw, 32px);
  border-top: 1px solid var(--line-light);
}
.vx-svc-list li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--line-light);
}
.vx-svc-list li:last-child { border-bottom: 0; }
.vx-svc-ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(19, 163, 139, 0.1); color: var(--jade-deep);
}
.vx-svc-ico svg { width: 21px; height: 21px; }
.vx-svc-list h4 {
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.3;
  margin: 1px 0 4px; color: var(--ink);
}
.section-light .vx-svc-list p { margin: 0; font-size: 0.96875rem; line-height: 1.5; color: var(--ink-soft); }
.section-light .vx-svc-list .vx-proof {
  display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px;
  background: var(--papel); font-size: 0.8125rem; color: var(--ink);
}
.vx-proof strong { color: var(--jade-text) !important; }

.vx-card-foot { margin-top: auto; padding: 0 clamp(22px, 2.4vw, 32px) clamp(22px, 2.4vw, 28px); }
.vx-card-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 48px; padding: 12px 18px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem; line-height: 1.3;
  text-decoration: none; color: var(--jade-text);
  background: rgba(19, 163, 139, 0.08); border: 1px solid rgba(14, 124, 107, 0.3);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.vx-card-link span { flex-shrink: 0; transition: transform .2s ease; }
.vx-card-link:hover { background: var(--jade-deep); border-color: var(--jade-deep); color: var(--marfil); }
.vx-card-link:hover span { transform: translateX(3px); }
.vx-card-link:focus-visible { outline: 2px solid var(--jade-deep); outline-offset: 3px; }

/* --- Cómo trabajamos: diagrama de flujo --- */
.vx-flow {
  --vx-node: 76px;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.vx-flow-step {
  position: relative; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 clamp(8px, 1.2vw, 18px);
}
/* línea que une cada nodo con el siguiente */
.vx-flow-step:not(:last-child)::before {
  content: ""; position: absolute; top: calc(var(--vx-node) / 2 - 1px);
  left: calc(50% + var(--vx-node) / 2 + 10px); right: calc(-50% + var(--vx-node) / 2 + 10px);
  height: 2px; background: linear-gradient(90deg, rgba(95, 197, 174, 0.75), rgba(95, 197, 174, 0.35));
}
/* punta de flecha */
.vx-flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: calc(var(--vx-node) / 2 - 5px);
  right: calc(-50% + var(--vx-node) / 2 + 10px);
  width: 8px; height: 8px; border-top: 2px solid var(--jade); border-right: 2px solid var(--jade);
  transform: rotate(45deg); transform-origin: center;
}
.vx-node {
  position: relative; z-index: 1; display: grid; place-items: center; flex-shrink: 0;
  width: var(--vx-node); height: var(--vx-node); border-radius: 50%;
  background: var(--grafito-deep); color: var(--jade);
  border: 2px solid var(--jade-logo);
  box-shadow: 0 0 0 6px rgba(95, 197, 174, 0.08);
  margin-bottom: 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.vx-node svg { width: 32px; height: 32px; }
.vx-node-num {
  position: absolute; top: -4px; right: -4px; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--jade); color: var(--grafito-deep);
  font-family: var(--font-head); font-weight: 700; font-size: 0.875rem; line-height: 1;
  box-shadow: 0 0 0 3px var(--grafito);
}
.vx-flow-step:hover .vx-node { transform: translateY(-3px); box-shadow: 0 0 0 8px rgba(95, 197, 174, 0.14); }
.vx-flow-step h3 { font-size: 1.0625rem; line-height: 1.3; margin: 0 0 8px; color: var(--marfil); }
.section-dark .vx-flow-step p { font-size: 0.96875rem; line-height: 1.5; margin: 0; max-width: 24ch; }
.vx-flow-step .text-link { margin-top: 12px; white-space: nowrap; }

/* --- Tres formas de empezar: mismo lenguaje que las tarjetas --- */
.vx-engage li { border-radius: 10px; overflow: hidden; transition: transform .25s ease, border-color .25s ease, background-color .25s ease; }
.vx-engage li::before { left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--jade-logo), var(--jade)); }
.vx-engage li:hover, .vx-engage li:focus-within { transform: translateY(-4px); border-color: rgba(95, 197, 174, 0.45); background: rgba(246, 245, 240, 0.06); }
.vx-engage-ico {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 14px; background: rgba(95, 197, 174, 0.12); color: var(--jade);
  box-shadow: inset 0 0 0 1px rgba(95, 197, 174, 0.3);
}
.vx-engage-ico svg { width: 28px; height: 28px; }
.vx-engage .vx-card-foot { padding: 6px 0 0; }
.section-dark .vx-engage .vx-card-link {
  color: var(--jade); background: rgba(95, 197, 174, 0.08); border-color: rgba(95, 197, 174, 0.35);
}
.section-dark .vx-engage .vx-card-link:hover { background: var(--jade); border-color: var(--jade); color: var(--grafito-deep); }
.section-dark .vx-engage .vx-card-link:focus-visible { outline-color: var(--jade); }

/* --- Sectores con íconos --- */
.vx-sectors li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto 1fr;
  column-gap: 16px; align-items: start;
}
.vx-sectors li > h3, .vx-sectors li > p { grid-column: 2; }
.vx-sec-ico {
  grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--marfil); color: var(--jade-deep);
  border: 1px solid var(--line-light);
}
.vx-sec-ico svg { width: 22px; height: 22px; }
.vx-sectors h3 { margin-top: 2px; }
.vx-sectors li > p { align-self: start; }

/* --- Responsive --- */
@media (max-width: 1080px) {
  .vx-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vx-svc-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  /* el flujo pasa a línea de tiempo vertical */
  .vx-flow { --vx-node: 60px; grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .vx-flow-step {
    display: grid; grid-template-columns: var(--vx-node) minmax(0, 1fr); column-gap: 20px;
    align-items: start; text-align: left; padding: 0 0 30px;
  }
  .vx-flow-step > .vx-node { grid-row: 1 / span 3; margin-bottom: 0; }
  .vx-flow-step > :not(.vx-node) { grid-column: 2; justify-self: start; }
  .vx-flow-step h3 { margin-top: 6px; }
  .vx-node svg { width: 26px; height: 26px; }
  .vx-node-num { width: 24px; height: 24px; font-size: 0.8125rem; }
  .section-dark .vx-flow-step p { max-width: none; }
  .vx-flow-step:not(:last-child)::before {
    top: calc(var(--vx-node) + 8px); bottom: 8px; left: calc(var(--vx-node) / 2 - 1px); right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, rgba(95, 197, 174, 0.75), rgba(95, 197, 174, 0.3));
  }
  .vx-flow-step:not(:last-child)::after {
    top: auto; bottom: 8px; right: auto; left: calc(var(--vx-node) / 2 - 5px);
    transform: rotate(135deg);
  }
}
@media (max-width: 720px) {
  .vx-svc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .vx-card-icon { width: 56px; height: 56px; border-radius: 14px; }
  .vx-card-icon svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .vx-card, .vx-card-link, .vx-card-link span, .vx-node, .vx-engage li { transition: none; }
  .vx-card:hover, .vx-card:focus-within, .vx-engage li:hover, .vx-engage li:focus-within,
  .vx-flow-step:hover .vx-node, .vx-card-link:hover span { transform: none; }
}
@media print {
  .vx-card, .vx-engage li { box-shadow: none !important; transform: none !important; }
  .vx-flow-step::before, .vx-flow-step::after { display: none; }
}

/* vx: botones del pie de igual alto cuando las tarjetas están lado a lado */
@media (min-width: 600px) {
  .vx-svc-grid .vx-card-link { min-height: calc(2.6em + 26px); }
}
@media (min-width: 601px) and (max-width: 900px) {
  .vx-engage > li:last-child { grid-column: 1 / -1; }
}
.section-light .vx-svc-list .vx-proof { border-radius: 8px; }

/* ============ Testimonios pendientes de aprobación ============
   Ocultos por defecto (sitio publicado y sin JS). script.js los muestra solo con file:// */
[data-pending-approval] { display: none !important; }
html.is-local [data-pending-approval] { display: flex !important; outline: 2px dashed var(--bermellon); outline-offset: 4px; }
.testi-pending { align-self: flex-start; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: #fff; background: var(--bermellon); padding: 4px 10px; border-radius: 999px; }

/* ============ Video destacado en prensa ============ */
.press-video {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; align-items: stretch;
  margin: 8px 0 32px; border-radius: 10px; overflow: hidden; text-decoration: none;
  background: var(--grafito); color: var(--marfil); box-shadow: 0 18px 40px -18px rgba(13, 22, 24, 0.55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.press-video:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -18px rgba(13, 22, 24, 0.65); }
.press-video:focus-visible { outline: 3px solid var(--jade); outline-offset: 3px; }
.press-video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; }
.press-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.press-video-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(13, 22, 24, 0.72); color: #fff;
  border: 2px solid rgba(246, 245, 240, 0.85);
}
.press-video-body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px 28px; }
.press-video-body strong { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.35; color: var(--marfil); }
.press-video .press-meta, .press-video .press-outlet { color: var(--acero-claro) !important; }
.press-video-cta { color: var(--jade); font-weight: 600; font-family: var(--font-head); font-size: 0.95rem; }
@media (max-width: 760px) { .press-video { grid-template-columns: minmax(0, 1fr); } .press-video-body { padding: 18px 20px; } }
@media (prefers-reduced-motion: reduce) { .press-video, .press-video:hover { transition: none; transform: none; } }

/* ---------- Capturas en las tarjetas de Soluciones ----------
   Escenario claro (marfil → jade pálido) para que las capturas resalten
   sobre el fondo grafito de la sección. */
.sol-shot {
  position: relative; display: block; margin: 0 0 24px;
  padding: 18px 18px 0; border-radius: 10px; overflow: hidden;
  background: linear-gradient(150deg, #F6F5F0 0%, #EDEBE4 45%, #D8F0E8 100%);
  border: 1px solid rgba(246, 245, 240, 0.55);
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.25);
  text-decoration: none; isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
}
.sol-shot::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; z-index: 1;
  background: linear-gradient(90deg, var(--jade-logo), var(--jade));
}
.sol-window {
  display: block; border-radius: 7px 7px 0 0; overflow: hidden; background: #fff;
  border: 1px solid rgba(21, 33, 38, 0.14); border-bottom: 0;
  box-shadow: 0 14px 32px -10px rgba(13, 22, 24, 0.35);
}
.sol-bar {
  display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  background: #FFFFFF; border-bottom: 1px solid rgba(21, 33, 38, 0.1);
}
.sol-bar i { width: 8px; height: 8px; border-radius: 50%; background: #D6D3CA; }
.sol-bar i:first-child { background: var(--jade-logo); }
.sol-bar span {
  margin-left: 8px; font-family: var(--font-head); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--acero-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sol-window img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left;
  transition: transform .5s ease; transform-origin: top left;
}
a.sol-shot:hover { transform: translateY(-3px); box-shadow: 0 28px 52px -16px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.25); }
a.sol-shot:hover img { transform: scale(1.03); }
a.sol-shot:focus-visible { outline: 3px solid var(--jade); outline-offset: 3px; }
.sol-shot-art { padding: 18px; }
.sol-shot-art svg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.product .sol-shot { margin: 24px 0 0; max-height: none; border: 1px solid rgba(246, 245, 240, 0.55); }
@media (max-width: 480px) {
  .sol-shot { padding: 12px 12px 0; margin-bottom: 20px; }
  .sol-shot-art { padding: 12px; }
  .sol-bar { height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .sol-shot, .sol-window img { transition: none; }
  a.sol-shot:hover, a.sol-shot:hover img { transform: none; }
}

/* KCL: el escudo es cuadrado y se veía chico al lado de los logos anchos */
.hp-proof .client-plate.hp-proof-kcl { padding: 4px 14px; }
.hp-proof .client-plate.hp-proof-kcl img { height: 48px; }
@media (max-width: 600px) {
  .hp-proof .client-plate.hp-proof-kcl { padding: 4px 10px; }
  .hp-proof .client-plate.hp-proof-kcl img { height: 44px; }
}

/* VITO (24/11/2026): Servicios con 4 grupos (Vender más primero) en grilla 2 × 2 */
.vx-svc-grid.vx-svc-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vx-svc-grid.vx-svc-grid-4 > :last-child { grid-column: auto; }
@media (max-width: 720px) {
  .vx-svc-grid.vx-svc-grid-4 { grid-template-columns: minmax(0, 1fr); }
}
/* Prensa más liviana en la home */
.section-compact { padding-block: clamp(40px, 5vw, 72px); }
.section-compact h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
