/* ==========================================================================
   Grupo Talia · Hoja de estilos principal
   1. Tokens · 2. Base · 3. Layout · 4. Tipografía · 5. Botones
   6. Cabecera y navegación · 7. Heros · 8. Componentes · 9. Home
   10. Páginas interiores · 11. Pie · 12. Capas globales
   13. Media queries · 14. Movimiento reducido
   Paleta y tipografía tomadas de la marca actual (naranja, ámbar, azul noche, Barlow).
   ========================================================================== */

/* 1. TOKENS ================================================================ */
@property --trace-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: light;

  /* Marca */
  --naranja: #D88329;
  --naranja-fuerte: #C4621C;
  --naranja-texto: #A8520F;
  --ambar: #FFAB00;
  --ambar-suave: #F7C318;

  /* Azul noche */
  --noche: #0B1621;
  --noche-2: #10202F;
  --noche-3: #192D3F;
  --noche-linea: rgba(244, 247, 251, 0.12);
  --noche-linea-2: rgba(244, 247, 251, 0.22);

  /* Claros */
  --claro: #F2F5F8;
  --blanco: #FFFFFF;
  --tinta: #252930;
  --gris: #5A6470;
  --linea: rgba(37, 41, 48, 0.12);
  --linea-2: rgba(37, 41, 48, 0.22);

  /* Texto sobre oscuro */
  --luz: #F4F7FB;
  --luz-2: #C4D0DC;
  --luz-3: #9FB0C0;

  --exito: #0F766E;
  --error: #B42318;

  /* Tipografía */
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-text: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --fs-xs: 0.76rem;
  --fs-sm: 0.92rem;
  --fs-base: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --fs-lg: clamp(1.15rem, 1.04rem + 0.45vw, 1.4rem);
  --fs-h3: clamp(1.35rem, 1.15rem + 0.8vw, 1.85rem);
  --fs-h2: clamp(2.2rem, 1.45rem + 3.1vw, 4.4rem);
  --fs-h1: clamp(2.9rem, 1.6rem + 5.4vw, 7.2rem);

  /* Espacio y forma */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --header-h: 76px;
  --topbar-h: 34px;

  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.3, 1);
  --shadow: 0 30px 80px -30px rgba(11, 22, 33, 0.35);
}

/* 2. BASE ================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--claro);
  color: var(--tinta);
  font-family: var(--f-text);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
  overflow-x: clip;
  outline: none;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--ambar);
  color: var(--noche);
}

.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* 3. LAYOUT ================================================================ */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section);
}

.section--light {
  background: var(--claro);
  color: var(--tinta);
}

.section--white {
  background: var(--blanco);
  color: var(--tinta);
}

.section--dark {
  background: var(--noche);
  color: var(--luz);
}

.section--navy {
  background: var(--noche-2);
  color: var(--luz);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem clamp(2rem, 5vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section__head--stack {
  grid-template-columns: minmax(0, 1fr);
  max-width: 52rem;
}

.section__head .lead {
  max-width: 36rem;
}

/* Rejilla de puntos de fondo: el lenguaje de la placa de circuito */
.dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(37, 41, 48, 0.12) 1px, transparent 0);
  background-size: 26px 26px;
}

.section--dark.dots,
.section--navy.dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(244, 247, 251, 0.07) 1px, transparent 0);
}

/* 4. TIPOGRAFÍA ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
  color: var(--naranja-texto);
  font: 500 var(--fs-xs) / 1.3 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 1.6rem;
  height: 2px;
  background: linear-gradient(90deg, var(--naranja), var(--ambar));
}

.eyebrow--light {
  color: var(--ambar);
}

.h1,
.h2,
.h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.h2 {
  font-size: var(--fs-h2);
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.08;
  letter-spacing: 0;
}

.h2 em,
.h1 em,
.hero__title em,
.phero__title em {
  font-style: normal;
  color: var(--naranja-texto);
}

.section--dark .h2 em,
.section--navy .h2 em,
.hero__title em,
.phero__title em {
  color: var(--ambar);
}

.lead {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--gris);
  text-wrap: pretty;
}

.section--dark .lead,
.section--navy .lead {
  color: var(--luz-2);
}

.mono {
  font-family: var(--f-mono);
  font-size: 0.86em;
}

.prose p + p {
  margin-top: 1.1em;
}

.prose {
  max-width: 40rem;
  text-wrap: pretty;
}

/* Revelado de palabras */
[data-split] .w {
  display: inline-block;
  overflow: clip;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
  vertical-align: top;
}

.js [data-split] .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}

.js [data-split].is-in .w > span {
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* 5. BOTONES =============================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 3.1rem;
  padding: 0.85em 1.5em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font: 600 0.98rem / 1 var(--f-text);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.btn .ic {
  transition: transform 0.45s var(--ease);
}

.btn:hover .ic {
  transform: translateX(3px);
}

/* Relleno que sube desde abajo al pasar */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

.btn:hover::after {
  transform: none;
}

.btn--primary {
  background: linear-gradient(100deg, var(--naranja) 0%, var(--ambar) 140%);
  color: var(--noche);
}

.btn--primary::after {
  background: var(--luz);
}

.btn--ghost {
  border-color: var(--noche-linea-2);
  color: var(--luz);
}

.btn--ghost::after {
  background: var(--luz);
}

.btn--ghost:hover {
  color: var(--noche);
}

.btn--ghost-dark {
  border-color: var(--linea-2);
  color: var(--tinta);
}

.btn--ghost-dark::after {
  background: var(--noche);
}

.btn--ghost-dark:hover {
  color: var(--luz);
}

.btn--dark {
  background: var(--noche);
  color: var(--luz);
}

.btn--dark::after {
  background: var(--naranja);
}

.btn--dark:hover {
  color: var(--noche);
}

.btn--sm {
  min-height: 2.5rem;
  padding: 0.6em 1.15em;
  font-size: 0.88rem;
}

.btn--lg {
  min-height: 3.6rem;
  padding: 1em 1.9em;
  font-size: 1.05rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--naranja-texto);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease);
}

.link-arrow:hover {
  background-size: 100% 1px;
}

.section--dark .link-arrow,
.section--navy .link-arrow {
  color: var(--ambar);
}

/* 6. CABECERA ============================================================== */
.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 0;
  z-index: 200;
  padding: 0.7em 1.1em;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--ambar);
  color: var(--noche);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-110%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--luz);
  transition: transform 0.55s var(--ease), background-color 0.4s, box-shadow 0.4s;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 22, 33, 0.9);
  opacity: 0;
  transition: opacity 0.4s;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--noche-linea);
  transform: translateY(calc(var(--topbar-h) * -1));
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 2px));
}

.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--noche-linea);
  font-size: 0.8rem;
  color: var(--luz-2);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

.topbar__meta {
  display: flex;
  gap: 0.75rem;
}

.topbar a {
  text-decoration: none;
}

.topbar a:hover {
  color: var(--ambar);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
  text-decoration: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--luz);
  object-fit: contain;
}

.brand__name {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--ambar);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.nav__link:hover::after,
.nav__item.is-active > .nav__link::after,
.nav__item.is-open > .nav__link::after {
  transform: scaleX(1);
}

.nav__chev {
  width: 0.9em;
  height: 0.9em;
  transition: transform 0.35s var(--ease);
}

.nav__item.is-open .nav__chev {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  width: min(30rem, 90vw);
  padding: 0.6rem;
  border: 1px solid var(--noche-linea);
  border-radius: var(--r-md);
  background: var(--noche-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  translate: -50% 10px;
  transition: opacity 0.3s var(--ease), translate 0.4s var(--ease), visibility 0s 0.3s;
}

.mega::before {
  content: "";
  position: absolute;
  inset: -0.8rem 0 auto;
  height: 0.8rem;
}

.nav__item.is-open .mega {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
  transition: opacity 0.3s var(--ease), translate 0.4s var(--ease), visibility 0s;
}

.mega__list {
  display: grid;
  gap: 0.15rem;
  list-style: none;
}

.mega__link {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background-color 0.25s;
}

.mega__link:hover,
.mega__link:focus-visible {
  background: var(--noche-3);
}

.mega__ic {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  padding: 0.2rem;
  border-radius: 6px;
  background: rgba(216, 131, 41, 0.14);
  color: var(--ambar);
}

.mega__link strong {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.mega__link small {
  display: block;
  color: var(--luz-3);
  font-size: 0.84rem;
}

.header__cta {
  flex: none;
}

.burger {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  border: 1px solid var(--noche-linea-2);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 30%;
  right: 30%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}

.burger span:first-child {
  top: 42%;
}

.burger span:last-child {
  top: 58%;
}

.burger[aria-expanded="true"] span:first-child {
  top: 50%;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  top: 50%;
  transform: rotate(-45deg);
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--naranja), var(--ambar));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* Menú móvil */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow-y: auto;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  background: var(--noche);
  color: var(--luz);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-io);
}

.mnav.is-open {
  clip-path: inset(0 0 0 0);
}

.mnav__list {
  list-style: none;
  border-top: 1px solid var(--noche-linea);
}

.mnav__list > li {
  border-bottom: 1px solid var(--noche-linea);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 50ms + 150ms);
}

.mnav.is-open .mnav__list > li {
  opacity: 1;
  transform: none;
}

.mnav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-family: var(--f-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
}

.mnav__link::-webkit-details-marker {
  display: none;
}

.mnav__plus {
  transition: transform 0.35s var(--ease);
}

.mnav__group[open] .mnav__plus {
  transform: rotate(45deg);
}

.mnav__sub {
  list-style: none;
  padding-bottom: 1rem;
}

.mnav__sub a {
  display: block;
  padding: 0.5rem 0;
  color: var(--luz-2);
  text-decoration: none;
}

.mnav__foot {
  display: grid;
  gap: 1rem;
  justify-items: start;
  margin-top: 2rem;
}

.mnav__mail {
  color: var(--luz-2);
}

/* 7. HEROS ================================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + var(--topbar-h));
  overflow: hidden;
  background: var(--noche);
  color: var(--luz);
  isolation: isolate;
}

.hero__canvas,
.phero__canvas,
.cta-band__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 72% 50%, rgba(216, 131, 41, 0.14), transparent 70%),
    linear-gradient(90deg, var(--noche) 0%, rgba(11, 22, 33, 0.85) 32%, rgba(11, 22, 33, 0) 62%);
}

.hero__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-block: 5vh 4rem;
  pointer-events: none;
}

.hero__inner > * {
  pointer-events: auto;
}

.hero__title {
  max-width: 13.5ch;
  font-family: var(--f-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 34rem;
  margin-top: 1.8rem;
  color: var(--luz-2);
  font-size: var(--fs-lg);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.hero__hint {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.2rem;
  color: var(--luz-3);
  font: 400 var(--fs-xs) / 1.4 var(--f-mono);
  letter-spacing: 0.06em;
}

.pulse-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ambar);
  box-shadow: 0 0 12px var(--ambar);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--ambar);
  border-radius: 50%;
  animation: pulse-ring 2.2s var(--ease) infinite;
}

.ticker {
  position: relative;
  border-top: 1px solid var(--noche-linea);
  background: rgba(11, 22, 33, 0.6);
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 2rem;
  color: var(--luz-2);
  font: 400 0.8rem / 1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__item b {
  color: var(--ambar);
  font-weight: 500;
}

.ticker__item::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 2rem;
  border: 1px solid var(--naranja);
  transform: rotate(45deg);
}

/* Hero de páginas interiores */
.phero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--topbar-h) + clamp(3rem, 8vw, 7rem));
  padding-bottom: clamp(3.5rem, 7vw, 7rem);
  overflow: hidden;
  background: var(--noche);
  color: var(--luz);
  isolation: isolate;
}

.phero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, var(--noche) 0%, rgba(11, 22, 33, 0.82) 45%, rgba(11, 22, 33, 0.35) 100%);
}

