/* ==========================================================================
   Biting Consulting — página del ERP (BumbleBee)
   Se carga solo en erp.html, después de styles.css, y usa sus tokens.

   Las piezas comunes (escenas fijas, apariciones, formas de fondo) están en
   motion.css; aquí solo lo propio de esta página, bajo <html class="motion">.

   1. Base común   2. Portada   3. Recorrido   4. Módulos   5. Pantallas
   6. Fortalezas   7. Vídeo y cierre   8. Móvil
   ========================================================================== */

:root {
  --ok: #1d6b3a;
  --warn: #8a5a00;
  --alert: #b3261e;
}

/* 1. Base común ----------------------------------------------------------- */

/* Icono cuadrado, como el resto de la web */
.erp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.erp-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 2. Portada -------------------------------------------------------------- */
.erp-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-block: clamp(40px, 6vw, 96px);
}
.erp-hero__title { max-width: 15ch; }
.erp-hero .lead { margin-bottom: 28px; }
.erp-hero__scene { display: none; }

.motion .erp-hero { height: 230vh; }
.motion .erp-hero__inner {
  height: 100%;
  align-items: center;
  padding-block: 24px 72px;
}
.motion .erp-hero__scene {
  display: block;
  position: relative;
  height: 100%;
  min-height: 300px;
  perspective: 1400px;
}
@media (min-width: 1024px) {
  .motion .erp-hero__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.erp-cloud {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.pane {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  height: 184px;
  padding: 36px 16px 16px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 10, 30, .35);
  will-change: transform, opacity;
}
.pane__bar {
  position: absolute;
  inset: 0 0 auto;
  height: 22px;
  background: var(--blue);
}
.pane__label {
  position: absolute;
  top: -34px;
  left: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sky);
  white-space: nowrap;
}
.pane i { display: block; }

/* Contenido en miniatura de cada pieza */
.pane__rows i { height: 10px; margin-bottom: 14px; background: var(--tint-2); }
.pane__rows i:nth-child(2) { width: 80%; }
.pane__rows i:nth-child(3) { width: 92%; }
.pane__rows i:nth-child(4) { width: 60%; }
.pane__rows--tags i { position: relative; width: 70%; }
.pane__rows--tags i::after {
  content: "";
  position: absolute;
  right: -34%;
  top: -2px;
  width: 26%;
  height: 14px;
  background: var(--navy);
}
.pane__drawing { position: relative; display: block; height: 120px; }
.pane__drawing i:nth-child(1) { position: absolute; left: 30%; top: 14px; width: 92px; height: 92px; border: 2px solid var(--navy); border-radius: 50%; }
.pane__drawing i:nth-child(2) { position: absolute; left: 10%; right: 10%; top: 60px; border-top: 1px dashed var(--blue); }
.pane__drawing i:nth-child(3) { position: absolute; left: calc(30% + 46px); top: 0; bottom: 0; border-left: 1px dashed var(--blue); }
.pane__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 30px; }
.pane__steps i { height: 46px; border: 2px solid var(--navy); }
.pane__steps i:nth-child(-n+2) { background: var(--navy); }
.pane__doc i { height: 8px; margin-bottom: 12px; background: var(--tint-2); }
.pane__doc i:first-child { width: 50%; height: 16px; background: var(--navy); }
.pane__doc i:last-child { width: 40%; margin-left: auto; }

.pane--main {
  width: 380px;
  height: 250px;
  padding: 58px 24px 24px;
  opacity: 0;
}
.pane--main .pane__bar {
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--blue);
  font-size: 13px;
  letter-spacing: .08em;
  color: #fff;
}
.pane__promise {
  display: block;
  margin-bottom: 18px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--navy);
}
.pane__modules { display: flex; flex-wrap: wrap; gap: 6px; }
.pane__modules i {
  padding: 4px 8px;
  border: 2px solid var(--navy);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}

/* 3. Recorrido del pedido ------------------------------------------------- */
.erp-flow__head { padding-top: clamp(36px, 5vw, 72px); }
.erp-flow__svg, .erp-flow__token { display: none; }

