/* ============================================================
   opercam — Cinematic Consultancy
   ============================================================ */

:root {
  --ink: #0B1220;
  --ink-soft: #121C32;
  --ink-deep: #060A14;
  --paper: #FFFFFF;
  --paper-cool: #EEEFF1;
  --graphite: #181A20;
  --rule: #E5E7EB;
  --rule-soft: #F0F1F3;
  --rule-dark: rgba(255, 255, 255, 0.10);
  --rule-darker: rgba(255, 255, 255, 0.18);
  --text: #0B1220;
  --text-muted: #5B6477;
  --text-subtle: #8A93A6;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #A8B1C2;
  --text-on-dark-subtle: #6B7385;
  --accent: #0B1220;
  --cyan: #22D3EE;
  --cyan-deep: #0E7C8C;
  --cyan-tint: rgba(34, 211, 238, 0.08);

  /* Sistema de espaciado consistente */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  --space-8: 112px;
  --section-y: 112px;
  --section-y-sm: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: auto; /* Lenis controla el scroll */
}

html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

body.has-custom-cursor { cursor: none; }
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor [data-cursor="hover"] { cursor: none; }

@media (max-width: 900px), (pointer: coarse) {
  body.has-custom-cursor { cursor: auto; }
}

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

/* ─── Custom cursor ─── */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-cinematic), height 0.3s var(--ease-cinematic),
              background 0.3s, opacity 0.3s, mix-blend-mode 0s;
  will-change: transform;
}
.cursor.is-hover {
  width: 40px; height: 40px;
  background: rgba(11, 18, 32, 0.12);
  border: 1px solid var(--ink);
}
.cursor.on-dark {
  background: var(--paper);
}
.cursor.on-dark.is-hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--paper);
}
.cursor.is-hidden { opacity: 0; }
@media (max-width: 900px), (pointer: coarse) {
  .cursor { display: none; }
}

/* ─── Layout ─── */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 56px;
}
.wrap--narrow {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 720px) {
  .wrap, .wrap--narrow { padding: 0 24px; }
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}
@media (max-width: 720px) {
  .section { padding: var(--section-y-sm) 0; }
}
.section--dark {
  background: var(--ink);
  color: var(--text-on-dark);
}

/* ─── Section head: ritmo consistente eyebrow → título → lead ─── */
.section-head {
  margin-bottom: var(--space-6);
  max-width: none;
}
.section-head .h-section { margin-top: var(--space-3); max-width: 26ch; }
.section-head .lead { margin-top: var(--space-3); max-width: 64ch; }
@media (max-width: 720px) {
  .section-head { margin-bottom: var(--space-5); }
}

/* ─── Type ─── */
h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: inherit;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(40px, 6.4vw, 92px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.h-section {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.06;
}
.h-medium {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 56ch;
}
.section--dark .lead { color: var(--text-on-dark-muted); }

.body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  max-width: 60ch;
}
.body p + p { margin-top: 1.2em; }
.body--muted { color: var(--text-muted); }
.section--dark .body { color: var(--text-on-dark-muted); }

/* ─── Pull-quote / cita destacada (reutilizable) ─── */
.key-quote {
  padding-left: var(--space-3);
  border-left: 1px solid var(--ink);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.32;
  color: var(--ink);
  max-width: 40ch;
}
.section--dark .key-quote {
  border-left-color: var(--text-on-dark);
  color: var(--text-on-dark);
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.section--dark .eyebrow { color: var(--text-on-dark-muted); }

/* Word-by-word reveal */
.reveal-words .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.2em;        /* sitio para los descendentes (g, p, y) — que no se corten */
  margin-bottom: -0.2em;        /* …sin alterar el interlineado */
}
.reveal-words .word__inner {
  display: inline-block;
  transform: translateY(125%);
  transition: transform 1s var(--ease-cinematic);
  will-change: transform;
}
.reveal-words.in .word__inner {
  transform: translateY(0);
}
/* Key words marked with <strong>/<b> in the source keep the same Inter face, heavier weight */
.reveal-words .word--b .word__inner { font-weight: 700; }

