/* ══════════════════════════════════════════════════════════════
   Prospecta360 — hoja de estilos única.
   Todo el sistema de diseño vive en las variables de :root.
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Color — blanco base, naranjo identidad, azul solo para datos. */
  --tinta:     #0A1220;
  --tinta-2:   #16233A;
  --gris:      #5B6B80;
  --gris-cl:   #8C9AAC;
  --linea:     #E6EBF2;
  --niebla:    #F5F7FA;
  --blanco:    #FFFFFF;

  --naranjo:   #FF5A16;
  --naranjo-o: #E44B0B;
  --naranjo-cl:#FFF0E8;

  --azul:      #1F5BFF;
  --azul-cl:   #E9EFFF;

  /* Tipografía */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --cuerpo:  "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  --dato:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Geometría */
  --ancho:  1200px;
  --aire:   clamp(4.5rem, 8vw, 7.5rem);
  --radio:  16px;
  --radio-s: 10px;

  --sombra:   0 1px 2px rgba(10,18,32,.05), 0 14px 34px -18px rgba(10,18,32,.18);
  --sombra-g: 0 2px 4px rgba(10,18,32,.04), 0 40px 80px -40px rgba(10,18,32,.35);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blanco);
  color: var(--tinta);
  font-family: var(--cuerpo);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.04; letter-spacing: -.03em; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }

.oculto {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.saltar {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--tinta); color: #fff; padding: .7rem 1.1rem;
  border-radius: 8px; text-decoration: none; font-weight: 600;
  transition: top .2s;
}
.saltar:focus { top: 16px; }

.caja { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }

/* ─────────── Barra ─────────── */

.barra {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.barra.esta-abajo { border-bottom-color: var(--linea); box-shadow: 0 8px 24px -20px rgba(10,18,32,.5); }

.barra__caja {
  width: min(100% - 2.5rem, var(--ancho));
  margin-inline: auto;
  height: 72px;
  display: flex; align-items: center; gap: 2rem;
}

.barra__progreso {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--naranjo), var(--azul));
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
}

.marca { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.marca__signo { color: var(--tinta); width: 30px; height: 30px; flex: none; }
.marca__signo svg { width: 100%; height: 100%; }
.marca__texto {
  font-family: var(--display); font-weight: 700; font-size: 1.28rem;
  letter-spacing: -.035em; font-stretch: 92%;
}
.marca__360 { color: var(--naranjo); }

.menu { display: flex; gap: 1.75rem; }
.menu a {
  text-decoration: none; font-size: .95rem; font-weight: 600; color: var(--gris);
  position: relative; padding-block: .3rem; transition: color .2s;
}
.menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--naranjo); transition: right .28s cubic-bezier(.2,.8,.3,1);
}
.menu a:hover { color: var(--tinta); }
.menu a:hover::after { right: 0; }

.panel { display: contents; }
.barra__acciones { display: flex; align-items: center; gap: .6rem; }

.hamburguesa {
  display: none; width: 42px; height: 42px; border: 1px solid var(--linea);
  background: #fff; border-radius: 10px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.hamburguesa span { width: 17px; height: 2px; background: var(--tinta); border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburguesa[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.hamburguesa[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ─────────── Botones ─────────── */

.boton {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: .68rem 1.15rem; border-radius: 10px; border: 1px solid transparent;
  white-space: nowrap; cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), background-color .2s, box-shadow .2s, border-color .2s;
}
.boton--g { padding: .95rem 1.6rem; font-size: 1rem; border-radius: 12px; }