/* Sin animación: las cuatro estaciones en una rejilla */
.erp-flow__stations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 2px;
  margin-block: 24px clamp(36px, 5vw, 72px);
  border: 2px solid var(--divider);
  background: var(--divider);
}
.erp-station { background: var(--bg); }
.erp-station__link { display: block; height: 100%; padding: 24px; color: var(--text); }
.erp-station__link:hover { background: var(--tint); color: var(--text); text-decoration: none; }
.erp-station__link > span { display: block; }
.erp-station__dot { display: none !important; }
.erp-station__num { margin-bottom: 8px; font-size: 14px; font-weight: 800; color: var(--blue); }
.erp-station__name { margin-bottom: 6px; font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.erp-station__desc { font-size: 14px; line-height: 1.5; color: var(--muted); }

.motion .erp-flow { height: 280vh; }
.motion .erp-flow .pin { display: flex; flex-direction: column; }
.motion .erp-flow__head { padding-top: clamp(24px, 4vh, 56px); }
.motion .erp-flow__canvas { position: relative; flex: 1 1 auto; display: flex; align-items: center; }
.motion .erp-flow__svg { display: block; width: 100%; height: auto; max-height: 100%; overflow: visible; }
.erp-flow__base { fill: none; stroke: var(--divider); stroke-width: 2; stroke-dasharray: 2 10; stroke-linecap: round; }
.erp-flow__line { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; }

.motion .erp-flow__token {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  padding: 7px 10px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 35, 79, .3);
  will-change: transform;
}

.motion .erp-flow__stations { position: absolute; inset: 0; display: block; margin: 0; border: 0; background: none; }
.motion .erp-station { position: absolute; width: 0; height: 0; background: none; }
.motion .erp-station__link {
  position: absolute;
  left: -9px;
  top: 30px;
  width: clamp(170px, 20vw, 250px);
  height: auto;
  padding: 10px 12px;
  background: var(--bg);
  opacity: .28;
  transform: translateY(14px);
  transition: opacity .9s var(--out), transform .9s var(--out);
}
.motion .erp-station__link:hover { background: none; }
.motion .erp-station.is-up .erp-station__link { top: auto; bottom: 30px; }
.motion .erp-station.is-end .erp-station__link { left: auto; right: -9px; text-align: right; }
.motion .erp-station.is-on .erp-station__link { opacity: 1; transform: none; }
.motion .erp-station__dot {
  display: block !important;
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color .5s var(--out);
}
.motion .erp-station__link .erp-station__dot { top: -39px; }
.motion .erp-station.is-up .erp-station__link .erp-station__dot { top: auto; bottom: -39px; }
.motion .erp-station.is-end .erp-station__dot { left: auto; right: 0; }
.motion .erp-station.is-on .erp-station__dot { background: var(--blue); }
.motion .erp-station.is-on .erp-station__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  animation: erp-ping 1.6s var(--out) 1;
}
@keyframes erp-ping { to { transform: scale(2.6); opacity: 0; } }

/* En vertical (móvil), la tarjeta va al lado del punto, no encima ni debajo */
.motion .erp-station.is-side .erp-station__link {
  top: 0;
  bottom: auto;
  left: 24px;
  right: auto;
  width: min(62vw, 260px);
  transform: translateY(calc(-50% + 14px));
}
.motion .erp-station.is-side.is-on .erp-station__link { transform: translateY(-50%); }
.motion .erp-station.is-side.is-end .erp-station__link { left: auto; right: 24px; }
.motion .erp-station.is-side .erp-station__link .erp-station__dot { top: 50%; bottom: auto; left: -33px; right: auto; margin-top: -9px; }
.motion .erp-station.is-side.is-end .erp-station__link .erp-station__dot { left: auto; right: -33px; }

/* 4. Módulos ---------------------------------------------------------------- */
.erp-journey__head { padding-top: clamp(36px, 5vw, 72px); }
.erp-journey__floor, .erp-journey__progress { display: none; }
.erp-journey__note { margin: 0; padding: 0 var(--gutter) 32px; font-size: 12px; color: var(--subtle); text-align: center; }