/* Generic reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-cinematic), transform 1.1s var(--ease-cinematic);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal--fade {
  transform: none;
  transition: opacity 1.4s var(--ease-cinematic);
}
.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.30s; }
.reveal--delay-3 { transition-delay: 0.45s; }

/* Line draw reveal */
.line-reveal {
  position: relative;
  overflow: hidden;
}
.line-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-cinematic);
}
.line-reveal.in::after {
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.8s var(--ease-cinematic);
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s var(--ease-cinematic),
              border-color 0.35s var(--ease-cinematic),
              backdrop-filter 0.35s var(--ease-cinematic),
              padding 0.35s var(--ease-cinematic);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  padding: 16px 56px;
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav.on-light.is-stuck {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--rule);
}
/* ─── Brand (logo: dos cuadrados + wordmark) ─── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  line-height: 1;
  text-decoration: none;
  color: inherit;
  font-size: 22px;
}
.brand__mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.18em;
  height: 1em;
  flex-shrink: 0;
}
.brand__sq { display: block; }
.brand__sq--big {
  width: 1em;
  height: 1em;
  background: currentColor;
}
.brand__sq--accent {
  width: 0.55em;
  height: 0.55em;
  background: #1DD9F0;
}
.brand__text {
  font-size: 1em;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.nav__brand { color: var(--text-on-dark); position: relative; z-index: 60; }
.nav.on-light .nav__brand { color: var(--ink); }
.nav.is-open .nav__brand { color: var(--text-on-dark); }
.footer__brand { color: var(--text-on-dark); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__link {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  transition: color 0.25s;
  position: relative;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav.on-light .nav__link { color: var(--text-muted); }
.nav__link:hover { color: var(--text-on-dark); }
.nav.on-light .nav__link:hover { color: var(--ink); }

/* Hamburger toggle (mobile only) */
.nav__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--text-on-dark);
  z-index: 60;
}
.nav.on-light .nav__toggle { color: var(--ink); }
.nav.is-open .nav__toggle { color: var(--text-on-dark); }
.nav__burger,
.nav__burger::before,
.nav__burger::after {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-cinematic), top 0.3s var(--ease-cinematic), opacity 0.2s;
}
.nav__burger {
  top: 50%;
  transform: translateY(-50%);
}
.nav__burger::before,
.nav__burger::after {
  content: "";
}
.nav__burger::before { top: -7px; }
.nav__burger::after { top: 7px; }
.nav.is-open .nav__burger { background: transparent; }
.nav.is-open .nav__burger::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__burger::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav { padding: 18px 24px; }
  .nav.is-stuck { padding: 14px 24px; }
  .nav__toggle { display: inline-block; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--text-on-dark);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    padding: 96px 32px 48px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-cinematic);
    z-index: 55;
    overflow-y: auto;
  }
  .nav.is-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    border-bottom-color: transparent;
  }
  .nav.is-open .nav__links { transform: translateX(0); }
  .nav__links .nav__link {
    display: block;
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.85);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav__links .nav__link:hover { color: var(--text-on-dark); }
  body.nav-open { overflow: hidden; }
}

/* ─── Hero — full-bleed photo ─── */
.hero {
  background: var(--ink);
  color: var(--text-on-dark);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  display: block;
  will-change: transform;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s var(--ease-cinematic), transform 2.4s var(--ease-cinematic);
}
body.loaded .hero__media img { opacity: 1; transform: scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(11,18,32,0.72) 0%,
      rgba(11,18,32,0.50) 38%,
      rgba(11,18,32,0.95) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(11,18,32,0) 0%, rgba(11,18,32,0.35) 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__headline {
  max-width: 32ch;
  font-size: clamp(34px, 5.4vw, 70px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--text-on-dark);
  text-wrap: pretty;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 4px 18px rgba(0, 0, 0, 0.45),
    0 10px 44px rgba(0, 0, 0, 0.35);
}
@media (max-width: 720px) {
  .hero { padding: 112px 0 72px; min-height: 100vh; min-height: 100dvh; }
}

/* ─── Lineage logos ─── */
/* ─── Endorsed (logos discretos al final de Origen) ─── */
.endorsed {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
}
.endorsed__label {
  display: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.endorsed__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
}
.endorsed__row img {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .endorsed__row { gap: var(--space-3) var(--space-5); }
  .endorsed__row img { height: 22px; max-width: 130px; }
  .endorsed { margin-top: var(--space-5); }
}

/* ─── Origen ─── */
.origen { background: var(--paper); }
.origen__head {
  margin-bottom: var(--space-5);
}
.origen__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--space-6);
  align-items: stretch;
}
.origen__main { min-width: 0; display: flex; flex-direction: column; }
.origen__copy { max-width: 60ch; min-width: 0; }
.origen__main .endorsed {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
}
.origen__aside {
  margin: 0;
  align-self: stretch;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  opacity: 0.92;
  filter: saturate(0.92);
  box-shadow: 0 18px 44px -22px rgba(11, 18, 32, 0.28);
}
.origen__aside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  display: block;
  transition: transform 1.4s var(--ease-cinematic), opacity 0.4s ease;
}
.origen__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0) 60%, rgba(11,18,32,0.18) 100%);
  pointer-events: none;
}
.origen__aside:hover { opacity: 1; }
.origen__aside:hover img { transform: scale(1.03); }
@media (max-width: 960px) {
  .origen__grid { column-gap: var(--space-5); }
  .origen__aside { max-width: 320px; }
}
@media (max-width: 720px) {
  .origen__grid {
    grid-template-columns: 1fr;
    row-gap: var(--space-4);
  }
  .origen__aside {
    aspect-ratio: 16 / 10;
    width: 100%;
    max-width: none;
    order: 1;
  }
  .origen__main { order: 2; }
}
.origen .body strong,
.sistema .body strong { color: var(--ink); font-weight: 600; }
.origen .body a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.3s;
}
.origen .body a:hover { border-bottom-color: var(--ink); }

