/* ═══ netzdi.com — sistema de diseño ═══
   Disciplina heredada del video: mucho blanco, navy como tinta,
   magenta con avaricia (botones primarios y el badge, nada más). */

:root {
  --navy: #0a1630;
  --navy-suave: #4a5a78;
  --gris-texto: #55627a;
  --gris-ui: #e6e9ef;
  --hueso: #f4f2ee;
  --blanco: #ffffff;
  --magenta: #e8336d;
  --magenta-oscuro: #c9235a;
  --radio: 10px;
  --sombra: 0 24px 60px rgba(10, 22, 48, 0.10);
  --fuente: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--fuente);
  color: var(--navy);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 14px;
}

/* ── Botones ── */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-primary {
  background: var(--magenta);
  color: #fff;
}
.btn-primary:hover {
  background: var(--magenta-oscuro);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(232, 51, 109, 0.32);
}
.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--gris-ui); }

/* ── Franja clientes ── */
.strip-clientes {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 13.5px;
  padding: 8px 16px;
}
.strip-clientes a { color: #fff; font-weight: 600; }

/* ── Navegación ──
   Vidrio esmerilado estilo Basis: el video del hero pasa por debajo de la
   barra y se ve difuminado a través de ella. Al hacer scroll se solidifica. */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--gris-ui);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 72px;
}
.nav-logo img { height: 40px; display: block; }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a {
  color: var(--navy-suave);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  /* estilo Basis: el video protagoniza y el texto vive en la franja
     inferior, donde el encuadre está tranquilo */
  align-items: flex-end;
  overflow: hidden;
  background: var(--hueso);
  /* el video corre por debajo de la barra de vidrio */
  margin-top: -72px;
  padding-top: 72px;
  padding-bottom: 60px;
}
.hero-video-wrap { position: absolute; inset: 0; }
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-veil {
  position: absolute;
  inset: 0;
  /* El video se ve pleno; solo un fundido suave hacia abajo para que la
     franja de texto siempre tenga piso legible */
  background: linear-gradient(180deg,
    rgba(244, 242, 238, 0) 48%,
    rgba(244, 242, 238, 0.55) 80%,
    rgba(244, 242, 238, 0.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.hero h1 {
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 700;
  max-width: 640px;
}
.hero-sub {
  margin-top: 14px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--gris-texto);
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }
.hero-actions.center { justify-content: center; }

/* ── Rutas ── */
.rutas { padding: 84px 0; background: var(--blanco); }
.rutas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.ruta {
  display: block;
  padding: 40px 42px;
  border: 1px solid var(--gris-ui);
  border-radius: var(--radio);
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ruta:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.ruta-k {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--magenta);
}
.ruta h3 { margin: 12px 0 10px; }
.ruta p { color: var(--gris-texto); }
.ruta-go { display: inline-block; margin-top: 18px; font-weight: 600; }

/* ── Problema ── */
.problema { padding: 96px 0; background: var(--hueso); }
.problema h2 { margin-bottom: 22px; }
.problema p { font-size: 19px; color: var(--gris-texto); }

/* ── Momento mágico ── */
.magia { padding: 110px 0; }
.magia-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.magia-head p { margin-top: 16px; color: var(--gris-texto); font-size: 18px; }

.magia-demo { max-width: 860px; margin: 0 auto; }
.cufe-bar {
  display: flex;
  gap: 12px;
  background: var(--blanco);
  border: 1px solid var(--gris-ui);
  border-radius: var(--radio);
  padding: 12px;
  box-shadow: var(--sombra);
}
.cufe-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--navy);
  padding: 0 10px;
  background: transparent;
  text-overflow: ellipsis;
}
.cufe-status {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
  color: var(--gris-texto);
  font-size: 15.5px;
}
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid var(--gris-ui);
  border-top-color: var(--magenta);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cufe-result { margin-top: 30px; text-align: center; }
.doc {
  text-align: left;
  background: var(--blanco);
  border: 1px solid var(--gris-ui);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  padding: 34px 40px;
}
.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--gris-ui);
  padding-bottom: 18px;
}
.doc-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris-texto);
}
.doc-num { font-size: 30px; font-weight: 800; margin-top: 4px; }
.doc-badge {
  background: var(--magenta);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.8, 0.5, 1);
}
.doc-badge.on { opacity: 1; transform: scale(1); }
.doc-meta { display: flex; gap: 48px; margin: 18px 0 6px; flex-wrap: wrap; }
.doc-meta span {
  display: block;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gris-texto);
}
.doc-meta strong { font-size: 15.5px; font-weight: 600; }
.doc-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.doc-table th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gris-texto);
  border-bottom: 2px solid var(--gris-ui);
  padding-bottom: 8px;
  font-weight: 600;
}
.doc-table th:not(:first-child), .doc-table td:not(:first-child) { text-align: right; }
.doc-table td { padding: 11px 0; border-bottom: 1px solid var(--gris-ui); }
.doc-row { opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease; }
.doc-row.on { opacity: 1; transform: none; }
.doc-tot { max-width: 300px; margin-left: auto; margin-top: 16px; font-size: 15px; color: var(--gris-texto); }
.doc-trow { display: flex; justify-content: space-between; padding: 5px 0; opacity: 0; transition: opacity 0.4s ease; }
.doc-trow.on { opacity: 1; }
.doc-grand {
  border-top: 2px solid var(--navy);
  margin-top: 6px;
  padding-top: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}
.magia-nota { margin: 26px 0 20px; font-size: 17px; color: var(--gris-texto); }
.magia-bandeja { max-width: 980px; margin: 72px auto 0; }
.magia-bandeja .magia-nota { margin: 18px 0 0; font-size: 15.5px; }
.magia-video { max-width: 980px; margin: 72px auto 0; }
.magia-video .magia-nota { margin: 18px 0 0; font-size: 15.5px; }
.mod-shot.has-img video { width: 100%; height: auto; display: block; }

/* ── Módulos ── */
.modulos { padding: 100px 0; background: var(--hueso); }
.mod-head { text-align: center; margin-bottom: 56px; }
.mod-item {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
  padding: 36px 0;
}
.mod-item:nth-child(odd) .mod-txt { order: 2; }
.mod-txt h3 { margin-bottom: 12px; }
.mod-txt p { color: var(--gris-texto); font-size: 17px; }
.mod-shot {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  background: var(--blanco);
  aspect-ratio: 16 / 10;
}
.mod-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* captura real: la imagen manda su propia proporción, sin recortes */
.mod-shot.has-img { aspect-ratio: auto; border: 1px solid var(--gris-ui); }
.mod-shot.has-img img { height: auto; object-fit: unset; }

