/* ============================================================
   AvantiFlow — Páginas de producto (Iris, Vigía, Delta, Radar, CRM)
   15-10-2026. Va encima de styles.css (usa sus variables).
   Negro elegante como color principal; azul y violeta solo de acento.
   Nada de iconos genéricos: interfaz real, logos de verdad y la marca
   de cada producto. Letra grande y con cuerpo.
   1. Fondo y hero      4. Caso real
   2. Escena de Iris    5. Niveles X1 · X3 · X5
   3. Cómo funciona     6. Integraciones y cierre
   7. Móvil
   ============================================================ */

/* ---------- 1. Fondo y hero ---------- */
body:has(.prod) .bg__orb { opacity: 0.22; }
body:has(.prod) .bg__grid { opacity: 0.3; }

.prod-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 1rem) 0 2.25rem;
  overflow: hidden;
}
.prod-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 52% at 72% 44%, rgba(10, 100, 255, 0.2), transparent 70%),
    radial-gradient(30% 40% at 92% 85%, rgba(124, 92, 255, 0.14), transparent 70%);
  pointer-events: none;
}
.prod-hero .container { max-width: 1320px; }
.prod-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.prod-hero .breadcrumb { justify-content: flex-start; margin: 0; padding: 0; }
.prod-hero__cat {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 560;
  color: var(--text-muted);
}
.prod-marca { width: 36px; height: 36px; flex: none; }
.prod-hero__nombre {
  margin: 0.55rem 0 0.95rem -0.05em;
  font-size: clamp(5rem, 11.5vw, 10.5rem);
  font-weight: 640;
  line-height: 0.86;
  letter-spacing: -0.065em;
  background: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, 0.58));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.prod-hero__h1 {
  max-width: 17ch;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.prod-hero__lead {
  max-width: 44ch;
  margin-top: 1.15rem;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-muted);
}
.prod-hero__acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }
.prod-hero__prueba { margin-top: 1.4rem; font-size: 0.97rem; color: var(--text-faint); }

.prod-encaja {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 2.1rem;
  margin-top: clamp(1.75rem, 5vh, 3.25rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 540;
  color: var(--text-muted);
}
.prod-encaja::before { content: "Encaja en"; color: var(--text-faint); font-weight: 500; }

/* ---------- 1b. Hero de cine: la película 3D de fondo (15-10-2026) ---------- */
.prod-hero--cine { isolation: isolate; justify-content: flex-end; padding: calc(var(--header-h) + 0.5rem) 0 clamp(2.5rem, 8vh, 5.5rem); }
.prod-hero--cine::before { display: none; }
.cine { position: absolute; inset: 0; z-index: -1; background: #000; overflow: hidden; }
.cine__poster img, .cine__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine__video { opacity: 0; transition: opacity 0.9s var(--ease); }
.cine.is-play .cine__video { opacity: 1; }
/* Grano de película encima del vídeo (dentro del vídeo no se comprime: pesaría el triple) */
.cine::after {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 1;
  background: url("../img/grano.png") repeat;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: grano 0.6s steps(6) infinite;
}
@keyframes grano {
  0% { transform: translate(0, 0); } 17% { transform: translate(-7%, 4%); } 33% { transform: translate(5%, -6%); }
  50% { transform: translate(-3%, 8%); } 67% { transform: translate(8%, 2%); } 83% { transform: translate(-6%, -5%); }
}
.cine__velo {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.78) 28%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 66%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.55) 16%, rgba(0, 0, 0, 0) 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 20%);
}
.prod-hero__cine {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: calc(100svh - var(--header-h) - 4rem);
}
.prod-hero--cine .prod-hero__texto { max-width: 600px; }
.prod-hero--cine .prod-hero__nombre { background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0.7)); -webkit-background-clip: text; background-clip: text; }
.prod-hero--cine .prod-hero__lead { color: rgba(255, 255, 255, 0.8); }

/* Sección «En tu pantalla»: la animación de interfaz que antes era el hero */
.prod-pantalla { position: relative; padding-block: var(--section-y) 2.5rem; overflow: hidden; }
.prod-pantalla::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 72% 46%, rgba(10, 100, 255, 0.16), transparent 70%);
}
.prod-pantalla .section__lead { max-width: 40ch; }