/* ─── Photo block (used in Origen) ─── */
.photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0B1220;
  aspect-ratio: 16 / 10;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease-cinematic);
}
.photo:hover img { transform: scale(1.02); }
.photo__caption,
.origen__media .photo__caption {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Sistema (editorial: foto + texto) ─── */
.sistema { background: var(--paper-cool); }
.sistema__head {
  margin-bottom: var(--space-7);
}
.sistema__grid {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: var(--space-6);
  align-items: start;
}
.sistema__copy { max-width: 44ch; }
.sistema__pullquote { margin-bottom: var(--space-4); font-size: clamp(19px, 1.6vw, 22px); max-width: none; }
.sistema__copy p + p { margin-top: 1.2em; }
.sistema__media .photo { aspect-ratio: 16 / 9; }
.photo--wide { aspect-ratio: 16 / 9; }

/* AI image — softens texture so silhouettes lead */
.photo--ai img {
  filter: saturate(0.78) contrast(0.92) brightness(0.95);
}
.photo__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(11,18,32,0.18) 0%,
      rgba(11,18,32,0.05) 45%,
      rgba(11,18,32,0.35) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(34,211,238,0.06) 0%, rgba(34,211,238,0) 70%);
  mix-blend-mode: multiply;
}

@media (max-width: 920px) {
  .sistema__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .sistema__head { margin-bottom: var(--space-5); }
  .sistema__media { margin: 0; }
  .sistema__media .photo,
  .photo--wide { aspect-ratio: 16 / 9; }
}

/* ─── Servicios — carousel ─── */
.servicios {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: var(--section-y) 0;
  overflow: hidden;
}
@media (max-width: 720px) {
  .servicios { padding: var(--section-y-sm) 0; }
}
.servicios__head {
  margin-bottom: var(--space-7);
}
@media (max-width: 920px) {
  .servicios__head { margin-bottom: var(--space-5); }
}

/* ─── Services deck (contenedor que subordina el carrusel) ─── */
.services-deck {
  background: transparent;
  border: 1px solid var(--cyan);
  padding: 32px 48px;
  position: relative;
}
@media (max-width: 720px) {
  .services-deck { padding: 22px 22px; }
}

.carousel {
  position: relative;
}
.carousel__stage {
  position: relative;
  min-height: 280px;
}
@media (max-width: 720px) {
  .carousel__stage { min-height: 320px; }
}
.carousel__slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--space-6);
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 1s var(--ease-cinematic), transform 1s var(--ease-cinematic);
}
@media (max-width: 920px) {
  .carousel__slide { grid-template-columns: 1fr; gap: var(--space-3); align-content: start; }
}
.carousel__slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.carousel__num {
  font-size: clamp(56px, 7vw, 112px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.carousel__copy h3 {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.18;
  color: var(--ink);
  max-width: 28ch;
}
.carousel__copy p {
  margin-top: var(--space-2);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 50ch;
}

.carousel__nav {
  margin-top: var(--space-3);
}
.carousel__progress { display: none; }
.carousel__dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  align-items: stretch;
}
.carousel__dot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 4px 0;
  text-align: left;
  border-top: 2px solid var(--rule);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.45s var(--ease-cinematic);
  cursor: pointer;
}
.carousel__dot::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--cyan);
  transition: width 0.35s var(--ease-cinematic);
}
.carousel__dot:hover { border-top-color: var(--text-subtle); }
.carousel__dot:hover:not(.is-active)::before { width: 24px; }
.carousel__dot.is-active::before {
  width: 100%;
  animation: dotFill 4s linear forwards;
  transition: none;
}
.carousel:hover .carousel__dot.is-active::before { animation-play-state: paused; }
@keyframes dotFill {
  from { width: 0; }
  to { width: 100%; }
}
.carousel__dot__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  transition: color 0.35s var(--ease-cinematic);
}
.carousel__dot__label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--text-muted);
  transition: color 0.35s var(--ease-cinematic);
}
.carousel__dot:hover .carousel__dot__num,
.carousel__dot:hover .carousel__dot__label { color: var(--ink); }
.carousel__dot.is-active .carousel__dot__num,
.carousel__dot.is-active .carousel__dot__label { color: var(--ink); }
@media (max-width: 720px) {
  .carousel__dots { grid-template-columns: repeat(5, auto); gap: 6px; }
  .carousel__dot { padding: 14px 0 0; }
  .carousel__dot__label { display: none; }
}

