/* ============================================================
   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;
}
.reveal-words .word__inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-cinematic);
  will-change: transform;
}
.reveal-words.in .word__inner {
  transform: translateY(0);
}

/* 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: 40px;
}
.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;
}
.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); }

.nav__cta {
  font-size: 13px;
  font-weight: 500;
  padding: 11px 22px;
  border: 1px solid rgba(255,255,255,0.30);
  transition: all 0.3s var(--ease-cinematic);
  color: var(--text-on-dark);
  letter-spacing: 0.02em;
}
.nav.on-light .nav__cta {
  color: var(--ink);
  border-color: var(--ink);
}
.nav__cta:hover {
  background: var(--text-on-dark);
  color: var(--ink);
  border-color: var(--text-on-dark);
}
.nav.on-light .nav__cta:hover {
  background: var(--ink);
  color: var(--text-on-dark);
}

/* 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: 860px) {
  .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); }
  .nav__links .nav__cta {
    margin-top: 24px;
    align-self: stretch;
    text-align: center;
    font-size: 14px;
    padding: 14px 22px;
    color: var(--text-on-dark);
    border-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);
}
.hero__sub {
  margin-top: var(--space-4);
  max-width: 88ch;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: #FFFFFF;
  font-weight: 400;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s var(--ease-cinematic), transform 1s var(--ease-cinematic);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 3px 14px rgba(0, 0, 0, 0.45);
}
.hero__sub.in { opacity: 1; transform: none; }
@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 sello ─── */
.cuna {
  background: var(--ink);
  color: var(--text-on-dark);
  text-align: center;
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) {
  .cuna { padding: var(--section-y-sm) 0; }
}
.cuna::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.cuna .wrap--narrow {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}
.cuna h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  margin: 0 auto;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.cuna__line {
  display: block;
  will-change: transform;
}
.cuna p {
  margin-top: var(--space-3);
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-on-dark-muted);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ─── 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;
}

/* ─── Cobertura ─── */
.cobertura {
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
}
.cobertura__head {
  margin-bottom: var(--space-6);
}
.cobertura__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 920px) {
  .cobertura__grid { grid-template-columns: 1fr; gap: var(--space-5); }
}
.cobertura__copy { max-width: 52ch; }
.cobertura__copy .key-quote { margin-top: var(--space-5); }

/* Globe */
.cobertura__globe {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-top: calc(-1 * var(--space-7));
  top: 40px;
}
.cobertura__globe::before {
  content: "";
  display: block;
  padding-bottom: 100%;
}
@media (max-width: 920px) {
  .cobertura__globe { margin: 0 auto; max-width: 420px; top: 0; }
}
.globe__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.globe__legend {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.globe__legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.18);
  display: inline-block;
}
.cobertura .globe__legend { color: var(--text-on-dark-muted); }

/* ─── Contacto ─── */
.contacto {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  text-align: center;
  padding: var(--section-y) 0;
}
@media (max-width: 720px) {
  .contacto { padding: var(--section-y-sm) 0; }
}
.contacto .eyebrow { justify-content: center; }
.contacto h2 {
  font-size: clamp(20px, 2.2vw, 30px);
  max-width: 24ch;
  margin: var(--space-3) auto var(--space-3);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.contacto h2 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity .2s ease;
}
.contacto h2 a:hover { opacity: .65; }

/* Mobile sticky CTA */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 14px;
    left: 14px;
    right: 14px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--ink);
    color: var(--text-on-dark);
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    z-index: 90;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    transition: opacity 0.3s var(--ease-cinematic), transform 0.3s var(--ease-cinematic);
    text-decoration: none;
  }
  .mobile-cta__arrow { transition: transform 0.3s var(--ease-cinematic); }
  .mobile-cta:active .mobile-cta__arrow { transform: translateX(4px); }
  .mobile-cta.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
  }
  body.nav-open .mobile-cta {
    opacity: 0;
    pointer-events: none;
  }
}
.contacto p {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto var(--space-5);
  line-height: 1.55;
}
.ctas {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.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: 13px;
  line-height: 1.85;
}
.footer__location { opacity: 0.7; }
@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);
}