/* ---------- 2. Escena de Iris (lienzo fijo de 640 × 540 que se escala) ---------- */
.prod-hero__escena { min-width: 0; }
/* El lienzo va en absoluto y escalado: el hueco que ocupa en la página es el ya escalado (nunca se sale) */
.esc {
  --k: 1;
  --lh: 540px; /* alto del lienzo sin escalar (en móvil cambia de composición) */
  position: relative;
  width: min(100%, 691px);
  height: calc(var(--lh) * var(--k) + 1.75rem);
  margin-left: auto;
}
.esc__lienzo {
  position: absolute;
  left: 0;
  top: 0;
  width: 640px;
  height: var(--lh);
  transform: scale(var(--k));
  transform-origin: 0 0;
  font-family: var(--font);
}
.esc__nota { position: absolute; right: 0; bottom: 0; font-size: 0.85rem; color: var(--text-faint); }
/* Escala aproximada sin JavaScript; producto.js la ajusta al ancho exacto */
@media (max-width: 1240px) { .esc { --k: 0.92; } }
@media (max-width: 1100px) { .esc { --k: 0.82; } }
@media (max-width: 960px) { .esc { --k: 1; } }
@media (max-width: 700px) { .esc { --k: 0.86; } }

.esc-docs { position: absolute; left: 0; top: 0; width: 310px; height: 250px; z-index: 2; }
.doc {
  position: absolute;
  left: 0;
  top: 0;
  width: 310px;
  padding: 18px 20px;
  border-radius: 18px;
}
.doc[data-doc="1"], .doc[data-doc="2"] { visibility: hidden; opacity: 0; }
.doc--correo {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: var(--gloss), #0c0c10;
  box-shadow: var(--gloss-edge), 0 30px 70px -30px rgba(0, 0, 0, 0.95);
}
.doc__top { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 560; color: var(--text-muted); }
.doc__top img { height: 20px; width: auto; }
.doc__top time { margin-left: auto; color: var(--text-faint); font-weight: 480; }
.doc__de { margin-top: 12px; font-size: 16px; font-weight: 620; }
.doc__asunto { margin-top: 2px; font-size: 15px; font-weight: 520; }
.doc__texto { margin-top: 8px; font-size: 15px; line-height: 1.48; color: var(--text-muted); }
.doc__adj {
  display: inline-block; margin-top: 12px; padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.06); font-size: 13px; color: var(--text-muted);
}