/* ─── Sistema (dark wrapper kept for legacy references; section now uses light editorial layout above) ─── */

/* ─── Cuña / caso real — estilos en bloque dedicado más abajo (.cuna parallax band) ─── */

/* ─── Formatos — tabs ─── */
.formatos {
  background: var(--paper);
  color: var(--ink);
  padding: var(--section-y) 0;
  overflow: hidden;
}
@media (max-width: 720px) {
  .formatos { padding: var(--section-y-sm) 0; }
}
.formatos__head {
  margin-bottom: var(--space-6);
}
.formatos__layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 920px) {
  .formatos__layout {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

.formatos__tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: var(--space-5);
  align-self: start;
}
.formatos__tab {
  flex: 0 0 auto;
  padding: 20px 22px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: none;
  background: var(--rule-soft);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.35s var(--ease-out), background 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  font-variant-numeric: tabular-nums;
}
.formatos__tab.is-active {
  color: var(--text-on-dark);
  background: var(--ink);
}
.formatos__tab:hover:not(.is-active) {
  color: var(--ink);
  background: var(--paper-cool);
  transform: translateX(2px);
}
.formatos__tab-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
@media (max-width: 920px) {
  .formatos__tabs {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    position: static;
    overflow-x: auto;
  }
  .formatos__tab { flex: 0 0 auto; padding: 22px 20px; white-space: nowrap; scroll-snap-align: start; }
  .formatos__tabs { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .formatos__tab:not(:last-child)::after {
    left: auto;
    right: 0;
    top: 16px;
    bottom: 16px;
    width: 1px;
    height: auto;
    background: var(--rule);
  }
}

.formatos__indicator {
  display: none;
}
@media (max-width: 920px) {
  .formatos__indicator {
    left: 0;
    top: auto;
    bottom: -1px;
    width: 0;
    height: 2px;
  }
}

.formatos__panels { position: relative; }

@media (min-width: 921px) {
  .formatos__panels { min-height: 760px; }
  .formatos__panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.7s var(--ease-cinematic), transform 0.7s var(--ease-cinematic);
  }
  .formatos__panel.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    position: relative;
  }
  .formatos__panel.is-active ~ .formatos__panel-stub { display: none; }
}

.formato__head {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 920px) {
  .formato__head { gap: var(--space-3); }
}

/* Mobile: accordion mode */
@media (max-width: 920px) {
  .formatos__tabs { display: none; }
  .formatos__panels { min-height: 0; }
  .formatos__panel {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }
  .formatos__panel + .formatos__panel {
    border-top: 1px solid var(--rule);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
  }
  .formato__head {
    cursor: pointer;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-right: 36px;
    padding-bottom: 0;
    border-bottom: 0;
    position: relative;
    user-select: none;
  }
  .formato__head .formato__title,
  .formato__head .formato__guide { flex: 0 0 auto; max-width: 100%; }
  .formato__head::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s var(--ease-cinematic);
    position: absolute;
    right: 4px;
    top: 14px;
  }
  .formatos__panel.is-expanded .formato__head::after {
    transform: rotate(-135deg);
    top: 18px;
  }
  .formatos__panel:not(.is-expanded) .formato__diagram,
  .formatos__panel:not(.is-expanded) .formato__body {
    display: none;
  }
}

.formato__diagram {
  margin: 0 auto;
  width: 100%;
  max-width: 880px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 920px) {
  .formato__diagram { margin: 0; }
}
.formato__diagram img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.formato__title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  max-width: 22ch;
  flex: 0 0 auto;
}
.formato__guide {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.45;
  max-width: 32ch;
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
}
.formato__guide .nowrap { white-space: nowrap; }
.formato__body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 56ch;
}
.formato__body p + p { margin-top: 1.2em; }
.formato__body strong {
  color: var(--ink);
  font-weight: 500;
}
.formato__seal {
  margin-top: var(--space-4);
  padding-left: var(--space-3);
  border-left: 1px solid var(--ink);
  color: var(--ink);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  max-width: 38ch;
}

/* ─── Globe — lienzo del globo del hero ─── */
.globe__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.015em;
  transition: all 0.4s var(--ease-cinematic);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--ink);
  color: var(--text-on-dark);
}
.btn--primary:hover {
  background: var(--ink-deep);
  transform: translateY(-1px);
}
.btn--secondary {
  color: var(--ink);
  border-color: var(--rule);
}
.btn--secondary:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn .arrow {
  transition: transform 0.4s var(--ease-cinematic);
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(6px); }