/* Sin animación: cada módulo es una fila con texto y pantalla */
.erp-chapters { max-width: var(--max); margin-inline: auto; padding: 24px var(--gutter) 48px; }
.chapter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 48px;
  align-items: center;
  padding-block: 32px;
  border-top: 2px solid var(--divider);
}
@media (min-width: 1024px) {
  .chapter { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.chapter__text .h2 { margin-bottom: 14px; }
.chapter__text .text { max-width: 50ch; }

.erp-checks { margin-top: 18px; }
.erp-checks li {
  position: relative;
  padding: 9px 0 9px 30px;
  border-top: 1px solid var(--divider);
  font-size: 15px;
  color: var(--muted);
}
.erp-checks li:last-child { border-bottom: 1px solid var(--divider); }
.erp-checks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 15px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.erp-try { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--blue); }
html:not(.js) .erp-try { display: none; }

/* Con animación: una cámara que avanza entre las pantallas */
.motion .erp-journey { height: 640vh; }
.motion .erp-journey__head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding-top: clamp(20px, 3.5vh, 40px);
  pointer-events: none;
}
.motion .erp-journey__head .h2 { font-size: clamp(18px, 1.6vw, 22px); }

.motion .erp-journey__floor {
  display: block;
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 70%;
  background-image:
    linear-gradient(var(--tint-2) 2px, transparent 2px),
    linear-gradient(90deg, var(--tint-2) 2px, transparent 2px);
  background-size: 120px 120px;
  background-position: 50% var(--floor, 0px);
  transform: perspective(700px) rotateX(72deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  pointer-events: none;
}

.motion .erp-chapters {
  position: absolute;
  inset: 0;
  max-width: none;
  padding: 0;
  perspective: 1200px;
  perspective-origin: 64% 48%;
}
.motion .chapter {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  border: 0;
  pointer-events: none;
  transform-style: preserve-3d;
}
.motion .chapter__text {
  position: absolute;
  top: 50%;
  left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  width: min(440px, 34vw);
  will-change: transform, opacity;
}
.motion .chapter__screen {
  position: absolute;
  left: 64%;
  top: 48%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.motion .chapter__screen .app {
  position: absolute;
  left: 0;
  top: 0;
  width: 680px;
  transform: translate(-50%, -50%) scale(var(--fit, 1));
}
.motion .chapter.is-active { pointer-events: auto; }

.motion .erp-journey__progress {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(16px, 3vh, 32px);
  z-index: 2;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.erp-journey__bar { display: block; height: 2px; background: var(--tint-2); }
.erp-journey__fill {
  display: block;
  height: 100%;
  background: var(--blue);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}
.erp-journey__progress ol { display: grid; grid-template-columns: repeat(5, 1fr); }
.erp-journey__progress a {
  display: block;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--subtle);
  transition: color .4s var(--out);
}
.erp-journey__progress a:hover { color: var(--navy); text-decoration: none; }
.erp-journey__progress a[aria-current="step"] { color: var(--navy); }
.erp-journey__n { color: var(--blue); }
.motion .erp-journey__note {
  position: absolute;
  right: var(--gutter);
  bottom: calc(clamp(16px, 3vh, 32px) + 48px);
  padding: 0;
  z-index: 2;
}

/* 5. Pantallas de ejemplo ------------------------------------------------- */
.app {
  border: 2px solid var(--navy);
  background: #fff;
  box-shadow: 0 40px 80px rgba(0, 35, 79, .18);
}
.app__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  background: var(--navy);
}
.app__dots { display: flex; gap: 6px; }
.app__dots i { display: block; width: 9px; height: 9px; background: var(--sky); }
.app__dots i:nth-child(2) { opacity: .6; }
.app__dots i:nth-child(3) { opacity: .3; }
.app__title { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #fff; }

.screen { padding: 24px; }
.screen__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.screen__sub { margin: -8px 0 14px; font-size: 13px; color: var(--muted); }
.screen__label {
  margin: 18px 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--subtle);
}
.screen__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis--4 { grid-template-columns: repeat(4, 1fr); }
.kpi { padding: 10px 12px; background: var(--bg); border: 1px solid var(--tint-2); }
.kpi__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi__value {
  display: block;
  margin-top: 2px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.kpi__value--warn { color: var(--warn); }
.kpi__value--alert { color: var(--alert); }
.kpi__value--ok { color: var(--ok); }

.bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  height: 170px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--navy);
}
.bar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.bar__fill { display: block; height: 0; background: var(--blue); transform-origin: 50% 100%; transition: transform 1.2s var(--out), background-color .2s ease; }
.bar--now .bar__fill { background: var(--navy); }
.bar:hover .bar__fill,
.bar:focus-visible .bar__fill,
.bar.is-current .bar__fill { background: var(--sky); }
.bar__m {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--subtle);
}
/* Cada barra tiene su altura fija; la animación solo la escala (transform) */
.bar--h45 .bar__fill { height: 45%; }
.bar--h52 .bar__fill { height: 52%; }
.bar--h60 .bar__fill { height: 60%; }
.bar--h68 .bar__fill { height: 68%; }
.bar--h74 .bar__fill { height: 74%; }
.bar--h92 .bar__fill { height: 92%; }
.motion .bar__fill { transform: scaleY(0); }
.motion .is-played .bar__fill { transform: none; }
.bar:nth-child(2) .bar__fill { transition-delay: .07s; }
.bar:nth-child(3) .bar__fill { transition-delay: .14s; }
.bar:nth-child(4) .bar__fill { transition-delay: .21s; }
.bar:nth-child(5) .bar__fill { transition-delay: .28s; }
.bar:nth-child(6) .bar__fill { transition-delay: .35s; }
.bars__readout { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); min-height: 1.5em; }