.boton--sol { background: var(--naranjo); color: #fff; box-shadow: 0 10px 22px -12px rgba(255,90,22,.9); }
.boton--sol:hover { background: var(--naranjo-o); transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(255,90,22,.85); }

.boton--linea { background: #fff; color: var(--tinta); border-color: var(--linea); }
.boton--linea:hover { border-color: var(--tinta); transform: translateY(-2px); }

.boton--texto { color: var(--gris); padding-inline: .5rem; }
.boton--texto:hover { color: var(--tinta); }

/* ─────────── Tipos de texto compartidos ─────────── */

.rotulo {
  font-family: var(--dato); font-size: .74rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--naranjo);
  margin-bottom: 1.4rem;
}
.rotulo--osc { color: var(--gris); }
.rotulo--osc::before {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: var(--naranjo); vertical-align: middle; margin-right: .7rem;
}

.titulo { font-size: clamp(2rem, 4.2vw, 3.15rem); font-weight: 700; font-stretch: 88%; }
.bajada { margin-top: 1.15rem; font-size: 1.1rem; color: var(--gris); max-width: 56ch; }

.cabecera { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

.seccion { padding-block: var(--aire); }
.seccion--niebla { background: var(--niebla); border-block: 1px solid var(--linea); }

/* ─────────── Hero ─────────── */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto 40%; height: 130%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,90,22,.09), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--linea) 1px, transparent 1px), linear-gradient(90deg, var(--linea) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(80% 60% at 55% 30%, #000, transparent 75%);
          mask-image: radial-gradient(80% 60% at 55% 30%, #000, transparent 75%);
  opacity: .65;
}

.hero__caja {
  position: relative; z-index: 1;
  width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 41%) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
}

/* El texto queda fijo; solo el tablero (a la derecha) cambia de alto
   cuando las tarjetas del pipeline avanzan de columna. */
.hero__texto { padding-top: clamp(.5rem, 2vw, 1.5rem); align-self: start; }

.titular {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; font-stretch: 84%; letter-spacing: -.04em;
}
.titular__l { display: block; }
.titular__l--sol { color: var(--naranjo); font-stretch: 108%; }

.entrada { margin-top: 1.5rem; font-size: 1.1rem; color: var(--gris); max-width: 44ch; }

.lema { margin-top: 1.5rem; }
.lema span {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 1.02rem; letter-spacing: -.02em;
  padding: .45rem .95rem; border-radius: 999px;
  background: var(--naranjo-cl); color: var(--naranjo-o);
  border: 1px solid rgba(255,90,22,.22);
}
.lema--centro { margin-top: 2rem; }

.hero__botones { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__botones--centro { justify-content: center; }

/* ─────────── Tablero vivo (elemento firma) ─────────── */

.hero__tablero { position: relative; align-self: start; }
.tablero__brillo {
  position: absolute; inset: 8% -6% -14% 4%; z-index: -1; border-radius: 40px;
  background: linear-gradient(140deg, rgba(31,91,255,.16), rgba(255,90,22,.14));
  filter: blur(46px);
}

.tablero {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 20px;
  box-shadow: var(--sombra-g);
  overflow: hidden;
}

.tablero__jefe {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1rem; border-bottom: 1px solid var(--linea);
  background: linear-gradient(180deg, #fff, var(--niebla));
}

.buscador {
  display: flex; align-items: center; gap: .5rem; flex: 1 1 220px;
  background: #fff; border: 1px solid var(--linea); border-radius: 8px;
  padding: .42rem .7rem; color: var(--gris); font-size: .82rem;
}
.buscador svg { width: 14px; height: 14px; flex: none; }
.buscador--sm { flex: 0 1 160px; }

.filtros { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  font-size: .74rem; font-weight: 600; color: var(--gris);
  border: 1px solid var(--linea); border-radius: 999px; padding: .28rem .65rem;
  background: #fff; white-space: nowrap;
}
.chip--on { background: var(--tinta); border-color: var(--tinta); color: #fff; }

.kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--linea);
}
.kpi { padding: .85rem 1rem; border-right: 1px solid var(--linea); }
.kpi:last-child { border-right: 0; }
.kpi__t { display: block; font-size: .7rem; color: var(--gris); font-weight: 600; }
.kpi__n {
  display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 700;
  letter-spacing: -.04em; font-stretch: 90%; line-height: 1.1; margin-top: .15rem;
  font-variant-numeric: tabular-nums;
}
.kpi__d { font-family: var(--dato); font-size: .66rem; color: var(--gris); }
.kpi__d--sube { color: var(--azul); }
.kpi--grafico { display: flex; flex-direction: column; justify-content: space-between; }

.chispa { width: 100%; height: 34px; margin-top: .35rem; }
.chispa__linea { fill: none; stroke: var(--azul); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 200; stroke-dashoffset: 200; animation: dibujar 1.6s .5s cubic-bezier(.4,0,.2,1) forwards; }
.chispa__area { fill: var(--azul); opacity: .08; }
@keyframes dibujar { to { stroke-dashoffset: 0; } }

/* Columnas del pipeline */
.pipa {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px; background: var(--linea);
  border-bottom: 1px solid var(--linea);
}
.col { background: var(--niebla); padding: .6rem .5rem 1.1rem; min-height: 178px; }
.col__jefe { display: flex; align-items: center; justify-content: space-between; gap: .3rem; margin-bottom: .55rem; padding-inline: .15rem; }
.col__t { font-size: .68rem; font-weight: 700; letter-spacing: -.01em; color: var(--tinta); }
.col__n { font-family: var(--dato); font-size: .66rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.col__barra { height: 2px; border-radius: 2px; background: var(--linea); margin: 0 .15rem .55rem; overflow: hidden; }
.col__barra i { display: block; height: 100%; background: var(--tono, var(--azul)); width: var(--w, 30%); transition: width .6s cubic-bezier(.2,.8,.3,1); }

.carta {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio-s);
  padding: .5rem .55rem; margin-bottom: .4rem;
  box-shadow: 0 1px 2px rgba(10,18,32,.05);
  border-left: 3px solid var(--tono, var(--azul));
}
.carta__e { display: block; font-family: var(--dato); font-size: .58rem; color: var(--gris); letter-spacing: .06em; text-transform: uppercase; }
.carta__t { display: block; font-size: .76rem; font-weight: 700; letter-spacing: -.015em; margin-top: .1rem; }
.carta__d { display: block; font-size: .66rem; color: var(--gris); }
.carta.es-nueva { animation: entrar-carta .5s cubic-bezier(.2,.8,.3,1); }
@keyframes entrar-carta { from { opacity: 0; transform: translateY(-8px); } }
.carta.se-va { animation: salir-carta .45s cubic-bezier(.4,0,.6,1) forwards; }
@keyframes salir-carta { to { opacity: 0; transform: translateX(14px) scale(.94); } }

.tablero__pie {
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem 1rem; font-size: .78rem; color: var(--gris);
  background: #fff;
}
.pulso { width: 7px; height: 7px; border-radius: 50%; background: var(--naranjo); flex: none; box-shadow: 0 0 0 0 rgba(255,90,22,.55); animation: latir 2.2s infinite; }
@keyframes latir { 70% { box-shadow: 0 0 0 8px rgba(255,90,22,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,22,0); } }

/* ─────────── Problema ─────────── */

.dolores { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .75rem; }
.dolor {
  display: flex; align-items: center; gap: .8rem;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 1.05rem 1.15rem; font-weight: 600; font-size: .98rem;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s;
}
.dolor:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.dolor__x { width: 22px; height: 22px; border-radius: 6px; background: var(--niebla); flex: none; position: relative; }
.dolor__x::before, .dolor__x::after {
  content: ""; position: absolute; inset: 50% 6px auto; height: 1.8px; border-radius: 2px;
  background: var(--gris);
}
.dolor__x::before { transform: translateY(-50%) rotate(45deg); }
.dolor__x::after  { transform: translateY(-50%) rotate(-45deg); }

.cierre {
  margin-top: 2.5rem; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: -.03em; font-stretch: 90%;
  color: var(--gris);
}
.cierre em { font-style: normal; color: var(--tinta); }

/* ─────────── Pasos ─────────── */

.pasos {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0; border-top: 1px solid var(--linea);
}
.paso { padding: 1.75rem 1.4rem 1.75rem 0; position: relative; }
.paso::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0;
  background: var(--naranjo); transition: width .5s cubic-bezier(.2,.8,.3,1);
}
.paso.se-ve::before { width: 100%; transition-delay: calc(var(--i, 0) * 90ms); }
.paso__n { font-family: var(--dato); font-size: .8rem; font-weight: 500; color: var(--naranjo); }
.paso__t { font-size: 1.3rem; font-weight: 700; font-stretch: 92%; margin-top: .8rem; }
.paso__d { margin-top: .5rem; font-size: .95rem; color: var(--gris); }

/* ─────────── Consola / plataforma ─────────── */

.consola {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 250px;
  background: #fff; border: 1px solid var(--linea); border-radius: 20px;
  box-shadow: var(--sombra-g); overflow: hidden;
}
.consola__lado { padding: 1.25rem; border-right: 1px solid var(--linea); display: grid; gap: 1.1rem; align-content: start; }
.consola__lado--der { border-right: 0; border-left: 1px solid var(--linea); }

.estado__t { display: block; font-size: .78rem; color: var(--gris); font-weight: 600; }
.estado__n { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 700; font-stretch: 90%; letter-spacing: -.04em; }
.estado__b { display: block; height: 4px; border-radius: 4px; background: var(--niebla); overflow: hidden; margin-top: .35rem; }
.estado__b i { display: block; height: 100%; width: var(--w); background: var(--azul); border-radius: 4px; }
.estado--sol .estado__b i { background: var(--naranjo); }
.estado--sol .estado__n { color: var(--naranjo); }

.consola__centro { min-width: 0; }
.consola__jefe { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-bottom: 1px solid var(--linea); background: linear-gradient(180deg,#fff,var(--niebla)); flex-wrap: wrap; }

.tabla { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tabla th {
  text-align: left; font-family: var(--dato); font-size: .66rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gris);
  padding: .7rem 1rem; border-bottom: 1px solid var(--linea); font-weight: 500;
}
.tabla td { padding: .7rem 1rem; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr { transition: background-color .18s; }
.tabla tbody tr:hover { background: var(--niebla); }
.tabla td b { display: block; font-weight: 700; letter-spacing: -.01em; }
.tabla td span { display: block; font-size: .78rem; color: var(--gris); }
.dato { font-family: var(--dato); font-size: .78rem; color: var(--gris); white-space: nowrap; }

.pill {
  display: inline-block; font-size: .7rem; font-weight: 700; padding: .2rem .55rem;
  border-radius: 999px; background: var(--niebla); color: var(--gris); white-space: nowrap;
}
.tabla td .pill { display: inline-block; font-size: .7rem; color: var(--gris); }
.pill--azul, .tabla td .pill--azul { background: var(--azul-cl); color: var(--azul); }
.pill--sol, .tabla td .pill--sol { background: var(--naranjo-cl); color: var(--naranjo-o); }

.mini { font-size: .78rem; font-family: var(--dato); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.actividad { display: grid; gap: .9rem; }
.actividad li { position: relative; padding-left: 1.1rem; font-size: .84rem; line-height: 1.45; }
.actividad b { font-weight: 700; }
.actividad .dato { display: block; font-size: .7rem; }
.actividad__p { position: absolute; left: 0; top: .42rem; width: 7px; height: 7px; border-radius: 50%; background: var(--linea); }
.actividad__p--sol { background: var(--naranjo); }
.actividad__p--azul { background: var(--azul); }

.pie-nota { margin-top: 1.75rem; color: var(--gris); font-size: .95rem; }

/* ─────────── Valor ─────────── */

.valores { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.valor {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 1.5rem 1.25rem; transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s, border-color .22s;
}
.valor:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: #D9E1EC; }
.valor__i { display: block; width: 34px; height: 34px; color: var(--tinta); }
.valor__i svg { width: 100%; height: 100%; }
.valor__t { font-size: 1.15rem; font-weight: 700; font-stretch: 92%; margin-top: 1.1rem; }
.valor__d { margin-top: .4rem; font-size: .92rem; color: var(--gris); }

/* ─────────── Resultados ─────────── */

.logros { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .5rem 2rem; }
.logro {
  display: flex; align-items: center; gap: .9rem;
  padding: 1.1rem .25rem; border-bottom: 1px solid var(--linea);
  font-family: var(--display); font-weight: 700; font-stretch: 92%;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: -.025em;
}
.logro__v { width: 20px; height: 20px; flex: none; position: relative; }
.logro__v::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 2px;
  background: var(--naranjo); border-radius: 2px; transform-origin: left center; transform: rotate(45deg);
}
.logro__v::after {
  content: ""; position: absolute; left: 6px; top: 12px; width: 12px; height: 2px;
  background: var(--naranjo); border-radius: 2px; transform-origin: left center; transform: rotate(-52deg);
}

/* ─────────── Mensaje de marca ─────────── */

.marca-msg {
  position: relative; overflow: hidden;
  background: var(--tinta); color: #fff;
  padding-block: clamp(5rem, 10vw, 8.5rem);
}
.marca-msg__arco {
  position: absolute; inset: auto -10% -60% auto; width: 780px; height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,90,22,.42), transparent 62%);
  pointer-events: none;
}
.marca-msg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(70% 80% at 20% 40%, #000, transparent 80%);
          mask-image: radial-gradient(70% 80% at 20% 40%, #000, transparent 80%);
}
.marca-msg__caja { position: relative; z-index: 1; }
.marca-msg__rotulo {
  font-family: var(--dato); font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--naranjo); margin-bottom: 1.6rem;
}
.marca-msg__t { font-size: clamp(2.2rem, 5.4vw, 4.2rem); font-weight: 800; font-stretch: 84%; letter-spacing: -.04em; }
.marca-msg__t em { font-style: normal; color: var(--naranjo); font-stretch: 108%; }
.marca-msg__d { margin-top: 1.75rem; max-width: 58ch; font-size: 1.1rem; color: rgba(255,255,255,.68); }

/* ─────────── CTA final ─────────── */

.cta__caja { text-align: center; }
.cta .bajada { margin-inline: auto; }
.cta .lema--centro { display: flex; justify-content: center; }

/* ─────────── Pie ─────────── */

.pie { background: var(--niebla); border-top: 1px solid var(--linea); padding-block: 3rem 2.5rem; }
.pie__caja { display: grid; gap: 1.5rem; }
.pie__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.pie__nav a { text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--gris); }
.pie__nav a:hover { color: var(--naranjo); }
.pie__legal { font-size: .8rem; color: var(--gris); border-top: 1px solid var(--linea); padding-top: 1.5rem; }

/* ─────────── Revelado al hacer scroll ─────────── */

.animar { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2,.8,.3,1), transform .6s cubic-bezier(.2,.8,.3,1); }
.animar.se-ve { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 70ms); }