/* ─── Footer ─── */
.footer {
  background: var(--ink-deep);
  color: var(--text-on-dark-muted);
  padding: var(--space-7) 0 var(--space-4);
  border-top: 1px solid var(--rule-dark);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: end;
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; align-items: start; }
}
.footer__brand { margin-bottom: var(--space-3); }
.footer__line {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-on-dark-muted);
  max-width: 38ch;
}
.footer__right {
  text-align: right;
  font-size: 14px;
  line-height: 1.85;
}
.footer__contact-k {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
@media (max-width: 720px) {
  .footer__right { text-align: left; margin-top: 32px; }
}
.footer__right a {
  color: var(--text-on-dark);
  border-bottom: 1px solid rgba(255,255,255,0.20);
  transition: border-color 0.3s;
}
.footer__right a:hover { border-bottom-color: var(--text-on-dark); }
.footer__meta {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule-dark);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ============================================================
   opercam v4 — IP live transport (rebuild)
   ============================================================ */

/* ─── Section variants ─── */
.section--soft { background: var(--paper-cool); }

/* ─── Language toggle ─── */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang__btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  padding: 4px 2px;
  transition: color 0.25s var(--ease-cinematic);
}
.lang__sep { color: rgba(255,255,255,0.28); font-size: 12px; }
.lang__btn:hover { color: var(--text-on-dark); }
.lang__btn.is-active { color: var(--text-on-dark); }
.nav.on-light .lang__btn { color: var(--text-subtle); }
.nav.on-light .lang__sep { color: var(--rule); }
.nav.on-light .lang__btn:hover,
.nav.on-light .lang__btn.is-active { color: var(--ink); }
.nav.is-open .lang__btn { color: rgba(255,255,255,0.55); }
.nav.is-open .lang__btn:hover,
.nav.is-open .lang__btn.is-active { color: #fff; }

/* ─── Hero: kicker + inner layout for the checker ─── */
.hero { overflow: visible; }
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: var(--space-3);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero__kicker::before { content: ""; width: 26px; height: 1px; background: var(--cyan); }


/* ─── Modelo (player global + control central + globo, fondo oscuro) ─── */
.modelo { background: var(--ink); }
.modelo__grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0, 440px);
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 920px) {
  .modelo__grid { grid-template-columns: 1fr; gap: var(--space-5); }
}
.modelo__copy { max-width: 60ch; }
.modelo__copy .body strong { color: var(--text-on-dark); font-weight: 600; }
/* Contraste: el cuerpo de EL MODELO se leía demasiado tenue sobre el navy */
#modelo .lead,
#modelo .modelo__copy .body { color: #C9D2DF; }

/* Globo dentro de El modelo */
.modelo__globe {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}
.modelo__globe .globe__legend { color: var(--text-on-dark-muted); }
.modelo__quote { margin-top: var(--space-5); }

/* Tira de pruebas — la logística que hace creíble el modelo */
.modelo__proof {
  list-style: none;
  margin: var(--space-7) 0 0;
  padding: var(--space-6) 0 0;
  border-top: 1px solid var(--rule-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.modelo__proof-k {
  display: block;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
}
.modelo__proof-t {
  display: block;
  margin-top: var(--space-2);
  font-size: clamp(14px, 1.2vw, 15px);
  line-height: 1.55;
  color: var(--text-on-dark-muted);
  max-width: 34ch;
}
@media (max-width: 720px) {
  .modelo__proof {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding-top: var(--space-5);
  }
}
.modelo__aside {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 18px 44px -22px rgba(11,18,32,0.30);
}
.modelo__aside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
  transition: transform 1.4s var(--ease-cinematic);
}
.modelo__aside:hover img { transform: scale(1.03); }
.modelo__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 18px 16px;
  font-size: 12px;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(180deg, rgba(11,18,32,0) 0%, rgba(11,18,32,0.85) 100%);
}

/* ─── Cómo funciona — steps ─── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin: 0;
  padding: 0;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: var(--space-4); } }
.step {
  padding-top: var(--space-3);
  border-top: 2px solid var(--ink);
}
.step__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan-deep);
  font-variant-numeric: tabular-nums;
}
.step__title {
  margin-top: 12px;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.step__desc {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 42ch;
}
.step__desc strong { color: var(--ink); font-weight: 600; }

/* ─── Tech strip ─── */
.tech {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.tech__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-right: 6px;
}
.tech__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.tech__list li {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
}


/* ─── Producción (sección destacada en oscuro) ─── */
.produccion__head { margin-bottom: var(--space-6); }
.produccion__head .produccion__title { max-width: none; }
.produccion__title { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.025em; line-height: 1.05; }
.produccion__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: var(--space-6);
  align-items: stretch;
}
@media (max-width: 920px) {
  .produccion__grid { grid-template-columns: 1fr; gap: var(--space-5); }
}
.produccion__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 52ch;
}
.produccion__copy .lead { margin: 0; }
.produccion__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
}
.produccion__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1.4s var(--ease-cinematic);
}
.produccion__media:hover img { transform: scale(1.03); }
@media (max-width: 920px) {
  .produccion__media { max-width: 460px; aspect-ratio: 16 / 10; }
}