/* ciclo de dos capturas: crossfade en CSS puro (el "gif" sin GIF) */
.shot-cycle {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #fff;
  border: 1px solid var(--gris-ui);
}
.shot-cycle img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 94%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: cycleA 14s ease-in-out infinite;
}
.shot-cycle img + img { animation-name: cycleB; opacity: 0; }
@keyframes cycleA {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes cycleB {
  0%, 42% { opacity: 0; }
  50%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .shot-cycle img { animation: none; }
  .shot-cycle img + img { opacity: 0; }
}
.mod-shot.placeholder {
  display: grid;
  place-items: center;
  border: 2px dashed var(--gris-ui);
  box-shadow: none;
  color: var(--gris-texto);
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.4px;
}
.mod-shot.placeholder em { font-style: normal; color: var(--navy-suave); font-size: 13px; }
.mod-shot.wide { aspect-ratio: 21 / 9; margin: 40px 0; }

/* ── Contadores ── */
.contadores { padding: 110px 0; background: var(--navy); color: #fff; }
.contadores .kicker { color: var(--magenta); }
.cont-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.cont-head p { margin-top: 16px; color: rgba(255, 255, 255, 0.72); font-size: 18px; }
.cont-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.cont-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radio);
  padding: 30px 32px;
}
.cont-card h4 { font-size: 19px; margin-bottom: 8px; }
.cont-card p { color: rgba(255, 255, 255, 0.72); font-size: 15.5px; }
.contadores .mod-shot.placeholder {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
}
.contadores .mod-shot.placeholder em { color: rgba(255, 255, 255, 0.8); }
.contadores .center { margin-top: 16px; }

/* ── Precios ── */
.precios { padding: 110px 0; }
.prec-head { text-align: center; margin-bottom: 52px; }
.prec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.prec-card {
  position: relative;
  border: 1px solid var(--gris-ui);
  border-radius: var(--radio);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.prec-card.destacado {
  border-color: var(--magenta);
  box-shadow: var(--sombra);
}
.prec-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--magenta);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.prec-card h4 { font-size: 21px; }
.prec-desc { color: var(--gris-texto); font-size: 14.5px; margin: 8px 0 18px; }
.prec-precio { font-size: 15px; color: var(--gris-texto); margin-bottom: 20px; }
.prec-precio strong {
  font-size: 32px; color: var(--navy); font-weight: 800; margin: 0 4px;
  /* Sin esto, «/empresa/mes» empuja el renglón y el $ se queda solo arriba. */
  white-space: nowrap;
}
.prec-card ul { list-style: none; }
.prec-card li {
  padding: 8px 0 8px 26px;
  font-size: 15px;
  color: var(--navy-suave);
  position: relative;
}
.prec-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--magenta);
  font-weight: 700;
}
.prec-serv { margin-top: 56px; }
.prec-serv h3 { text-align: center; font-size: 24px; margin-bottom: 28px; }
.serv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.serv-item {
  border: 1px solid var(--gris-ui);
  border-radius: var(--radio);
  padding: 26px 24px;
  background: var(--hueso);
}
.serv-precio {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.serv-precio em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--gris-texto); }
.serv-precio.gratis { color: var(--magenta); }
.serv-item h5 { font-size: 16px; margin-bottom: 8px; }
.serv-item p { font-size: 14px; color: var(--gris-texto); line-height: 1.55; }
.prec-nota { text-align: center; margin-top: 36px; color: var(--gris-texto); }

/* ── Cierre ── */
.cierre { padding: 120px 0; background: var(--hueso); }
.cierre h2 { margin-bottom: 34px; }

/* ── Footer ── */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.65); padding: 48px 0; }
.footer-inner { text-align: center; font-size: 14px; }
.footer-logo { height: 34px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-links a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ── Lightbox: clic en una captura para verla grande ── */
.mod-shot img { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(10, 22, 48, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 34px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.lightbox-close:hover { color: #fff; }

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.on { opacity: 1; transform: none; }

/* ── Móvil ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .rutas-grid, .cont-grid, .prec-grid, .serv-grid { grid-template-columns: 1fr; }
  .mod-item { grid-template-columns: 1fr; gap: 22px; }
  .mod-item:nth-child(odd) .mod-txt { order: 0; }
  .hero { min-height: 72vh; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  /* en móvil no se carga el video: manda el póster */
  .hero-video { display: none; }
  .hero-video-wrap {
    background: url("../assets/video/netzdi-hero-poster.jpg") center / cover no-repeat;
  }
  .hero-veil {
    background: linear-gradient(180deg,
      rgba(244, 242, 238, 0.92) 0%,
      rgba(244, 242, 238, 0.75) 100%);
  }
  .doc { padding: 22px; }
  .doc-meta { gap: 22px; }
}


/* ══════════════════════════════════════════════════════════════════
   Páginas legales (política de datos)
   Texto largo para leer, no para vender: columna angosta, interlínea
   generosa y jerarquía sobria. Sin animaciones.
   ══════════════════════════════════════════════════════════════════ */

.legal { padding: 140px 0 90px; background: var(--blanco); }
.legal .container { max-width: 760px; }

.legal-k {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--magenta); margin-bottom: 14px;
}

.legal h1 {
  font-size: 40px; line-height: 1.18; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 18px;
}

.legal-meta {
  font-size: 14px; color: var(--navy-suave); line-height: 1.7;
  padding-bottom: 26px; border-bottom: 1px solid var(--gris-ui); margin-bottom: 30px;
}

.legal-intro { font-size: 19px; line-height: 1.75; color: var(--gris-texto); }

.legal h2 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.01em;
  margin: 48px 0 14px; padding-top: 22px; border-top: 1px solid var(--gris-ui);
}

.legal h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; }

.legal p { color: var(--gris-texto); margin-bottom: 16px; }

.legal ul { color: var(--gris-texto); margin: 0 0 20px 22px; }
.legal li { margin-bottom: 10px; }

.legal a { color: var(--magenta); text-decoration: none; border-bottom: 1px solid rgba(232, 51, 109, 0.35); }
.legal a:hover { border-bottom-color: var(--magenta); }

.legal strong { color: var(--navy); font-weight: 600; }

/* El aviso que más se consulta: quién responde por los datos de un empleado */
.legal-nota {
  background: var(--hueso); border-left: 3px solid var(--magenta);
  padding: 20px 22px; border-radius: 0 var(--radio) var(--radio) 0;
  font-size: 15px; margin: 22px 0 8px;
}

.legal-tabla {
  width: 100%; border-collapse: collapse; margin: 18px 0 24px;
  font-size: 15px; color: var(--gris-texto);
}
.legal-tabla th, .legal-tabla td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--gris-ui);
  vertical-align: top;
}
.legal-tabla thead th {
  color: var(--navy); font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-bottom: 2px solid var(--gris-ui);
}
.legal-tabla tbody th { color: var(--navy); font-weight: 600; width: 34%; }

