/* ============================================================
   Landing Lain (agroindustria) — opción A, 2026-10-23
   ============================================================ */
:root {
  --bg: #050b16;
  --text: #e8eef7;
  --muted: #9fb0c6;
  --muted-2: #8a9bb2;
  --dim: #7d8da3;
  --line: rgba(255, 255, 255, 0.07);
  --blue: #2563eb;
  --blue-l: #60a5fa;
  --wa: #3ddc84;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .15s ease; }
h1, h2, h3, h4, p, figure, ul { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--blue-l); color: #031424; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.ic { display: grid; place-items: center; flex: none; }

/* ---------- botones ---------- */
.bt {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 20px; border-radius: 10px; font-size: 15px; font-weight: 600;
  white-space: nowrap; border: 1px solid transparent; transition: background .15s ease, border-color .15s ease;
}
.bt--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.bt--p { background: var(--blue); color: #fff; box-shadow: 0 10px 28px rgba(37, 99, 235, .35); }
.bt--p:hover { background: #1d4ed8; }
.bt--wa { background: rgba(37, 211, 102, .12); color: var(--wa); border-color: rgba(37, 211, 102, .35); }
.bt--wa:hover { background: rgba(37, 211, 102, .18); }
/* WhatsApp como botón principal (reemplaza a «Solicitar demo») */
.bt--was { background: #25d366; color: #052b14; box-shadow: 0 10px 28px rgba(37, 211, 102, .28); }
.bt--was:hover { background: #1fbf5b; }

/* ---------- navbar ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(5, 11, 22, .94); border-bottom: 1px solid var(--line); }
.nav__in { max-width: 1200px; margin: 0 auto; padding: 0 40px; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.4px; }
.brand svg { display: block; }
.nav__links { display: flex; gap: 30px; font-size: 14px; color: var(--muted); font-weight: 500; }
.nav__links a:hover, .nav__act a:not(.bt):hover { color: var(--text); }
.nav__act { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); font-weight: 500; }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 20px; cursor: pointer; padding: 6px; }
.mobile { display: none; flex-direction: column; padding: 10px 16px 20px; border-top: 1px solid var(--line); background: var(--bg); }
.mobile.open { display: flex; }
.mobile a { padding: 12px 4px; font-size: 15px; color: var(--muted); border-bottom: 1px solid var(--line); }
.mobile a.bt { margin-top: 14px; color: #fff; border: 0; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; padding: 70px 0; }
.hero::before {
  content: ""; position: absolute; left: -200px; top: -120px; width: 800px; max-width: 100vw; height: 600px;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .28), transparent); pointer-events: none;
}
.hero > * { position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px 4px 6px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600; background: rgba(59, 130, 246, .1); border: 1px solid rgba(59, 130, 246, .3); color: #93c5fd;
}
.badge b { background: var(--blue); color: #fff; border-radius: 12px; padding: 2px 8px; font-size: 11px; }
.hero h1 { font-size: 50px; line-height: 1.05; letter-spacing: -1.6px; font-weight: 700; margin-top: 20px; }
.hero h1 em { font-style: normal; color: var(--blue-l); }
.lead { font-size: 18px; line-height: 1.6; color: #a9b8cc; margin-top: 18px; max-width: 520px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.checks span { display: inline-flex; align-items: center; gap: 7px; }
.checks i { color: #34d399; font-size: 12px; }

/* marcos de producto (capturas) */
.comp { position: relative; height: 500px; }
.comp .brw { position: absolute; right: 0; top: 30px; width: 100%; }
.comp .phn { position: absolute; left: -52px; bottom: -24px; width: 180px; }
.brw { border-radius: 12px; overflow: hidden; background: #0d1626; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .1); }
.brw__bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #111c2e; }
.brw__bar i { width: 9px; height: 9px; border-radius: 50%; background: #34405a; }
.brw__bar span { margin-left: 12px; height: 18px; flex: 0 1 260px; min-width: 0; overflow: hidden; white-space: nowrap; border-radius: 5px; background: #1a2740; color: #7f8ea8; font-size: 10.5px; display: flex; align-items: center; padding: 0 8px; }
.brw img { width: 100%; }
.phn { border-radius: 34px; padding: 9px; background: #05080e; box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.phn img { width: 100%; border-radius: 26px; }

/* ---------- dónde se usa ---------- */
.donde { display: flex; justify-content: space-between; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.donde div { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #c7d3e3; font-weight: 500; }
.donde .ic { width: 36px; height: 36px; border-radius: 10px; background: rgba(59, 130, 246, .12); color: var(--blue-l); font-size: 15px; }

/* ---------- secciones ---------- */
.sec { padding: 88px 0 12px; scroll-margin-top: 60px; }
.kick { font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--blue-l); }
.sec h2, .cta h2 { font-size: 42px; letter-spacing: -1.4px; line-height: 1.1; margin-top: 12px; font-weight: 700; }
.sec h2 em { font-style: normal; color: var(--dim); }

/* módulos por área */
.areas { margin-top: 40px; }
.area { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 30px; padding: 30px 0; border-top: 1px solid var(--line); }
.area h3 { font-size: 20px; letter-spacing: -.4px; }
.area > div > p { font-size: 14px; color: var(--muted-2); margin-top: 6px; line-height: 1.5; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mod { padding: 20px; border-radius: 14px; background: linear-gradient(160deg, rgba(15, 32, 56, .9), rgba(8, 18, 34, .95)); border: 1px solid var(--line); transition: border-color .15s ease; }
.mod:hover { border-color: rgba(96, 165, 250, .35); }
.mod .ic { width: 42px; height: 42px; border-radius: 11px; font-size: 18px; background: rgba(59, 130, 246, .14); color: var(--blue-l); border: 1px solid rgba(59, 130, 246, .3); }
.mod--wa .ic { background: rgba(37, 211, 102, .14); color: var(--wa); border-color: rgba(37, 211, 102, .3); }
.mod--wa:hover { border-color: rgba(37, 211, 102, .35); }
.mod h4 { font-size: 16px; margin-top: 14px; letter-spacing: -.2px; }
.mod p { font-size: 14px; color: var(--muted); line-height: 1.55; margin-top: 6px; }

/* así se ve */
.asi { display: grid; grid-template-columns: 1.9fr .62fr .62fr; gap: 28px; margin-top: 44px; align-items: start; }
.asi figcaption { font-size: 14px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.asi figcaption b { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }

/* cómo funciona */
.pasos { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.pasos::before { content: ""; position: absolute; left: 23px; width: 66.66%; top: 23px; height: 1px; background: linear-gradient(90deg, rgba(96, 165, 250, .5), rgba(96, 165, 250, .1)); }
.paso { padding: 0 30px 0 0; }
.paso .n { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; font-weight: 700; font-size: 17px; background: #0f2038; border: 1px solid rgba(96, 165, 250, .45); color: #93c5fd; }
.paso h3 { font-size: 19px; margin-top: 18px; letter-spacing: -.3px; }
.paso p { font-size: 15px; color: var(--muted); line-height: 1.6; margin-top: 8px; }

/* por qué Lain */
.por { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 60px; margin-top: 40px; }
.por > div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.por .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(59, 130, 246, .12); color: var(--blue-l); font-size: 17px; }
.por h3 { font-size: 17px; }
.por p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-top: 4px; }

/* ---------- CTA final ---------- */
.cta { margin-top: 80px; padding: 70px 0; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(600px 260px at 50% 0%, rgba(37, 99, 235, .22), transparent); scroll-margin-top: 60px; }
.cta h2 { font-size: 46px; margin-top: 0; }
.cta > p { font-size: 17px; color: #a9b8cc; margin-top: 14px; }
.cta .ctas { justify-content: center; }
.cta__legal { margin-top: 18px; font-size: 13.5px; color: var(--dim); }
.cta__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .2); }
.cta__legal a:hover { color: var(--blue-l); text-decoration-color: var(--blue-l); }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 50px 0 34px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted-2); line-height: 1.9; }
.foot h4 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #c7d3e3; margin-bottom: 8px; }
.foot a { display: block; }
.foot a:hover { color: var(--blue-l); }
.foot__emp .brand { display: flex; width: fit-content; font-size: 18px; margin-bottom: 12px; }
.foot__emp b { color: var(--text); font-weight: 600; }
.foot__emp a { display: inline; }
.fbot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 0 30px; border-top: 1px solid var(--line); font-size: 12.5px; color: #6b7c93; }
.fbot a:hover { color: var(--blue-l); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 56px 0 64px; }
  .lead { max-width: 640px; }
  .comp { height: auto; padding: 0 0 30px 16%; }
  .comp .brw { position: relative; top: 0; right: auto; }
  .comp .phn { left: 0; bottom: 0; width: 28%; max-width: 190px; }
  .donde { display: grid; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav__links, .nav__act { display: none; }
  .burger { display: block; }
  .area { grid-template-columns: 1fr; gap: 16px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asi { grid-template-columns: 1fr 1fr; }
  .asi figure:first-child { grid-column: 1 / -1; }
  .sec h2 { font-size: 34px; }
  .cta h2 { font-size: 36px; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap, .nav__in { padding: 0 16px; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .lead { font-size: 16px; }
  .ctas .bt { flex: 1 1 100%; }
  .comp .phn { border-radius: 18px; padding: 5px; }
  .comp .phn img { border-radius: 14px; }
  .donde { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; gap: 10px; }
  .mod { display: grid; grid-template-columns: 42px 1fr; gap: 0 14px; padding: 16px; }
  .mod .ic { grid-row: span 2; }
  .mod h4 { margin-top: 0; align-self: center; }
  .mod p { grid-column: 2; margin-top: 4px; }
  .pasos, .por { grid-template-columns: 1fr; }
  .pasos::before { display: none; }
  .paso { padding: 0 0 26px; }
  .sec { padding-top: 64px; }
  .sec h2 { font-size: 28px; letter-spacing: -.8px; }
  .cta { margin-top: 72px; padding: 56px 0; }
  .cta h2 { font-size: 30px; letter-spacing: -.8px; }
  .foot { grid-template-columns: 1fr; gap: 24px; }
  .fbot { flex-direction: column; }
}

/* ============================================================
   Enlace a la página de cada módulo (tarjetas de la portada)
   ============================================================ */
a.mod { display: block; }
.mod__ver { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--blue-l); }
.mod__ver i { font-size: 11px; transition: transform .15s ease; }
a.mod:hover .mod__ver i { transform: translateX(2px); }
.bt--o { border-color: rgba(255, 255, 255, .18); color: var(--text); }
.bt--o:hover { background: rgba(255, 255, 255, .05); }

@media (max-width: 640px) { .mod__ver { grid-column: 2; } }

/* ============================================================
   Página de módulo (modulos/*.html) — recorrido por escenas
   ============================================================ */
.crumb { padding: 28px 0 0; font-size: 13.5px; color: var(--dim); }
.crumb a:hover { color: var(--text); }
.crumb b { color: #c7d3e3; font-weight: 500; }

/* cabecera centrada, sin captura */
.mhead { padding: 56px 0 30px; text-align: center; }
.mhead__tag { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #93c5fd; }
.mhead__tag .ic { width: 34px; height: 34px; border-radius: 10px; font-size: 15px; background: rgba(59, 130, 246, .15); color: var(--blue-l); border: 1px solid rgba(59, 130, 246, .35); }
.mhead h1 { font-size: 52px; line-height: 1.06; letter-spacing: -1.8px; font-weight: 700; max-width: 820px; margin: 18px auto 0; text-wrap: balance; }
.mhead h1 em { display: block; font-style: normal; color: var(--blue-l); }
.mhead .lead { margin: 18px auto 0; max-width: 640px; text-wrap: pretty; }
.mhead .ctas { justify-content: center; }

/* qué es el módulo */
.sobre { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin: 48px 0 0; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .02); overflow: hidden; }
.sobre__que { padding: 32px 34px; }
.sobre__que small { font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue-l); }
.sobre__que p { font-size: 17px; line-height: 1.7; color: #c7d3e3; margin-top: 12px; }
.sobre__que p + p { font-size: 16px; color: #a9b8cc; }
.sobre__dat { padding: 12px 34px; border-left: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.sobre__fila { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.sobre__fila:first-child { border-top: 0; }
.sobre__fila .ic { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; background: rgba(59, 130, 246, .12); color: var(--blue-l); }
.sobre__fila b { display: block; font-size: 14.5px; }
.sobre__fila p { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.sobre + .indice { margin-top: 18px; }

/* índice de escenas */
.indice { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 44px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.indice a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-size: 14px; color: #c7d3e3; font-weight: 500; line-height: 1.35; border-left: 1px solid var(--line); transition: background .15s ease; }
.indice a:first-child { border-left: 0; }
.indice a:hover { background: rgba(255, 255, 255, .03); }
.indice b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; color: #93c5fd; border: 1px solid rgba(96, 165, 250, .45); background: #0b1a30; }

/* escenas unidas por una línea vertical al centro */
.tour { position: relative; margin-top: 30px; }
.tour::before { content: ""; position: absolute; left: 50%; top: 40px; bottom: 40px; width: 1px; background: linear-gradient(rgba(96, 165, 250, .45), rgba(96, 165, 250, .08)); }
.esc { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 110px; align-items: center; padding: 64px 0; scroll-margin-top: 70px; }
.esc__n { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 700; color: #93c5fd; background: #0b1a30; border: 1px solid rgba(96, 165, 250, .55); box-shadow: 0 0 0 8px var(--bg); }
.esc.inv .esc__tx { order: 2; }
.esc__lugar { font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue-l); }
.esc h2 { font-size: 34px; line-height: 1.12; letter-spacing: -1px; font-weight: 700; margin-top: 10px; text-wrap: balance; }
.esc__tx > p { font-size: 16.5px; line-height: 1.65; color: #a9b8cc; margin-top: 14px; }
.esc ul { list-style: none; padding: 0; margin-top: 20px; }
.esc li { display: flex; gap: 11px; padding: 9px 0; font-size: 15px; color: #c7d3e3; border-top: 1px solid var(--line); }
.esc li i { color: #34d399; font-size: 12px; margin-top: 6px; flex: none; }
.esc__con { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 7px 12px 7px 8px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #c7d3e3; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.esc__con .ic { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; background: rgba(59, 130, 246, .14); color: var(--blue-l); }
.esc__con .ic.wa { background: rgba(37, 211, 102, .14); color: var(--wa); }
.esc__vis .phn { width: 290px; margin: 0 auto; }
.esc__vis .dos { display: flex; justify-content: center; gap: 22px; }
.esc__vis .dos .phn { width: 240px; margin: 0; }
.esc__vis .dos .phn:last-child { margin-top: 56px; }

/* para empezar */
.empezar { margin-top: 40px; padding: 34px 0 0; border-top: 1px solid var(--line); }
.empezar h3 { font-size: 22px; letter-spacing: -.4px; }
.empezar ol { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; counter-reset: paso; }
.empezar li { padding: 20px 22px; border-left: 1px solid var(--line); counter-increment: paso; }
.empezar li:first-child { border-left: 0; }
.empezar li::before { content: counter(paso); display: block; font-size: 13px; font-weight: 700; color: var(--blue-l); margin-bottom: 8px; }
.empezar b { display: block; font-size: 15.5px; }
.empezar span { display: block; font-size: 14px; color: var(--muted); line-height: 1.55; margin-top: 4px; }

/* cierre a la izquierda, en caja */
.cierre { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 30px; align-items: center; margin: 90px 0 70px; padding: 40px 44px; border-radius: 20px; border: 1px solid rgba(96, 165, 250, .25); background: linear-gradient(135deg, rgba(37, 99, 235, .16), rgba(37, 99, 235, .03)); scroll-margin-top: 70px; }
.cierre h2 { font-size: 32px; letter-spacing: -1px; line-height: 1.15; }
.cierre p { font-size: 16px; color: #a9b8cc; margin-top: 8px; }
.cierre .ctas { margin-top: 0; flex-wrap: nowrap; }
.cierre__legal { grid-column: 1 / -1; font-size: 13px; color: var(--dim); }
.cierre__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .2); }

@media (max-width: 1080px) {
  .esc { gap: 0 80px; }
  .esc__vis .dos .phn { width: 190px; }
}
@media (max-width: 900px) {
  .sobre { grid-template-columns: 1fr; }
  .sobre__dat { border-left: 0; border-top: 1px solid var(--line); }
  .indice { grid-auto-flow: row; grid-template-columns: 1fr; }
  .indice a { border-left: 0; border-top: 1px solid var(--line); }
  .indice a:first-child { border-top: 0; }
  .tour::before, .tour::after { left: 25px; }
  .esc { grid-template-columns: 1fr; gap: 28px; padding: 50px 0 50px 70px; }
  .esc__n { left: 25px; top: 50px; transform: translate(-50%, 0); }
  .esc.inv .esc__tx { order: 0; }
  .esc__vis .phn { margin: 0; }
  .esc__vis .dos { justify-content: flex-start; }
  .empezar ol { grid-template-columns: 1fr 1fr; }
  .empezar li:nth-child(3) { border-left: 0; }
  .empezar li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cierre { grid-template-columns: 1fr; }
  .cierre .ctas { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .mhead { padding-top: 40px; }
  .mhead h1 { font-size: 34px; letter-spacing: -1px; }
  .sobre__que { padding: 24px 22px; }
  .sobre__que p { font-size: 16px; }
  .sobre__dat { padding: 6px 22px; }
  .tour::before, .tour::after { left: 17px; }
  .esc { padding: 40px 0 40px 50px; }
  .esc__n { left: 17px; top: 40px; width: 36px; height: 36px; font-size: 13px; box-shadow: 0 0 0 6px var(--bg); }
  .esc h2 { font-size: 26px; }
  .esc__vis .phn { width: 100%; max-width: 250px; }
  .esc__vis .dos { gap: 12px; }
  .esc__vis .dos .phn { width: calc(50% - 6px); }
  .esc__vis .dos .phn:last-child { margin-top: 30px; }
  .empezar ol { grid-template-columns: 1fr; }
  .empezar li { border-left: 0; }
  .empezar li:nth-child(n+2) { border-top: 1px solid var(--line); }
  .cierre { padding: 28px 22px; margin: 60px 0 50px; }
  .cierre h2 { font-size: 26px; }
}

/* ============================================================
   Animaciones (js/lain.js pone .con-anim en <html>; sin JS o con
   «reducir movimiento» no se aplica nada de esto)
   ============================================================ */
.con-anim .anim { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.con-anim .anim--izq { transform: translateX(-48px); }
.con-anim .anim--der { transform: translateX(48px); }
.con-anim .anim.in { opacity: 1; transform: none; }

/* la línea del recorrido se dibuja al bajar (::after) sobre un riel tenue (::before) */
.con-anim .tour::before { background: rgba(96, 165, 250, .12); }
.con-anim .tour::after { content: ""; position: absolute; left: 50%; top: 40px; bottom: 40px; width: 2px; margin-left: -.5px; background: linear-gradient(var(--blue-l), rgba(96, 165, 250, .55)); transform-origin: top; transform: scaleY(var(--progreso, 0)); }

/* número y entrada del índice de la escena que se está leyendo */
.esc__n { transition: background .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease; }
.esc.activa .esc__n { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 0 0 8px var(--bg), 0 0 28px rgba(37, 99, 235, .55); }
.indice a b { transition: background .3s ease, color .3s ease, border-color .3s ease; }
.indice a.activa { background: rgba(37, 99, 235, .1); }
.indice a.activa b { background: var(--blue); color: #fff; border-color: var(--blue); }

/* tarjetas con enlace: se levantan al pasar el mouse */
a.mod { transition: border-color .15s ease, transform .2s ease; }
a.mod:hover { transform: translateY(-3px); }

@media (max-width: 900px) {
  .con-anim .anim--izq, .con-anim .anim--der { transform: translateY(26px); }
}
@media (max-width: 640px) {
  .esc.activa .esc__n { box-shadow: 0 0 0 6px var(--bg), 0 0 20px rgba(37, 99, 235, .55); }
}
@media (prefers-reduced-motion: reduce) {
  a.mod:hover { transform: none; }
}

/* ============================================================
   Visor de capturas (js/lain.js): clic en una captura para verla en grande
   ============================================================ */
.ampliable { cursor: zoom-in; transition: filter .2s ease; }
.ampliable:hover { filter: brightness(1.06); }
.visor { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 56px 24px 24px; background: rgba(2, 6, 14, .9); cursor: zoom-out; }
.visor.abierto { display: flex; }
.visor figure { margin: 0; max-width: min(1400px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.visor img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.visor--movil img { border-radius: 26px; }
.visor figcaption { max-width: 760px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
.visor__cerrar { position: absolute; top: 14px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: var(--text); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.visor__cerrar:hover { background: rgba(255, 255, 255, .12); }

/* foco visible al navegar con el teclado */
a:focus-visible, button:focus-visible, .ampliable:focus-visible { outline: 2px solid var(--blue-l); outline-offset: 3px; border-radius: 6px; }

/* ============================================================
   Ajustes visuales (revisión de diseño 2026-10-24)
   ============================================================ */
/* 1. tarjetas de módulos sin huecos: filas de 3; si al final sobran 2, se reparten la fila; si sobra 1, ocupa todo el ancho en horizontal */
@media (min-width: 901px) {
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards > * { grid-column: span 2; }
  .cards > :nth-child(3n+1):nth-last-child(2), .cards > :nth-child(3n+1):nth-last-child(2) + * { grid-column: span 3; }
  .cards > :nth-child(3n+1):last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; column-gap: 18px; align-items: center; }
  .cards > :nth-child(3n+1):last-child .ic { grid-row: 1 / span 2; }
  .cards > :nth-child(3n+1):last-child h4 { grid-column: 2; margin-top: 0; align-self: end; }
  .cards > :nth-child(3n+1):last-child p { grid-column: 2; max-width: 640px; margin-top: 4px; align-self: start; }
  .cards > :nth-child(3n+1):last-child .mod__ver { grid-column: 3; grid-row: 1 / span 2; margin-top: 0; }
}

/* 2. «Así se ve» en una banda propia, de borde a borde */
.sec--banda { position: relative; margin-top: 88px; padding: 76px 0 84px; }
.sec--banda::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: linear-gradient(180deg, #081426, #060e1b); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: -1; }

/* 6. en las escenas, las capturas del panel ganan ancho hacia el margen de la página */
@media (min-width: 1081px) {
  .esc { --sangria: clamp(0px, calc((100vw - 1120px) / 2 - 28px), 110px); }
  .esc__vis .brw { width: calc(100% + var(--sangria)); }
  .esc:not(.inv) .esc__vis .brw { margin-right: calc(-1 * var(--sangria)); }
  .esc.inv .esc__vis .brw { margin-left: calc(-1 * var(--sangria)); }
}
/* «Así se ve»: los teléfonos con la misma proporción, para que sus textos queden alineados */
.asi .phn img { aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }
/* páginas de módulo: lo que sobresale a los costados (capturas que ganan ancho, animaciones laterales) no genera desplazamiento horizontal */
.recorte { overflow-x: hidden; overflow-x: clip; }