.tag {
  display: inline-block;
  padding: 4px 8px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .4s var(--out), border-color .4s var(--out), color .4s var(--out), opacity .5s var(--out), transform .5s var(--out);
}
.tag--line { background: transparent; color: var(--navy); }
.tag--done { background: var(--ok); border-color: var(--ok); color: #fff; }
.tag--error { background: var(--alert); border-color: var(--alert); color: #fff; }
.tag--btn { cursor: pointer; }
.tag--btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.eng { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: 16px; }
.eng__list { display: flex; flex-direction: column; gap: 6px; }
.eng__it {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--tint-2);
  background: var(--bg);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background-color .3s var(--out), color .3s var(--out);
}
.eng__it small { display: block; font-size: 11px; font-weight: 600; color: var(--subtle); }
.eng__it:hover { background: var(--tint); }
.eng__it.is-selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.eng__it.is-selected small { color: var(--sky); }

.eng__tabs { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--tint-2); }
.eng__tabs [role="tab"] {
  padding: 7px 10px;
  border: 0;
  background: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--subtle);
  cursor: pointer;
  box-shadow: inset 0 -3px 0 transparent;
  transition: color .3s var(--out), box-shadow .3s var(--out);
}
.eng__tabs [role="tab"]:hover { color: var(--navy); }
.eng__tabs [aria-selected="true"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--blue); }