.legal-volver {
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--gris-ui);
  font-size: 15px;
}

@media (max-width: 900px) {
  .legal { padding: 110px 0 64px; }
  .legal h1 { font-size: 30px; }
  .legal h2 { font-size: 21px; }
  .legal-intro { font-size: 17px; }
  .legal-tabla, .legal-tabla tbody, .legal-tabla tr, .legal-tabla td, .legal-tabla th { display: block; }
  .legal-tabla thead { display: none; }
  .legal-tabla tr { padding: 6px 0; border-bottom: 1px solid var(--gris-ui); }
  .legal-tabla th, .legal-tabla td { border: 0; padding: 4px 0; width: auto; }
}

/* ── La cuenta: comprar por módulos vs. todo junto ──
   Dos columnas que se leen como una resta. La nuestra pesa mediante el
   borde magenta y el fondo, no mediante un tamaño distinto: si la columna
   propia fuera más grande, la comparación dejaría de parecer una cuenta. */
.prec-compara { margin-top: 56px; }
.prec-compara h3 { text-align: center; font-size: 24px; margin-bottom: 10px; }
.compara-intro {
  text-align: center; color: var(--gris-texto); max-width: 620px;
  margin: 0 auto 30px; font-size: 16px;
}
.compara-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.compara-col {
  border: 1px solid var(--gris-ui); border-radius: var(--radio);
  padding: 30px 28px; background: var(--hueso);
  display: flex; flex-direction: column;
}
.compara-col.compara-nuestra {
  border-color: var(--magenta); background: var(--blanco); box-shadow: var(--sombra);
}
.compara-k {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy-suave); margin-bottom: 18px;
}
.compara-nuestra .compara-k { color: var(--magenta); }
.compara-lista { list-style: none; margin: 0 0 18px; }
.compara-lista li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--gris-ui);
  color: var(--gris-texto); font-size: 15px;
}
.compara-lista b { color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.compara-nuestra .compara-lista b { color: var(--magenta); }
.compara-total {
  margin-top: auto; font-size: 34px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--navy); font-variant-numeric: tabular-nums;
}
.compara-total span { font-size: 16px; font-weight: 500; color: var(--navy-suave); }
.compara-nota { font-size: 13px; color: var(--navy-suave); margin-top: 10px; line-height: 1.55; }
.compara-ahorro {
  text-align: center; margin-top: 26px; font-size: 19px; color: var(--gris-texto);
}
.compara-ahorro strong { color: var(--magenta); font-weight: 700; }
.compara-pie {
  text-align: center; margin-top: 14px; font-size: 12.5px; line-height: 1.6;
  color: var(--navy-suave); max-width: 680px; margin-left: auto; margin-right: auto;
}

@media (max-width: 900px) {
  .compara-grid { grid-template-columns: 1fr; }
  .compara-total { font-size: 30px; }
}

/* ── Los dos carriles del canal de contadores ──
   Van dentro de la sección navy, así que todo se define sobre fondo oscuro. */
.carriles { margin-top: 56px; }
.carriles h3 { text-align: center; font-size: 26px; margin-bottom: 10px; }
.carriles-intro {
  text-align: center; color: rgba(255, 255, 255, 0.72);
  max-width: 620px; margin: 0 auto 34px;
}
.carriles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.carril {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radio); padding: 30px 28px;
}
.carril-n {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--magenta); margin-bottom: 12px;
}
.carril h4 { font-size: 19px; margin-bottom: 12px; }
.carril p { color: rgba(255, 255, 255, 0.72); font-size: 15px; margin-bottom: 18px; }
.carril strong { color: #fff; font-weight: 600; }
.carril-lista { list-style: none; margin: 0; }
.carril-lista li {
  padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8); font-size: 15px;
}
.carril-lista b { color: var(--magenta); font-weight: 700; }

/* ── La calculadora ──
   El número que sale de aquí es el argumento entero: un contador no adopta un
   ERP, adopta una línea de ingreso. Por eso se ve el resultado sin pulsar nada. */
.calc {
  margin-top: 26px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radio); padding: 30px 28px;
}
.calc h4 { text-align: center; font-size: 20px; margin-bottom: 22px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.calc-col { display: flex; flex-direction: column; }
.calc-k {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--magenta); margin-bottom: 16px;
}
.calc-campo { display: block; margin-bottom: 14px; }
.calc-campo span {
  display: block; font-size: 13px; color: rgba(255, 255, 255, 0.65); margin-bottom: 6px;
}
.calc-campo input {
  width: 100%; padding: 11px 14px; font-family: var(--mono); font-size: 16px;
  color: #fff; background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px;
}
.calc-campo input:focus { outline: none; border-color: var(--magenta); }
.calc-res {
  margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.calc-res-mes {
  display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  color: #fff; font-variant-numeric: tabular-nums;
}
.calc-res-anio {
  display: block; font-size: 15px; color: var(--magenta); font-weight: 600; margin-top: 2px;
}
.calc-nota { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-top: 10px; line-height: 1.5; }
.calc-pie {
  text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, 0.5);
  margin-top: 22px; line-height: 1.6;
}

@media (max-width: 900px) {
  .carriles-grid, .calc-grid { grid-template-columns: 1fr; }
  .carriles h3 { font-size: 22px; }
}

/* ── «Hasta el costo real» — producción y verticales ──
   Fondo hueso para separarla de los módulos (blanco) y de contadores (navy),
   sin meter un tercer color de marca. */
.costo { padding: 110px 0; background: var(--hueso); }
.costo .cont-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.costo .cont-head p { margin-top: 16px; color: var(--gris-texto); font-size: 18px; }
.costo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.costo-card {
  background: var(--blanco); border: 1px solid var(--gris-ui);
  border-radius: var(--radio); padding: 30px 28px;
}
.costo-k {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--magenta); margin-bottom: 12px;
}
.costo-card h4 { font-size: 19px; margin-bottom: 10px; }
.costo-card p { color: var(--gris-texto); font-size: 15px; }
.costo-pie {
  text-align: center; margin-top: 32px; color: var(--navy-suave); font-size: 15px;
}