/* ─────────── Adaptación ─────────── */

@media (max-width: 1080px) {
  .hero__caja { grid-template-columns: 1fr; }
  .hero__texto { max-width: 42rem; }
  .pasos { grid-template-columns: repeat(2, 1fr); }
  .paso { padding-right: 1.75rem; }
  .valores { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr; }
  .consola { grid-template-columns: 1fr; }
  .consola__lado { grid-template-columns: repeat(4, 1fr); border-right: 0; border-bottom: 1px solid var(--linea); }
  .consola__lado--der { grid-template-columns: 1fr; border-left: 0; border-bottom: 0; border-top: 1px solid var(--linea); }
}

@media (max-width: 860px) {
  .hamburguesa { display: flex; }

  /* El menú y los botones bajan juntos en un solo panel. */
  .panel {
    display: none; flex-direction: column; gap: 1rem;
    position: absolute; left: 0; right: 0; top: 72px;
    background: #fff; border-bottom: 1px solid var(--linea);
    padding: .25rem 1.25rem 1.25rem;
    box-shadow: 0 20px 40px -30px rgba(10,18,32,.6);
  }
  .barra.esta-abierta .panel { display: flex; }

  .menu { flex-direction: column; gap: 0; }
  .menu a { padding-block: .9rem; border-bottom: 1px solid var(--linea); font-size: 1.05rem; color: var(--tinta); }
  .menu a::after { display: none; }

  .barra__acciones { gap: .6rem; }
  .barra__acciones .boton { flex: 1; }
  .barra__acciones .boton--texto { border: 1px solid var(--linea); padding-block: .68rem; }

  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-bottom: 1px solid var(--linea); }
  .kpi:nth-child(2n) { border-right: 0; }

  .pipa { grid-template-columns: repeat(3, 1fr); }
  .col { min-height: 150px; }

  .consola__lado { grid-template-columns: repeat(2, 1fr); }
  .tabla thead { display: none; }
  .tabla tr { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; padding: .8rem 1rem; border-bottom: 1px solid var(--linea); }
  .tabla td { border: 0; padding: 0; }
  .tabla td:first-child { grid-row: 1 / 3; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero__botones .boton { width: 100%; }
  .pasos { grid-template-columns: 1fr; }
  .paso { padding-right: 0; }
  .valores { grid-template-columns: 1fr; }
  .pipa { grid-template-columns: repeat(2, 1fr); }
  .logro { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .animar { opacity: 1; transform: none; }
}