.doc--papel {
  color: #1c2230;
  background: linear-gradient(180deg, #fbfaf7, #efece5);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: rotate(-1.6deg);
}
.papel__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1.5px solid #1c2230; }
.papel__top b { font-size: 14px; letter-spacing: 0.06em; }
.papel__top span { font-size: 14px; font-weight: 560; }
.papel__tabla { display: grid; grid-template-columns: 46px 1fr 72px 34px; gap: 8px 8px; margin-top: 12px; font-size: 13.5px; }
.papel__tabla span:nth-child(-n+4) { font-size: 11.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: #6a7080; }
.papel__pie { margin-top: 14px; font-size: 12px; color: #7a8090; }
.doc--nota {
  transform: rotate(2.2deg);
  padding: 16px 20px 14px 34px;
  background:
    linear-gradient(90deg, transparent 22px, rgba(220, 60, 60, 0.35) 22px, rgba(220, 60, 60, 0.35) 23.5px, transparent 23.5px),
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(29, 78, 216, 0.16) 30px 31.5px),
    linear-gradient(180deg, #fbfaf7, #efece5);
}
.doc--nota .mano { font-size: 19px; line-height: 31.5px; }
.doc--nota .mano--titulo { font-size: 20px; font-weight: 700; }
.doc--nota .papel__pie { margin-top: 6px; }
.mano { font-family: "Bradley Hand", "Segoe Print", "Ink Free", "Marker Felt", cursive; color: #1d4ed8; }
.mano--titulo { font-size: 19px; font-weight: 600; }
.mano--nota { font-weight: 700; }

mark.campo-doc {
  color: inherit;
  background: transparent;
  border-radius: 5px;
  padding: 0 2px;
  margin: 0 -2px;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
mark.campo-doc.is-lit { background: rgba(10, 100, 255, 0.24); box-shadow: 0 0 0 1.5px rgba(59, 130, 255, 0.95); }
.doc--papel mark.campo-doc.is-lit { background: rgba(10, 100, 255, 0.14); box-shadow: 0 0 0 1.5px #0a64ff; }
.barrido {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #3b82ff 20%, #9a7cff 80%, transparent);
  box-shadow: 0 0 18px 4px rgba(59, 130, 255, 0.55);
  pointer-events: none;
}

.esc-sim { position: absolute; left: 330px; top: 50px; width: 196px; height: 196px; z-index: 3; }
.esc-sim__svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 34px rgba(10, 100, 255, 0.5)); }
.iris-anillo, .iris-fibras { transform-box: view-box; transform-origin: 100px 100px; }
.iris-anillo { animation: iris-giro 60s linear infinite; }
.iris-fibras { animation: iris-giro 150s linear infinite reverse; }
.iris-pupila { transform-box: fill-box; transform-origin: center; transition: transform 0.6s var(--ease); }
.esc-sim.is-scan .iris-pupila { transform: scale(0.74); }
.esc-sim__haz {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 1.5px solid rgba(59, 130, 255, 0.75); opacity: 0; pointer-events: none;
}
.esc-sim.is-scan .esc-sim__haz { animation: iris-haz 1.15s ease-out infinite; }
@keyframes iris-giro { to { transform: rotate(360deg); } }
@keyframes iris-haz { from { transform: scale(0.82); opacity: 0.9; } to { transform: scale(1.28); opacity: 0; } }

.hoja {
  position: absolute;
  left: 140px;
  top: 292px;
  width: 500px;
  padding: 14px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: var(--gloss), #0c0c10;
  box-shadow: var(--gloss-edge), 0 40px 90px -40px rgba(10, 100, 255, 0.55);
  z-index: 1;
}
.hoja__top { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; }
.hoja__top img { height: 20px; width: auto; }
.hoja__cuenta { margin-left: auto; font-size: 13.5px; font-weight: 500; color: var(--text-faint); }
.hoja__cab, .hoja__fila { display: grid; grid-template-columns: 1.45fr 1.4fr 0.75fr 0.8fr; gap: 10px; }
.hoja__cab {
  margin-top: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint);
}
.hoja__fila { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; font-weight: 520; }
.hoja__fila span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.estado { font-weight: 640; }
.estado--aviso { color: #ffb547; }
.estado--ok { color: var(--blue-bright); }
.estado--env { color: #fff; }
.hoja__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.hoja__listos { font-size: 14.5px; color: var(--text-muted); }
.hoja__btn { padding: 8px 16px; border-radius: 100px; background: #fff; color: #000; font-size: 14px; font-weight: 640; }

.chip-vuelo {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  padding: 4px 10px;
  border-radius: 8px;
  background: #0a4fd1;
  color: #fff;
  font-size: 13.5px;
  font-weight: 620;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(10, 100, 255, 0.55);
  pointer-events: none;
}

/* ---------- 2b. Piezas de la escena para toda la gama (15-10-2026) ---------- */
.doc--chat .doc__de { margin-bottom: 4px; }
.doc__burbuja {
  max-width: 92%;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 5px;
  background: #1c1c22;
  font-size: 15px;
  line-height: 1.45;
  color: #fff;
}
.doc__burbuja--yo { margin-left: auto; border-radius: 16px 16px 5px 16px; background: #0a4fd1; }
.doc__sello { font-size: 14px; font-weight: 640; letter-spacing: 0.01em; color: #fff; }
.doc--form .doc__top { margin-bottom: 6px; }
.doc__campo { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 15px; }
.doc__campo:last-child { border-bottom: 0; }
.doc__campo span { color: var(--text-faint); }
.doc__campo b { font-weight: 600; text-align: right; }
.esc-sim.is-scan .esc-sim__svg { filter: drop-shadow(0 0 34px rgba(10, 100, 255, 0.5)) brightness(1.25); }
.vigia-orbitas, .radar-haz { transform-box: view-box; transform-origin: 100px 100px; }
.vigia-orbitas { animation: iris-giro 24s linear infinite; }
.radar-haz { animation: iris-giro 4s linear infinite; }

/* Pantallas de la app: conversación, extracto de documento y cifras del panel */
.app-correo > i { width: 18px; height: 18px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); }
.app-chat { display: flex; flex-direction: column; gap: 10px; }
.app-burbuja {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 18px 18px 18px 6px;
  background: #1c1c22;
  font-size: 16px;
  line-height: 1.45;
}
.app-burbuja--yo { margin-left: auto; border-radius: 18px 18px 6px 18px; background: #0a4fd1; }
.app-burbuja small { display: block; margin-top: 6px; font-size: 13.5px; color: rgba(255, 255, 255, 0.72); }
.extracto { padding: 18px 20px; border-radius: 14px; background: linear-gradient(180deg, #fbfaf7, #efece5); color: #1c2230; }
.extracto__fuente { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: #6a7080; }
.extracto p { font-size: 17px; line-height: 1.55; }
.extracto mark { background: rgba(10, 100, 255, 0.16); box-shadow: 0 0 0 1.5px #0a64ff; border-radius: 4px; color: inherit; padding: 0 3px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.07); }
.kpi b {
  display: block; font-size: 34px; font-weight: 640; line-height: 1.05; letter-spacing: -0.04em;
  background: var(--gradient-sm); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kpi span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--text-muted); }

/* Hero sin película todavía: la marca del producto en grande, con su luz */
.cine--marca { display: grid; place-items: center end; padding-right: 8vw; }
.cine__marca { width: min(46vw, 640px); height: auto; opacity: 0.9; filter: drop-shadow(0 0 80px rgba(10, 100, 255, 0.45)); }
.cine--marca .iris-anillo { animation: iris-giro 60s linear infinite; }
.cine--marca .iris-fibras { animation: iris-giro 150s linear infinite reverse; }

/* ---------- 3. Cómo funciona: pasos que avanzan y una app que se queda fija ---------- */
.historia { position: relative; padding-block: var(--section-y); border-top: 1px solid var(--border); }
.historia__cab { max-width: 760px; }
.historia__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.historia__paso { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; transition: opacity 0.5s var(--ease); }
.prod.is-vivo .historia__paso { opacity: 0.3; }
.prod.is-vivo .historia__paso.is-on { opacity: 1; }
.historia__n { font-size: 1rem; font-weight: 650; color: var(--blue-bright); font-variant-numeric: tabular-nums; }
.historia__t { margin: 0.5rem 0 0.75rem; font-size: clamp(1.65rem, 2.6vw, 2.25rem); font-weight: 640; letter-spacing: -0.03em; line-height: 1.12; }
.historia__x { max-width: 34ch; font-size: 1.12rem; line-height: 1.55; color: var(--text-muted); }

.historia__visual { position: relative; }
.app {
  position: sticky;
  top: calc(50vh - 235px);
  height: 470px;
  margin-block: 14vh;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: var(--gloss), #0b0b0e;
  box-shadow: var(--gloss-edge), 0 50px 120px -50px rgba(10, 100, 255, 0.6);
  overflow: hidden;
}
.app__barra {
  display: flex; align-items: center; gap: 7px; height: 46px; padding: 0 18px;
  border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-faint);
}
.app__barra i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.app__barra span { margin-left: 10px; }
.app__pantalla { position: relative; height: calc(100% - 46px); }
.app__capa {
  position: absolute;
  inset: 0;
  padding: 22px 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.app__capa.is-on { opacity: 1; transform: none; }
.prod:not(.is-vivo) .app__capa[data-capa="0"] { opacity: 1; transform: none; }
.app__titulo { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 15px; font-weight: 620; color: var(--text-muted); }
.app__titulo img { height: 18px; width: auto; }
.app-correo {
  display: grid;
  grid-template-columns: 22px 150px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 15px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 15px;
}
.app-correo img { height: 18px; width: auto; }
.app-correo b { font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-correo span { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-correo time { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.etq { display: none; font-style: normal; font-size: 14px; font-weight: 640; }
.app__capa--etq .etq { display: inline; }
.etq--si { color: var(--blue-bright); }
.etq--no { color: var(--text-faint); }
.app__capa--etq .app-correo:has(.etq--no) { opacity: 0.45; }
.campos-app { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.campo-app { padding: 13px 15px; border-radius: 13px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.07); }
.campo-app span { display: block; font-size: 13.5px; color: var(--text-faint); }
.campo-app b { display: block; margin-top: 2px; font-size: 17px; font-weight: 620; }
.campo-app b.aviso { color: #ffb547; }
.app__nota { margin-top: 14px; font-size: 14.5px; color: var(--text-faint); }
.aviso-app { margin-bottom: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 181, 71, 0.35); background: rgba(255, 181, 71, 0.07); }
.aviso-app b { display: block; font-size: 16px; font-weight: 640; color: #ffb547; }
.aviso-app span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--text-muted); }
.app__acciones { display: flex; gap: 10px; margin-top: 20px; }
.app__si, .app__no { padding: 10px 18px; border-radius: 100px; font-size: 15px; }
.app__si { background: #fff; color: #000; font-weight: 640; }
.app__no { border: 1px solid var(--border-strong); color: var(--text-muted); font-weight: 520; }

/* ---------- 4. Caso real ---------- */
.prod-caso { padding-block: var(--section-y); border-top: 1px solid var(--border); }
.prod-caso__titulo { max-width: 22ch; margin-bottom: 2.6rem; font-size: var(--fs-h2); }
.cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border-strong); }
.cifras--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prod-caso__titulo + .prod-caso__pie { border-top: 1px solid var(--border-strong); }
.cifra { padding: 1.7rem 1.25rem 1.7rem 0; border-right: 1px solid var(--border); }
.cifra + .cifra { padding-left: 1.5rem; }
.cifra:last-child { border-right: 0; }
.cifra b {
  display: block;
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  font-weight: 620;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.045em;
  background: var(--gradient-sm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cifra span { display: block; margin-top: 0.6rem; font-size: 1.02rem; color: var(--text-muted); }
.prod-caso__pie {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  padding-top: 1.8rem; border-top: 1px solid var(--border);
}
.prod-caso__pie p { max-width: 62ch; font-size: 1.06rem; line-height: 1.6; color: var(--text-muted); }
.prod-caso__estado { color: var(--text-faint); }

/* ---------- 5. Niveles X1 · X3 · X5 ---------- */
.niveles { padding-block: var(--section-y); border-top: 1px solid var(--border); }
.niveles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.nivel {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.85rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--gloss), rgba(255, 255, 255, 0.022);
  box-shadow: var(--gloss-edge);
}
.nivel--medio {
  border: 1.5px solid transparent;
  background: var(--gloss) padding-box, linear-gradient(#0b0b0e, #0b0b0e) padding-box, var(--gradient) border-box;
  box-shadow: 0 34px 90px -44px rgba(10, 100, 255, 0.8);
}
.nivel__nombre { display: flex; align-items: baseline; gap: 0.55rem; }
.nivel__nombre span { font-size: 1.15rem; font-weight: 560; color: var(--text-muted); }
.nivel__nombre b {
  font-size: 3.4rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--gradient-sm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nivel__para { margin-top: 0.6rem; font-size: 1.3rem; font-weight: 640; letter-spacing: -0.02em; }
.nivel__lema { margin-top: 0.25rem; font-size: 1rem; color: var(--text-muted); }
.nivel__lista { display: grid; gap: 0.7rem; margin: 1.45rem 0 1.6rem; font-size: 1.03rem; }
.nivel__lista li { position: relative; padding-left: 1.15rem; }
.nivel__lista li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 2px; background: var(--blue-bright);
}
.nivel__soporte { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--border); font-size: 0.96rem; line-height: 1.5; color: var(--text-faint); }
.niveles__pie { display: grid; justify-items: center; gap: 1rem; margin-top: 2.2rem; text-align: center; }
.niveles__comun { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.8rem; font-size: 0.99rem; color: var(--text-muted); }
.niveles__precio { max-width: 58ch; font-size: 1.06rem; }
.niveles__precio b { font-weight: 640; }

/* ---------- 6. Integraciones y cierre ---------- */
.prod-integra { padding-block: 2.6rem; border-top: 1px solid var(--border); text-align: center; }
.prod-integra .eyebrow { margin-bottom: 1.3rem; }
.prod-integra__lista { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem 2.6rem; font-size: 1.06rem; font-weight: 560; }
.prod-integra__lista .tool__logo { height: 24px; }
.prod-integra__lista li:last-child { color: var(--text-muted); }

.prod-final { padding-block: var(--section-y); }
.prod-final__caja { display: grid; justify-items: center; gap: 1.2rem; text-align: center; }
.prod-final__iris { width: 128px; height: 128px; }
.prod-final__titulo { max-width: 20ch; font-size: var(--fs-h2); }
.prod-final__texto { max-width: 54ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); margin-bottom: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  .cine::after, .vigia-orbitas, .radar-haz { animation: none; }
  .iris-anillo, .iris-fibras, .esc-sim.is-scan .esc-sim__haz { animation: none; }
}

/* ---------- 7. Móvil ---------- */
@media (max-width: 960px) {
  .prod-hero { min-height: 0; padding-top: calc(var(--header-h) + 0.25rem); }
  .prod-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .esc { margin-inline: auto; }
  .historia__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .historia__visual { order: -1; position: sticky; top: calc(var(--header-h) - 0.5rem); z-index: 2; }
  .app { position: relative; top: 0; height: 330px; margin-block: 0.5rem 1rem; }
  .app__capa { padding: 16px; }
  .app-correo { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; padding: 11px 6px; font-size: 14px; }
  .app-correo span, .app-correo time { display: none; }
  .campos-app { gap: 8px; }
  .campo-app { padding: 9px 11px; }
  .campo-app b { font-size: 15.5px; }
  .aviso-app { padding: 11px 13px; }
  .historia__paso { min-height: 48vh; padding-block: 1rem; }
  .historia__t { font-size: 1.55rem; }
  .historia__x { font-size: 1.04rem; }
  .cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cifra, .cifra + .cifra { padding: 1.2rem 0.9rem 1.2rem 0; }
  .cifra:nth-child(2n) { border-right: 0; padding-left: 0.9rem; }
  .cifra:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .prod-caso__pie { flex-direction: column; align-items: flex-start; }
  .niveles__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .niveles__grid::-webkit-scrollbar { display: none; }
  .nivel { scroll-snap-align: center; padding: 1.5rem 1.35rem; }
}
@media (max-width: 560px) {
  .prod-hero__nombre { font-size: clamp(4.4rem, 24vw, 6rem); margin-bottom: 0.7rem; }
  .prod-hero__h1 { font-size: 1.65rem; }
  .prod-hero__lead { font-size: 1.04rem; }
  .prod-hero__acciones .btn { flex: 1 1 100%; }
  .prod-hero__prueba { display: none; }
  .prod-encaja { font-size: 0.94rem; gap: 0.3rem 1.2rem; }
  .prod-caso__titulo { font-size: 1.85rem; }
}

/* Móvil: composición vertical de 360 px de ancho, casi a tamaño real (se lee la hoja) */
@media (max-width: 600px) {
  .esc { --k: 0.95; --lh: 606px; margin-inline: auto; }
  .esc__lienzo { width: 360px; }
  .esc-docs, .doc { width: 292px; }
  .doc { padding: 15px 17px; }
  .esc-sim { left: 232px; top: 148px; width: 128px; height: 128px; }
  .hoja { left: 0; top: 300px; width: 360px; padding: 13px 14px 14px; }
  /* Cada línea en dos renglones: el cliente arriba y debajo producto, medida y estado */
  .esc { --lh: 650px; }
  .hoja__cab, .hoja__fila { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.85fr) minmax(0, 0.85fr); gap: 2px 10px; }
  .hoja__cab span:first-child { display: none; }
  .hoja__cab { font-size: 11px; }
  .hoja__fila { grid-template-areas: "c c c" "p m e"; font-size: 14px; padding: 9px 0; }
  .hoja__fila [data-c="0"] { grid-area: c; font-size: 12.5px; font-weight: 500; color: var(--text-faint); }
  .hoja__fila [data-c="1"] { grid-area: p; }
  .hoja__fila [data-c="2"] { grid-area: m; }
  .hoja__fila [data-c="3"] { grid-area: e; }
}

/* Hero de cine en móvil: el vídeo vertical arriba a todo el ancho (sin recortes) y el texto debajo */
@media (max-width: 760px) {
  .prod-hero--cine { min-height: 0; padding: 0 0 2.25rem; }
  .cine { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 5; width: 100%; margin-bottom: -5.5rem; }
  .cine__velo {
    background:
      linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.7) 14%, rgba(0, 0, 0, 0) 40%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 16%);
  }
  .prod-hero__cine { position: relative; min-height: 0; gap: 0; }
  .prod-hero--cine .breadcrumb { display: none; }
}

@media (max-width: 760px) {
  .cine--marca { aspect-ratio: 4 / 5; place-items: center; padding: 0; }
  .cine__marca { width: 72%; }
}

/* ================================================================== Atlas: la base de la gama (/atlas) */
.atl-guarda, .atl-usos, .atl-monta { padding-block: var(--section-y); border-top: 1px solid var(--border); }
.atl-guarda .section__title, .atl-usos .section__title, .atl-monta .section__title { max-width: 24ch; margin-bottom: 2.6rem; }
.atl-guarda__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.atl-ficha { padding: 1.4rem; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(180deg, #0c0c10, #060608); }
.atl-ficha__doc { margin-bottom: 1.3rem; padding: 0.6rem 1.1rem; border-radius: 14px; background: #111116; border: 1px solid rgba(205, 212, 230, 0.22); font-size: 0.95rem; }
.atl-ficha__doc p { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; }
.atl-ficha__doc p + p { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.atl-ficha__doc span { color: var(--text-muted); }
.atl-ficha__doc b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.atl-ficha h3 { font-size: 1.3rem; font-weight: 640; letter-spacing: -0.02em; }
.atl-ficha > p { margin-top: 0.35rem; color: var(--text-muted); }

.atl-usos__lista { display: grid; gap: 1rem; }
.atl-uso {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.6rem; align-items: center;
  padding: 1.4rem 1.6rem; border: 1px solid var(--border); border-radius: 22px; background: #08080b;
  transition: border-color 0.3s, background 0.3s;
}
.atl-uso:hover, .atl-uso:focus-visible { border-color: var(--border-strong); background: #0c0c10; }
.atl-uso__marca { width: 72px; height: 72px; }
.atl-uso__txt h3 { font-size: 1.6rem; font-weight: 680; letter-spacing: -0.03em; }
.atl-uso__txt p { margin-top: 0.3rem; font-size: 1.05rem; color: var(--text-muted); }
.atl-uso__ej { padding: 1rem 1.2rem; border-radius: 16px; background: #111116; border: 1px solid rgba(205, 212, 230, 0.22); }
.atl-uso__pide { font-size: 0.98rem; color: var(--text-muted); }
.atl-uso__da { margin-top: 0.2rem; font-size: 1.08rem; font-weight: 620; }
.atl-uso__fuente { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.6rem; font-size: 0.88rem; color: #c9cede; }

.atl-reglas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border-strong); }
.atl-regla { padding: 1.7rem 1.25rem 1.7rem 0; border-right: 1px solid var(--border); }
.atl-regla + .atl-regla { padding-left: 1.5rem; }
.atl-regla:last-child { border-right: 0; }
.atl-regla b { display: block; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 680; letter-spacing: -0.03em; line-height: 1.15; }
.atl-regla span { display: block; margin-top: 0.6rem; font-size: 1.02rem; color: var(--text-muted); }

.atl-pasos { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; }
.atl-paso { padding-top: 1.2rem; border-top: 1px solid var(--border-strong); }
.atl-paso span { font-weight: 650; color: #c9cede; font-variant-numeric: tabular-nums; }
.atl-paso h3 { margin: 0.5rem 0; font-size: 1.35rem; font-weight: 640; letter-spacing: -0.02em; line-height: 1.2; }
.atl-paso p { color: var(--text-muted); }

@media (max-width: 960px) {
  .atl-guarda__grid, .atl-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atl-uso { grid-template-columns: 60px minmax(0, 1fr); }
  .atl-uso__marca { width: 60px; height: 60px; }
  .atl-uso__ej { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .atl-guarda__grid, .atl-pasos, .atl-reglas { grid-template-columns: 1fr; }
  .atl-uso { gap: 1rem 1.1rem; padding: 1.2rem; }
  .atl-regla, .atl-regla + .atl-regla { padding: 1.4rem 0; border-right: 0; border-bottom: 1px solid var(--border); }
}