@media (max-width: 900px) {
  .costo { padding: 72px 0; }
  .costo-grid { grid-template-columns: 1fr; }
}
/* ── 2026-10: asistente, temporada del contador, crecer, escuela ── */
.mod-extra { margin-top: 14px; font-size: 15px; color: var(--navy-suave); }
.mod-shot.chat-mock { aspect-ratio: auto; height: auto; overflow: visible; }
.chat-mock {
  display: flex; flex-direction: column; gap: 12px; padding: 26px;
  background: var(--hueso); border-radius: var(--radio); box-shadow: var(--sombra);
}
.chat-b { max-width: 88%; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.chat-yo { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.chat-ia { align-self: flex-start; background: #fff; color: var(--navy); border: 1px solid var(--gris-ui); border-bottom-left-radius: 4px; }
.chat-fila { display: flex; justify-content: space-between; gap: 24px; font-family: var(--mono); font-size: 13px; }
.chat-fila:first-of-type { margin-top: 8px; }
.chat-tot { border-top: 1px solid var(--gris-ui); margin-top: 4px; padding-top: 4px; font-weight: 600; }
.chat-btn {
  display: inline-block; margin-top: 10px; padding: 5px 14px; border-radius: 999px;
  background: var(--magenta); color: #fff; font-size: 13px; font-weight: 600;
}

.temporada { margin-top: 64px; }
.temporada h3 { text-align: center; }
.temporada-intro { text-align: center; color: rgba(255, 255, 255, 0.72); margin: 10px auto 32px; max-width: 620px; }
.temporada-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.prec-anual {
  margin: 32px auto 0; max-width: 720px; text-align: center; padding: 16px 22px;
  border: 1px dashed var(--magenta); border-radius: var(--radio); color: var(--navy-suave);
}
.prec-anual strong { color: var(--navy); }
.prec-suma { margin-top: 64px; }
.prec-suma h3 { text-align: center; }
.suma-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.suma-item {
  border: 1px solid var(--gris-ui); border-radius: var(--radio); padding: 22px 22px 18px;
  display: flex; flex-direction: column;
}
.suma-item h5 { font-size: 16px; margin-bottom: 6px; }
.suma-item p { font-size: 14px; color: var(--gris-texto); flex: 1; }
.suma-item span { margin-top: 12px; font-weight: 800; color: var(--navy); }

.aprende { padding: 110px 0; background: var(--hueso); }
.aprende-intro { margin: 16px auto 0; max-width: 620px; color: var(--gris-texto); font-size: 18px; }
.aprende-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aprende-item {
  background: #fff; border: 1px solid var(--gris-ui); border-radius: var(--radio);
  padding: 30px 28px; display: flex; flex-direction: column;
}
.aprende-k { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--magenta); }
.aprende-item h4 { font-size: 20px; margin: 10px 0 8px; }
.aprende-item p { font-size: 15px; color: var(--gris-texto); flex: 1; }
.aprende-item a { margin-top: 18px; font-weight: 600; color: var(--navy); text-decoration: none; }
.aprende-item a:hover { color: var(--magenta); }

@media (max-width: 900px) {
  .temporada-grid, .suma-grid, .aprende-grid { grid-template-columns: 1fr; }
  .chat-b { max-width: 100%; }
}

/* ── Galería de informes (contadores) ── */
.galeria { margin-top: 64px; }
.galeria-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 22px; }
.galeria-tab {
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent; color: rgba(255, 255, 255, 0.8);
}
.galeria-tab.activo { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.galeria-marco {
  max-width: 920px; margin: 0 auto; border-radius: var(--radio); overflow: hidden;
  background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.galeria-barra { display: flex; gap: 7px; padding: 11px 14px; background: #e9ecf2; }
.galeria-barra span { width: 11px; height: 11px; border-radius: 50%; background: #c5cad6; }
.galeria-vista { display: grid; max-height: 600px; overflow: hidden; }
.galeria-vista img {
  grid-area: 1 / 1; width: 100%; height: auto; display: block;
  opacity: 0; transition: opacity 0.6s ease; align-self: start;
}
.galeria-vista img.activo { opacity: 1; }
.galeria-pie { text-align: center; color: rgba(255, 255, 255, 0.65); font-size: 14.5px; margin-top: 18px; }
@media (max-width: 900px) { .galeria-vista { max-height: 420px; } }

/* La caja del CUFE se encoge en celular: sin min-width 0 un input flex no baja de su ancho natural y empuja el botón fuera de la pantalla */
.cufe-bar input { min-width: 0; }
.cufe-bar .btn { flex-shrink: 0; }

/* ── Portada: la ciudad de la operación (2026-10) ── */
.hero-ciudad { align-items: center; background: linear-gradient(180deg, var(--hueso), #fff); padding-bottom: 70px; }
.hc-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; width: 100%; }
.hc-txt h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; margin-bottom: 18px; }
.hc-txt .hero-sub { color: var(--gris-texto); font-size: 18px; margin-bottom: 28px; }
.hc-marco { border-radius: var(--radio); overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(10, 22, 48, 0.18); }
.hc-marco video { display: block; width: 100%; height: auto; }
.hc-marco figcaption { font-size: 12.5px; color: var(--gris-texto); padding: 8px 14px; border-top: 1px solid var(--gris-ui); }
@media (max-width: 900px) { .hc-grid { grid-template-columns: 1fr; gap: 28px; } }
/* La historia de los 5.000 años, ahora en el cierre */
.cierre-video { margin: 0 auto 40px; max-width: 760px; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); }
.cierre-video video { display: block; width: 100%; height: auto; }
/* La ciudad a todo lo ancho, debajo del texto: a media columna sus nombres y cifras no se leen */
.hc-grid { grid-template-columns: 1fr; gap: 36px; justify-items: center; }
.hc-txt { text-align: center; max-width: 820px; }
.hc-txt .hero-actions { justify-content: center; }
.hc-marco { width: 100%; max-width: 1100px; }
.hero-ciudad { padding-top: 110px; }
.hero-ciudad { padding-top: 84px; }
.hc-grid { gap: 26px; }
.hc-txt h1 { font-size: clamp(32px, 3.8vw, 48px); margin-bottom: 12px; }
.hc-txt .kicker { margin-bottom: 8px; }
.hc-txt .hero-sub { font-size: 17px; margin-bottom: 20px; }

/* ── Portada: la ciudad VIVA, con misiones (2026-10-13) ──
   El mismo plano isométrico del ERP, interactivo, sobre la foto de un día de la demo. */
.hc-marco.cv { max-width: 1132px; text-align: left; }
.cv-tablero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 12px 18px; border-bottom: 1px solid var(--gris-ui); background: #fff; }
.cv-cifras { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.cv-cifra { display: flex; flex-direction: column; line-height: 1.15; }
.cv-cifra b { font-size: 21px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.cv-cifra b.cv-rojo { color: #c62f4b; }
.cv-cifra span { font-size: 12.5px; color: var(--gris-texto); }
.cv-tablero .cv-fecha { font-size: 12.5px; color: var(--gris-texto); margin: 0; }
.cv-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "plano juego" "plano det"; grid-template-rows: auto 1fr; background: var(--hueso); }
.cv-plano { grid-area: plano; align-self: center; min-width: 0; background: var(--hueso); }
.cv-plano svg { display: block; width: 100%; height: auto; max-height: 640px; }
.cv-poster { display: block; width: 100%; height: auto; }
.cv-plano .cv-obj { cursor: pointer; }
.cv-plano .cv-obj:hover polygon, .cv-plano .cv-obj:focus-visible polygon { stroke: var(--navy); stroke-width: 1.6; }
.cv-plano .cv-obj:focus { outline: none; }
.cv-plano .cv-obj:focus-visible polygon:last-of-type { stroke: var(--magenta); stroke-width: 2.2; }
.cv-plano .cv-sel polygon { stroke: var(--navy); stroke-width: 2.2; }
.cv-plano .cv-guia polygon { stroke: var(--magenta); stroke-width: 2.4; animation: cv-guia 1.4s ease-in-out infinite; }
@keyframes cv-guia { 50% { stroke-opacity: .25; } }
.cv-plano text { font-family: var(--fuente); pointer-events: none; }
.cv-plano .cv-humo { animation: cv-humo 2.7s ease-out infinite; transform-box: fill-box; pointer-events: none; }
@keyframes cv-humo { 0% { opacity: .75; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(7px, -24px) scale(1.8); } }
@media (prefers-reduced-motion: reduce) { .cv-plano .cv-guia polygon { animation: none; } }

.cv-juego, .cv-det { background: #fff; border-left: 1px solid var(--gris-ui); padding: 16px 18px; min-width: 0; }
.cv-juego { grid-area: juego; border-bottom: 1px solid var(--gris-ui); }
.cv-det { grid-area: det; font-size: 14px; max-height: 380px; overflow-y: auto; }
.cv-m-vieja .cv-m-aprende { display: none; }
.cv-m-vieja .cv-m-texto { cursor: default; }
.cv-h { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 8px; }
.cv-juego-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cv-cuenta { font-size: 12.5px; font-weight: 700; color: var(--magenta); white-space: nowrap; }
.cv-barra { height: 6px; border-radius: 99px; background: var(--gris-ui); overflow: hidden; margin: 2px 0 12px; }
.cv-barra i { display: block; height: 100%; width: 0; background: var(--magenta); border-radius: 99px; transition: width .5s ease; }
.cv-misiones { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.cv-misiones li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid #f0eee9; }
.cv-misiones li:first-child { border-top: 0; }
.cv-m-marca { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: var(--gris-ui); color: var(--navy-suave); }
.cv-m-actual .cv-m-marca { background: var(--navy); color: #fff; }
.cv-m-actual .cv-m-texto { font-weight: 700; }
.cv-m-hecha .cv-m-marca { background: #2e9d6a; color: #fff; }
.cv-m-hecha .cv-m-texto { color: var(--gris-texto); text-decoration: line-through; text-decoration-color: rgba(85, 98, 122, .4); }
.cv-m-aprende { display: block; font-size: 12.5px; color: var(--navy-suave); margin-top: 3px; line-height: 1.45; }
.cv-m-pista { display: block; font-size: 12.5px; color: var(--magenta-oscuro); margin-top: 3px; }
.cv-pista, .cv-mas, .cv-ir { font: inherit; font-size: 12.5px; font-weight: 600; background: none; border: 0; padding: 0; color: var(--magenta-oscuro); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cv-pista { display: block; margin-top: 3px; }
.cv-mas { display: none; margin-top: 6px; }
.cv-libre { font-size: 12px; color: var(--gris-texto); margin: 10px 0 0; }
.cv-fin { flex-direction: column; background: #f3f8f5; border-radius: 8px; padding: 12px !important; margin-top: 6px; border: 0 !important; line-height: 1.5; }
.cv-fin-btn { display: block; text-align: center; margin-top: 10px; padding: 10px 16px; font-size: 14px; }
.cv-completo .cv-libre { display: none; }

.cv-det p { margin: 0 0 8px; }
.cv-gris { color: var(--gris-texto); font-size: 13px; }
.cv-sec { margin: 12px 0 6px !important; font-weight: 700; color: var(--navy); border-bottom: 1px solid #efede8; padding-bottom: 3px; }
.cv-dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0 0 10px; }
.cv-dl dt { color: var(--gris-texto); }
.cv-dl dd { margin: 0; text-align: right; font-weight: 600; }
.cv-lista { list-style: none; margin: 0 0 10px; padding: 0; }
.cv-lista li { padding: 5px 0; border-bottom: 1px solid #f0eee9; }
.cv-lista .cv-ir { font-size: 14px; }
.cv-det > div > .cv-ir { display: inline-block; margin: 0 0 8px; }
.cv-leyenda { list-style: none; margin: 0 0 10px; padding: 0; }
.cv-ley { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.cv-ley i { width: 14px; height: 14px; border-radius: 3px; flex: 0 0 14px; }
.cv-alertas { background: #fbe9ed; color: #a3213b; border-radius: 6px; padding: 6px 10px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.cv-logro { background: #eef7f1; border-left: 3px solid #2e9d6a; border-radius: 4px; padding: 8px 10px; margin-bottom: 10px; font-size: 13px; line-height: 1.45; }
.cv-demo { margin-top: 10px !important; }
.cv-demo a { font-weight: 700; color: var(--magenta-oscuro); text-decoration: none; }
.cv-demo a:hover { text-decoration: underline; }
.cv-chip { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; background: #eef0f4; color: #4d5566; }
.cv-c-abierta, .cv-c-entregado, .cv-c-recibido, .cv-c-done { background: #e7f4ec; color: #1e7a45; }
.cv-c-descuadre { background: #fbe9ed; color: #a3213b; }
.cv-c-en_camino, .cv-c-enviado, .cv-c-en_ruta, .cv-c-de_vuelta, .cv-c-confirmed, .cv-c-progress { background: #e6eff8; color: #1d5f99; }
.cv [hidden] { display: none !important; }
.cv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 900px) {
  .cv-cuerpo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "juego" "plano" "det"; grid-template-rows: auto; }
  .cv-juego, .cv-det { border-left: 0; }
  .cv-det { max-height: none; border-top: 1px solid var(--gris-ui); }
  .cv-plano svg { max-height: none; }
  .cv-misiones li:not(.cv-m-actual):not(.cv-fin) { display: none; }
  .cv-todas .cv-misiones li { display: flex !important; }
  .cv-mas { display: inline-block; }
  .cv-completo .cv-misiones li.cv-m-hecha { display: none; }
  .cv-completo.cv-todas .cv-misiones li.cv-m-hecha { display: flex !important; }
}
@media (max-width: 560px) {
  .hero-ciudad .container { padding: 0 12px; }
  .cv-tablero { padding: 10px 14px; }
  .cv-cifras { gap: 6px 18px; }
  .cv-cifra b { font-size: 18px; }
}

/* ══ Portada como recorrido (2026-10-14) ══
   Cuatro tiempos: la frase con las cifras de un día real de la demo, la ciudad fija con la
   cámara que se acerca en tres paradas, la factura que se vuelve asiento y balance, y al
   final la ciudad para jugar. Sin JavaScript, o con «reducir movimiento», todo se lee como
   bloques quietos: el modo animado solo existe bajo la clase .rc-vivo que pone js/recorrido.js. */

/* ── 1 · Las cifras ── */
.rc-hero { min-height: 0; padding-bottom: 64px; }
/* La portada invita a bajar en vez de ofrecer salidas: la demo y el contacto quedan en el menú y al final. */
.rc-bajar { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; font-size: 16px; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--magenta); padding-bottom: 2px; }
.rc-bajar span { display: inline-block; animation: rc-bajar 1.6s ease-in-out infinite; }
@keyframes rc-bajar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .rc-bajar span { animation: none; } }
.rc-banda { width: 100%; max-width: 1132px; background: #fff; border-radius: 14px; box-shadow: var(--sombra); padding: 22px 26px 16px; }
.rc-banda-k { font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--navy-suave); text-align: center; margin-bottom: 14px; }
.rc-cifras { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rc-cifras li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 10px; border-left: 1px solid var(--gris-ui); line-height: 1.15; }
.rc-cifras li:first-child { border-left: 0; }
.rc-cifras b { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-cifras b.rc-plata, .rc-cifras li:first-child b[data-rc-cifra="ventas"] { color: #1e7a45; }
.rc-cifras span { font-size: 13px; color: var(--gris-texto); margin-top: 8px; max-width: 20ch; line-height: 1.35; }
.rc-banda-pie { font-size: 12px; color: var(--gris-texto); text-align: center; margin-top: 14px; }

/* ── 2 · La ciudad en tres paradas (modo quieto: tres tarjetas) ── */
.rc-ciudad { background: var(--hueso); padding: 70px 0; }
.rc-escena { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.rc-lienzo, .rc-docs { display: none; }
.rc-paradas { list-style: none; display: grid; gap: 26px; }
.rc-parada { background: #fff; border-radius: 14px; box-shadow: var(--sombra); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.rc-figura { background: var(--hueso); min-width: 0; }
.rc-figura:empty { display: none; }
.rc-figura svg { display: block; width: 100%; height: auto; }
.rc-figura:empty + .rc-texto { grid-column: 1 / -1; }
.rc-texto { padding: 26px 30px; }
.rc-k { font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--magenta); margin-bottom: 8px; }
.rc-frase { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.rc-dato { font-size: 17px; color: var(--gris-texto); margin-top: 12px; line-height: 1.5; }
.rc-er { grid-column: 1 / -1; margin: 0 30px 26px; background: #fff; border: 1px solid var(--gris-ui); border-radius: 12px; padding: 14px 18px; box-shadow: 0 14px 34px rgba(10, 22, 48, 0.10); }
.rc-er-t { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--gris-ui); }
.rc-er dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; font-size: 14.5px; }
.rc-er dt { color: var(--gris-texto); }
.rc-er dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.rc-er .rc-er-total { color: #1e7a45; font-weight: 800; border-top: 1px solid var(--gris-ui); padding-top: 4px; }
.rc-er-pie { font-size: 12px; color: var(--gris-texto); margin-top: 8px; }

/* ── 2 · Modo animado: la escena queda fija y el scroll mueve la cámara ── */
.rc-ciudad.rc-vivo { height: 460vh; padding: 0; position: relative; }
.rc-vivo .rc-escena { position: sticky; top: 0; height: 100vh; height: 100svh; max-width: none; padding: 0; overflow: hidden; }
.rc-vivo .rc-lienzo { display: block; position: absolute; inset: 0; }
.rc-vivo .rc-lienzo svg { display: block; width: 100%; height: 100%; }
.rc-vivo .rc-docs { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
/* Los tres pasos, numerados y fijos a la izquierda: el abierto se agranda y muestra su dato. */
.rc-vivo .rc-paradas { position: absolute; top: 72px; bottom: 0; left: max(24px, calc(50% - 566px)); width: 420px; display: flex; flex-direction: column; justify-content: center; gap: 2px; pointer-events: none; z-index: 2; }
.rc-vivo .rc-parada { display: block; background: none; box-shadow: none; border-radius: 0; overflow: visible; padding: 12px 0 12px 22px; border-left: 3px solid rgba(10, 22, 48, 0.12); transition: border-color .4s; }
.rc-vivo .rc-parada.rc-activa { border-left-color: var(--magenta); }
.rc-vivo .rc-figura { display: none; }
.rc-vivo .rc-texto { padding: 0; background: none; }
.rc-vivo .rc-k { font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--navy-suave); margin-bottom: 2px; transition: color .4s; }
.rc-vivo .rc-activa .rc-k { color: var(--magenta); }
.rc-vivo .rc-frase { font-size: 21px; color: rgba(10, 22, 48, 0.4); transition: font-size .5s cubic-bezier(.2, .7, .2, 1), color .4s; }
.rc-vivo .rc-activa .rc-frase { font-size: clamp(36px, 3.8vw, 54px); color: var(--navy); }
.rc-vivo .rc-dato { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; transition: max-height .5s ease, opacity .4s ease, margin-top .4s; }
.rc-vivo .rc-activa .rc-dato { max-height: 14em; opacity: 1; margin-top: 10px; }
.rc-vivo .rc-er { display: none; margin: 16px 0 0; transform: translateY(18px); transition: transform .6s cubic-bezier(.2, .7, .2, 1) .1s, box-shadow .4s; }
.rc-vivo .rc-activa .rc-er { display: block; transform: none; }
.rc-midiendo, .rc-midiendo * { transition: none !important; }
/* La ciudad es una maqueta clara: el color se enciende solo en lo de cada paso. */
.rc-vivo .rc-lienzo { will-change: opacity, filter, transform; }
.rc-lienzo polygon, .rc-figura polygon { transition: fill .6s ease, stroke .6s ease; }
/* La línea de luz que lleva cada venta al contador */
.rc-luz { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rc-rayo-h { fill: none; stroke: #5fd39a; stroke-width: 10; stroke-opacity: .22; stroke-linecap: round; stroke-dasharray: 1 2; }
.rc-rayo { fill: none; stroke: #2e9d6a; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1 2; }
.rc-punta { fill: #fff; stroke: #2e9d6a; stroke-width: 3; filter: drop-shadow(0 0 6px #5fd39a); transition: opacity .3s; }
.rc-hero .hc-txt, .rc-hero .rc-banda { will-change: opacity, filter, transform; }
.rc-vivo .rc-er.rc-recibe { box-shadow: 0 0 0 3px rgba(46, 157, 106, 0.35), 0 14px 34px rgba(10, 22, 48, 0.12); }
.rc-progreso { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 4; padding: 8px 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.75); }
.rc-progreso i { width: 6px; height: 22px; border-radius: 99px; background: rgba(10, 22, 48, 0.15); transition: background .3s, height .3s; }
.rc-progreso i.rc-on { background: var(--magenta); height: 34px; }

/* Lo que se dibuja dentro del plano animado */
.rc-lienzo text, .rc-figura text { font-family: var(--fuente); }
.rc-halo { transform-box: fill-box; transform-origin: center; }
.rc-vivo .rc-halo.rc-late { animation: rc-late 1.3s ease-out infinite; }
@keyframes rc-late { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }

/* Los documentos que suben de la ciudad al contador */
.rc-doc { position: absolute; left: 0; top: 0; width: 28px; height: 36px; margin: -18px 0 0 -14px; background: #fff; border: 1px solid #c9d0dc; border-radius: 3px; box-shadow: 0 6px 14px rgba(10, 22, 48, 0.18); opacity: 0; will-change: transform, opacity; }
.rc-doc::before, .rc-doc::after { content: ""; position: absolute; left: 4px; right: 4px; height: 2px; background: #c9d0dc; border-radius: 2px; }
.rc-doc::before { top: 8px; box-shadow: 0 6px 0 #c9d0dc, 0 12px 0 #c9d0dc; }
.rc-doc::after { top: 27px; left: 12px; right: 4px; background: #2e9d6a; }

/* ── 3 · De la factura al balance (modo quieto: tres tarjetas una al lado de la otra) ── */
.rc-flujo { padding: 80px 0; background: #fff; }
.rc-flujo-cab { text-align: center; margin-bottom: 28px; }
.rc-flujo-cab h2 { max-width: 760px; margin: 0 auto; }
.rc-pasos { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; counter-reset: rcpaso; }
.rc-pasos li { counter-increment: rcpaso; font-size: 14px; font-weight: 600; color: var(--navy-suave); background: var(--hueso); padding: 6px 14px; border-radius: 99px; transition: background .3s, color .3s; }
.rc-pasos li::before { content: counter(rcpaso) " · "; font-weight: 800; }
.rc-pasos li.rc-on, .rc-flujo:not(.rc-vivo) .rc-pasos li { background: var(--navy); color: #fff; }
.rc-mesa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.rc-t { background: #fff; border: 1px solid var(--gris-ui); border-radius: 12px; box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; margin: 0; min-width: 0; }
.rc-t-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--gris-ui); }
.rc-t-tit { font-size: 14px; font-weight: 700; }
.rc-t-tag { font-size: 12px; color: var(--gris-texto); white-space: nowrap; }
.rc-t-pie { font-size: 12.5px; color: var(--gris-texto); padding: 10px 14px; margin: 0; line-height: 1.45; }
.rc-xml { margin: 0; padding: 12px 10px; background: var(--navy); color: #b9c4d8; font-family: var(--mono); font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; font-variant-ligatures: none; }
.rc-xml code { font-family: inherit; }
.rc-l { display: block; padding: 0 4px 0 calc(4px + var(--rc-n, 0) * 1.2em); border-radius: 4px; border-left: 3px solid transparent; transition: background .35s, color .35s, border-color .35s; }
.rc-n1 { --rc-n: 1; }
.rc-n2 { --rc-n: 2; }
.rc-com { color: #7f8aa3; }
.rc-asiento { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.rc-asiento th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--gris-texto); font-weight: 700; padding: 10px 12px 6px; }
.rc-asiento th + th, .rc-asiento td + td { text-align: right; }
.rc-asiento td { padding: 9px 12px; border-top: 1px solid #f0eee9; transition: opacity .4s, background .4s; }
.rc-asiento tbody td:first-child { border-left: 3px solid transparent; }
.rc-asiento b { font-family: var(--mono); font-weight: 600; margin-right: 4px; }
.rc-asiento tfoot td { font-weight: 800; border-top: 2px solid var(--navy); }
.rc-bal { position: relative; line-height: 0; overflow: hidden; }
.rc-bal img { display: block; width: 100%; height: auto; }
.rc-marca { position: absolute; left: 15.6%; width: 69%; border: 2.5px solid #2e9d6a; border-radius: 5px; background: rgba(46, 157, 106, 0.08); transition: opacity .5s, transform .5s; }
/* Colores por dato: la misma línea del XML y del asiento llevan el mismo color */
.rc-l[data-rc-k="prov"] { --rc-c: #8a96ab; }
.rc-l[data-rc-k="base"], .rc-asiento tr[data-rc-k="base"] { --rc-c: #2e9d6a; }
.rc-l[data-rc-k="iva"], .rc-asiento tr[data-rc-k="iva"] { --rc-c: #3c8dbc; }
.rc-l[data-rc-k="total"], .rc-asiento tr[data-rc-k="total"] { --rc-c: var(--magenta); }
.rc-flujo:not(.rc-vivo) .rc-l[data-rc-k], .rc-l.rc-luz { border-left-color: var(--rc-c); background: rgba(255, 255, 255, 0.08); color: #fff; }
.rc-flujo:not(.rc-vivo) .rc-asiento tbody td:first-child, .rc-asiento tr.rc-on td:first-child { border-left-color: var(--rc-c); }

/* ── 3 · Modo animado: la mesa queda fija y el scroll cambia de tarjeta ── */
.rc-flujo.rc-vivo { height: 380vh; padding: 0; position: relative; }
.rc-vivo .rc-escena2 { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; padding: 92px 0 22px; overflow: hidden; }
.rc-vivo .rc-flujo-cab { margin-bottom: 20px; flex: 0 0 auto; }
.rc-vivo .rc-mesa-c { flex: 1 1 auto; min-height: 0; width: 100%; }
.rc-vivo .rc-mesa { display: block; position: relative; height: 100%; }
.rc-vivo .rc-t { position: absolute; top: 0; max-height: 100%; transition: left .75s cubic-bezier(.2, .7, .2, 1), width .75s cubic-bezier(.2, .7, .2, 1), opacity .5s ease, transform .75s cubic-bezier(.2, .7, .2, 1); }
.rc-vivo .rc-asiento tbody tr { opacity: .18; }
.rc-vivo .rc-asiento tbody tr.rc-on { opacity: 1; }
.rc-vivo .rc-asiento tbody tr.rc-nuevo td { background: #f3f8f5; }
.rc-vivo .rc-asiento tfoot { opacity: .18; transition: opacity .4s; }
.rc-vivo .rc-asiento.rc-cuadra tfoot { opacity: 1; }
.rc-vivo .rc-marca { opacity: 0; transform: scaleX(.96); }
.rc-vivo .rc-t-balance.rc-on .rc-marca { opacity: 1; transform: none; }
.rc-vivo .rc-mesa[data-f="1"] .rc-t-xml { left: 22%; width: 56%; opacity: 1; transform: none; }
.rc-vivo .rc-mesa[data-f="1"] .rc-t-asiento { left: 60%; width: 40%; opacity: 0; transform: translateX(60px); }
.rc-vivo .rc-mesa[data-f="1"] .rc-t-balance { left: 60%; width: 40%; opacity: 0; transform: translateX(120px); }
.rc-vivo .rc-mesa[data-f="2"] .rc-t-xml { left: 0; width: 49%; opacity: 1; transform: none; }
.rc-vivo .rc-mesa[data-f="2"] .rc-t-asiento { left: 51%; width: 49%; opacity: 1; transform: none; }
.rc-vivo .rc-mesa[data-f="2"] .rc-t-balance { left: 70%; width: 30%; opacity: 0; transform: translateX(120px); }
.rc-vivo .rc-mesa[data-f="3"] .rc-t-xml { left: -20%; width: 40%; opacity: 0; transform: none; }
.rc-vivo .rc-mesa[data-f="3"] .rc-t-asiento { left: 0; width: 37%; opacity: 1; transform: none; }
.rc-vivo .rc-mesa[data-f="3"] .rc-t-balance { left: 39%; width: 61%; opacity: 1; transform: none; }

/* ── 4 · La ciudad para jugar ── */
.rc-juega { padding: 80px 0 70px; background: linear-gradient(180deg, #fff, var(--hueso)); }
.rc-juega-cab { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.rc-juega-cab p { color: var(--gris-texto); font-size: 17px; margin-top: 12px; }
.rc-juega .hc-marco { margin: 0 auto; }

@media (max-width: 900px) {
  .rc-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .rc-cifras li { border-left: 0; }
  .rc-cifras li:nth-child(even) { border-left: 1px solid var(--gris-ui); }
  .rc-cifras li:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--gris-ui); padding-top: 14px; }
  .rc-parada { grid-template-columns: minmax(0, 1fr); }
  .rc-er { margin: 0 20px 22px; }
  .rc-texto { padding: 20px 22px; }
  .rc-mesa { grid-template-columns: minmax(0, 1fr); }

  /* Animado en el celular: arriba los tres pasos como pestañas numeradas y el texto del abierto;
     debajo la ciudad, que nunca queda tapada (su encuadre empieza donde termina el panel). */
  .rc-vivo .rc-paradas { top: 76px; left: 12px; right: 12px; bottom: auto; width: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px;
    padding: 10px 14px 12px; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 14px; box-shadow: 0 16px 40px rgba(10, 22, 48, 0.12); }
  .rc-vivo .rc-parada, .rc-vivo .rc-texto { display: contents; }
  .rc-vivo .rc-k { grid-row: 1; border-top: 3px solid rgba(10, 22, 48, 0.12); padding-top: 6px; margin: 0 0 6px; font-size: 12px; transition: color .4s, border-color .4s; }
  .rc-vivo .rc-activa .rc-k { border-top-color: var(--magenta); }
  .rc-vivo .rc-frase, .rc-vivo .rc-dato { display: none; }
  .rc-vivo .rc-activa .rc-frase { display: block; grid-column: 1 / -1; grid-row: 2; font-size: clamp(24px, 7vw, 34px); }
  .rc-vivo .rc-activa .rc-dato { display: block; grid-column: 1 / -1; grid-row: 3; max-height: none; font-size: 14px; margin-top: 4px; }
  .rc-vivo .rc-activa .rc-er { grid-column: 1 / -1; grid-row: 4; margin-top: 10px; }
  .rc-vivo .rc-er { padding: 10px 14px; }
  .rc-vivo .rc-er dl { font-size: 13.5px; }
  .rc-progreso { right: 6px; }
  .rc-progreso i { width: 4px; height: 14px; }
  .rc-progreso i.rc-on { height: 22px; }

  .rc-vivo .rc-escena2 { padding-top: 84px; padding-bottom: 14px; }
  .rc-vivo .rc-flujo-cab { margin-bottom: 14px; }
  .rc-vivo .rc-flujo-cab h2 { font-size: 27px; }
  .rc-vivo .rc-flujo-cab .kicker { margin-bottom: 6px; }
  .rc-vivo .rc-pasos { margin-top: 10px; gap: 6px; }
  .rc-vivo .rc-pasos li { font-size: 12.5px; padding: 4px 10px; }
  .rc-vivo .rc-mesa .rc-t { left: 0 !important; width: 100% !important; }
  .rc-vivo .rc-mesa[data-f="1"] .rc-t:not(.rc-t-xml),
  .rc-vivo .rc-mesa[data-f="2"] .rc-t:not(.rc-t-asiento),
  .rc-vivo .rc-mesa[data-f="3"] .rc-t:not(.rc-t-balance) { opacity: 0; transform: translateY(26px) scale(.98); pointer-events: none; }
  .rc-vivo .rc-mesa[data-f="1"] .rc-t-xml, .rc-vivo .rc-mesa[data-f="2"] .rc-t-asiento, .rc-vivo .rc-mesa[data-f="3"] .rc-t-balance { opacity: 1; transform: none; }
  .rc-xml { font-size: 11px; }
  .rc-com { display: none; }
}
@media (max-width: 560px) {
  .rc-banda { padding: 18px 12px 14px; }
  .rc-cifras b { font-size: 30px; }
  .rc-cifras span { font-size: 12.5px; }
  .rc-escena { padding: 0 12px; }
  .rc-ciudad { padding: 50px 0; }
  .rc-juega .container { padding: 0 12px; }
  .rc-juega { padding: 60px 0 50px; }
}

/* ── Selector de tipo de negocio (2026-10-15) ──
   Solo aparece con JavaScript: sin él, la portada se lee completa con la opción por defecto. */
.rc-tipo { max-width: 780px; margin: 0 auto 26px; }
.rc-tipo[hidden], .rc-banda[hidden], .rc-ciudad[hidden], .rc-er[hidden] { display: none !important; }
.rc-tipo-t { font-size: 15px; font-weight: 700; color: var(--navy-suave); margin-bottom: 10px; }
.rc-tipo-op { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rc-tipo-b { min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--gris-ui); background: #fff; color: var(--navy);
  font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.rc-tipo-b:hover { border-color: var(--navy); }
.rc-tipo-b:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }
.rc-tipo-b[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.rc-extra { display: inline-block; margin: 6px 0 0 22px; font-weight: 600; font-size: 16px; color: var(--magenta-oscuro); text-decoration: none; }
.rc-extra:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .rc-tipo-op { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .rc-tipo-b { padding: 10px 10px; font-size: 14.5px; line-height: 1.25; }
  .rc-extra { margin-left: 0; display: block; margin-top: 12px; }
}