.eng__rows li,
.lines li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--tint-2);
  font-size: 14px;
}
.eng__rows b, .lines b { min-width: 44px; color: var(--blue); }
.lines em { margin-left: auto; font-style: normal; font-weight: 700; }
.eng__rows li { animation: erp-rise .6s var(--out) both; }
.eng__rows li:nth-child(2) { animation-delay: .06s; }
.eng__rows li:nth-child(3) { animation-delay: .12s; }
.eng__rows li:nth-child(4) { animation-delay: .18s; }
@keyframes erp-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid th {
  padding: 6px 8px;
  border-bottom: 2px solid var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  color: var(--subtle);
}
.grid td { padding: 9px 8px; border-bottom: 1px solid var(--tint-2); white-space: nowrap; }
.grid tbody tr { transition: background-color .3s ease, opacity .7s var(--out), transform .7s var(--out); }
.screen[data-screen="produccion"] tbody tr { cursor: pointer; }
.screen[data-screen="produccion"] tbody tr:hover td { background: var(--bg); }
.grid tr.is-selected td { background: var(--tint); }
.grid tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.grid tr.is-error td { background: #fbeaea; }
.motion .screen:not(.is-played) .grid tbody tr { opacity: 0; transform: translateY(10px); }
.grid tbody tr:nth-child(2) { transition-delay: .06s; }
.grid tbody tr:nth-child(3) { transition-delay: .12s; }
.grid tbody tr:nth-child(4) { transition-delay: .18s; }
.grid tbody tr:nth-child(5) { transition-delay: .24s; }

.grid--import tr.is-pending .tag { opacity: 0; transform: scale(.7); }
.grid--import tr.is-pending td { color: var(--subtle); background: transparent; }
.import-summary { font-size: 13px; font-weight: 700; transition: opacity .4s var(--out); }
.import-summary.is-pending { opacity: 0; }

.progress { display: flex; height: 10px; margin-top: 14px; background: var(--tint-2); }
.progress__ok { width: 64%; background: var(--ok); transform-origin: 0 50%; transition: transform 1.4s var(--out); }
.progress__wip { width: 24%; background: var(--blue); transform-origin: 0 50%; transition: transform 1.4s var(--out) .3s; }
.motion .screen:not(.is-played) .progress__ok,
.motion .screen:not(.is-played) .progress__wip { transform: scaleX(0); }
.lines { margin-top: 8px; }

/* 6. Fortalezas -------------------------------------------------------------- */
.erp-strengths { position: relative; overflow: clip; }
.erp-strengths__inner { position: relative; z-index: 1; padding-block: clamp(36px, 5vw, 72px); }

.erp-lines { margin-top: 24px; border-top: 2px solid var(--divider); }
.erp-line {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 20px;
  padding-block: 28px;
  border-bottom: 1px solid var(--divider);
}
.erp-line .erp-icon { grid-row: span 3; }
.erp-line__title { margin: 0; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
.erp-line__short { margin: 0; font-size: 17px; color: var(--text); }
.erp-line__more { margin: 8px 0 0; max-width: 62ch; font-size: 15px; color: var(--muted); }

.motion .erp-lines { border-top: 0; margin-top: 0; }
.motion .erp-line {
  min-height: 62vh;
  align-content: center;
  border-bottom: 0;
  will-change: opacity, transform;
}
.motion .erp-line:first-child { min-height: 48vh; }
.motion .erp-line__title { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.03em; }
.motion .erp-line__short { font-size: clamp(17px, 1.5vw, 21px); margin-top: 8px; }
.motion .erp-line__more { will-change: opacity, transform; }

/* 7. Vídeo y cierre ---------------------------------------------------------- */
.erp-video { display: grid; gap: clamp(20px, 3vw, 48px); align-items: center; }
@media (min-width: 1024px) { .erp-video { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.erp-video__frame { border: 2px solid var(--navy); background: var(--navy); box-shadow: 0 40px 80px rgba(0, 35, 79, .18); }
.erp-video__frame video { display: block; width: 100%; height: auto; }
.erp-cta__title { color: #fff; }

/* 8. Móvil y tableta ---------------------------------------------------------- */
@media (max-width: 1023px) {
  .motion .erp-hero__inner { grid-template-rows: auto 1fr; padding-block: 20px 64px; gap: 8px; }
  .motion .erp-hero .lead { display: none; }
  .motion .erp-hero .actions .btn--outline-light { display: none; }

  .motion .erp-journey__head .h2 { display: none; }
  .motion .erp-chapters { perspective-origin: 50% 30%; }
  .motion .chapter__screen { left: 50%; top: 31%; }
  .motion .chapter__text {
    top: auto;
    bottom: 76px;
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
  }
  .motion .chapter__text .h2 { font-size: 24px; margin-bottom: 8px; }
  .motion .chapter__text .text,
  .motion .erp-try,
  .motion .erp-journey__note { display: none; }
  .motion .erp-checks { margin-top: 8px; }
  .motion .erp-checks li { padding-block: 6px; font-size: 13px; }
  .motion .erp-checks li::before { top: 11px; }
  .erp-journey__progress a { font-size: 10px; letter-spacing: .04em; }
  .erp-journey__progress a span:not(.erp-journey__n) { display: none; }

  .motion .erp-station__link { width: 46vw; }
  .erp-station__name { font-size: 17px; }
  .erp-station__desc { font-size: 13px; }
}
@media (max-width: 639px) {
  /* Con animación la pantalla se escala entera; sin ella, se reordena */
  html:not(.motion) .kpis--4 { grid-template-columns: repeat(2, 1fr); }
  html:not(.motion) .eng { grid-template-columns: 1fr; }
  html:not(.motion) .eng__list { flex-direction: row; }
  html:not(.motion) .grid td { white-space: normal; }
  html:not(.motion) .app { overflow-x: auto; }
}