.phero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 3rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.phero__inner > :only-child {
  grid-column: 1 / -1;
  max-width: 58rem;
}

.phero__title {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5.8rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.phero__lead {
  max-width: 40rem;
  margin-top: 1.6rem;
  color: var(--luz-2);
  font-size: var(--fs-lg);
  line-height: 1.5;
}

.phero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.phero__aside {
  display: grid;
  gap: 0.75rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  margin-bottom: 2rem;
  list-style: none;
  color: var(--luz-3);
  font: 400 var(--fs-xs) / 1.4 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.6rem;
  color: var(--naranja);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ambar);
}

.crumbs [aria-current] {
  color: var(--luz);
}

/* Chip de dato para los heros */
.kpi {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.2rem 1.1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--noche-linea);
  border-radius: var(--r-md);
  background: rgba(16, 32, 47, 0.72);
  backdrop-filter: none;
}

.kpi__num {
  grid-row: span 2;
  min-width: 4.5rem;
  color: var(--ambar);
  font-family: var(--f-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpi__label {
  font-weight: 600;
  line-height: 1.2;
}

.kpi__sub {
  color: var(--luz-3);
  font-size: var(--fs-sm);
  line-height: 1.35;
}

/* 8. COMPONENTES =========================================================== */

/* Tarjeta con borde de "pista" que se ilumina y foco que sigue al puntero */
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--blanco);
  isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--trace-a), transparent 0 62%, var(--naranja) 80%, var(--ambar) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(22rem circle at var(--mx) var(--my), rgba(216, 131, 41, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card:hover::before {
  opacity: 1;
  animation: trace-spin 2.6s linear infinite;
}

.card:hover::after {
  opacity: 1;
}

.card--dark {
  border-color: var(--noche-linea);
  background: var(--noche-2);
  color: var(--luz);
}

.card--dark::after {
  background: radial-gradient(22rem circle at var(--mx) var(--my), rgba(255, 171, 0, 0.1), transparent 60%);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: rgba(216, 131, 41, 0.12);
  color: var(--naranja-texto);
}

.card--dark .card__icon {
  background: rgba(255, 171, 0, 0.12);
  color: var(--ambar);
}

.card__icon .ic {
  width: 1.5rem;
  height: 1.5rem;
}

.card__tag {
  color: var(--naranja-texto);
  font: 500 var(--fs-xs) / 1.3 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card--dark .card__tag {
  color: var(--ambar);
}

.card__title {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.05;
}

.card__text {
  color: var(--gris);
}

.card--dark .card__text {
  color: var(--luz-2);
}

.card__link {
  margin-top: auto;
  padding-top: 0.6rem;
}

.card a.card__cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.checklist {
  display: grid;
  gap: 0.7rem;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checklist .ic {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.12rem;
  padding: 0.18rem;
  border-radius: 50%;
  background: rgba(216, 131, 41, 0.14);
  color: var(--naranja-texto);
  stroke-width: 2.2;
}

.section--dark .checklist .ic,
.section--navy .checklist .ic,
.card--dark .checklist .ic {
  color: var(--ambar);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45em 0.9em;
  border: 1px solid var(--linea-2);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
}

.section--dark .chip,
.section--navy .chip,
.phero .chip {
  border-color: var(--noche-linea-2);
  color: var(--luz-2);
}

/* Estadísticas con contador tipo odómetro */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--linea-2);
}

.stat {
  padding: 2rem 1.5rem 0 0;
}

.stat + .stat {
  padding-left: 1.5rem;
  border-left: 1px solid var(--linea);
}

.stat__num {
  display: flex;
  align-items: baseline;
  color: var(--noche);
  font-family: var(--f-display);
  font-size: clamp(3rem, 2rem + 3.5vw, 5.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat__num small {
  color: var(--naranja);
  font-size: 0.55em;
}

.stat__label {
  margin-top: 0.8rem;
  color: var(--gris);
  font-weight: 500;
}

.odo {
  display: inline-flex;
  overflow: hidden;
  height: 1em;
  line-height: 1;
}

.odo__col {
  display: flex;
  flex-direction: column;
  transition: transform 1.6s var(--ease);
  transition-delay: calc(var(--i) * 90ms);
}

.odo__col span {
  height: 1em;
}

/* Cita */
.quote {
  position: relative;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 2px solid var(--naranja);
}

.quote p {
  font-family: var(--f-display);
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.05rem);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

.quote cite {
  display: block;
  margin-top: 1.1rem;
  color: var(--naranja-texto);
  font: 500 var(--fs-xs) / 1.3 var(--f-mono);
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section--dark .quote cite {
  color: var(--ambar);
}

/* Pasos de proceso (secuencias reales) */
.steps {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 0;
  list-style: none;
  counter-reset: step;
}

.steps__item {
  position: relative;
  padding: 2.2rem 1.5rem 0 0;
}

.steps__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--linea-2);
}

.steps__item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--naranja), var(--ambar));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 180ms);
}

.steps.is-in .steps__item::after {
  transform: scaleX(1);
}

.section--dark .steps__item::before,
.section--navy .steps__item::before {
  background: var(--noche-linea-2);
}

.steps__num {
  position: absolute;
  top: -0.95rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 2px solid var(--naranja);
  border-radius: 50%;
  background: var(--claro);
  color: var(--naranja-texto);
  font: 500 0.74rem / 1 var(--f-mono);
}

.section--dark .steps__num,
.section--navy .steps__num {
  background: var(--noche);
  color: var(--ambar);
}

.section--white .steps__num {
  background: var(--blanco);
}

.steps__title {
  margin-bottom: 0.6rem;
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.08;
}

.steps__text {
  color: var(--gris);
  font-size: 0.98rem;
}

.section--dark .steps__text,
.section--navy .steps__text {
  color: var(--luz-2);
}

.steps__text a {
  color: var(--naranja-texto);
  font-weight: 600;
}

.section--dark .steps__text a {
  color: var(--ambar);
}

/* Acordeón de preguntas */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
}

.faq__list {
  border-top: 1px solid var(--linea-2);
}

.faq__item {
  border-bottom: 1px solid var(--linea-2);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__ic {
  width: 2rem;
  height: 2rem;
  padding: 0.4rem;
  border: 1px solid var(--linea-2);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s;
}

.faq__item[open] .faq__ic {
  transform: rotate(45deg);
  background: var(--naranja);
  border-color: var(--naranja);
  color: var(--noche);
}

.faq__body {
  padding: 0 3.5rem 1.5rem 0;
  color: var(--gris);
}

/* Banda de llamada a la acción */
.cta-band {
  overflow: hidden;
  isolation: isolate;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 90% at 50% 100%, rgba(216, 131, 41, 0.18), transparent 70%);
  pointer-events: none;
}

.cta-band__inner {
  display: grid;
  justify-items: start;
  max-width: calc(58rem + var(--gutter) * 2);
}

.cta-band__text {
  max-width: 40rem;
  margin-top: 1.4rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

/* Marquesina de logotipos */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee + .marquee {
  margin-top: 1.25rem;
}

.marquee__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}

.logo-tile {
  display: grid;
  place-items: center;
  width: 12.5rem;
  height: 6.5rem;
  padding: 1.1rem 1.6rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--blanco);
  transition: border-color 0.3s, transform 0.5s var(--ease);
}

.logo-tile img {
  max-height: 3.6rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.75;
  transition: filter 0.4s, opacity 0.4s;
}

.logo-tile:hover {
  border-color: var(--naranja);
  transform: translateY(-3px);
}

.logo-tile:hover img {
  filter: none;
  opacity: 1;
}

.partner-tile {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: var(--blanco);
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
  max-width: 100%;
}

.partner-tile .ic {
  color: var(--naranja);
}

/* 9. HOME ================================================================== */

/* Quiénes somos */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 7rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.about__text {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  color: var(--gris);
  font-size: var(--fs-lg);
  line-height: 1.55;
}

.about__text p:first-child {
  color: var(--tinta);
}

.about__quote {
  margin-top: 2.5rem;
}

/* Mapa de soluciones: placa interactiva */
.board {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.board__list {
  list-style: none;
  border-top: 1px solid var(--noche-linea);
}

.board__row {
  border-bottom: 1px solid var(--noche-linea);
}

.board__item {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.board__tag {
  color: var(--luz-3);
  font: 400 var(--fs-xs) / 1.3 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.board__name {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--luz-3);
  transition: color 0.35s, transform 0.5s var(--ease);
}

.board__item .ic {
  color: var(--luz-3);
  transition: transform 0.4s var(--ease), color 0.3s;
}

.board__row.is-active .board__name,
.board__item:hover .board__name {
  color: var(--luz);
}

.board__row.is-active .board__name {
  transform: translateX(0.4rem);
}

.board__row.is-active .board__tag,
.board__row.is-active .board__item .ic {
  color: var(--ambar);
}

.board__row.is-active .board__item .ic {
  transform: rotate(90deg);
}

.board__detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease);
}

.board__row.is-active .board__detail {
  grid-template-rows: 1fr;
}

.board__detail > div {
  overflow: hidden;
}

.board__detail p {
  max-width: 30rem;
  padding: 0 0 0.8rem 8.5rem;
  color: var(--luz-2);
}

.board__detail .link-arrow {
  margin: 0 0 1.3rem 8.5rem;
}

.board__visual {
  position: relative;
}

.board__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.bd-trace {
  fill: none;
  stroke: rgba(244, 247, 251, 0.14);
  stroke-width: 2;
  stroke-linejoin: round;
  transition: stroke 0.5s;
}

.bd-flow {
  fill: none;
  stroke: var(--ambar);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 10 22;
  opacity: 0;
  transition: opacity 0.5s;
  animation: dash-flow 1.1s linear infinite;
}

.bd-node rect.bd-body {
  fill: var(--noche-2);
  stroke: rgba(244, 247, 251, 0.2);
  stroke-width: 1.2;
  transition: stroke 0.4s, fill 0.4s;
}

.bd-node .bd-pin {
  fill: rgba(244, 247, 251, 0.25);
  transition: fill 0.4s;
}

.bd-node text {
  fill: var(--luz-3);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: fill 0.4s;
}

.bd-node .bd-title {
  fill: var(--luz-2);
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.bd-node .bd-icon {
  color: var(--luz-3);
  transition: color 0.4s;
}

.bd-node.is-on rect.bd-body {
  fill: #1f2f3f;
  stroke: var(--ambar);
}

.bd-node.is-on .bd-pin {
  fill: var(--ambar);
}

.bd-node.is-on text {
  fill: var(--luz);
}

.bd-node.is-on .bd-icon {
  color: var(--ambar);
}

.bd-core rect.bd-body {
  fill: #13263a;
}

.bd-core .bd-title {
  font-size: 30px;
  fill: var(--luz);
}

.bd-link.is-on .bd-trace {
  stroke: rgba(255, 171, 0, 0.45);
}

.bd-link.is-on .bd-flow {
  opacity: 1;
}

.bd-halo {
  fill: none;
  stroke: var(--ambar);
  stroke-width: 1;
  opacity: 0;
}

.bd-node.is-on .bd-halo {
  animation: halo 2.2s var(--ease) infinite;
}

/* Historia de GMAO-GSAT: la aplicación en movimiento */
.story__head {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
}

.story__steps {
  display: grid;
}

.story__step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72vh;
  padding-block: 2rem;
  opacity: 0.32;
  transition: opacity 0.6s var(--ease);
}

.story__step.is-active {
  opacity: 1;
}

.story__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--naranja-texto);
  font: 500 var(--fs-xs) / 1.3 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story__label b {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-weight: 500;
}