/* ─── Barra de confianza (bajo el hero) ─── */
.trustbar {
  background: var(--ink-deep);
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--rule-dark);
  padding: 16px 0;
}
.trustbar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
}
.trustbar__list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-on-dark-muted);
}
.trustbar__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .trustbar { padding: 14px 0; }
  .trustbar__list { gap: 8px 18px; }
  .trustbar__list li { font-size: 12px; }
}

/* ─── Esquema de la ruta de la señal — editorial, dentro de "Cómo funciona" ───
   Mismo lenguaje que la sección: puntos cuadrados cian (los de los verbos),
   tipografía en tinta/gris, líneas finas. El cian #22D3EE solo en rutas
   activas y nodos; el respaldo en gris discontinuo, en espera.            */
.wflow {
  margin-top: var(--space-6, 64px);
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.wflow__inner { padding: 26px 34px 6px; }

/* tipografía del esquema (svg) */
.wflow .diagram { width: 100%; height: auto; display: block; }
.wflow .wfk { fill: var(--text-subtle); font-size: 10px; font-weight: 600; letter-spacing: .18em; }
.wflow .wfl { fill: var(--text-subtle); font-size: 9px; font-weight: 600; letter-spacing: .16em; }
.wflow .wfn { fill: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.wflow .wfs { fill: var(--text-muted); font-size: 12px; }
.wflow .wfd { fill: var(--text); font-size: 11.5px; font-weight: 500; }

/* rutas */
.wflow .wfr { fill: none; }
.wflow .wfr.live { stroke: var(--cyan); stroke-width: 1.8; }
.wflow .wfr.dash { stroke: rgba(11, 18, 32, 0.28); stroke-width: 1.2; stroke-dasharray: 3 6; }

/* nodos: puntos cuadrados, como los de los verbos de la sección */
.wflow .wfdot { fill: var(--cyan); }
.wflow .wfdot--sm { fill: var(--ink); }
.wflow .wfdot--mut { fill: rgba(11, 18, 32, 0.22); }

/* señal en tránsito — cuadrados marca, solo por rutas activas */
.wflow .wfp { fill: var(--cyan); }
@keyframes wfFlow { from { offset-distance: 0%; } to { offset-distance: 100%; } }
/* Ruta A: producción → hub  (3 paquetes) */
.wflow .wp1  { offset-path: path('M 140 130 C 280 130, 360 88, 480 88 C 560 88, 630 112, 653 128'); offset-rotate: 0deg; animation: wfFlow 2.6s linear infinite; }
.wflow .wp1b { offset-path: path('M 140 130 C 280 130, 360 88, 480 88 C 560 88, 630 112, 653 128'); offset-rotate: 0deg; animation: wfFlow 2.6s linear infinite; animation-delay: .87s; }
.wflow .wp1c { offset-path: path('M 140 130 C 280 130, 360 88, 480 88 C 560 88, 630 112, 653 128'); offset-rotate: 0deg; animation: wfFlow 2.6s linear infinite; animation-delay: 1.73s; }
/* Ruta B: producción → hub  (3 paquetes) */
.wflow .wp2  { offset-path: path('M 140 130 C 350 130, 510 130, 653 130'); offset-rotate: 0deg; animation: wfFlow 3.2s linear infinite; animation-delay: .7s; }
.wflow .wp2b { offset-path: path('M 140 130 C 350 130, 510 130, 653 130'); offset-rotate: 0deg; animation: wfFlow 3.2s linear infinite; animation-delay: 1.77s; }
.wflow .wp2c { offset-path: path('M 140 130 C 350 130, 510 130, 653 130'); offset-rotate: 0deg; animation: wfFlow 3.2s linear infinite; animation-delay: 2.83s; }
/* Hub → CDN  (2 paquetes) */
.wflow .wp3  { offset-path: path('M 667 129 C 720 128, 750 92, 838 92');  offset-rotate: 0deg; animation: wfFlow 2.5s linear infinite; animation-delay: .4s; }
.wflow .wp3b { offset-path: path('M 667 129 C 720 128, 750 92, 838 92');  offset-rotate: 0deg; animation: wfFlow 2.5s linear infinite; animation-delay: 1.65s; }
/* Hub → Televisión  (2 paquetes) */
.wflow .wp4  { offset-path: path('M 667 130 C 730 130, 770 130, 838 130'); offset-rotate: 0deg; animation: wfFlow 3s linear infinite; animation-delay: 1.1s; }
.wflow .wp4b { offset-path: path('M 667 130 C 730 130, 770 130, 838 130'); offset-rotate: 0deg; animation: wfFlow 3s linear infinite; animation-delay: 2.6s; }
/* Hub → Redes sociales  (2 paquetes) */
.wflow .wp5  { offset-path: path('M 667 131 C 720 132, 750 168, 838 168'); offset-rotate: 0deg; animation: wfFlow 2.8s linear infinite; }
.wflow .wp5b { offset-path: path('M 667 131 C 720 132, 750 168, 838 168'); offset-rotate: 0deg; animation: wfFlow 2.8s linear infinite; animation-delay: 1.4s; }

/* fallback móvil: lista vertical 01→04 */
.wflow .mob-flow { display: none; }
@media (max-width: 860px) {
  .wflow__inner { padding: 8px 22px; }
  .wflow .diagram { display: none; }
  .wflow .mob-flow { display: block; }
  .wflow .mstep { display: flex; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .wflow .mstep:last-child { border-bottom: none; }
  .wflow .mstep .mk { flex: 0 0 26px; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--text-subtle); }
  .wflow .mstep .mt { font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
  .wflow .mstep .md { font-size: 13px; color: var(--text-muted); margin-top: 3px; line-height: 1.45; }
}

/* pie: leyenda + continuidad */
.wflow__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--rule); padding: 14px 34px; flex-wrap: wrap;
}
.wflow .legend { display: flex; gap: 22px; flex-wrap: wrap; }
.wflow .lg { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-muted); }
.wflow .lg .sw { width: 18px; height: 0; }
.wflow .lg .sw.live { border-top: 2px solid var(--cyan); }
.wflow .lg .sw.std { border-top: 1.4px dashed rgba(11, 18, 32, 0.35); }
.wflow .uptime { font-size: 11.5px; color: var(--text-subtle); }
.wflow .uptime b { color: var(--ink); font-weight: 600; }