.story__title {
  margin-bottom: 1rem;
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.story__text {
  max-width: 28rem;
  color: var(--gris);
  font-size: var(--fs-lg);
  line-height: 1.5;
}

.story__stage {
  position: sticky;
  top: calc(var(--header-h) + 3rem);
  align-self: start;
  height: min(620px, calc(100vh - var(--header-h) - 5rem));
  display: grid;
  place-items: center;
}

/* Maqueta de la aplicación */
.app {
  --accent: var(--naranja);
  position: relative;
  width: 100%;
  max-width: 720px;
  border: 1px solid var(--linea-2);
  border-radius: 14px;
  background: var(--blanco);
  box-shadow: 0 50px 100px -40px rgba(11, 22, 33, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.6);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  color: var(--tinta);
}

.app__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--noche);
  color: var(--luz);
}

.app__logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.app__logo i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--naranja), var(--ambar));
}

.app__tabs {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  list-style: none;
}

.app__tab {
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--luz-3);
  font: 500 11px / 1 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.app__tab[aria-selected="true"] {
  background: var(--naranja);
  color: var(--noche);
}

.app__body {
  position: relative;
  height: 400px;
  background: #F6F8FA;
}

.app__foot {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  border-top: 1px solid var(--linea);
  color: var(--gris);
  font: 400 10.5px / 1.2 var(--f-mono);
  letter-spacing: 0.04em;
}

.scene {
  position: absolute;
  inset: 0;
  padding: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease), visibility 0s 0.5s;
}

.scene.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s var(--ease) 0.1s, transform 0.7s var(--ease) 0.1s, visibility 0s;
}

.scene__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-weight: 600;
  font-size: 14px;
}

.scene__title small {
  color: var(--gris);
  font: 400 11px var(--f-mono);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font: 500 10.5px / 1.3 var(--f-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge--new {
  background: rgba(216, 131, 41, 0.15);
  color: var(--naranja-texto);
}

.badge--open {
  background: rgba(255, 171, 0, 0.16);
  color: #8A5A00;
}

.badge--prog {
  background: rgba(25, 45, 63, 0.1);
  color: var(--noche-3);
}

.badge--done {
  background: rgba(15, 118, 110, 0.12);
  color: var(--exito);
}

/* Escena 1: avisos */
.rows {
  display: grid;
  gap: 0.45rem;
}

.row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--linea);
  border-radius: 8px;
  background: var(--blanco);
}

.row strong {
  display: block;
  font-weight: 600;
}

.row small {
  color: var(--gris);
  font-size: 11px;
}

.row--new {
  border-color: var(--naranja);
  box-shadow: 0 10px 30px -14px rgba(216, 131, 41, 0.7);
}

.scene.is-on .row--new {
  animation: row-in 0.9s var(--ease) 0.4s both;
}

.scene.is-on .rows .row:not(.row--new) {
  animation: rows-down 0.9s var(--ease) 0.4s both;
}

/* Escena 2: agenda */
.agenda {
  display: grid;
  grid-template-columns: 5.5rem repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.agenda__h {
  padding: 0.25rem 0;
  color: var(--gris);
  font: 500 10.5px var(--f-mono);
  text-align: center;
  text-transform: uppercase;
}

.agenda__tech {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 11.5px;
  font-weight: 600;
}

.agenda__tech i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--noche-3);
  color: var(--luz);
  font: 500 9px var(--f-mono);
  font-style: normal;
}

.agenda__cell {
  position: relative;
  height: 56px;
  border-radius: 6px;
  background: var(--blanco);
  border: 1px dashed var(--linea);
}

.agenda__job {
  position: absolute;
  inset: 4px;
  padding: 0.35rem 0.45rem;
  border-radius: 5px;
  background: var(--noche-3);
  color: var(--luz);
  font-size: 10.5px;
  line-height: 1.2;
  overflow: hidden;
}

.agenda__job--soft {
  background: #DDE4EB;
  color: var(--tinta);
}

.agenda__job--new {
  background: linear-gradient(135deg, var(--naranja), var(--ambar));
  color: var(--noche);
  font-weight: 600;
}

.scene.is-on .agenda__job--new {
  animation: job-drop 1s var(--ease) 0.5s both;
}

.agenda__toast {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  background: var(--noche);
  color: var(--luz);
  font-size: 12px;
}

.agenda__toast .ic {
  color: var(--ambar);
}

.scene.is-on .agenda__toast {
  animation: toast-in 0.6s var(--ease) 1.3s both;
}

/* Escena 3: parte de trabajo */
.parte {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.9rem;
  height: 100%;
}

.parte__col {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}

.task {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--linea);
  border-radius: 8px;
  background: var(--blanco);
  font-size: 12px;
}

.task__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--linea-2);
  border-radius: 5px;
  color: transparent;
}

.task__box .ic {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.scene.is-on .task__box {
  animation: tick 0.4s var(--ease) both;
  animation-delay: calc(0.5s + var(--i) * 0.45s);
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.photo {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(160deg, #6D8295, #2B4053);
}

.photo:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(160deg, #9AA8B4, #53687A);
}

.photo:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(160deg, #C9924F, #7B4E1D);
}

.scene.is-on .photo {
  animation: pop 0.5s var(--ease) both;
  animation-delay: calc(1.6s + var(--i) * 0.15s);
}

.sign {
  position: relative;
  height: 96px;
  border: 1px solid var(--linea);
  border-radius: 8px;
  background: var(--blanco);
}

.sign small {
  position: absolute;
  left: 0.6rem;
  bottom: 0.4rem;
  color: var(--gris);
  font: 400 10px var(--f-mono);
}

.sign svg {
  position: absolute;
  inset: 8px 12px 18px;
  width: calc(100% - 24px);
  height: calc(100% - 26px);
}

.sign path {
  fill: none;
  stroke: var(--noche);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}

.scene.is-on .sign path {
  animation: draw 1.4s var(--ease) 2.1s both;
}

.parte__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--noche);
  color: var(--luz);
  font-size: 12px;
}

.scene.is-on .parte__status .badge--done {
  animation: pop 0.5s var(--ease) 3.3s both;
}

/* Escena 4: certificado */
.cert {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 0.9rem;
  height: 100%;
}

.doc {
  position: relative;
  padding: 1rem 1.1rem;
  border: 1px solid var(--linea);
  border-radius: 8px;
  background: var(--blanco);
  box-shadow: 0 20px 40px -24px rgba(11, 22, 33, 0.4);
}

.doc__head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.7rem;
  border-bottom: 2px solid var(--naranja);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.25;
}

.doc__head small {
  color: var(--gris);
  font: 400 10px var(--f-mono);
  white-space: nowrap;
}

.doc__line {
  height: 7px;
  margin: 0.45rem 0;
  border-radius: 4px;
  background: #E4E9EE;
  transform-origin: left;
  width: var(--w, 100%);
}

.scene.is-on .doc__line {
  animation: line-grow 0.7s var(--ease) both;
  animation-delay: calc(0.35s + var(--i) * 0.12s);
}

.doc__stamp {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 2px solid var(--exito);
  border-radius: 50%;
  color: var(--exito);
  font: 600 9.5px / 1.25 var(--f-mono);
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
}

.scene.is-on .doc__stamp {
  animation: stamp 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) 1.7s both;
}

.sync {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.sync__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--linea);
  border-radius: 8px;
  background: var(--blanco);
  font-size: 11.5px;
}

.sync__item .ic {
  color: var(--exito);
}

.scene.is-on .sync__item {
  animation: row-in 0.6s var(--ease) both;
  animation-delay: calc(2.2s + var(--i) * 0.25s);
}

.sync__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  background: var(--noche);
  color: var(--luz);
  font: 500 11px var(--f-mono);
}

.sync__head .ic {
  color: var(--ambar);
}

.scene.is-on .sync__head .ic {
  animation: spin 1.2s linear 2;
}

/* Tarjetas bajo la historia */
.story__after {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 6vw, 6rem);
}

/* Servicios IT */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--noche-linea);
}

.svc:nth-child(even) .svc__media {
  order: 2;
}

.svc__media {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--noche-3), var(--noche-2));
  overflow: hidden;
  border: 1px solid var(--noche-linea);
}

.svc__media img {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  transform: translateY(var(--py, 0px)) scale(1.02);
  transition: transform 0.2s linear;
}

.svc__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 30% 20%, rgba(255, 171, 0, 0.14), transparent 70%);
  pointer-events: none;
}

.svc__index {
  display: block;
  margin-bottom: 1rem;
  color: var(--ambar);
  font: 500 var(--fs-xs) / 1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.svc__title {
  margin-bottom: 1rem;
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
}

.svc__text {
  margin-bottom: 1.5rem;
  color: var(--luz-2);
  font-size: var(--fs-lg);
  line-height: 1.5;
}

.svc .checklist {
  margin-bottom: 1.8rem;
}

/* RR. HH. en la home */
.people {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.people__lead {
  margin: 1.4rem 0 1.8rem;
}

.people .steps {
  --n: 1;
  gap: 0;
}

.vsteps {
  display: grid;
  list-style: none;
  counter-reset: vs;
}

.vsteps li {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding-bottom: 1.6rem;
}

.vsteps li::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.3rem;
  bottom: 0.2rem;
  width: 2px;
  background: var(--linea-2);
}

.vsteps li:last-child::before {
  display: none;
}

.vsteps__n {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid var(--naranja);
  border-radius: 50%;
  color: var(--naranja-texto);
  font: 500 0.8rem / 1 var(--f-mono);
}

.vsteps h3 {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

.vsteps p {
  margin-top: 0.3rem;
  color: var(--gris);
}

/* Premio */
.award {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem clamp(2rem, 6vw, 7rem);
  align-items: center;
}

.medal-wrap {
  display: grid;
  place-items: center;
  perspective: 900px;
}

.medal {
  --rx: 0deg;
  --ry: 0deg;
  --gx: 50%;
  --gy: 30%;
  position: relative;
  display: grid;
  place-items: center;
  width: min(360px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.55), transparent 42%),
    conic-gradient(from 210deg, #FFB43A, #C4621C, #FFD27A, #D88329, #FFB43A);
  box-shadow:
    inset 0 0 0 10px rgba(11, 22, 33, 0.25),
    inset 0 0 0 11px rgba(255, 255, 255, 0.35),
    0 60px 120px -40px rgba(216, 131, 41, 0.6);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  color: var(--noche);
  text-align: center;
}

.medal::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(11, 22, 33, 0.35);
  border-radius: 50%;
}

.medal__inner {
  display: grid;
  gap: 0.35rem;
  transform: translateZ(40px);
}

.medal__small {
  font: 500 0.75rem / 1.2 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.medal__big {
  font-family: var(--f-display);
  font-size: clamp(3.4rem, 2.5rem + 3vw, 5rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: 0.01em;
}

.medal__year {
  margin-top: 0.4rem;
  font: 500 0.8rem / 1.2 var(--f-mono);
  letter-spacing: 0.12em;
}

.award__text .h2 {
  margin-bottom: 1.4rem;
}

.award__text .lead {
  margin-bottom: 2rem;
}

.award__meta {
  display: inline-flex;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  color: var(--ambar);
  font: 500 var(--fs-xs) / 1.3 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Confianza */
.trust {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.iso-badge {
  width: 7.5rem;
  height: auto;
  margin-bottom: 0.5rem;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

/* Recursos descargables */
.docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.doccard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.6rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--blanco);
  text-decoration: none;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.4s;
}

.doccard:hover {
  transform: translateY(-5px);
  border-color: var(--naranja);
  box-shadow: var(--shadow);
}

.doccard__stack {
  position: relative;
  height: 9.5rem;
  margin-bottom: 0.6rem;
}

.doccard__page {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6.4rem;
  height: 8.6rem;
  margin-left: -3.2rem;
  padding: 0.75rem 0.65rem;
  border: 1px solid var(--linea);
  border-radius: 4px;
  background: var(--blanco);
  box-shadow: 0 16px 30px -18px rgba(11, 22, 33, 0.5);
  transition: transform 0.7s var(--ease);
}

.doccard__page:nth-child(1) {
  transform: rotate(-6deg) translateX(-10px);
}

.doccard__page:nth-child(2) {
  transform: rotate(4deg) translateX(8px);
}

.doccard__page:nth-child(3) {
  background:
    linear-gradient(var(--naranja), var(--naranja)) 0.65rem 0.8rem / 55% 4px no-repeat,
    repeating-linear-gradient(#E4E9EE 0 3px, transparent 3px 10px) 0.65rem 2rem / calc(100% - 1.3rem) 60% no-repeat,
    var(--blanco);
}

.doccard:hover .doccard__page:nth-child(1) {
  transform: rotate(-14deg) translate(-38px, -6px);
}

.doccard:hover .doccard__page:nth-child(2) {
  transform: rotate(12deg) translate(36px, -4px);
}

.doccard:hover .doccard__page:nth-child(3) {
  transform: translateY(-8px);
}

.doccard__label {
  position: absolute;
  right: 0.9rem;
  bottom: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--naranja);
  color: var(--noche);
  font: 600 0.62rem / 1.3 var(--f-mono);
  letter-spacing: 0.08em;
}

.doccard__title {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.05;
}

.doccard__text {
  color: var(--gris);
}

.doccard .link-arrow {
  margin-top: auto;
}

/* 11. PIE ================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--noche);
  color: var(--luz-2);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.footer__cta {
  display: grid;
  justify-items: start;
  gap: 1.8rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--noche-linea);
}

.footer__claim {
  max-width: 18ch;
  color: var(--luz);
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 5rem);
  font-weight: 700;
  line-height: 0.95;
  text-wrap: balance;
}

.footer__claim em {
  font-style: normal;
  color: var(--ambar);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  padding-block: 3.5rem;
}

.footer__brand .brand {
  color: var(--luz);
  margin-bottom: 1.5rem;
}

.footer__address {
  display: grid;
  gap: 0.35rem;
  font-style: normal;
}

.footer__address a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  color: var(--luz);
  text-decoration: none;
}

.footer__address a:hover {
  color: var(--ambar);
}

.footer__title {
  margin-bottom: 1rem;
  color: var(--ambar);
  font: 500 var(--fs-xs) / 1.3 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__col ul {
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.footer__col a,
.footer__legal a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s;
}

.footer__col a:hover,
.footer__legal a:hover {
  color: var(--luz);
  background-size: 100% 1px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--noche-linea);
  font-size: var(--fs-sm);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  list-style: none;
}

.footer__giant {
  margin-top: 1rem;
  margin-bottom: -0.18em;
  color: transparent;
  font-family: var(--f-display);
  font-size: clamp(4rem, 17vw, 17rem);
  font-weight: 800;
  line-height: 0.8;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(244, 247, 251, 0.14);
  background: linear-gradient(90deg, transparent, rgba(216, 131, 41, 0.35), transparent) var(--gx, -100%) 0 / 60% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

/* 12. CAPAS GLOBALES ======================================================= */
.modal {
  width: min(32rem, calc(100vw - 2 * var(--gutter)));
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--blanco);
  color: var(--tinta);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.6);
}

.modal::backdrop {
  background: rgba(11, 22, 33, 0.7);
}

.modal[open] {
  animation: modal-in 0.5s var(--ease);
}

.modal__panel {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 2.2rem 2rem 2rem;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--linea-2);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.modal__icon {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 12px;
  background: rgba(216, 131, 41, 0.14);
  color: var(--naranja-texto);
}

.modal__icon .ic {
  width: 1.6rem;
  height: 1.6rem;
}

.modal__title {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.modal p {
  color: var(--gris);
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

.cookies {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--gutter) * 0.6 + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 62rem;
  margin-inline: auto;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--blanco);
  box-shadow: 0 30px 70px -20px rgba(11, 22, 33, 0.45);
  font-size: var(--fs-sm);
  color: var(--gris);
  animation: cookies-in 0.7s var(--ease) 1.2s both;
}

.cookies[hidden] {
  display: none;
}

.cookies__title {
  color: var(--tinta);
  font-weight: 700;
}

.cookies__text a {
  color: var(--naranja-texto);
}

.cookies__actions {
  display: flex;
  flex: none;
  gap: 0.5rem;
}

.cursor {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  pointer-events: none;
}

.cursor__ring,
.cursor__dot,
.cursor__label {
  position: fixed;
  left: 0;
  top: 0;
  will-change: transform;
}

.cursor__ring::before {
  content: "";
  position: absolute;
  left: -19px;
  top: -19px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--naranja);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s;
}

.cursor__dot::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ambar);
}

.cursor__label {
  translate: 28px 10px;
  padding: 0.3em 0.6em;
  border-radius: 999px;
  background: var(--ambar);
  color: var(--noche);
  font: 600 0.62rem / 1 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s;
}

.cursor.is-hover .cursor__ring::before {
  transform: scale(1.7);
  background: rgba(255, 171, 0, 0.1);
}

.cursor.has-label .cursor__label {
  opacity: 1;
}

.cursor.is-hidden {
  opacity: 0;
}

/* Cortina de transición entre páginas */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  place-items: center;
  background: var(--noche);
  color: var(--luz);
  pointer-events: none;
}

.curtain__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--naranja), var(--ambar), transparent);
  transform: scaleX(0);
}

.curtain__label {
  position: relative;
  margin-top: 3.5rem;
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
}

.js .curtain {
  display: grid;
  animation: curtain-out 0.8s var(--ease-io) 0.15s both;
}

.js .curtain .curtain__bar {
  animation: bar-out 0.6s var(--ease-io) both;
}

.js.is-leaving .curtain {
  animation: curtain-in 0.55s var(--ease-io) both;
}

.js.is-leaving .curtain__bar {
  animation: bar-in 0.55s var(--ease-io) 0.15s both;
}

.js.is-leaving .curtain__label {
  animation: fade-in 0.4s var(--ease) 0.2s both;
}

/* Keyframes */
@keyframes trace-spin {
  to {
    --trace-a: 360deg;
  }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.9;
    transform: scale(0.6);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -32;
  }
}

@keyframes halo {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
}

@keyframes rows-down {
  from {
    transform: translateY(-52px);
  }
}