/* movimiento reducido: esquema estático, sin señal en tránsito */
@media (prefers-reduced-motion: reduce) {
  .wflow .wfp { animation: none !important; display: none; }
}

/* ─── Para quién — casos de uso ─── */
/* ─── Cuña / caso real — banda parallax (cortinilla a otra velocidad) ─── */
.cuna {
  position: relative;
  height: clamp(360px, 56vh, 600px);
  overflow: hidden;
  background: var(--ink);
}
.cuna__media { position: absolute; inset: -16% 0; z-index: 0; }
.cuna__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  will-change: transform;
}
.cuna__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,18,32,0.5) 0%, rgba(11,18,32,0) 30%, rgba(11,18,32,0.55) 64%, rgba(11,18,32,0.96) 100%),
    linear-gradient(90deg, rgba(11,18,32,0.92) 0%, rgba(11,18,32,0.4) 46%, rgba(11,18,32,0) 72%);
}
.cuna__inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  color: var(--text-on-dark);
  text-align: left;
  text-shadow: 0 1px 24px rgba(11, 18, 32, 0.7);
}
.cuna__event {
  margin: 0;
  max-width: 48ch;
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(23px, 3vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: #fff;
}
.cuna__did {
  margin: var(--space-4) 0 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.8);
}
.cuna__did strong { color: #fff; font-weight: 600; }
@media (max-width: 560px) {
  .cuna { height: clamp(320px, 64vh, 460px); }
  .cuna__event { font-size: clamp(20px, 5.5vw, 30px); }
}
@media (prefers-reduced-motion: reduce) {
  .cuna__media img { transform: none !important; }
}

.paraquien { background: var(--paper); }
.paraquien .section-head .h-section { max-width: 40ch; }
.usecases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
@media (max-width: 920px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .usecases { grid-template-columns: 1fr; } }
.usecase {
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: var(--space-4);
  background: #fff;
  transition: border-color 0.4s var(--ease-cinematic), transform 0.4s var(--ease-cinematic), box-shadow 0.4s var(--ease-cinematic);
}
.usecase:hover {
  transform: translateY(-3px);
  border-color: var(--text-subtle);
  box-shadow: 0 20px 44px -28px rgba(11, 18, 32, 0.35);
}
.usecase__mark {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--ink);
  margin-bottom: 18px;
}
.usecase__mark::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: var(--cyan);
}
.usecase h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.usecase p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Modelo: titular "player global" a mayor tamaño (statement) */
/* ─── EL MODELO — "player global" (portado de boceto-1) ───────────────────
   Misma imagen de fondo, mismo tamaño de texto, misma distribución y mismo
   texto que boceto-1; tipografía Inter (la del sitio actual). Variables
   remapeadas a las del sitio (--text-on-dark, --text-on-dark-muted,
   --ease-cinematic). El color claro lo aporta .section--dark en el markup. */