@keyframes job-drop {
  0% {
    opacity: 0;
    transform: translate(-120px, -90px) rotate(-6deg) scale(1.08);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes tick {
  from {
    background: transparent;
    border-color: var(--linea-2);
    color: transparent;
    transform: scale(0.7);
  }
  to {
    background: var(--exito);
    border-color: var(--exito);
    color: #fff;
    transform: none;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes line-grow {
  from {
    transform: scaleX(0);
  }
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: rotate(-12deg) scale(2.2);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

@keyframes cookies-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

@keyframes curtain-out {
  from {
    clip-path: inset(0 0 0 0);
  }
  to {
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
  }
}

@keyframes curtain-in {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes bar-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes bar-out {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 13. MEDIA QUERIES (base) ================================================= */
@media (max-width: 1180px) {
  .nav__link {
    padding-inline: 0.55rem;
    font-size: 0.9rem;
  }

  .nav__link::after {
    left: 0.55rem;
    right: 0.55rem;
  }
}

@media (max-width: 1080px) {
  .nav,
  .header__cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .topbar__claim {
    display: none;
  }

  .topbar__inner {
    justify-content: flex-end;
  }

  .section__head,
  .about__grid,
  .board,
  .people,
  .award,
  .story__after,
  .phero__inner,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .story__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .story__stage {
    position: relative;
    top: 0;
    order: -1;
    height: auto;
  }

  .story__step {
    min-height: 0;
    padding-block: 1.2rem;
    opacity: 1;
  }

  .story__steps {
    gap: 0.5rem;
  }

  .trust {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .trust > :nth-child(2) {
    grid-column: 1 / -1;
    order: 3;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board__visual {
    max-width: 560px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
    --topbar-h: 0px;
  }

  .topbar {
    display: none;
  }

  .brand__name {
    font-size: 1.3rem;
  }

  .hero__glow {
    background:
      radial-gradient(70% 40% at 50% 85%, rgba(216, 131, 41, 0.16), transparent 70%),
      linear-gradient(180deg, var(--noche) 0%, rgba(11, 22, 33, 0.9) 50%, rgba(11, 22, 33, 0.3) 100%);
  }

  .hero__inner {
    justify-content: flex-start;
    padding-top: 12vh;
    padding-bottom: 32vh;
  }

  .hide-touch {
    display: none;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .docs,
  .trust,
  .svc {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust > :nth-child(2) {
    grid-column: auto;
    order: 0;
  }

  .svc:nth-child(even) .svc__media {
    order: 0;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    padding: 1.6rem 1rem 1.2rem 0;
  }

  .stat + .stat {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(even) {
    padding-left: 1rem;
    border-left: 1px solid var(--linea);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--linea);
  }

  .board__item {
    grid-template-columns: 1fr auto;
  }

  .board__tag {
    grid-column: 1 / -1;
  }

  .board__detail p,
  .board__detail .link-arrow {
    padding-left: 0;
    margin-left: 0;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }

  .app__tabs {
    gap: 0.1rem;
  }

  .app__tab {
    padding: 0.35rem 0.45rem;
    font-size: 9.5px;
  }

  .app__logo {
    display: none;
  }

  .app__body {
    height: 440px;
  }

  .parte,
  .cert {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .row {
    grid-template-columns: 1fr auto;
  }

  .row > small {
    display: none;
  }

  .agenda {
    grid-template-columns: 4.2rem repeat(5, minmax(0, 1fr));
  }

  .agenda__tech {
    font-size: 10px;
  }

  .agenda__tech i {
    display: none;
  }

  .agenda__job {
    font-size: 9px;
    padding: 0.25rem;
  }

  .doc__stamp {
    width: 64px;
    height: 64px;
    font-size: 8px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq__body {
    padding-right: 0;
  }

  .cookies {
    flex-direction: column;
    align-items: stretch;
  }

  .cookies__actions > * {
    flex: 1;
  }

  .logo-tile {
    width: 10rem;
    height: 5.5rem;
  }
}


/* 10. PÁGINAS INTERIORES =================================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.8rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--noche-linea);
  border-radius: var(--r-md);
  color: var(--luz-2);
}

.note .ic {
  margin-top: 0.15rem;
  color: var(--ambar);
}

.phero__note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--luz-3);
  font-size: var(--fs-sm);
}

.phero__note .ic {
  color: var(--ambar);
}

code {
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: rgba(216, 131, 41, 0.12);
  color: var(--naranja-texto);
  font-family: var(--f-mono);
  font-size: 0.86em;
}

.section--dark code,
.section--navy code,
.card--dark code {
  background: rgba(255, 171, 0, 0.12);
  color: var(--ambar);
}

/* KPI grande y distintivos */
.kpi--big .kpi__num {
  font-size: 4rem;
}

.badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  list-style: none;
}

.badges li {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--noche-linea);
  border-radius: var(--r-md);
  background: rgba(16, 32, 47, 0.72);
}

.badges b {
  color: var(--ambar);
  font-family: var(--f-display);
  font-size: 1.6rem;
  line-height: 1;
}

.badges span {
  color: var(--luz-3);
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Áreas funcionales */
.areas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
  list-style: none;
}

.area {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--blanco);
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.1;
}

.area .ic {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: rgba(216, 131, 41, 0.12);
  color: var(--naranja-texto);
}

/* Sectores */
.sectors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  list-style: none;
  border: 1px solid var(--noche-linea);
  border-radius: var(--r-lg);
  background: var(--noche-linea);
  overflow: hidden;
}

.sector {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 11rem;
  padding: 1.5rem;
  background: var(--noche);
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.05;
  isolation: isolate;
  transition: color 0.4s;
}

.sector::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 0% 100%, rgba(216, 131, 41, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.sector:hover::before {
  opacity: 1;
}

.sector__ic .ic {
  width: 2.2rem;
  height: 2.2rem;
  color: var(--ambar);
  transition: transform 0.6s var(--ease);
}

.sector:hover .sector__ic .ic {
  transform: translateY(-4px) rotate(-8deg) scale(1.1);
}

/* Explorador de módulos con dispositivo que cambia de forma */
.xp {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.xp__tabs {
  display: grid;
  gap: 0.35rem;
  list-style: none;
}

.xp__tab {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: none;
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: left;
  color: var(--gris);
  cursor: pointer;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}

.xp__tab .ic {
  color: var(--naranja-texto);
}

.xp__n {
  color: var(--gris);
  font: 500 0.72rem / 1 var(--f-mono);
}

.xp__tab:hover {
  color: var(--tinta);
}

.xp__tab.is-active {
  border-color: var(--linea);
  background: var(--blanco);
  color: var(--tinta);
  box-shadow: 0 20px 40px -26px rgba(11, 22, 33, 0.45);
}

.xp__stage {
  display: grid;
  justify-items: center;
  gap: 1.8rem;
}

.device {
  --dw: 250px;
  --dh: 470px;
  --dr: 36px;
  position: relative;
  width: var(--dw);
  height: var(--dh);
  max-width: 100%;
  padding: 12px;
  border-radius: var(--dr);
  background: linear-gradient(145deg, #22384c, var(--noche));
  box-shadow: 0 50px 80px -40px rgba(11, 22, 33, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: width 0.8s var(--ease), height 0.8s var(--ease), border-radius 0.8s var(--ease), padding 0.8s var(--ease);
}

.device[data-device="desktop"] {
  --dw: 620px;
  --dh: 390px;
  --dr: 16px;
}

.device[data-device="web"] {
  --dw: 580px;
  --dh: 400px;
  --dr: 12px;
  padding-top: 30px;
}

.device[data-device="web"]::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 11px;
  width: 44px;
  height: 8px;
  background: radial-gradient(circle, rgba(244, 247, 251, 0.35) 3px, transparent 4px) 0 0 / 14px 8px repeat-x;
}

.device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--dr) - 10px);
  background: #F6F8FA;
  overflow: hidden;
  transition: border-radius 0.8s var(--ease);
}

.xp__screen {
  position: absolute;
  inset: 0;
  padding: 1.1rem;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
  font-size: 12.5px;
  color: var(--tinta);
}

.xp__screen.is-on {
  opacity: 1;
  transform: none;
  transition-delay: 0.3s;
}

.xp__texts {
  position: relative;
  width: 100%;
  max-width: 34rem;
  min-height: 9rem;
}

.xp__text {
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}

.xp__text.is-on {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.xp__text p {
  margin: 0.6rem 0 0.9rem;
  color: var(--gris);
  font-size: var(--fs-lg);
  line-height: 1.5;
}

/* Contenido ilustrativo dentro del dispositivo */
.dv-h {
  margin-bottom: 0.8rem;
  font-weight: 700;
  font-size: 13.5px;
}

.dv-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--linea);
  border-radius: 8px;
  background: var(--blanco);
}

.dv-row .ic {
  color: var(--exito);
}

.dv-row em {
  margin-left: auto;
  color: var(--gris);
  font-style: normal;
  font-size: 11px;
}

.dv-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin: 0.6rem 0;
}

.dv-photos span {
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(160deg, #6D8295, #2B4053);
}

.dv-photos span:nth-child(3) {
  background: linear-gradient(160deg, #C9924F, #7B4E1D);
}

.dv-sign {
  height: 70px;
  margin-bottom: 0.6rem;
  padding: 0.5rem;
  border: 1px dashed var(--linea-2);
  border-radius: 8px;
  color: var(--gris);
  font: 400 10px var(--f-mono);
  display: flex;
  align-items: flex-end;
}

.dv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem;
  border-radius: 999px;
  background: var(--naranja);
  color: var(--noche);
  font-weight: 600;
}

.dv-desk {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.9rem;
  height: 100%;
}

.dv-side {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 0.6rem;
  border-radius: 10px;
  background: var(--noche);
}

.dv-side span {
  height: 24px;
  border-radius: 6px;
  background: rgba(244, 247, 251, 0.12);
}

.dv-side span.on {
  background: var(--naranja);
}

.dv-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.dv-tiles span {
  padding: 0.7rem;
  border: 1px solid var(--linea);
  border-radius: 8px;
  background: var(--blanco);
  color: var(--gris);
  font-size: 11px;
  line-height: 1.3;
}

.dv-tiles b {
  display: block;
  color: var(--tinta);
  font-family: var(--f-display);
  font-size: 1.7rem;
  line-height: 1;
}

.dv-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 150px;
  padding: 0.8rem;
  border: 1px solid var(--linea);
  border-radius: 8px;
  background: var(--blanco);
}

.dv-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--ambar), var(--naranja));
  transform-origin: bottom;
}

.xp__screen.is-on .dv-bars i {
  animation: bar-grow 0.9s var(--ease) both;
}

.xp__screen.is-on .dv-bars i:nth-child(2) { animation-delay: 0.08s; }
.xp__screen.is-on .dv-bars i:nth-child(3) { animation-delay: 0.16s; }
.xp__screen.is-on .dv-bars i:nth-child(4) { animation-delay: 0.24s; }
.xp__screen.is-on .dv-bars i:nth-child(5) { animation-delay: 0.32s; }
.xp__screen.is-on .dv-bars i:nth-child(6) { animation-delay: 0.4s; }
.xp__screen.is-on .dv-bars i:nth-child(7) { animation-delay: 0.48s; }

.dv-url {
  margin: -0.4rem 0 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #E7ECF1;
  color: var(--gris);
  font: 400 10.5px var(--f-mono);
}

.dv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--exito);
}

.dv-dot.warn {
  background: var(--ambar);
  box-shadow: 0 0 0 4px rgba(255, 171, 0, 0.25);
}

.dv-floors {
  display: grid;
  gap: 0.35rem;
}

.dv-floors span {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--linea);
  border-radius: 6px;
  background: var(--blanco);
  font: 500 11px var(--f-mono);
}

.dv-floors .warn {
  border-color: var(--naranja);
  background: rgba(216, 131, 41, 0.1);
  color: var(--naranja-texto);
}

.dv-doc {
  position: relative;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--linea);
  border-radius: 8px;
  background: var(--blanco);
}

.dv-doc .dv-h {
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--naranja);
}

.dv-doc i {
  display: block;
  width: var(--w);
  height: 7px;
  margin: 0.7rem 0;
  border-radius: 4px;
  background: #E4E9EE;
}

.dv-stamp {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 2px solid var(--exito);
  border-radius: 50%;
  color: var(--exito);
  font: 600 10px var(--f-mono);
  text-transform: uppercase;
  transform: rotate(-12deg);
}

.dv-sync {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  height: 100%;
  align-content: center;
}

.dv-sync .dv-row {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.dv-node {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: var(--noche);
  color: var(--luz);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.dv-node--b {
  background: var(--naranja);
  color: var(--noche);
}

.dv-wire {
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--linea-2) 0 6px, transparent 6px 12px);
}

.dv-wire i {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ambar);
  box-shadow: 0 0 10px var(--ambar);
  animation: wire 2.2s linear infinite;
}

.dv-wire i:nth-child(2) { animation-delay: -0.73s; }
.dv-wire i:nth-child(3) { animation-delay: -1.46s; }

/* Buscador de certificados + documento en vivo */
.cl {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding: 0.3rem 0.4rem 0.3rem 1rem;
  border: 1px solid var(--noche-linea-2);
  border-radius: 999px;
  background: var(--noche-2);
  color: var(--luz-3);
  transition: border-color 0.3s;
}

.search:focus-within {
  border-color: var(--ambar);
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0;
  border: 0;
  background: none;
  color: var(--luz);
  outline: none;
}

.search input::placeholder {
  color: var(--luz-3);
}

.search__count {
  flex: none;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 171, 0, 0.12);
  color: var(--ambar);
  font: 500 0.72rem / 1 var(--f-mono);
  white-space: nowrap;
}

.search--light {
  border-color: var(--linea-2);
  background: var(--blanco);
  color: var(--gris);
}

.search--light input {
  color: var(--tinta);
}

.search--light input::placeholder {
  color: var(--gris);
}

.search--light .search__count {
  background: rgba(216, 131, 41, 0.12);
  color: var(--naranja-texto);
}

.search--light:focus-within {
  border-color: var(--naranja);
}

.cl__list {
  list-style: none;
  border-top: 1px solid var(--noche-linea);
}

.cl__list li {
  border-bottom: 1px solid var(--noche-linea);
}

.cl__item {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.85rem 0.4rem;
  border: 0;
  background: none;
  color: var(--luz-2);
  text-align: left;
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s, padding 0.4s var(--ease);
}

.cl__item .ic {
  color: var(--ambar);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.cl__n {
  color: var(--luz-3);
  font: 500 0.72rem / 1 var(--f-mono);
}

.cl__item:hover,
.cl__item:focus-visible,
.cl__item.is-active {
  padding-left: 0.9rem;
  background: rgba(255, 171, 0, 0.06);
  color: var(--luz);
}

.cl__item:hover .ic,
.cl__item.is-active .ic {
  opacity: 1;
  transform: none;
}

.cl__empty {
  padding: 1.2rem 0;
  color: var(--luz-3);
}

.cl__preview {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  perspective: 1200px;
}

.paper {
  position: relative;
  padding: 1.6rem 1.5rem;
  border-radius: 6px;
  background: var(--blanco);
  color: var(--tinta);
  box-shadow: 0 60px 100px -40px rgba(0, 0, 0, 0.8);
  transform: rotateY(-8deg) rotateX(4deg);
  transform-origin: left center;
  transition: transform 0.8s var(--ease);
}

.cl__preview:hover .paper {
  transform: none;
}

.paper__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--naranja);
}

.paper__logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.paper__ref {
  color: var(--gris);
  font: 400 0.75rem var(--f-mono);
}

.paper__title {
  min-height: 2.6em;
  margin: 1.2rem 0 1rem;
  font-family: var(--f-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
}

.paper__title.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  background: var(--naranja);
  vertical-align: -0.1em;
  animation: blink-caret 0.8s steps(2) infinite;
}

.paper__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.paper__meta dt {
  color: var(--gris);
  font: 400 0.65rem var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.paper__meta dd {
  font-weight: 600;
  line-height: 1.25;
}

.paper__line {
  display: block;
  width: var(--w);
  height: 7px;
  margin: 0.65rem 0;
  border-radius: 4px;
  background: #E4E9EE;
}

.paper__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 1.4rem;
}

.paper__sign {
  width: 45%;
  height: 34px;
  border-bottom: 1px solid var(--linea-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath d='M4 22 C12 4 18 6 20 20 S30 28 34 14 S46 2 50 18 C54 28 60 26 66 12 S80 10 84 20 L110 14' fill='none' stroke='%230B1621' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.paper__stamp {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 2px solid var(--exito);
  border-radius: 50%;
  color: var(--exito);
  font: 600 0.6rem / 1.25 var(--f-mono);
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
}

.paper.is-stamped .paper__stamp {
  animation: stamp 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.cl__note {
  margin-top: 1rem;
  color: var(--luz-3);
  font: 400 var(--fs-xs) var(--f-mono);
  text-align: right;
}

.doclist {
  display: grid;
  list-style: none;
  border-top: 1px solid var(--linea-2);
}

.doclist li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--linea-2);
  font-size: var(--fs-lg);
  line-height: 1.4;
}

.doclist .ic {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--naranja-texto);
}

/* A3ERP: mini sincronización en el hero */
.minisync {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem;
  border: 1px solid var(--noche-linea);
  border-radius: var(--r-lg);
  background: rgba(16, 32, 47, 0.72);
}

.minisync__node {
  padding: 1rem 1.2rem;
  border: 1px solid var(--noche-linea-2);
  border-radius: 12px;
  background: var(--noche);
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.minisync__node--b {
  border-color: var(--naranja);
  background: linear-gradient(135deg, var(--naranja), var(--ambar));
  color: var(--noche);
}

.minisync__wire {
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--noche-linea-2) 0 6px, transparent 6px 12px);
}

.minisync__wire i {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ambar);
  box-shadow: 0 0 12px var(--ambar);
  animation: wire 2.4s linear infinite;
}

.minisync__wire i:nth-child(2) { animation-delay: -0.6s; animation-direction: reverse; }
.minisync__wire i:nth-child(3) { animation-delay: -1.2s; }
.minisync__wire i:nth-child(4) { animation-delay: -1.8s; animation-direction: reverse; }

/* Hub de áreas de A3ERP */
.hub {
  position: relative;
  width: min(760px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}

.hub::before,
.hub::after {
  content: "";
  position: absolute;
  inset: 17%;
  border: 1px dashed var(--noche-linea-2);
  border-radius: 50%;
}

.hub::after {
  inset: 34%;
  border-style: solid;
  border-color: rgba(255, 171, 0, 0.25);
  animation: spin 40s linear infinite;
}

.hub__core {
  position: absolute;
  inset: 38%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFC05A, var(--naranja) 60%, var(--naranja-fuerte));
  box-shadow: 0 0 0 12px rgba(216, 131, 41, 0.12), 0 0 80px rgba(216, 131, 41, 0.45);
  color: var(--noche);
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem);
  font-weight: 800;
}

.hub__ring {
  position: absolute;
  inset: 0;
  list-style: none;
}

.hub__node {
  --r: 41%;
  position: absolute;
  left: calc(50% + var(--r) * cos(var(--a) - 90deg));
  top: calc(50% + var(--r) * sin(var(--a) - 90deg));
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  width: 12.5rem;
  padding: 1rem 0.9rem;
  border: 1px solid var(--noche-linea);
  border-radius: var(--r-md);
  background: var(--noche-2);
  text-align: center;
  translate: -50% -50%;
  transition: border-color 0.4s, background-color 0.4s, transform 0.5s var(--ease);
}

.hub__node:hover {
  border-color: var(--ambar);
  background: var(--noche-3);
  transform: scale(1.04);
}

.hub__ic .ic {
  width: 1.8rem;
  height: 1.8rem;
  color: var(--ambar);
}

.hub__node strong {
  font-family: var(--f-display);
  font-size: 1.35rem;
  line-height: 1;
}

.hub__node small {
  color: var(--luz-3);
  font-size: 0.85rem;
  line-height: 1.35;
}

/* Visualización de la sincronización */
.syncviz {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--noche-linea);
  border-radius: var(--r-lg);
  background: var(--noche-2);
}

.syncviz__node {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--noche-linea-2);
  border-radius: 12px;
  background: var(--noche);
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.syncviz__node small {
  color: var(--luz-3);
  font-family: var(--f-text);
  font-size: 0.78rem;
  font-weight: 500;
}

.syncviz__node--b {
  border-color: var(--naranja);
  background: linear-gradient(135deg, var(--naranja), var(--ambar));
  color: var(--noche);
}

.syncviz__node--b small {
  color: rgba(11, 22, 33, 0.7);
}

.syncviz__lane {
  position: relative;
  height: 64px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.syncviz__lane::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--noche-linea-2) 0 6px, transparent 6px 12px);
}

.packet {
  position: absolute;
  top: 50%;
  left: 0;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 171, 0, 0.5);
  border-radius: 999px;
  background: var(--noche);
  color: var(--ambar);
  font: 500 0.66rem / 1 var(--f-mono);
  white-space: nowrap;
  translate: 0 -50%;
  opacity: 0;
  animation: packet 22s linear infinite;
  animation-delay: calc(var(--i) * 2.2s - 22s);
}

.packet:nth-child(even) {
  animation-direction: reverse;
  color: var(--luz-2);
  border-color: var(--noche-linea-2);
}

.syncviz__title {
  grid-column: 1 / -1;
  margin-top: 1rem;
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.syncviz .checklist {
  grid-column: 1 / -1;
}

.checklist--cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.4rem;
}

/* Vídeos */
.vgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.vcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--blanco);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.vcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.vcard--wide {
  grid-column: 1 / -1;
  flex-direction: row;
}

.vcard--wide .vcard__media {
  flex: 1.4;
}

.vcard--wide .vcard__body {
  flex: 1;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.vcard__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: radial-gradient(90% 90% at 20% 10%, #22384c, var(--noche));
  cursor: pointer;
  overflow: hidden;
}

.vcard__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
}

.vcard__media.is-playing video {
  opacity: 1;
}

.vcard__poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-image: radial-gradient(circle at 1px 1px, rgba(244, 247, 251, 0.07) 1px, transparent 0);
  background-size: 18px 18px;
  transition: opacity 0.5s;
}

.vcard__media.is-playing .vcard__poster {
  opacity: 0;
}

.vcard__big {
  width: 3.4rem;
  height: 3.4rem;
  color: rgba(255, 171, 0, 0.5);
}

.vcard__n {
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  color: var(--luz-3);
  font: 500 0.72rem / 1 var(--f-mono);
}

.vcard__play {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--naranja), var(--ambar));
  color: var(--noche);
  box-shadow: 0 12px 30px -10px rgba(216, 131, 41, 0.8);
  transition: transform 0.5s var(--ease);
}

.vcard__play .ic {
  fill: currentColor;
}

.vcard__media:hover .vcard__play {
  transform: scale(1.12);
}

.vcard__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.3rem 1.4rem 1.5rem;
  color: var(--gris);
}

.vcard__title {
  color: var(--tinta);
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.05;
}

.vmodal {
  width: min(1100px, calc(100vw - 2 * var(--gutter)));
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--noche);
  color: var(--luz);
  overflow: hidden;
}

.vmodal::backdrop {
  background: rgba(11, 22, 33, 0.85);
}

.vmodal[open] {
  animation: modal-in 0.5s var(--ease);
}

.vmodal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem 0.9rem 1.3rem;
}

.vmodal__title {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.vmodal__close {
  position: static;
  border-color: var(--noche-linea-2);
  color: var(--luz);
}

.vmodal__stage {
  position: relative;
}

.vmodal__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.vmodal__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: radial-gradient(60% 70% at 50% 40%, var(--noche-3), var(--noche));
  color: var(--luz-2, var(--luz));
  text-align: center;
}

.vmodal__fbic {
  width: 3rem;
  height: 3rem;
  color: var(--naranja);
}

.vmodal__foot {
  padding: 0.75rem 1.3rem 0.9rem;
  font-size: 0.85rem;
}

.vmodal__foot a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ambar);
}

.vmodal__foot .ic {
  width: 1em;
  height: 1em;
}

/* Biblioteca de guías */
.lib__tools {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.lib__tools .search {
  max-width: 40rem;
  margin: 0;
}

.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.fchip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--linea-2);
  border-radius: 999px;
  background: var(--blanco);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.fchip span {
  color: var(--gris);
  font: 500 0.7rem / 1 var(--f-mono);
}

.fchip:hover {
  border-color: var(--naranja);
}

.fchip.is-active {
  border-color: var(--noche);
  background: var(--noche);
  color: var(--luz);
}

.fchip.is-active span {
  color: var(--ambar);
}

.lib__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.guide {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--blanco);
  animation: guide-in 0.5s var(--ease) both;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}

.guide:hover {
  border-color: var(--naranja);
  transform: translateY(-3px);
}

.guide[hidden] {
  display: none;
}

.guide__title {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.guide__text {
  flex: 1;
  color: var(--gris);
  font-size: 0.98rem;
}

.guide mark {
  background: rgba(255, 171, 0, 0.35);
  color: inherit;
  border-radius: 2px;
}

.lib__empty {
  padding: 2rem;
  border: 1px dashed var(--linea-2);
  border-radius: var(--r-md);
  text-align: center;
  color: var(--gris);
}

.lib__empty a {
  color: var(--naranja-texto);
}

/* Terminal y bloques de código */
.term {
  border: 1px solid var(--noche-linea-2);
  border-radius: var(--r-md);
  background: #060D14;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--noche-linea);
}

.term__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(244, 247, 251, 0.18);
}

.term__bar span:first-child {
  background: var(--naranja);
}

.term__bar p {
  margin-left: auto;
  color: var(--luz-3);
  font: 400 0.72rem var(--f-mono);
}

.term__body {
  margin: 0;
  padding: 1.1rem 1.2rem 1.3rem;
  font: 400 0.8rem / 1.65 var(--f-mono);
  color: var(--luz);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 15.5rem;
}

.term__body code {
  display: block;
  padding: 0;
  background: none;
  color: inherit;
}

.term__body code:first-child::before {
  content: "PS> ";
  color: var(--ambar);
}

.term__body .term__out {
  margin-top: 0.6rem;
  color: #9FE3C9;
}

.term.is-typing .term__out {
  opacity: 0;
}

.code {
  border: 1px solid var(--noche-linea-2);
  border-radius: var(--r-md);
  background: #060D14;
  overflow: hidden;
}

.code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  border-bottom: 1px solid var(--noche-linea);
  color: var(--luz-3);
  font: 400 0.72rem / 1.3 var(--f-mono);
}

.code__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--noche-linea-2);
  border-radius: 999px;
  background: none;
  color: var(--luz);
  font: 500 0.7rem / 1 var(--f-mono);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.code__copy:hover,
.code__copy.is-done {
  border-color: var(--ambar);
  color: var(--ambar);
}

.code__pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  color: var(--luz);
  font: 400 0.8rem / 1.65 var(--f-mono);
}

.code__pre code {
  padding: 0;
  background: none;
  color: inherit;
  white-space: pre;
}

.code__pre .tok-k {
  color: #F7C318;
}

.code__pre .tok-s {
  color: #9FE3C9;
}

.code__pre .tok-n {
  color: #FFB27A;
}

.code__pre .tok-c {
  color: #6B7F92;
}

/* Consola de la API */
.api {
  display: grid;
  gap: 1.5rem;
}

.api__eps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.api__ep {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--noche-linea);
  border-radius: var(--r-md);
  background: var(--noche-2);
  color: var(--luz-2);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}

.api__ep code {
  background: none;
  color: var(--luz);
  font-size: 0.92rem;
}

.api__ep.is-active {
  border-color: var(--ambar);
  background: var(--noche-3);
}

.api__get {
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  background: rgba(15, 118, 110, 0.25);
  color: #7FE0C7;
  font: 600 0.7rem / 1 var(--f-mono);
}

.api__status {
  margin-left: auto;
  color: #7FE0C7;
  font: 500 0.7rem / 1 var(--f-mono);
}

.api__status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
  vertical-align: 0.1em;
}

.builder {
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem;
  border: 1px solid var(--noche-linea);
  border-radius: var(--r-md);
  background: rgba(16, 32, 47, 0.6);
}

.builder__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.builder label {
  display: grid;
  gap: 0.35rem;
  color: var(--luz-3);
  font: 500 0.72rem / 1 var(--f-mono);
}

.builder input,
.builder select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--noche-linea-2);
  border-radius: 8px;
  background: var(--noche);
  color: var(--luz);
  font: 400 0.9rem var(--f-mono);
}

.builder input:focus,
.builder select:focus {
  border-color: var(--ambar);
  outline: none;
}

.builder__warn {
  color: #FFB27A;
  font: 400 0.8rem var(--f-mono);
}

.api__panel {
  display: none;
}

.api__panel.is-on {
  display: grid;
  gap: 1.5rem;
  animation: guide-in 0.5s var(--ease) both;
}

.api__intro p {
  max-width: 50rem;
  margin-top: 0.6rem;
  color: var(--luz-2);
}