#modelo.scene {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  overflow: hidden;
}
#modelo .scene-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
#modelo .scene-bg img {
  width: 100%; height: 120%;
  object-fit: cover;
  will-change: transform; transform: translateY(0);
}
#modelo .scene-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,10,20,0.95) 0%, rgba(6,10,20,0.55) 24%, rgba(6,10,20,0.55) 70%, rgba(6,10,20,0.96) 100%),
    linear-gradient(270deg, rgba(6,10,20,0.86) 0%, rgba(6,10,20,0.25) 60%, transparent 100%);
}
#modelo .player-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1320px; margin: 0 auto;
  padding: 14vh 48px;
  display: flex; flex-direction: column; justify-content: center;
}
#modelo .kicker {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500; color: var(--cyan);
}
#modelo .kicker::before { content: ""; width: 34px; height: 1px; background: var(--cyan); opacity: .85; }
#modelo .player-inner h2 {
  font-size: clamp(34px, 5vw, 72px); font-weight: 300; line-height: 1.02;
  letter-spacing: -0.03em; max-width: 15ch; margin-top: 22px;
}
#modelo .player-inner h2 b { font-weight: 600; }
#modelo .player-lead {
  font-size: clamp(17px, 1.7vw, 23px); font-weight: 300; color: var(--text-on-dark);
  margin-top: 24px; max-width: 30ch; line-height: 1.35; letter-spacing: -0.01em;
}
#modelo .player-body {
  font-size: 15px; font-weight: 300; color: var(--text-on-dark-muted); line-height: 1.7;
  margin-top: 22px; max-width: 54ch;
}
#modelo .player-body b { color: var(--text-on-dark); font-weight: 500; }
/* proofs row */
#modelo .proofs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 54px; border-top: 1px solid var(--rule-dark); max-width: 1000px;
}
#modelo .proof { padding: 26px 28px 0 0; border-right: 1px solid var(--rule-dark); }
#modelo .proof:last-child { border-right: none; padding-right: 0; }
#modelo .proof .pn { font-size: 12px; color: var(--cyan); font-weight: 600; letter-spacing: 0.05em; }
#modelo .proof h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-top: 14px; }
#modelo .proof p { font-size: 13px; color: var(--text-on-dark-muted); line-height: 1.6; margin-top: 9px; font-weight: 300; }
/* stagger de revelado (boceto d1..d5) */
#modelo .d1 { transition-delay: .08s; }
#modelo .d2 { transition-delay: .18s; }
#modelo .d3 { transition-delay: .28s; }
#modelo .d4 { transition-delay: .4s; }
#modelo .d5 { transition-delay: .52s; }
@media (max-width: 760px) {
  #modelo .player-inner { padding-left: 24px; padding-right: 24px; }
  #modelo .proofs { grid-template-columns: 1fr; }
  #modelo .proof { border-right: none; border-bottom: 1px solid var(--rule-dark); padding: 22px 0; }
  #modelo .proof:last-child { border-bottom: none; }
}

/* ─── Hero (imagen de fondo) · copy resaltado estilo "texto seleccionado" a la derecha ─── */
.hero--bg { justify-content: center; padding-top: 184px; padding-bottom: 88px; }
.hero--bg .hero__inner {
  max-width: none;
  width: 100%;
  padding: 0 72px;              /* texto y cajetín alineados al margen derecho, con separación del borde */
  align-items: flex-end;        /* bloque pegado al margen derecho, separado de la cámara */
}
.hero--bg .hero__media img { object-position: 30% center; }
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
}
.hero--bg .hero__overlay {
  background:
    linear-gradient(90deg, rgba(11,18,32,0) 28%, rgba(11,18,32,0.58) 100%),
    linear-gradient(180deg, rgba(11,18,32,0.5) 0%, rgba(11,18,32,0) 22%);
}
.hero--bg .hero__headline {
  max-width: none;
  font-size: clamp(28px, 3.3vw, 48px);
  line-height: 1.55;            /* menos separación entre líneas, pero las barras de color no se tocan */
  text-align: left;            /* texto a la izquierda (el margen derecho lo fija el ancho de la columna) */
  text-shadow: none;
}
/* Resaltado: fondo azul oscuro corporativo que envuelve cada línea como una selección */
.hero__hl {
  background: var(--ink);
  color: #fff;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.1em 0.32em;
  border-radius: 1px;
}
/* "Comprueba…" — tarjeta BLANCA minimalista · tonos azul oscuro (ink) + azul claro corporativo (cyan) */

@media (max-width: 860px) {
  .hero--bg { padding-top: 96px; padding-bottom: 56px; }
  .hero--bg .hero__inner { padding: 0 24px; align-items: stretch; }
  .hero--bg .hero__headline { text-align: left; width: auto; }
  .hero__content { width: 100%; align-items: stretch; }
  .hl-br { display: none; }    /* en móvil el titular fluye sin salto forzado */
}