.api__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.api__cols > div:last-child {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.api__h {
  margin: 0.5rem 0 0.9rem;
  color: var(--ambar);
  font: 500 var(--fs-xs) / 1.3 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section--light .api__h,
.section--white .api__h {
  color: var(--naranja-texto);
}

.tablewrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border: 1px solid var(--noche-linea);
  border-radius: var(--r-md);
}

.ptable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.ptable th {
  padding: 0.75rem 0.9rem;
  background: var(--noche-2);
  color: var(--luz-3);
  font: 500 0.7rem / 1.2 var(--f-mono);
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.ptable td {
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--noche-linea);
  color: var(--luz-2);
  vertical-align: top;
}

.ptable small {
  color: var(--luz-3);
}

.type {
  color: #7FE0C7;
  font: 400 0.78rem var(--f-mono);
}

.fields {
  display: grid;
  gap: 0.2rem;
  list-style: none;
}

.fields li {
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--noche-linea);
  color: var(--luz-2);
  font-size: 0.92rem;
}

.rules {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
}

.rules__list li {
  font-size: 0.98rem;
}

.hcodes {
  display: grid;
  gap: 0.6rem;
  list-style: none;
}

.hcode {
  display: grid;
  grid-template-columns: 4rem 9rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--linea);
  border-left: 3px solid var(--exito);
  border-radius: var(--r-sm);
  background: var(--blanco);
}

.hcode b {
  font-family: var(--f-display);
  font-size: 1.6rem;
  line-height: 1;
}

.hcode strong {
  font-weight: 600;
}

.hcode p {
  color: var(--gris);
  font-size: 0.92rem;
}

.hcode--warn {
  border-left-color: var(--ambar);
}

.hcode--err {
  border-left-color: var(--error);
}

@keyframes bar-grow {
  from {
    transform: scaleY(0);
  }
}

@keyframes wire {
  from {
    left: -10px;
  }
  to {
    left: 100%;
  }
}

@keyframes packet {
  0% {
    left: 0;
    transform: translateX(-100%);
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  13% {
    opacity: 1;
  }
  15%,
  100% {
    left: 100%;
    transform: translateX(0);
    opacity: 0;
  }
}

@keyframes blink-caret {
  to {
    opacity: 0;
  }
}

@keyframes guide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Servicios IT ------------------------------------------------------------- */
.split--even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.areas--dark .area {
  border-color: var(--noche-linea);
  background: var(--noche-2);
  color: var(--luz);
}

.areas--dark .area .ic {
  background: rgba(255, 171, 0, 0.12);
  color: var(--ambar);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}

.plans span {
  display: grid;
  place-items: center;
  min-height: 4.6rem;
  padding: 0.8rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  transition: transform 0.5s var(--ease), border-color 0.3s;
}

.plans span.is-mid {
  border-color: var(--naranja);
  background: rgba(216, 131, 41, 0.08);
}

.plans span:hover {
  transform: translateY(-4px);
  border-color: var(--naranja);
}

.plans--dark span {
  border-color: var(--noche-linea-2);
  color: var(--luz);
}

.plans--dark span.is-mid {
  border-color: var(--ambar);
  background: rgba(255, 171, 0, 0.1);
}

/* Panel de monitorización */
.dash {
  border: 1px solid var(--noche-linea-2);
  border-radius: var(--r-lg);
  background: #0A1826;
  color: var(--luz);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  font-size: 0.85rem;
}

.dash__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--noche-linea);
}

.dash__title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.dash__title .ic {
  color: var(--ambar);
}

.dash__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #7FE0C7;
  font: 500 0.7rem / 1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 10px #34D399;
  animation: blink 1.4s steps(2, jump-none) infinite;
}

.dash__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0.9rem;
}

.dash__tile {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--noche-linea);
  border-radius: 10px;
  background: var(--noche-2);
}

.dash__tile small,
.dash__chart small {
  display: block;
  color: var(--luz-3);
  font-size: 0.72rem;
}

.dash__tile b {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--f-display);
  font-size: 1.9rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dash__chart {
  grid-column: span 3;
  padding: 0.7rem 0.9rem 0.4rem;
  border: 1px solid var(--noche-linea);
  border-radius: 10px;
  background: var(--noche-2);
}

.dash__chart svg {
  width: 100%;
  height: 70px;
  margin-top: 0.3rem;
}

.dash__line {
  fill: none;
  stroke: var(--ambar);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.dash__line--b {
  stroke: #7FE0C7;
}

.dash__area {
  fill: rgba(255, 171, 0, 0.14);
}

.dash__area--b {
  fill: rgba(127, 224, 199, 0.12);
}

.dash__alerts {
  grid-column: span 3;
  display: grid;
  gap: 0.35rem;
  list-style: none;
}

.dash__alerts li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: rgba(244, 247, 251, 0.04);
  font-size: 0.8rem;
  transition: background-color 0.4s;
}

.dash__alerts li.is-new {
  animation: row-in 0.6s var(--ease) both;
  background: rgba(255, 171, 0, 0.1);
}

.dash__alerts em {
  margin-left: auto;
  color: var(--luz-3);
  font-style: normal;
  font: 500 0.68rem var(--f-mono);
}

.dash__sev {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--luz-3);
}

.dash__sev--warn {
  background: var(--ambar);
  box-shadow: 0 0 8px var(--ambar);
}

.dash__sev--ok {
  background: #34D399;
}

.dash__foot {
  padding: 0 1rem 0.8rem;
  color: var(--luz-3);
  font: 400 0.68rem var(--f-mono);
  text-align: right;
}

/* Capas de seguridad */
.lyr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.lyr__viz svg {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  overflow: visible;
}

.lyr__ring {
  fill: rgba(216, 131, 41, 0.04);
  stroke: var(--linea-2);
  stroke-width: 1.2;
  transition: fill 0.5s, stroke 0.5s, stroke-width 0.5s;
  cursor: pointer;
}

.lyr__ring.is-on {
  fill: rgba(216, 131, 41, 0.16);
  stroke: var(--naranja);
  stroke-width: 2.5;
}

.lyr__num {
  fill: var(--gris);
  font: 500 11px var(--f-mono);
  pointer-events: none;
  transition: fill 0.4s;
}

.lyr__num.is-on {
  fill: var(--naranja-texto);
}

.lyr__core circle {
  fill: var(--naranja);
}

.lyr__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.lyr__btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--blanco);
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.lyr__n {
  color: var(--naranja-texto);
  font: 500 0.72rem var(--f-mono);
}

.lyr__btn.is-active {
  border-color: var(--noche);
  background: var(--noche);
  color: var(--luz);
}

.lyr__btn.is-active .lyr__n {
  color: var(--ambar);
}

.lyr__details {
  position: relative;
  min-height: 12rem;
  padding: 1.5rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--blanco);
}

.lyr__detail {
  display: none;
}

.lyr__detail.is-on {
  display: block;
  animation: guide-in 0.45s var(--ease) both;
}

.lyr__detail .h3 {
  margin-bottom: 1rem;
}

/* Trío soporte, monitorización y seguridad */
.trio {
  display: grid;
  gap: 0.8rem;
  list-style: none;
}

.trio__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--noche-linea);
  border-radius: var(--r-md);
  background: var(--noche-2);
}

.trio__ic {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 10px;
  background: rgba(255, 171, 0, 0.12);
  color: var(--ambar);
}

.trio__item strong {
  font-family: var(--f-display);
  font-size: 1.4rem;
  line-height: 1.1;
}

.trio__item p {
  color: var(--luz-2);
}

/* Kit Digital: calculadora de segmento */
.kcalc {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}

.kcalc__label {
  color: var(--gris);
  font: 500 var(--fs-xs) / 1.3 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kcalc__emp {
  display: block;
  color: var(--noche);
  font-family: var(--f-display);
  font-size: clamp(3.4rem, 2.4rem + 3vw, 5rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.range {
  --p: 0%;
  width: 100%;
  height: 2.4rem;
  margin: 0.4rem 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.range:focus-visible {
  outline: none;
}

.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--naranja) var(--p), var(--linea-2) var(--p));
}

.range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -10px;
  border: 2px solid var(--naranja);
  border-radius: 50%;
  background: var(--blanco);
  box-shadow: 0 0 0 6px rgba(216, 131, 41, 0.14);
  transition: transform 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.range:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

.range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px var(--blanco), 0 0 0 6px var(--naranja);
}

.range::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--linea-2);
}

.range::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--naranja);
}

.range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid var(--naranja);
  border-radius: 50%;
  background: var(--blanco);
}

.range--light::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--naranja) var(--p, 0%), var(--linea-2) var(--p, 0%));
}

.range--light::-webkit-slider-thumb {
  border-color: var(--naranja);
  background: var(--blanco);
  box-shadow: 0 0 0 6px rgba(216, 131, 41, 0.14);
}

.range--light::-moz-range-progress {
  background: var(--naranja);
}

.range--light::-moz-range-track {
  background: var(--linea-2);
}

.range--light::-moz-range-thumb {
  border-color: var(--naranja);
  background: var(--blanco);
}

.kcalc__scale {
  display: flex;
  justify-content: space-between;
  color: var(--gris);
  font: 400 0.7rem var(--f-mono);
}

.kcalc__result {
  display: grid;
  gap: 0.2rem;
  margin-top: 1.4rem;
  padding: 1.3rem;
  border-radius: var(--r-md);
  background: var(--noche);
  color: var(--luz);
}

.kcalc__seg {
  color: var(--luz-3);
  font: 500 var(--fs-xs) / 1.3 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kcalc__seg b {
  color: var(--ambar);
  font-size: 1.1rem;
}

.kcalc__amt {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.kcalc__amt b {
  color: var(--ambar);
  font-size: 2.4em;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kcalc__type {
  color: var(--luz-2);
}

.tablewrap--light {
  margin: 0;
  border-color: var(--linea);
  background: var(--blanco);
}

.ktable {
  width: 100%;
  border-collapse: collapse;
}

.ktable th,
.ktable td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--linea);
  text-align: left;
  transition: background-color 0.35s, color 0.35s;
}

.ktable thead th {
  color: var(--gris);
  font: 500 0.7rem / 1.2 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ktable tbody tr:last-child th,
.ktable tbody tr:last-child td {
  border-bottom: 0;
}

.ktable strong,
.ktable td:nth-child(2) {
  white-space: nowrap;
}

.ktable tr.is-on th,
.ktable tr.is-on td {
  background: rgba(216, 131, 41, 0.1);
}

.seg {
  display: inline-grid;
  place-items: center;
  min-width: 2.6rem;
  height: 2.2rem;
  padding: 0 0.5rem;
  border: 1.5px solid var(--naranja);
  border-radius: 8px;
  color: var(--naranja-texto);
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.ktable tr.is-on .seg {
  background: var(--naranja);
  color: var(--noche);
}

/* Selector de público */
.aud {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.5rem;
  padding: 0.3rem;
  border: 1px solid var(--noche-linea-2);
  border-radius: 999px;
}

.aud__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--luz-2);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.4s;
}

.aud__btn.is-active {
  color: var(--noche);
}

.aud__pill {
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0.3rem;
  width: calc(50% - 0.3rem);
  border-radius: 999px;
  background: linear-gradient(100deg, var(--naranja), var(--ambar));
  transition: transform 0.55s var(--ease);
}

.aud[data-on="jovenes"] .aud__pill {
  transform: translateX(100%);
}

.aud__panel {
  display: none;
}

.aud__panel.is-on {
  display: flex;
  animation: guide-in 0.45s var(--ease) both;
}

.aud__panel .checklist li {
  font-size: var(--fs-lg);
}

/* Embudo de selección */
.funnel {
  position: relative;
  padding: 1.2rem;
  border: 1px solid var(--noche-linea);
  border-radius: var(--r-lg);
  background: rgba(16, 32, 47, 0.72);
}

.funnel__canvas {
  width: 100%;
  height: 280px;
}

.funnel__labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 0.6rem;
  list-style: none;
  color: var(--luz-3);
  font: 400 0.64rem / 1.2 var(--f-mono);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.funnel__labels li:last-child {
  color: var(--ambar);
}

/* Contacto */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact__info {
  display: grid;
  gap: 0.8rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.cinfo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--blanco);
}

.cinfo a {
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.cinfo a:hover {
  color: var(--naranja-texto);
}

.cinfo p:not(.card__tag) {
  color: var(--gris);
  line-height: 1.45;
}

.cform {
  gap: 1.1rem;
}

.cform:hover {
  transform: none;
}

.cform__title {
  margin-top: -0.4rem;
}

.cform__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field {
  position: relative;
}

.field--full {
  grid-column: 1 / -1;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 1.45rem 1rem 0.55rem;
  border: 1px solid var(--linea-2);
  border-radius: var(--r-md);
  background: var(--claro);
  color: var(--tinta);
  font-size: 1rem;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 8.5rem;
}

.field label {
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  color: var(--gris);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.3s var(--ease), color 0.3s;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field--select label {
  color: var(--naranja-texto);
  transform: translateY(-0.6rem) scale(0.76);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--naranja);
  background: var(--blanco);
  box-shadow: 0 0 0 4px rgba(216, 131, 41, 0.14);
  outline: none;
}

.field__chev {
  position: absolute;
  right: 1rem;
  top: 50%;
  translate: 0 -50%;
  color: var(--gris);
  pointer-events: none;
}

.field__err {
  display: none;
  margin-top: 0.35rem;
  color: var(--error);
  font-size: 0.86rem;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
  border-color: var(--error);
}

.field.is-invalid .field__err,
.cform.is-check-invalid .field__err--check {
  display: block;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--gris);
  cursor: pointer;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.check__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border: 1.5px solid var(--linea-2);
  border-radius: 6px;
  color: transparent;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.check__box .ic {
  width: 0.9rem;
  height: 0.9rem;
  stroke-width: 3;
}

.check input:checked + .check__box {
  border-color: var(--naranja);
  background: var(--naranja);
  color: var(--noche);
}

.check input:focus-visible + .check__box {
  outline: 2px solid var(--ambar);
  outline-offset: 2px;
}

.check a {
  color: var(--naranja-texto);
}

.cform__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.4rem;
}

.cform__note {
  color: var(--gris);
  font-size: var(--fs-sm);
}

.cform__done {
  display: grid;
  justify-items: start;
  gap: 0.8rem;
  padding: 1.4rem;
  border-radius: var(--r-md);
  background: rgba(15, 118, 110, 0.08);
}

.cform__done[hidden] {
  display: none;
}

.cform__okic {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--exito);
  color: #fff;
}

.cform.is-sent > :not(.cform__done):not(.eyebrow) {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cform__mail {
  color: var(--tinta);
  user-select: all;
}

.cform__draft {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.cform__draft[hidden] {
  display: none;
}

.cform__draft textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-sm, 10px);
  background: var(--blanco);
  color: var(--tinta);
  font: 400 0.82rem / 1.55 var(--f-mono);
  resize: vertical;
}

.cform__draft textarea:focus-visible {
  outline: 2px solid var(--naranja);
  outline-offset: 2px;
}

.cform__draftacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cform__again {
  padding: 0.4rem 0;
  border: 0;
  background: none;
  color: var(--naranja-texto);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.fchip--dark {
  border-color: var(--noche-linea-2);
  background: transparent;
  color: var(--luz);
}

.fchip--dark:hover {
  border-color: var(--ambar);
  color: var(--ambar);
}

.office__addr {
  display: grid;
  gap: 0.3rem;
  margin-top: 1.5rem;
  color: var(--luz-2);
  font-size: var(--fs-lg);
  font-style: normal;
}

.office__addr a {
  color: var(--luz);
  text-decoration: none;
}

.office__addr a:hover {
  color: var(--ambar);
}

.map {
  border: 1px solid var(--noche-linea);
  border-radius: var(--r-lg);
  background: var(--noche-2);
  overflow: hidden;
}

.map svg {
  width: 100%;
  height: auto;
}

.map__road {
  fill: none;
  stroke: rgba(244, 247, 251, 0.16);
  stroke-width: 6;
  stroke-linecap: round;
}

.map__road--main {
  stroke: rgba(216, 131, 41, 0.45);
  stroke-width: 9;
}

.map__block {
  fill: rgba(244, 247, 251, 0.05);
  stroke: rgba(244, 247, 251, 0.1);
}

.map__pin circle:nth-child(2) {
  fill: var(--ambar);
}

.map__pulse {
  fill: rgba(255, 171, 0, 0.25);
  transform-origin: center;
  transform-box: fill-box;
  animation: pulse-ring 2.2s var(--ease) infinite;
}

.map__label {
  fill: var(--luz);
  font: 600 13px var(--f-text);
}

.map__label--city {
  fill: var(--luz-3);
  font: 500 11px var(--f-mono);
  letter-spacing: 0.2em;
}

/* Empresa: línea de tiempo */
.tl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.tl::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 2.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--naranja), var(--ambar), rgba(255, 171, 0, 0.1));
}

.tl__item {
  position: relative;
  padding-top: 4rem;
}

.tl__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.85rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--ambar);
  border-radius: 50%;
  background: var(--noche);
  box-shadow: 0 0 0 6px rgba(255, 171, 0, 0.12);
}

.tl__year {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--ambar);
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.tl__item h3 {
  margin-bottom: 0.5rem;
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1.1;
}

.tl__item p {
  color: var(--luz-2);
}

/* Soluciones: selector de necesidad */
.needs {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.needs__list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.need {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--blanco);
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s, transform 0.5s var(--ease);
}

.need .ic {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--naranja-texto);
}

.need:hover {
  transform: translateX(4px);
  border-color: var(--naranja);
}

.need.is-active {
  border-color: var(--noche);
  background: var(--noche);
  color: var(--luz);
}

.need.is-active .ic {
  color: var(--ambar);
}

.needs__panels:hover {
  transform: none;
}

.need__panel {
  display: none;
}

.need__panel.is-on {
  display: grid;
  justify-items: start;
  gap: 1rem;
  animation: guide-in 0.45s var(--ease) both;
}

.need__sub {
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--naranja);
  background: var(--claro);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.need__sub h4 {
  margin-bottom: 0.3rem;
  font-family: var(--f-display);
  font-size: 1.25rem;
}

.need__sub p {
  color: var(--gris);
}

/* Recursos */
.reslist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  list-style: none;
}

.res[hidden] {
  display: none;
}

.res {
  animation: guide-in 0.45s var(--ease) both;
}

.res__link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  height: 100%;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  background: var(--blanco);
  text-decoration: none;
  transition: border-color 0.3s, transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.res__link:hover {
  border-color: var(--naranja);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.res__kind {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--naranja-texto);
  font: 500 var(--fs-xs) / 1.2 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.res__title {
  grid-column: 1;
  font-family: var(--f-display);
  font-size: 1.45rem;
  line-height: 1.1;
}

.res__text {
  grid-column: 1;
  color: var(--gris);
}

.res__arrow {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--naranja-texto);
  transition: transform 0.4s var(--ease);
}

.res__link:hover .res__arrow {
  transform: translateX(4px);
}

/* Actualidad */
.news {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 1.5rem;
}

.news__item {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  padding: 0;
  overflow: hidden;
}

.news__media {
  display: grid;
  place-items: center;
  min-height: 18rem;
  background: radial-gradient(circle at 40% 35%, #FFC05A, var(--naranja) 55%, var(--naranja-fuerte));
}

.news__badge {
  color: var(--noche);
  font-family: var(--f-display);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 0.85;
  text-align: center;
}

.news__body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.8rem 1.8rem 1.8rem 0;
}

.news__empty {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 0.9rem;
  padding: 1.8rem;
  border: 1px dashed var(--linea-2);
  border-radius: var(--r-md);
  color: var(--gris);
}

/* Páginas legales */
.phero--short {
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.legal__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.legal__toc ol {
  display: grid;
  gap: 0.1rem;
  list-style: none;
  border-left: 1px solid var(--linea-2);
}

.legal__toc a {
  display: block;
  margin-left: -1px;
  padding: 0.45rem 0 0.45rem 1rem;
  border-left: 2px solid transparent;
  color: var(--gris);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
}

.legal__toc a:hover,
.legal__toc a.is-active {
  border-left-color: var(--naranja);
  color: var(--tinta);
}

.legal__body {
  max-width: 46rem;
}

.legal__sec {
  padding-bottom: 2.4rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.legal__sec h2 {
  margin-bottom: 1rem;
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
}

.legal__sec h3 {
  margin: 1.4rem 0 0.5rem;
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.legal__sec p,
.legal__list li {
  color: #3B4250;
}

.legal__sec a {
  color: var(--naranja-texto);
}

.legal__addr {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--naranja);
  background: var(--claro);
  font-style: normal;
}

.legal__list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-left: 1.3rem;
}

.legal__list li::marker {
  color: var(--naranja-texto);
  font-family: var(--f-mono);
  font-size: 0.85em;
}

.pending {
  display: flex;
  gap: 0.9rem;
  margin: 0 0 1.6rem;
  padding: 1rem 1.2rem;
  border: 1px dashed var(--ambar);
  border-radius: var(--r-md);
  background: rgba(255, 171, 0, 0.1);
}

.pending .ic {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  color: #8A5A00;
}

.pending strong {
  display: block;
  color: #6B4600;
  font-size: 0.9rem;
}

.pending p {
  margin-top: 0.2rem;
  color: #5C4A26;
  font-size: 0.95rem;
}

/* 13b. MEDIA QUERIES (páginas interiores) ================================== */
@media (max-width: 1080px) {
  .split,
  .split--even,
  .xp,
  .cl,
  .rules,
  .api__cols,
  .lyr,
  .kcalc,
  .contact,
  .needs,
  .news,
  .legal__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sectors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vgrid,
  .lib__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }

  .tl::before {
    display: none;
  }

  .cl__preview,
  .contact__info,
  .legal__toc,
  .api__cols > div:last-child {
    position: relative;
    top: 0;
  }

  .legal__toc {
    display: none;
  }

  .device[data-device="desktop"],
  .device[data-device="web"] {
    --dw: 100%;
  }

  .hub {
    aspect-ratio: auto;
  }

  .hub::before,
  .hub::after,
  .hub__core {
    display: none;
  }

  .hub__ring {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .hub__node {
    position: static;
    width: auto;
    translate: none;
  }
}

@media (max-width: 767px) {
  .sectors,
  .vgrid,
  .lib__grid,
  .reslist,
  .tl,
  .hub__ring,
  .areas,
  .cform__grid,
  .builder__row,
  .api__eps,
  .badges,
  .checklist--cols,
  .lyr__list,
  .news__item {
    grid-template-columns: minmax(0, 1fr);
  }

  .vcard--wide {
    flex-direction: column;
  }

  .sector {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
  }

  .syncviz {
    grid-template-columns: minmax(0, 1fr);
  }

  .syncviz__lane {
    height: 48px;
  }

  .hcode {
    grid-template-columns: 3.4rem 1fr;
  }

  .hcode p {
    grid-column: 1 / -1;
  }

  .fields li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }

  .device {
    --dw: 100%;
    --dh: 420px;
  }

  .news__body {
    padding: 0 1.4rem 1.4rem;
  }

  .news__media {
    min-height: 12rem;
  }

  .ktable th,
  .ktable td {
    padding: 0.8rem 0.6rem;
    font-size: 0.9rem;
  }

  .ktable td:last-child,
  .ktable th:last-child {
    display: none;
  }

  .dash__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dash__tile b {
    font-size: 1.4rem;
  }

  .phero__aside {
    display: grid;
  }
}

/* 14. MOVIMIENTO REDUCIDO =================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
    scroll-behavior: auto !important;
  }

  .js [data-split] .w > span,
  .js [data-reveal] {
    transform: none;
    opacity: 1;
  }

  .curtain {
    display: none !important;
  }

  .packet {
    display: none;
  }
}

/* Cursor personalizado solo con ratón (al final para que prevalezca) */
.has-cursor,
.has-cursor * {
  cursor: none;
}
