/* =====================================================================
   Polgroup — tema noche (Home, Sobre Nosotros y Contáctanos)
   Se activa con <body class="h-night">. Fondo azul noche del brochure,
   morado de marca y colores de canal (cian, verde, azul). Las animaciones
   viven en assets/js/night.js; sin JS o con "reducir movimiento" todo se
   ve en su lugar, sin estados ocultos.
   ===================================================================== */

.h-night {
  --h-bg: #07081a;
  --h-bg-2: #0b0d26;
  --h-panel: rgba(20, 22, 58, .55);
  --h-border: rgba(167, 139, 250, .16);
  --h-border-strong: rgba(167, 139, 250, .34);
  --h-text: #eeecff;
  --h-muted: rgba(222, 224, 255, .64);
  --h-faint: rgba(222, 224, 255, .38);
  --h-violet: #7546C7;
  --h-violet-2: #8b5cf6;
  --h-violet-soft: #b69cff;
  --h-cyan: #19b8cc;
  --h-green: #7ab648;
  --h-blue: #3b6cff;
  --h-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --h-ease: cubic-bezier(.22, 1, .36, 1);

  background: var(--h-bg);
  color: var(--h-text);
}

/* Brillo ambiental fijo: dos halos morados muy tenues */
.h-night::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 85% -10%, rgba(117, 70, 199, .16), transparent 70%),
    radial-gradient(50vw 40vw at -10% 60%, rgba(59, 108, 255, .07), transparent 70%),
    var(--h-bg);
}

.h-night .site-header.is-solid {
  background-color: rgba(7, 8, 26, .78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(167, 139, 250, .08);
}
.h-night .site-footer { background: transparent; }
.h-night .site-header__logo path[fill="#7546C7"] { fill: #8b5cf6; }

.h-main { position: relative; }

.h-wrap {
  width: min(1280px, 90vw);
  margin-inline: auto;
}

/* ---------- Tipografía y piezas comunes ---------- */

.h-mono {
  font-family: var(--h-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--h-muted);
}

.h-tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 7px 14px;
  border: 1px solid var(--h-border-strong);
  border-radius: 999px;
  background: rgba(117, 70, 199, .08);
  font-family: var(--h-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--h-violet-soft);
  white-space: nowrap;
}
.h-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

/* Línea fina que une la etiqueta con el titular */
.h-stem {
  display: block;
  width: 1px;
  height: 56px;
  margin: 14px auto 22px;
  background: linear-gradient(to bottom, var(--h-border-strong), rgba(167, 139, 250, 0));
  transform-origin: top;
}

.h-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.h-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.h-head--center .h-lead { max-width: 40ch; margin-inline: auto; }
.h-head--split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 2rem 4rem;
}
.h-head--split .h-tag { margin-bottom: 1.5rem; }

.h-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.1rem, 1.2rem + 2.8vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--h-text);
  text-wrap: balance;
}

.h-lead {
  margin-top: 1.25rem;
  font-size: clamp(1rem, .92rem + .35vw, 1.2rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--h-muted);
  text-wrap: pretty;
}

.h-section { padding-block: clamp(6rem, 12vw, 11rem); position: relative; }

/* Líneas partidas por SplitText: la máscara recorta la subida */
.h-line-mask {
  display: block;
  padding-bottom: .08em;
  margin-bottom: -.08em;
  /* recorta abajo (la línea sube desde ahí) pero deja aire arriba para tildes como la de «MÁS» */
  overflow: visible;
  clip-path: inset(-.3em -.05em 0 -.05em);
}
[data-split] > div { padding-bottom: .14em; margin-bottom: -.14em; }

/* ---------- Botones y chips ---------- */

.h-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.h-actions--center { justify-content: center; }

.h-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 50px;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .35s var(--h-ease), border-color .35s var(--h-ease), color .35s var(--h-ease), transform .35s var(--h-ease);
}
.h-btn span { display: inline-block; transition: transform .35s var(--h-ease); }
.h-btn:hover span { transform: translateX(4px); }
.h-btn:active { transform: scale(.98); }

.h-btn--solid {
  background: var(--h-violet);
  color: #fff;
  box-shadow: 0 10px 40px -12px rgba(139, 92, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.h-btn--solid:hover { background: #8a5ce0; }

.h-btn--ghost {
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.h-btn--ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .07); }

.h-chip {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  font-size: 15px;
  color: var(--h-text);
  background: var(--h-bg);
  white-space: nowrap;
}

.h-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 2rem;
  color: var(--h-violet-soft);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(182, 156, 255, .35);
  padding-bottom: 4px;
  transition: color .3s ease, border-color .3s ease;
}
.h-link:hover { color: #fff; border-color: #fff; }
.h-link span { transition: transform .35s var(--h-ease); }
.h-link:hover span { transform: translateX(4px); }

/* ---------- Pantalla de carga ---------- */

.h-loader { display: none; }

.h-motion .h-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--h-bg);
  clip-path: inset(0 0 0 0);
}
.h-motion.h-loaded .h-loader { pointer-events: none; }

.h-loader__iso {
  width: clamp(120px, 14vw, 180px);
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, .55));
}
.h-loader__iso path {
  fill: var(--h-violet-2);
  fill-opacity: 0;
  stroke: var(--h-violet-soft);
  stroke-width: 1.8;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}

.h-loader__foot {
  position: absolute;
  left: 5vw;
  right: 5vw;
  bottom: 5vh;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}
.h-loader__ghost { color: rgba(139, 92, 246, .12); }
.h-loader__bar { height: 1px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.h-loader__bar i { display: block; height: 100%; background: var(--h-violet-soft); transform: scaleX(0); transform-origin: left; }
.h-loader__pct { color: var(--h-text); font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */

.h-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.h-hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.h-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 8, 26, .92) 0%, rgba(7, 8, 26, .55) 45%, rgba(7, 8, 26, 0) 75%),
    linear-gradient(0deg, var(--h-bg) 0%, rgba(7, 8, 26, 0) 35%);
}

.h-hero__inner { padding-top: 140px; }

.h-hero__tag { margin-bottom: 2rem; }

.h-hero__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.2rem, .9rem + 7.4vw, 8.4rem);
  line-height: .9;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.h-hero__line { display: block; }
.h-hero__line--accent {
  background: linear-gradient(92deg, #8b5cf6 0%, #b69cff 55%, #e6dcff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.h-hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 30rem) auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.h-hero__lead {
  font-size: clamp(1rem, .9rem + .4vw, 1.2rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--h-muted);
}

.h-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.h-pills li {
  padding: .5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  font-size: 14px;
  color: var(--h-text);
  background: rgba(7, 8, 26, .35);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

.h-hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.h-hero__foot p { display: flex; align-items: center; gap: .7rem; }
.h-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
  animation: h-ping 2.2s ease-out infinite;
}
@keyframes h-ping {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
}

.h-hero__scroll { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.h-hero__scroll i {
  position: relative;
  width: 1px;
  height: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, .15);
}
.h-hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--h-violet-soft);
  animation: h-drip 1.8s var(--h-ease) infinite;
}
@keyframes h-drip {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .h-hero__bottom { grid-template-columns: minmax(0, 34rem) auto; }
  .h-hero__bottom .h-actions { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  /* con el título en varias líneas, la tilde de «MÁS» no debe tocar la línea de arriba */
  .h-hero__title { line-height: 1.05; }
}
@media (max-width: 1024px) {
  .h-hero__bottom { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .h-hero__inner { padding-top: 120px; }
  .h-hero__shade {
    background: linear-gradient(0deg, var(--h-bg) 8%, rgba(7, 8, 26, .55) 60%, rgba(7, 8, 26, .3) 100%);
  }
  .h-hero__foot .h-hero__scroll { display: none; }
  .h-hero__tag { font-size: 10px; letter-spacing: .1em; }
}

/* ---------- Logos de las empresas ---------- */

.h-logos {
  --logo-cutout: var(--h-bg);
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.h-logos__label { margin-bottom: 2.25rem; }

.h-logos__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.h-logos__track { display: flex; width: max-content; animation: h-marquee 38s linear infinite; }
.h-logos:hover .h-logos__track { animation-play-state: paused; }
.h-logos__group { display: flex; align-items: center; gap: clamp(3rem, 8vw, 7.5rem); padding-right: clamp(3rem, 8vw, 7.5rem); }
.h-logos__group a {
  display: block;
  color: rgba(238, 236, 255, .55);
  transition: color .4s ease, transform .4s var(--h-ease);
}
.h-logos__group a:hover { color: #fff; transform: translateY(-2px); }
.h-logos__group svg { height: 26px; width: auto; fill: currentColor; }
.h-logos__group svg.is-tall { height: 58px; }

@keyframes h-marquee { to { transform: translateX(-50%); } }

/* ---------- Propósito ---------- */

.h-statement {
  max-width: 24ch;
  margin-inline: auto;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.9rem, .9rem + 3.1vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-align: center;
  text-wrap: balance;
}
.h-statement .h-word { transition: color .2s linear; }

.h-purpose__sub {
  max-width: 46ch;
  margin: 2.5rem auto 0;
  font-size: clamp(1rem, .92rem + .35vw, 1.18rem);
  font-weight: 300;
  line-height: 1.65;
  text-align: center;
  color: var(--h-muted);
}

/* ---------- El ciclo: carril horizontal ---------- */

.h-cycle { position: relative; }
/* Al fijarse ocupa exactamente la pantalla: todo debe caber en 100svh */
.h-cycle__pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 86px 2rem;
}
.h-cycle .h-head { margin-bottom: clamp(1.75rem, 4vh, 3.5rem); }
.h-cycle .h-stem,
.h-brain .h-stem { height: clamp(28px, 4.5vh, 56px); margin: 12px auto 16px; }

.h-rail { overflow: hidden; }
.h-rail__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  margin: 0;
  padding: 0 5vw;
  list-style: none;
}

.h-step {
  position: relative;
  display: flex;
  flex-direction: column;
  width: clamp(280px, 27vw, 400px);
  min-height: clamp(330px, 48vh, 430px);
  padding: 1.6rem 1.6rem 2rem;
  border: 1px solid var(--h-border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26, 28, 72, .62), rgba(11, 12, 34, .7));
  transition: border-color .5s ease, transform .5s var(--h-ease), background-color .5s ease;
}
.h-step.is-current { border-color: var(--h-border-strong); }

.h-step__visual {
  position: relative;
  height: clamp(110px, 18vh, 170px);
  margin-bottom: clamp(1.1rem, 3vh, 2rem);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 100%, rgba(117, 70, 199, .22), transparent 70%),
    repeating-linear-gradient(90deg, rgba(167, 139, 250, .06) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(167, 139, 250, .06) 0 1px, transparent 1px 24px);
  border: 1px solid rgba(167, 139, 250, .1);
  overflow: hidden;
}
.h-step__num { color: var(--h-violet-soft); margin-bottom: .75rem; }
.h-step__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.2rem + .8vw, 2.1rem);
  line-height: 1.1;
  margin-bottom: .75rem;
}
.h-step__text { font-size: 15.5px; line-height: 1.6; color: var(--h-muted); max-width: 26ch; }

.h-rail__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: clamp(1.25rem, 3vh, 2.25rem);
}
.h-rail__count b { color: var(--h-text); font-weight: 500; }
.h-rail__bar { flex: 1; height: 1px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.h-rail__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--h-violet), var(--h-violet-soft)); transform: scaleX(.1667); transform-origin: left; }

/* Sin fijado (móvil, sin JS, menos movimiento): carril con deslizamiento nativo */
.h-rail--native { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.h-rail--native::-webkit-scrollbar { display: none; }
.h-rail--native .h-step { scroll-snap-align: center; }

/* Sin animaciones (sin JS, sin GSAP o con menos movimiento): en móvil el carril se desliza
   con su barra visible y en escritorio pasa a una rejilla, así las seis tarjetas se alcanzan */
html:not(.h-motion) .h-rail { overflow-x: auto; scroll-snap-type: x mandatory; }
html:not(.h-motion) .h-rail .h-step { scroll-snap-align: center; }
/* sin JS nadie puede mover el contador: mejor no mostrarlo */
html:not(.js) .h-rail__meta { display: none; }
@media (min-width: 901px) {
  html:not(.h-motion) .h-rail { overflow: visible; }
  html:not(.h-motion) .h-rail__track { width: auto; flex-wrap: wrap; justify-content: center; }
  html:not(.h-motion) .h-rail__meta { display: none; }
}

/* Visuales de cada paso (animaciones propias, se pausan fuera de pantalla) */
.h-vis * { animation-play-state: paused; }
.h-cycle.is-live .h-vis * { animation-play-state: running; }

.h-vis--bars { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 26px 28px; }
.h-vis--bars span {
  flex: 1;
  height: 100%;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, var(--h-violet-soft), rgba(117, 70, 199, .25));
  transform-origin: bottom;
  animation: h-bar 2.6s var(--h-ease) infinite alternate;
}
.h-vis--bars span:nth-child(1) { animation-delay: -.2s; }
.h-vis--bars span:nth-child(2) { animation-delay: -1.1s; }
.h-vis--bars span:nth-child(3) { animation-delay: -.6s; }
.h-vis--bars span:nth-child(4) { animation-delay: -1.8s; }
.h-vis--bars span:nth-child(5) { animation-delay: -.9s; }
.h-vis--bars span:nth-child(6) { animation-delay: -2.2s; }
.h-vis--bars span:nth-child(7) { animation-delay: -1.4s; }
.h-vis--bars span:nth-child(8) { animation-delay: -.3s; }
@keyframes h-bar {
  0% { transform: scaleY(.18); }
  100% { transform: scaleY(1); }
}

.h-vis svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.h-vis--cluster circle { transform-box: fill-box; transform-origin: center; animation: h-float 3.4s ease-in-out infinite alternate; }
.h-vis--cluster .c1 { fill: var(--h-cyan); }
.h-vis--cluster .c2 { fill: var(--h-violet-soft); }
.h-vis--cluster .c3 { fill: var(--h-green); }
.h-vis--cluster circle:nth-child(2n) { animation-delay: -1.2s; }
.h-vis--cluster circle:nth-child(3n) { animation-delay: -2.1s; }
@keyframes h-float {
  from { transform: translate(-3px, 2px); }
  to { transform: translate(3px, -3px); }
}

.h-vis--tree path { fill: none; stroke-width: 2; stroke-linecap: round; }
.h-vis--tree .dim { stroke: rgba(222, 224, 255, .16); }
.h-vis--tree .hot {
  stroke: var(--h-violet-soft);
  stroke-dasharray: 1 1;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, .8));
  animation: h-draw 3.2s var(--h-ease) infinite;
}
.h-vis--tree .node { fill: rgba(222, 224, 255, .55); }
.h-vis--tree .end { fill: var(--h-violet-2); animation: h-glow 3.2s ease infinite; }
@keyframes h-draw {
  0% { stroke-dashoffset: 1; }
  55%, 100% { stroke-dashoffset: 0; }
}
@keyframes h-glow {
  0%, 45% { opacity: .25; }
  60%, 100% { opacity: 1; }
}

.h-vis--channels { display: flex; align-items: center; justify-content: space-evenly; }
.h-vis--channels span { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.h-vis--channels svg {
  position: static;
  width: 54px;
  height: 54px;
  padding: 14px;
  border-radius: 50%;
  border: 1px solid var(--h-border-strong);
  fill: none;
  stroke: var(--h-text);
  stroke-width: 1.5;
  stroke-linejoin: round;
  animation: h-pulse 3s ease-in-out infinite;
}
.h-vis--channels span:nth-child(1) svg { color: var(--h-cyan); }
.h-vis--channels span:nth-child(2) svg { color: var(--h-green); animation-delay: 1s; }
.h-vis--channels span:nth-child(3) svg { color: var(--h-blue); animation-delay: 2s; }
.h-vis--channels em { font-family: var(--h-mono); font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--h-muted); }
@keyframes h-pulse {
  0%, 60%, 100% { box-shadow: 0 0 0 0 transparent; border-color: var(--h-border-strong); }
  20% { box-shadow: 0 0 0 8px color-mix(in srgb, currentColor 18%, transparent), 0 0 24px color-mix(in srgb, currentColor 50%, transparent); border-color: currentColor; }
}

.h-vis--loop .ring { fill: none; stroke: rgba(167, 139, 250, .25); stroke-dasharray: 3 6; }
.h-vis--loop .ring--in { stroke: rgba(167, 139, 250, .14); stroke-dasharray: none; }
.h-vis--loop .orbit { transform-origin: 120px 70px; animation: h-spin 6s linear infinite; }
.h-vis--loop .orbit circle { fill: var(--h-violet-soft); filter: drop-shadow(0 0 6px rgba(182, 156, 255, .9)); }
.h-vis--loop .orbit--slow { animation-duration: 10s; animation-direction: reverse; }
.h-vis--loop .orbit--slow circle { fill: var(--h-cyan); }
@keyframes h-spin { to { transform: rotate(360deg); } }

.h-vis--recover .track { fill: none; stroke: rgba(167, 139, 250, .14); stroke-width: 6; }
.h-vis--recover .fill {
  fill: none;
  stroke: var(--h-violet-2);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  transform: rotate(-90deg);
  transform-origin: 120px 70px;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, .8));
  animation: h-fill 4s var(--h-ease) infinite;
}
.h-vis--recover .iso { position: absolute; left: 50%; top: 50%; width: 48px; height: 28px; transform: translate(-50%, -50%); color: var(--h-text); }
@keyframes h-fill {
  0% { stroke-dashoffset: 1; }
  70%, 100% { stroke-dashoffset: 0; }
}

/* ---------- Frase sobre imagen ---------- */

.h-band {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.h-band__media { position: absolute; inset: -12% 0; z-index: -2; }
.h-band__media img { width: 100%; height: 100%; object-fit: cover; }
.h-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--h-bg) 0%, rgba(7, 8, 26, .55) 25%, rgba(7, 8, 26, .55) 75%, var(--h-bg) 100%),
    linear-gradient(90deg, rgba(7, 8, 26, .8), rgba(7, 8, 26, .2));
}
.h-band__line {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2.2rem, 1rem + 5vw, 6rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: rgba(238, 236, 255, .92);
}
.h-band__line span {
  background: linear-gradient(92deg, #a78bfa, #e6dcff);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ---------- Sistema de cobranza: red ---------- */

.h-net {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1200 / 560;
  margin-inline: auto;
  max-width: 1200px;
  border: 1px solid rgba(167, 139, 250, .1);
  border-radius: 28px;
  background:
    radial-gradient(40% 50% at 61% 52%, rgba(117, 70, 199, .16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(167, 139, 250, .045) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(167, 139, 250, .045) 0 1px, transparent 1px 40px),
    rgba(11, 12, 34, .5);
}

.h-net__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.h-net__lines path {
  fill: none;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}
.h-net__lines .blue path { stroke: rgba(59, 130, 246, .75); }
.h-net__lines .violet path { stroke: rgba(167, 139, 250, .75); }
.h-net__lines .green path { stroke: rgba(122, 182, 72, .8); }
/* Una vez dibujadas, las líneas pasan a punteado con flujo */
.h-net.is-flowing .h-net__lines path { stroke-dasharray: .012 .012; animation: h-flow 1.6s linear infinite; }
@keyframes h-flow { to { stroke-dashoffset: -.048; } }

.h-net__node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 18cqw;
  padding: 1.1cqw 1.2cqw;
  transform: translate(-50%, -50%);
  border-radius: 1.1cqw;
  font-size: max(11px, 1.2cqw);
  line-height: 1.3;
  text-align: center;
  color: #fff;
  border: 1px solid;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.h-net__node small { display: block; margin-top: .2em; font-size: .82em; opacity: .7; }
.h-net__node--blue { background: linear-gradient(180deg, rgba(37, 99, 235, .55), rgba(29, 78, 216, .35)); border-color: rgba(96, 165, 250, .55); }
.h-net__node--violet { background: linear-gradient(180deg, rgba(124, 58, 237, .5), rgba(91, 33, 182, .32)); border-color: rgba(182, 156, 255, .55); }
.h-net__node--green { background: linear-gradient(180deg, rgba(101, 163, 13, .5), rgba(77, 124, 15, .3)); border-color: rgba(163, 230, 53, .5); }

.h-net__ai {
  position: absolute;
  top: -1.1cqw;
  right: -1.1cqw;
  display: grid;
  place-items: center;
  width: 2.6cqw;
  height: 2.6cqw;
  min-width: 22px;
  min-height: 22px;
  border-radius: 50%;
  background: #1d4ed8;
  border: 1px solid #60a5fa;
  font-family: var(--h-mono);
  font-size: max(9px, .85cqw);
  font-weight: 500;
  color: #bfdbfe;
  box-shadow: 0 0 16px rgba(59, 130, 246, .7);
}

.h-net__core {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 1.3cqw;
  width: 20cqw;
  padding: 1.8cqw 1.6cqw;
  transform: translate(-50%, -50%);
  border-radius: 1.6cqw;
  border: 1.5px solid rgba(96, 165, 250, .8);
  background: rgba(8, 20, 48, .92);
  box-shadow: 0 0 60px -10px rgba(59, 130, 246, .6), inset 0 0 30px rgba(59, 130, 246, .12);
}
.h-net__core svg { flex: none; width: 3.6cqw; height: 3.6cqw; fill: rgba(37, 99, 235, .6); stroke: #93c5fd; stroke-width: 1.2; }
.h-net__core strong { font-family: var(--font-head); font-weight: 500; font-size: max(13px, 1.75cqw); line-height: 1.1; color: #fff; }
.h-net__pulse {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1.5px solid rgba(96, 165, 250, .7);
  animation: h-core 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes h-core-wide {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(1.025, 1.25); opacity: 0; }
}
@keyframes h-core {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(1.18, 1.35); opacity: 0; }
}

/* Leyenda y fuente van debajo del diagrama, nunca encima de los recuadros */
.h-net__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-top: 1.1rem;
}
.h-net__legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--h-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h-muted);
}
.h-net__legend li { display: flex; align-items: center; gap: .5em; }
.h-net__legend li::before { content: ""; width: .8em; height: .8em; border-radius: 3px; }
.h-net__legend .blue::before { background: #3b82f6; }
.h-net__legend .violet::before { background: #8b5cf6; }
.h-net__legend .green::before { background: #7ab648; }

.h-net__source { margin: 0; text-align: right; font-size: 10.5px; color: var(--h-faint); }

/* Por debajo de ~1100 px los recuadros ya no caben en el esquema: pasa a rejilla */
@media (max-width: 1100px) {
  .h-net {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
    container-type: normal;
  }
  .h-net__lines { display: none; }
  .h-net__node,
  .h-net__core {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    transform: none;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
  }
  .h-net__core { grid-column: 1 / -1; order: 0; justify-content: center; gap: 12px; padding: 18px; border-radius: 16px; }
  .h-net__core svg { width: 30px; height: 30px; }
  .h-net__core strong { font-size: 18px; }
  .h-net__ai { top: -8px; right: -8px; width: 22px; height: 22px; font-size: 9px; }
  /* el núcleo ocupa todo el ancho: su anillo crece poco para no salirse del recuadro */
  .h-net__pulse { animation-name: h-core-wide; }
  .h-net__node { display: flex; flex-direction: column; justify-content: center; overflow-wrap: anywhere; hyphens: auto; }
  /* cada capa llena filas completas: el tercero de datos y el tercero de gestión van a lo ancho */
  .h-net__node--blue + .h-net__node--blue + .h-net__node--blue,
  .h-net__node--green + .h-net__node--green + .h-net__node--green { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .h-net { padding: 12px; gap: 8px; }
  .h-net__node { padding: 10px; font-size: 12px; }
  .h-net__ai { top: -6px; right: -4px; }
}
@media (max-width: 600px) {
  .h-net__foot { flex-direction: column; align-items: flex-start; }
  .h-net__source { text-align: left; }
}

/* ---------- Tarjetas de pilares ---------- */

.h-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: clamp(4rem, 8vw, 6rem);
}

.h-card {
  --active: 0;
  --start: 0;
  --spread: 90;
  --blur: 22;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.4rem 2.2rem;
  border: 1px solid var(--h-border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26, 28, 72, .62), rgba(11, 12, 34, .7));
  transition: transform .5s var(--h-ease), border-color .5s ease;
}
.h-card > *:not(.glows) { position: relative; z-index: 2; }
.h-card:hover { transform: translateY(-4px); border-color: var(--h-border-strong); }
.h-card__label { margin-bottom: 1.8rem; }
.h-card__label span { color: var(--h-violet-soft); }
.h-card__title {
  min-height: 2.4em;
  margin-bottom: 1.1rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.45rem, 1.1rem + .8vw, 1.9rem);
  line-height: 1.15;
  text-wrap: balance;
}
.h-card__text { margin-bottom: 2.4rem; font-size: 15px; line-height: 1.7; color: var(--h-muted); }
.h-card__foot { margin-top: auto; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.h-card__foot b { color: var(--h-violet-soft); font-weight: 400; margin: 0 .35em; }

@media (min-width: 1025px) {
  .h-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .h-card__title { min-height: 0; }
  .h-card__foot { align-self: end; }
}

@media (hover: none) { .h-card { --active: .35; --start: 200; } }

@media (max-width: 1024px) {
  .h-pillars { grid-template-columns: 1fr; }
  .h-card__title { min-height: 0; }
}

/* ---------- Polbrain ---------- */

.h-brain { position: relative; }
.h-brain__pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 86px 2rem;
}
.h-brain__head { margin-bottom: clamp(1rem, 3vh, 2.5rem); }

.h-brain__stage {
  display: grid;
  grid-template-columns: 1fr minmax(0, 460px) 1fr;
  align-items: center;
  gap: 3rem;
}

.h-brain__verbs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.h-brain__verb {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.6rem, 1rem + 1.8vw, 2.8rem);
  line-height: 1.15;
  text-align: left;
  color: rgba(238, 236, 255, .2);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .5s ease, transform .6s var(--h-ease);
}
.h-brain__verb .h-mono { transition: color .5s ease; color: rgba(222, 224, 255, .25); }
.h-brain__verb:hover { color: rgba(238, 236, 255, .5); }
.h-brain__verbs li.is-active .h-brain__verb { color: var(--h-text); transform: translateX(10px); }
.h-brain__verbs li.is-active .h-mono { color: var(--h-violet-soft); }
.h-brain__verb:focus-visible { outline: 2px solid var(--h-violet-soft); outline-offset: 6px; border-radius: 6px; }

.h-orb {
  position: relative;
  width: min(100%, 50vh);
  aspect-ratio: 1;
  margin-inline: auto;
}
.h-orb__rings { position: absolute; inset: 0; }
.h-orb__rings i {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, .22);
}
.h-orb__rings i:nth-child(2) { inset: 15%; border-style: dashed; border-color: rgba(167, 139, 250, .18); animation: h-spin 40s linear infinite; }
.h-orb__rings i:nth-child(3) { inset: 6%; border-color: rgba(167, 139, 250, .08); }

.h-orb__links { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-orb__links path { stroke: rgba(167, 139, 250, .35); stroke-width: 1; stroke-dasharray: 3 5; fill: none; }

.h-orb__core {
  position: absolute;
  inset: 30%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9a6cf0, #7546C7 55%, #4c2a8f);
  box-shadow: 0 0 80px -6px rgba(139, 92, 246, .75), 0 0 0 10px rgba(117, 70, 199, .08), inset 0 2px 0 rgba(255, 255, 255, .25);
}
.h-orb__core svg { width: 56%; height: auto; color: #efeaff; }

.h-orb__sat {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  z-index: 2;
  width: max-content;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.h-orb__sat:hover svg { border-color: rgba(182, 156, 255, .6); stroke: rgba(238, 236, 255, .85); }
.h-orb__sat:hover em { color: var(--h-muted); }
.h-orb__sat:focus-visible { outline: none; }
.h-orb__sat:focus-visible svg { outline: 2px solid var(--h-violet-soft); outline-offset: 4px; }
.h-orb__sat:active svg { transform: scale(.96); }
.h-orb__sat svg {
  flex: none;
  max-width: none;
  width: clamp(54px, 6vw, 76px);
  height: clamp(54px, 6vw, 76px);
  padding: 22%;
  border-radius: 50%;
  border: 1px solid rgba(222, 224, 255, .22);
  background: var(--h-bg);
  fill: none;
  stroke: rgba(238, 236, 255, .55);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: border-color .5s ease, box-shadow .5s ease, stroke .5s ease, background-color .5s ease;
}
.h-orb__sat svg circle[fill="currentColor"] { color: rgba(238, 236, 255, .55); transition: color .5s ease; }
.h-orb__sat em { font-family: var(--h-mono); font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--h-faint); transition: color .5s ease; }
.h-orb__sat.is-active svg {
  border-color: var(--h-violet-soft);
  stroke: #fff;
  background: #1a1440;
  box-shadow: 0 0 0 6px rgba(139, 92, 246, .12), 0 0 34px rgba(139, 92, 246, .6);
}
.h-orb__sat.is-active svg circle[fill="currentColor"] { color: #fff; }
.h-orb__sat.is-active em { color: var(--h-text); }

.h-brain__copy { justify-self: end; width: 100%; max-width: 20rem; }
.h-brain__index { margin-bottom: 1.25rem; }
.h-brain__index b { color: var(--h-text); font-weight: 500; }
.h-brain__texts { position: relative; min-height: 7.5em; }
.h-brain__texts p {
  position: absolute;
  inset: 0 0 auto 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--h-violet);
  font-size: clamp(1.15rem, .95rem + .6vw, 1.55rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--h-text);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .6s var(--h-ease);
}
.h-brain__texts p em { font-style: normal; color: var(--h-violet-soft); font-weight: 400; }
.h-brain__texts p.is-active { opacity: 1; transform: none; }

@media (min-width: 901px) and (max-width: 1100px) {
  .h-brain__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 400px) minmax(0, 1fr); gap: 2rem; }
}

/* Sin fijado: los cuatro textos en lista */
@media (max-width: 900px) {
  .h-brain__stage { grid-template-columns: 1fr; gap: 2rem; justify-items: center; }
  .h-brain__verbs { display: none; }
  .h-orb { max-width: 360px; }
  .h-brain__copy { justify-self: stretch; max-width: none; }
  .h-brain__index { display: none; }
  .h-brain__texts { min-height: 0; display: grid; gap: 1rem; }
  .h-brain__texts p { position: static; opacity: .4; transform: none; }
  .h-brain__texts p.is-active { opacity: 1; }
}
/* Sin animaciones: los cuatro textos a la vista; el elegido, resaltado */
html:not(.h-motion) .h-brain__texts { min-height: 0; display: grid; gap: 1rem; }
html:not(.h-motion) .h-brain__texts p { position: static; opacity: .45; transform: none; }
html:not(.h-motion) .h-brain__texts p.is-active { opacity: 1; }

/* Pantallas bajas (laptop de 1366×768 con la barra del navegador ≈ 650 px de alto):
   mientras una sección está fijada no se puede bajar a ver lo que sobra, así que todo debe caber */
@media (min-width: 901px) and (max-height: 780px) {
  .h-cycle__pin, .h-brain__pin { padding-block: 76px 1rem; }
  .h-cycle .h-stem, .h-brain .h-stem { display: none; }
  .h-cycle .h-head .h-tag, .h-brain__head .h-tag { margin-bottom: .9rem; }
  .h-cycle .h-head { margin-bottom: 1.25rem; }
  .h-brain__head { margin-bottom: .75rem; }
  .h-cycle .h-title, .h-brain .h-title { font-size: clamp(2rem, 6.2vh, 3.6rem); }
  .h-step { min-height: 0; padding-bottom: 1.25rem; }
  .h-step__visual { height: clamp(80px, 15vh, 130px); margin-bottom: 1rem; }
  .h-rail__meta { margin-top: 1rem; }
  .h-orb { width: min(100%, 44vh); }
}

/* ---------- Polsystem ---------- */

.h-trace__flow { position: relative; padding-block: 1rem; }
.h-chip--start { margin-bottom: 1.75rem; }
.h-trace__flow .h-chip { position: relative; z-index: 1; }
.h-chip--end { display: flex; width: max-content; margin: 1.75rem 0 0 auto; }

.h-trace__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, .12);
}
.h-trace__line i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--h-cyan), var(--h-green), var(--h-blue));
  transform: scaleX(1);
  transform-origin: left;
  box-shadow: 0 0 12px rgba(139, 92, 246, .6);
}

.h-trace__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.h-trace__step {
  position: relative;
  padding: 1.8rem 1.8rem 1.9rem 2.1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: var(--h-bg-2);
  overflow: hidden;
  transition: border-color .6s ease, box-shadow .6s ease;
}
.h-trace__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--c);
  transform-origin: top;
  transition: transform .8s var(--h-ease);
}
.h-trace__step.is-lit { border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 20px 60px -30px var(--c); }
.h-trace__iso { width: 40px; height: 24px; color: var(--c); margin-bottom: 1rem; }
.h-trace__step .h-mono { color: var(--c); font-size: 13px; }
.h-trace__step h3 { margin: .4rem 0 .5rem; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.3rem, 1.05rem + .7vw, 1.7rem); }
.h-trace__step p { font-size: 15px; line-height: 1.6; color: var(--h-muted); }

@media (max-width: 900px) {
  .h-head--split { grid-template-columns: 1fr; }
  .h-trace__steps { grid-template-columns: 1fr; }
  .h-trace__line { left: 24px; right: auto; top: 2.3rem; bottom: 2.3rem; width: 1px; height: auto; }
  .h-trace__line i { transform-origin: top; background: linear-gradient(180deg, var(--h-cyan), var(--h-green), var(--h-blue)); }
  .h-chip--end { margin-left: 0; }
}

/* ---------- Impacto ---------- */

.h-impact__grid {
  display: grid;
  /* minmax(0, …): ninguna columna crece con su contenido, así nada se reacomoda mientras cuenta */
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.h-impact__num {
  display: flex;
  align-items: baseline;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(3.4rem, 1.2rem + 4.2vw, 6rem);
  line-height: .9;
  letter-spacing: -.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* El número final reserva su ancho; el que cuenta se dibuja encima */
.h-count { display: inline-grid; }
.h-count > span { grid-area: 1 / 1; }
.h-count__ghost { visibility: hidden; }
.h-impact__plus { color: var(--h-violet-2); margin-right: .04em; }
.h-impact__caption { margin-top: 1.25rem; font-family: var(--font-head); font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); line-height: 1.25; color: var(--h-text); max-width: 14ch; }

.h-dots {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: clamp(6px, 1.1vw, 12px);
}
.h-dots i {
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--h-violet-2);
  box-shadow: 0 0 14px rgba(139, 92, 246, .45);
}
.h-motion .h-dots i { background: rgba(139, 92, 246, .14); box-shadow: none; }
.h-motion .h-dots i.is-on { background: var(--h-violet-2); box-shadow: 0 0 14px rgba(139, 92, 246, .45); transition: background-color .4s ease, box-shadow .4s ease; }
.h-impact__legend { margin-top: 1.1rem; }

.h-impact__quote { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.2rem); line-height: 1.15; margin-bottom: 1.25rem; }
.h-impact__text { font-size: 15.5px; line-height: 1.7; color: var(--h-muted); }

@media (max-width: 1180px) {
  .h-impact__grid { grid-template-columns: 1fr; text-align: left; }
  .h-impact__dots-wrap { max-width: 460px; }
  .h-impact__side { max-width: 36rem; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .h-impact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
  .h-impact__dots-wrap { max-width: none; }
  .h-impact__side {
    grid-column: 1 / -1;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: start;
  }
}

/* ---------- Áreas de servicio ---------- */

.h-areas__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.h-areas__intro .h-tag { margin-bottom: 1.5rem; }

.h-areas__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .1); }
.h-areas__list li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem .25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: padding-left .5s var(--h-ease), background-color .5s ease;
}
.h-areas__list li:hover { padding-left: 1rem; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 10%, transparent), transparent); }
.h-areas__list svg { width: 56px; height: 33px; color: var(--c); }
.h-areas__name { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.6rem); line-height: 1; }
.h-areas__num { color: var(--h-faint); }

.h-areas__photo {
  position: relative;
  margin: clamp(4rem, 8vw, 7rem) 0 0;
  aspect-ratio: 16 / 7;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, .12);
}
.h-areas__photo img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }

@media (max-width: 900px) {
  .h-areas__grid { grid-template-columns: 1fr; }
  .h-areas__photo { aspect-ratio: 4 / 3; border-radius: 20px; }
}

/* ---------- Preguntas ---------- */

.h-faq__list { max-width: 880px; margin-inline: auto; display: grid; gap: .75rem; }

.h-faq__item {
  border: 1px solid var(--h-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(26, 28, 72, .5), rgba(11, 12, 34, .55));
  transition: border-color .4s ease, background-color .4s ease;
}
.h-faq__item[open] { border-color: var(--h-border-strong); }
.h-faq__item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1.6rem;
  font-size: clamp(1rem, .95rem + .25vw, 1.15rem);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.h-faq__item summary::-webkit-details-marker { display: none; }
.h-faq__icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--h-border-strong);
  transition: transform .5s var(--h-ease), background-color .4s ease;
}
.h-faq__icon::before,
.h-faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--h-text);
  transform: translate(-50%, -50%);
}
.h-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--h-ease); }
.h-faq__item[open] .h-faq__icon { background: var(--h-violet); border-color: var(--h-violet); transform: rotate(180deg); }
.h-faq__item[open] .h-faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.h-faq__body { overflow: hidden; }
.h-faq__body p { padding: 0 1.6rem 1.5rem; max-width: 64ch; font-size: 15.5px; line-height: 1.7; color: var(--h-muted); }
.h-faq__body a { color: var(--h-violet-soft); }

/* ---------- Cierre ---------- */

.h-cta {
  position: relative;
  padding-top: clamp(7rem, 14vw, 12rem);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.h-cta__field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.h-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 45% at 50% 38%, rgba(117, 70, 199, .28), transparent 75%);
  pointer-events: none;
}
.h-cta__inner { display: flex; flex-direction: column; align-items: center; }
.h-cta__title { max-width: 16ch; font-size: clamp(2.4rem, 1.2rem + 4vw, 5rem); }
.h-cta .h-lead { max-width: 36ch; }
.h-cta .h-actions { margin-top: 2.5rem; }

.h-cta__word {
  margin-top: clamp(5rem, 10vw, 8rem);
  padding-inline: 4vw;
  line-height: 0;
}
.h-cta__word span {
  display: block;
  width: 100%;
  aspect-ratio: 376 / 61;
  background: linear-gradient(180deg, #b69cff 0%, #7546C7 45%, rgba(117, 70, 199, .15) 100%);
  -webkit-mask: url(/assets/svg/polgroup-logo.svg) center / contain no-repeat;
          mask: url(/assets/svg/polgroup-logo.svg) center / contain no-repeat;
}

/* ---------- Estados iniciales de las animaciones ----------
   Solo con .h-motion (JS listo y sin "reducir movimiento"). */

.h-motion .h-hero__title > .h-hero__line,
.h-motion .c-top__title > .h-hero__line { visibility: hidden; }
.h-motion .c-top__lead,
.h-motion .c-top__media,
.h-motion [data-fade],
.h-motion [data-rise] { opacity: 0; }
.h-motion .h-stem { transform: scaleY(0); }
.h-motion .h-hero__tag,
.h-motion .h-hero__lead,
.h-motion .h-pills li,
.h-motion .h-actions a,
.h-motion .h-hero__foot { opacity: 0; }
.h-motion .h-net__node,
.h-motion .h-net__core,
.h-motion .h-net__legend { opacity: 0; }
.h-motion .h-net__lines path { stroke-dashoffset: 1; }
.h-motion .h-trace__line i { transform: scaleX(0); }
.h-motion .h-trace__step::before { transform: scaleY(0); }
.h-motion .h-trace__step.is-lit::before { transform: scaleY(1); }

@media (max-width: 900px) {
  .h-motion .h-trace__line i { transform: scaleY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .h-vis *,
  .h-orb__rings i,
  .h-hero__dot,
  .h-hero__scroll i::after,
  .h-net__pulse,
  .h-logos__track { animation: none !important; }
}

/* =====================================================================
   Sobre Nosotros (tema noche): secciones propias de la página
   ===================================================================== */

.h-hero__title--about { font-size: clamp(2.6rem, .9rem + 5.4vw, 6.6rem); }

/* ---------- No es suficiente → convertir ---------- */

.a-convert { text-align: center; }

.a-convert__not {
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  padding: 0;
  list-style: none;
  display: grid;
  gap: .35rem;
}
.a-convert__not li {
  --strike: 0;
  position: relative;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.6rem, .9rem + 2.6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: rgba(238, 236, 255, calc(.85 - var(--strike) * .55));
}
.a-convert__not li span { color: rgba(238, 236, 255, calc(1 - var(--strike) * .55)); }
.a-convert__not li::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--h-violet), var(--h-violet-soft));
  transform: scaleX(var(--strike));
  transform-origin: left;
  box-shadow: 0 0 14px rgba(139, 92, 246, .6);
}

.a-convert__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.4rem, 1rem + 5vw, 6rem);
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.a-convert__title em {
  font-style: normal;
  background: linear-gradient(92deg, #8b5cf6, #b69cff 55%, #e6dcff);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.a-convert__rows {
  max-width: 1080px;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: left;
}
.a-convert__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(60px, 12vw, 180px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.25rem, 2.5vw, 2rem) .25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.5rem, .9rem + 2.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.a-convert__from,
.a-convert__to { display: flex; flex-direction: column; gap: .35rem; }
.a-convert__from small,
.a-convert__to small { font-size: 11px; letter-spacing: .14em; }
.a-convert__from { color: rgba(238, 236, 255, .45); }
.a-convert__to { color: var(--h-text); transition: color .8s ease; }
.a-convert__row.is-on .a-convert__to { color: var(--c); }

.a-convert__arrow { position: relative; height: 2px; background: rgba(255, 255, 255, .1); }
.a-convert__arrow i {
  position: absolute;
  inset: 0;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--h-ease) .1s;
  box-shadow: 0 0 12px var(--c);
}
.a-convert__arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--c);
  border-right: 2px solid var(--c);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0;
  transition: opacity .4s ease .9s;
}
.a-convert__row.is-on .a-convert__arrow i { transform: scaleX(1); }
.a-convert__row.is-on .a-convert__arrow::after { opacity: 1; }
.a-convert__area { color: var(--h-faint); transition: color .8s ease; }
.a-convert__row.is-on .a-convert__area { color: var(--c); }

.a-convert__foot {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem);
  color: var(--h-muted);
}

/* Sin animaciones: todo en su estado final */
html:not(.h-motion) .a-convert__not li { --strike: 1; }
html:not(.h-motion) .a-convert__row .a-convert__to,
html:not(.h-motion) .a-convert__row .a-convert__area { color: var(--c); }
html:not(.h-motion) .a-convert__arrow i { transform: scaleX(1); }
html:not(.h-motion) .a-convert__arrow::after { opacity: 1; }

@media (min-width: 701px) {
  .a-convert__rows {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(60px, 12vw, 180px) minmax(0, 1fr) auto;
    column-gap: clamp(1rem, 2.5vw, 2rem);
  }
  .a-convert__row { grid-column: 1 / -1; grid-template-columns: subgrid; }
}
@media (max-width: 340px) {
  .a-convert__not { grid-template-columns: minmax(0, 1fr); }
  .a-convert__not li { font-size: 1.45rem; }
  .a-convert__row { font-size: 1.3rem; }
}
@media (max-width: 700px) {
  .a-convert__row {
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    row-gap: .6rem;
  }
  .a-convert__area { grid-column: 1 / -1; }
}

/* ---------- Cifras ---------- */

.h-night .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.h-night .stat {
  min-height: 220px;
  padding: 2rem 1.9rem 1.8rem;
  border: 1px solid var(--h-border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26, 28, 72, .62), rgba(11, 12, 34, .7));
}
.h-night .stat { container-type: inline-size; }
.h-night .stat__num {
  font-weight: 500;
  font-size: min(clamp(2.8rem, 1.5rem + 2.8vw, 4.6rem), 24cqi);
  letter-spacing: -.03em;
}
.h-night .stat__prefix { color: var(--h-violet-2); }
.h-night .stat__label { color: var(--h-muted); max-width: 20ch; }

@media (max-width: 1024px) {
  .h-night .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .h-night .stats { gap: .75rem; }
  .h-night .stat { min-height: 170px; padding: 1.3rem; border-radius: 16px; }
  .h-night .stat__num { font-size: min(2.4rem, 24cqi); }
}

/* ---------- Submarcas ---------- */

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

.a-brand {
  --active: 0;
  --start: 0;
  --spread: 90;
  --blur: 22;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2rem 1.8rem;
  border: 1px solid var(--h-border);
  border-radius: 22px;
  background-color: rgba(11, 12, 34, .7);
  background-image:
    linear-gradient(var(--c), var(--c)),
    radial-gradient(120% 60% at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(26, 28, 72, .55), rgba(11, 12, 34, .2));
  background-repeat: no-repeat;
  background-size: 100% 2px, 100% 100%, 100% 100%;
  transition: transform .5s var(--h-ease), border-color .5s ease;
}
.a-brand > *:not(.glows) { position: relative; z-index: 2; }
@media (hover: none) { .a-brand { --active: .35; --start: 200; } }
.a-brand:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }

.a-brand__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 2rem; }
.a-brand__iso { width: 36px; height: 21px; color: var(--c); }
.a-brand__head .h-mono b { color: var(--h-text); font-weight: 500; }

.a-brand__title {
  margin-bottom: 1rem;
  min-height: 2.3em;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.45rem, 1.1rem + .8vw, 1.9rem);
  line-height: 1.15;
  text-wrap: balance;
}
.a-brand__text { margin-bottom: 1.75rem; font-size: 15px; line-height: 1.7; color: var(--h-muted); }

.a-brand__phrase {
  /* reserva 3 líneas (la frase más larga) y permite partir palabras mientras se mezclan las letras */
  min-height: 4.1em;
  overflow-wrap: anywhere;
  margin-top: auto;
  margin-bottom: 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--c);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--h-text);
}

.a-brand__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.a-brand__cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c);
  text-decoration: none;
  filter: brightness(1.25);
}
.a-brand__cta span { transition: transform .35s var(--h-ease); }
.a-brand__cta:hover span { transform: translateX(4px); }
.a-brand__co { display: inline-flex; align-items: center; height: 38px; color: rgba(238, 236, 255, .5); transition: color .3s ease; --logo-cutout: #0e1030; }
.a-brand__co:hover { color: #fff; }
.a-brand__co svg { height: 16px; width: auto; fill: currentColor; }
.a-brand__co--tall svg { height: 38px; }

/* Tres tarjetas alineadas por dentro: cabecera, título, texto, frase y pie en las mismas filas */
@media (min-width: 1025px) {
  .a-brands__grid { grid-template-rows: repeat(5, auto); }
  .a-brand { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .a-brand__phrase { align-self: start; margin-top: 0; }
  .a-brand__title { min-height: 0; }
}
@media (max-width: 1024px) {
  /* minmax(0, …): ni una palabra larga ensancha la columna */
  .a-brands__grid { grid-template-columns: minmax(0, 1fr); }
  .a-brand__title { min-height: 0; }
}

/* ---------- Problema → realidad / Polgroup ---------- */

.a-contrast__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: stretch;
}
.a-contrast__col .h-tag { margin-bottom: 2rem; }
.a-contrast__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: clamp(.9rem, 2vw, 1.4rem); }
.a-contrast__col li {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.4rem, .9rem + 1.8vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  transition: color .6s ease, opacity .6s ease;
}
.a-contrast__col--problem li { color: rgba(238, 236, 255, .78); text-decoration-thickness: 2px; text-decoration-color: rgba(182, 156, 255, .7); }
.a-contrast__col--problem li.is-off { color: rgba(238, 236, 255, .28); text-decoration-line: line-through; }
.a-contrast__col--pol .h-tag { color: #fff; background: var(--h-violet); border-color: var(--h-violet); }
.a-contrast__col--pol li { color: rgba(238, 236, 255, .18); display: flex; align-items: baseline; gap: .6em; }
.a-contrast__col--pol li::before {
  content: "";
  flex: none;
  width: .42em;
  height: .42em;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-.1em);
}
.a-contrast__col--pol li.is-on { color: var(--h-text); }
.a-contrast__col--pol li.is-on::before { background: var(--h-violet-2); box-shadow: 0 0 14px rgba(139, 92, 246, .8); }

.a-contrast__divider { position: relative; background: rgba(255, 255, 255, .1); }
.a-contrast__divider i {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--h-violet-soft), var(--h-violet));
  transform: scaleY(0);
  transform-origin: top;
  box-shadow: 0 0 12px rgba(139, 92, 246, .6);
}

html:not(.h-motion) .a-contrast__col--problem li { color: rgba(238, 236, 255, .4); text-decoration-line: line-through; }
html:not(.h-motion) .a-contrast__col--pol li { color: var(--h-text); }
html:not(.h-motion) .a-contrast__divider i { transform: none; }

@media (max-width: 800px) {
  .a-contrast__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .a-contrast__divider { height: 1px; }
  .a-contrast__divider i { transform-origin: left; }
}

/* ---------- Equipo ---------- */

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

.a-member { position: relative; }
.a-member__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--h-border);
  background: var(--h-bg-2);
}
.a-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.05) brightness(.9);
  transform: scale(1.01);
  transition: filter .7s ease, transform 1s var(--h-ease);
}
.a-member__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 8, 26, .75)), linear-gradient(0deg, rgba(117, 70, 199, .22), transparent 40%);
  opacity: .9;
  transition: opacity .6s ease;
  pointer-events: none;
}
.a-member:hover .a-member__photo img { filter: none; transform: scale(1.05); }
.a-member:hover .a-member__photo::after { opacity: .35; }
.a-member:hover .a-member__photo { border-color: var(--h-border-strong); }

.a-member__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.1rem .25rem 0; }
.a-member__name { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.3rem, 1.05rem + .6vw, 1.65rem); line-height: 1.1; }
.a-member__role { flex: none; color: var(--h-violet-soft); }

@media (hover: none) {
  .a-member__photo img { filter: none; }
}
@media (max-width: 1024px) {
  .a-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .a-team__grid { grid-template-columns: 1fr; }
}

/* ---------- Frases en movimiento ---------- */

.a-phrases {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-block: 1px solid rgba(255, 255, 255, .08);
}
.a-phrases__row {
  position: relative;
  display: grid;
  grid-template-columns: clamp(140px, 16vw, 230px) minmax(0, 1fr);
  align-items: center;
  padding-block: clamp(.9rem, 1.8vw, 1.5rem);
}
.a-phrases__row + .a-phrases__row { border-top: 1px solid rgba(255, 255, 255, .06); }
.a-phrases__label { padding-left: 5vw; color: var(--h-violet-soft); font-size: 11px; }

/* La cinta se mueve dentro de su propia ventana: nunca pasa por encima de la etiqueta */
.a-phrases__viewport {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.a-phrases__track {
  display: flex;
  width: max-content;
  animation: h-marquee var(--dur, 60s) linear infinite;
}
.a-phrases__row--reverse .a-phrases__track { animation-direction: reverse; }
.a-phrases__row:hover .a-phrases__track { animation-play-state: paused; }
.a-phrases__group { display: flex; align-items: center; }
.a-phrases__group span {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-right: clamp(1.5rem, 3vw, 3rem);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.5rem, .9rem + 2vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: rgba(238, 236, 255, .88);
}
.a-phrases__group span::after {
  content: "";
  width: .38em;
  height: .38em;
  border-radius: 50%;
  background: var(--h-violet-2);
  box-shadow: 0 0 12px rgba(139, 92, 246, .8);
}

@media (max-width: 700px) {
  .a-phrases__row { grid-template-columns: 1fr; gap: .6rem; }
  .a-phrases__label { padding-left: 5vw; }
}
@media (prefers-reduced-motion: reduce) {
  .a-phrases__track { animation: none; }
  .a-phrases__viewport { overflow-x: auto; }
}

/* ---------- A quién servimos ---------- */

.a-clients { padding-bottom: clamp(3rem, 6vw, 5rem); }
.a-clients .h-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.a-clients__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.a-clients__track { display: flex; width: max-content; animation: h-marquee 40s linear infinite; }
.a-clients__viewport:hover .a-clients__track { animation-play-state: paused; }
.a-clients__group { display: flex; gap: 1rem; padding-right: 1rem; }
.a-clients__item {
  display: grid;
  place-items: center;
  min-width: 230px;
  height: 110px;
  padding: 0 1.75rem;
  border: 1px solid var(--h-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(26, 28, 72, .5), rgba(11, 12, 34, .5));
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.2rem;
  color: rgba(238, 236, 255, .8);
  white-space: nowrap;
}
.a-clients__item img { max-height: 40px; max-width: 170px; width: auto; height: auto; }
/* Logos casi cuadrados (JEP): un poco más altos para que pesen lo mismo que los horizontales */
.a-clients__item img[src$="/jep.png"] { max-height: 60px; }

@media (prefers-reduced-motion: reduce) {
  .a-clients__track { animation: none; }
  .a-clients__viewport { overflow-x: auto; }
}

/* =====================================================================
   Contáctanos (tema noche)
   ===================================================================== */

.c-top { padding: clamp(120px, 16vh, 170px) 0 clamp(3rem, 6vw, 5rem); }

.c-top__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.c-top__copy { container-type: inline-size; }
.c-top__copy .h-tag { margin-bottom: 1.75rem; }

.c-top__title {
  font-family: var(--font-head);
  font-weight: 600;
  /* «HABLEMOS.» mide ~5.4em: nunca más ancho que la columna (el degradado recorta lo que sobra) */
  font-size: min(clamp(3.4rem, 1rem + 7.4vw, 8.4rem), 17.5cqi);
  line-height: .9;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.c-top__title .h-hero__line {
  width: fit-content;
  background: linear-gradient(92deg, #ffffff 0%, #d9cdff 45%, #8b5cf6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.c-top__lead {
  max-width: 34ch;
  margin-top: 1.6rem;
  font-size: clamp(1.02rem, .92rem + .4vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--h-muted);
}
.c-top__actions { margin-top: 2.2rem; }

.c-top__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--h-border);
  box-shadow: 0 40px 120px -40px rgba(117, 70, 199, .55);
  isolation: isolate;
}
.c-top__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-top__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, transparent, rgba(7, 8, 26, .55));
  pointer-events: none;
}
.c-top__iso {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: clamp(64px, 8vw, 104px);
  height: auto;
  transform: translate(-50%, -50%);
  color: #fff;
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, .9));
}

@media (max-width: 900px) {
  .c-top__grid { grid-template-columns: 1fr; }
  .c-top__media { aspect-ratio: 16 / 9; }
}

/* ---------- Formulario ---------- */

.c-form-section { padding-bottom: clamp(3rem, 6vw, 5rem); }

.c-form {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border: 1px solid var(--h-border);
  border-radius: 28px;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(117, 70, 199, .14), transparent 70%),
    linear-gradient(180deg, rgba(26, 28, 72, .6), rgba(11, 12, 34, .7));
}

.c-form__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.c-form__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.15rem + 1.3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.c-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem 1.5rem;
}
.c-field { min-width: 0; }
.c-field--wide { grid-column: span 2; }
.c-field--full { grid-column: 1 / -1; }

.c-field__label {
  display: block;
  margin-bottom: .65rem;
  padding: 0;
  font-family: var(--h-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h-muted);
}

.h-night .c-field__input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid rgba(167, 139, 250, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: var(--h-text);
  font: inherit;
  font-size: 15.5px;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.h-night .c-field__input::placeholder { color: var(--h-faint); }
.h-night .c-field__input:hover { border-color: rgba(167, 139, 250, .35); }
.h-night .c-field__input:focus {
  outline: none;
  border-color: var(--h-violet-soft);
  background: rgba(139, 92, 246, .06);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .18);
}
.h-night .c-field__input[aria-invalid="true"] { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, .15); }
/* con error y con el foco: el borde rojo se queda, y el foco se ve aparte */
.h-night .c-field__input[aria-invalid="true"]:focus { outline: 2px solid var(--h-violet-soft); outline-offset: 2px; }
.h-night textarea.c-field__input { min-height: 150px; resize: vertical; }
/* al enfocar un campo con error, su etiqueta queda por debajo de la cabecera fija */
.h-night .c-field__input { scroll-margin-top: 2.5rem; }

.c-areas { margin: 0; padding: 0; border: 0; min-width: 0; }
.c-areas__options { display: flex; flex-wrap: wrap; gap: .55rem; }
.c-area { position: relative; cursor: pointer; }
.c-area input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.c-area span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 50px;
  padding: 0 1.2rem;
  border: 1px solid rgba(167, 139, 250, .2);
  border-radius: 999px;
  font-size: 15px;
  color: var(--h-muted);
  user-select: none;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.c-area span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  opacity: .55;
  transition: opacity .25s ease, box-shadow .25s ease;
}
.c-area:hover span { border-color: color-mix(in srgb, var(--c) 55%, transparent); color: var(--h-text); }
.c-area input:checked + span {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: #fff;
}
.c-area input:checked + span::before { opacity: 1; box-shadow: 0 0 10px var(--c); }
.c-area input:focus-visible + span { outline: 2px solid var(--h-violet-soft); outline-offset: 3px; }

.c-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.c-form__note { font-size: 13.5px; color: var(--h-faint); }
.h-night .contact-form__submit { width: auto; min-height: 52px; padding: 0 1.8rem; font-size: 15px; }
.h-night .contact-form__submit:disabled { opacity: .6; cursor: progress; }
.h-night .contact-form__status { margin-top: 1.1rem; font-size: 15px; scroll-margin-bottom: 2rem; }
.contact-form__status:focus { outline: none; }
/* Sin JS: el servidor redirige a #enviado o #envio-error y estos avisos se muestran solos */
.c-form__flash { display: none; }
.c-form__flash:target { display: block; margin-top: 1.1rem; font-size: 15px; scroll-margin-top: 120px; }
#enviado.c-form__flash { color: #86efac; }
#envio-error.c-form__flash { color: #fca5a5; }

@media (max-width: 900px) {
  .c-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-field--wide { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .c-form { border-radius: 20px; }
  .c-form__grid { grid-template-columns: 1fr; }
  .c-form__foot { flex-direction: column; align-items: stretch; }
  .h-night .contact-form__submit { justify-content: center; }
}

/* ---------- Canales y mapa ---------- */

.c-places__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.25rem;
  align-items: stretch;
}

.c-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.c-channel {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--h-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26, 28, 72, .55), rgba(11, 12, 34, .6));
  min-width: 0;
}
.c-channel--office { grid-column: 1 / -1; }
/* si la última tarjeta queda sola en su fila, ocupa todo el ancho (sin hueco al lado) */
.c-channel:last-child:nth-child(even) { grid-column: 1 / -1; }
.c-channel__label { color: var(--h-violet-soft); }
.c-channel__value {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem);
  line-height: 1.3;
  color: var(--h-text);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .25s ease;
}
a.c-channel__value:hover { color: var(--h-violet-soft); }
.c-channel__meta { font-size: 14px; color: var(--h-muted); }
.c-channel__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: max-content;
  margin-top: .4rem;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--h-violet-soft);
  text-decoration: none;
}
.c-channel__link span { transition: transform .35s var(--h-ease); }
.c-channel__link:hover span { transform: translateX(4px); }

.c-map {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--h-border);
  border-radius: 22px;
  overflow: hidden;
  background: var(--h-bg-2);
}
.h-night .c-map .contact-map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  /* el mapa de Google se pasa a tono noche sin API: invertir y devolver el tono */
  filter: invert(.92) hue-rotate(180deg) saturate(.55) brightness(.95) contrast(.92);
}

@media (max-width: 1024px) {
  .c-places__grid { grid-template-columns: 1fr; }
  .c-map { min-height: 340px; }
}
@media (max-width: 560px) {
  .c-channels { grid-template-columns: 1fr; }
}

/* ---------- Cierre ---------- */

.c-end { padding-top: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.c-end .h-cta__word { margin-top: 0; }

/* =====================================================================
   Empresas: portada /empresas y páginas por empresa (/polcomp, ...)
   Cada página define --c (color de su área) en el <body>.
   ===================================================================== */

.e-page,
.e-card,
.e-cap {
  --glow-gradient: conic-gradient(from 180deg at 50% 70%,
      #ffffff 0deg, var(--c) 72deg, color-mix(in srgb, var(--c) 55%, #ffffff) 144deg, var(--c) 216deg, #ffffff 360deg);
}

.h-hero__title--companies { font-size: clamp(2.2rem, .8rem + 6vw, 7rem); }

/* ---------- Portada: tarjetas de empresa ---------- */

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

.e-card {
  --active: 0;
  --start: 0;
  --spread: 90;
  --blur: 22;
  --logo-cutout: #0d0f2b;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.6rem);
  border: 1px solid var(--h-border);
  border-radius: 24px;
  background-color: rgba(11, 12, 34, .7);
  background-image:
    linear-gradient(var(--c), var(--c)),
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(26, 28, 72, .55), rgba(11, 12, 34, .2));
  background-repeat: no-repeat;
  background-size: 100% 2px, 100% 100%, 100% 100%;
  transition: transform .5s var(--h-ease), border-color .5s ease;
}
.e-card > *:not(.glows) { position: relative; z-index: 2; }
.e-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }

.e-card__logo { display: flex; align-items: center; height: 64px; margin-bottom: 2rem; color: #fff; }
.e-card__logo svg { width: auto; height: 28px; max-width: 100%; fill: currentColor; }
.e-card__logo.is-tall svg { height: 64px; }

.e-card__area { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; color: color-mix(in srgb, var(--c) 70%, #fff); }
.e-card__area i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* toda la tarjeta lleva a la página de la empresa (el enlace del nombre la cubre entera) */
.e-card > .e-card__name { position: static; }
.e-card__name {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.3rem + 1.4vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.e-card__name a { color: inherit; text-decoration: none; }
.e-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 24px; }
.e-card__name a:focus-visible { outline: none; }
.e-card:has(.e-card__name a:focus-visible) { outline: 2px solid var(--h-violet-soft); outline-offset: 4px; }

.e-card__headline { margin-top: .75rem; font-size: 1.15rem; line-height: 1.4; color: var(--h-text); }
.e-card__lead { margin-top: .9rem; font-size: 15px; line-height: 1.7; color: var(--h-muted); }
.e-card__list { display: grid; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.e-card__list li { position: relative; padding-left: 1.2rem; font-size: 14px; line-height: 1.5; color: rgba(238, 236, 255, .82); }
.e-card__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.e-card__more {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1.75rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--c) 70%, #fff);
}
.e-card__more span { transition: transform .35s var(--h-ease); }
.e-card:hover .e-card__more span { transform: translateX(5px); }

@media (max-width: 900px) { .e-cards { grid-template-columns: minmax(0, 1fr); } }
@media (hover: none) { .e-card, .e-cap { --active: .35; --start: 200; } }

/* ---------- Cómo se conectan (portada y páginas) ---------- */

.e-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.e-flow::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, #3b6cff, #7ab648, #19b8cc, #b69cff);
  opacity: .55;
}
.e-flow__item { position: relative; }
.e-flow__node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  height: 100%;
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid var(--h-border);
  border-radius: 18px;
  background: var(--h-bg-2);
  color: var(--h-text);
  text-decoration: none;
  transition: border-color .4s ease, transform .4s var(--h-ease), background-color .4s ease;
}
.e-flow__node::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-bottom: .4rem;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}
.e-flow__area { color: color-mix(in srgb, var(--c) 70%, #fff); }
.e-flow__name { font-family: var(--font-head); font-weight: 500; font-size: 1.45rem; line-height: 1.1; }
.e-flow__role { font-size: 14.5px; line-height: 1.55; color: var(--h-muted); }
.e-flow__node:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); transform: translateY(-3px); }
.e-flow__item.is-current .e-flow__node {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, var(--h-bg-2));
  box-shadow: 0 24px 70px -35px var(--c);
}
@media (max-width: 1024px) {
  .e-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-flow::before { display: none; }
}
@media (max-width: 560px) { .e-flow { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Página de empresa: hero ---------- */

.e-hero {
  position: relative;
  padding: clamp(120px, 16vh, 170px) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.e-hero__glow {
  position: absolute;
  z-index: -1;
  right: -12vw;
  top: -14vw;
  width: min(62vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%);
}
.e-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.e-crumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.e-crumbs a { color: var(--h-muted); text-decoration: none; transition: color .25s ease; }
.e-crumbs a:hover { color: var(--h-text); }
.e-crumbs [aria-current] { color: var(--h-text); }

.e-hero__tag {
  margin-bottom: 1.6rem;
  color: #fff;
  border-color: color-mix(in srgb, var(--c) 60%, transparent);
  background: color-mix(in srgb, var(--c) 14%, transparent);
}
.e-hero__tag::before { background: var(--c); box-shadow: 0 0 10px var(--c); }

.e-hero__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.3rem, 1rem + 4.2vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.e-hero__title .h-hero__line {
  background: linear-gradient(92deg, #ffffff 15%, color-mix(in srgb, var(--c) 55%, #ffffff));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.e-hero__lead { max-width: 42ch; margin-top: 1.5rem; }
.e-hero__actions { margin-top: 2rem; }

.e-share { cursor: pointer; font: inherit; font-size: 15px; font-weight: 500; }
.e-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.e-share.is-done { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }

.e-hero__card {
  --logo-cutout: #10122f;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 5 / 4;
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  border-radius: 28px;
  background:
    radial-gradient(80% 80% at 50% 40%, color-mix(in srgb, var(--c) 20%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(26, 28, 72, .6), rgba(11, 12, 34, .75));
  box-shadow: 0 40px 120px -50px var(--c);
  overflow: hidden;
}
.e-hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(167, 139, 250, .07) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(167, 139, 250, .07) 0 1px, transparent 1px 40px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
          mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.e-hero__logo {
  position: relative;
  width: 72%;
  color: #fff;
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--c) 55%, transparent));
}
.e-hero__logo svg { display: block; width: 100%; height: auto; fill: currentColor; }
.e-hero__logo.is-tall { width: 46%; }
.e-hero__card-area {
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--h-muted);
}
.e-hero__card-area i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

@media (max-width: 900px) {
  .e-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .e-hero__card { aspect-ratio: 16 / 9; }
}

/* ---------- Capacidades ---------- */

.e-caps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.e-cap {
  --active: 0;
  --start: 0;
  --spread: 90;
  --blur: 22;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  min-height: 240px;
  padding: 2.2rem 2rem;
  border: 1px solid var(--h-border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26, 28, 72, .62), rgba(11, 12, 34, .7));
}
.e-cap > *:not(.glows) { position: relative; z-index: 2; }
.e-cap__num { color: color-mix(in srgb, var(--c) 70%, #fff); }
.e-cap__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.05rem + .8vw, 1.8rem);
  line-height: 1.15;
  text-wrap: balance;
}
.e-cap__text {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 15px;
  color: var(--h-muted);
}
@media (max-width: 1024px) {
  .e-caps__grid { grid-template-columns: minmax(0, 1fr); }
  .e-cap { min-height: 0; }
}

/* ---------- Pasos (PolComp) en el color de la empresa ---------- */

.e-steps .h-trace__line i,
.e-page .e-steps .h-trace__line i { background: var(--c); box-shadow: 0 0 12px var(--c); }

/* ---------- Reporte 360 PLUS (ServiCallSur) ---------- */

.e-eqx__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 1.25rem;
}
.e-eqx__box {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--h-border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26, 28, 72, .55), rgba(11, 12, 34, .6));
}
.e-eqx__box--benefits {
  border-color: color-mix(in srgb, var(--c) 40%, transparent);
  background:
    radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(26, 28, 72, .6), rgba(11, 12, 34, .65));
}
.e-eqx__label { margin-bottom: 1.3rem; color: var(--h-violet-soft); }
.e-eqx__box--benefits .e-eqx__label { color: color-mix(in srgb, var(--c) 70%, #fff); }
.e-eqx__list { display: grid; gap: .95rem; margin: 0; padding: 0; list-style: none; }
.e-eqx__list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: .8rem;
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(238, 236, 255, .88);
}
.e-eqx__list svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.e-eqx__box--problems svg { stroke: #fca5a5; background: rgba(248, 113, 113, .12); }
.e-eqx__box--problems li span { color: var(--h-muted); }
.e-eqx__box--benefits svg { stroke: color-mix(in srgb, var(--c) 70%, #fff); background: color-mix(in srgb, var(--c) 16%, transparent); }

.e-eqx__includes {
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid var(--h-border);
  border-radius: 22px;
  background: rgba(11, 12, 34, .5);
}
.e-eqx__chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.e-eqx__chips li {
  padding: .55rem 1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  font-size: 14px;
  color: rgba(238, 236, 255, .85);
}
.e-eqx__sources { max-width: 72ch; margin-top: 1.4rem; font-size: 14px; line-height: 1.6; color: var(--h-muted); }
.e-eqx__actions { margin-top: 2rem; }
.e-eqx__note { margin-top: 1.25rem; font-size: 12.5px; line-height: 1.5; color: var(--h-faint); }
@media (max-width: 900px) { .e-eqx__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Impacto (ServigeSur) ---------- */

.e-impact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .5rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.e-impact__num {
  display: flex;
  align-items: baseline;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(3rem, 1.6rem + 4vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.e-impact__num .stat__prefix { color: var(--c); }
.e-impact__label { font-family: var(--font-head); font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); line-height: 1.2; }
.e-impact__note { color: var(--h-faint); }
@media (max-width: 700px) { .e-impact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Frases de la empresa (una fila) ---------- */

.e-phrases .a-phrases__label { color: color-mix(in srgb, var(--c) 70%, #fff); }
.e-phrases .a-phrases__group span::after { background: var(--c); box-shadow: 0 0 12px var(--c); }

/* ---------- Estados iniciales del hero de empresa ---------- */

.h-motion .e-hero__title > .h-hero__line { visibility: hidden; }
.h-motion .e-hero__card { opacity: 0; }

/* El video de Empresas es mucho más claro que los otros: sombra más fuerte para que el texto se lea */
.h-hero--companies .h-hero__shade {
  background:
    linear-gradient(90deg, rgba(7, 8, 26, .94) 0%, rgba(7, 8, 26, .78) 42%, rgba(7, 8, 26, .3) 78%, rgba(7, 8, 26, .15) 100%),
    linear-gradient(0deg, var(--h-bg) 0%, rgba(7, 8, 26, 0) 38%);
}
@media (max-width: 600px) {
  .h-hero--companies .h-hero__shade {
    background: linear-gradient(0deg, var(--h-bg) 6%, rgba(7, 8, 26, .82) 45%, rgba(7, 8, 26, .7) 100%);
  }
}

/* Hero sin etiquetas (home): en escritorio, texto a la izquierda y botones a la derecha.
   En 1024 px o menos manda la regla de una sola columna. */
@media (min-width: 1025px) {
  .h-hero__bottom:not(:has(.h-pills)) { grid-template-columns: minmax(0, 30rem) auto; }
  .h-hero__bottom:not(:has(.h-pills)) .h-actions { grid-column: auto; }
}

/* Textos editables desde el panel: *así* en data/textos.json sale como <em> y se ve en el morado de
   acento. :where() deja la especificidad en cero para que ganen los estilos propios de cada sección. */
:where([data-t]) em { font-style: normal; color: var(--h-violet-soft); }

/* Secciones guardadas para más adelante (atributo hidden en el HTML): fuera de la página aunque
   su clase les dé otro display. */
.h-section[hidden] { display: none !important; }

/* =====================================================================
   Trabaja con nosotros (/trabaja-con-nosotros)
   Usa la base de Contáctanos (.c-top, .c-form, .c-field). El formulario
   funciona sin JavaScript: los tres pasos se ven a la vez y el navegador
   valida lo obligatorio. assets/js/postula.js pone .is-wizard en el
   formulario y todo lo del asistente paso a paso cuelga de esa clase.
   ===================================================================== */

/* ---------- Encabezado: imagen fija en vez de video ---------- */

.t-top__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.t-top .c-top__lead { max-width: 36ch; }

/* ---------- Abierto / cerrado (data/site.json → empleo.abierto) ---------- */

.t-closed { display: none; }
.t-state[data-abierto="false"] ~ .t-form { display: none; }
.t-state[data-abierto="false"] ~ .t-closed { display: block; }
.t-closed__text {
  max-width: 56ch;
  margin-top: 1rem;
  font-size: clamp(1rem, .95rem + .2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--h-muted);
}
.t-closed__link { margin-top: 1.8rem; }
/* Cerrado: el botón «Postular ahora» del encabezado no tiene a dónde llevar */
.h-main:has(.t-state[data-abierto="false"]) .t-top__apply { display: none; }

/* «Postular ahora» (#postula) deja aire arriba de la tarjeta: Lenis lleva al borde del
   elemento, así que el aire va dentro de la sección (padding) y se compensa con margen. */
.t-apply { margin-top: -40px; padding-top: 40px; }

/* ---------- Pasos ---------- */

.t-form [hidden] { display: none !important; }

.t-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.t-step + .t-step {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: clamp(2.25rem, 5vw, 3.25rem);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
/* float + ancho completo: la leyenda se porta como un bloque normal (sin el corte del borde).
   Se limpian todos los hermanos que siguen, no solo el primero: en el paso 3 el siguiente es el
   resumen, oculto sin el asistente, y la grilla de campos quedaba con ancho 0 junto al float. */
.t-step__legend { float: left; width: 100%; margin: 0 0 .55rem; padding: 0; }
.t-step__legend ~ * { clear: both; }
.t-step__kicker { display: block; margin-bottom: .75rem; color: var(--h-violet-soft); }
.t-step__title {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.05rem + 1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--h-text);
  text-wrap: balance;
}
.t-step__help { margin: 0 0 1.5rem; font-size: 15px; line-height: 1.55; color: var(--h-muted); }
.t-step:focus { outline: none; }

/* ---------- Tarjetas de ciudad y de área (radios reales) ---------- */

.t-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: .85rem;
}
.t-choices--area { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.t-choice { position: relative; display: flex; min-width: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.t-choice__input {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.t-choice__card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 136px;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid rgba(167, 139, 250, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .025);
  user-select: none;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .35s ease, transform .4s var(--h-ease);
}
.t-choices--area .t-choice__card { min-height: 0; }
/* áreas: los nombres quedan a la misma altura aunque los textos tengan largos distintos */
.t-choices--area .t-choice__top { margin-bottom: 0; }
.t-choices--area .t-choice__name { margin-top: 1.5rem; }
.t-choice__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: auto; }
.t-choice__icon {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(117, 70, 199, .14);
  color: var(--h-violet-soft);
  transition: background-color .3s ease, color .3s ease;
}
.t-choice__mark {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(167, 139, 250, .42);
  border-radius: 50%;
  transition: background-color .25s ease, border-color .25s ease;
}
.t-choice__mark::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 2.5px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .3s var(--h-ease);
}
.t-choice__name {
  margin-top: 1.25rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--h-text);
  overflow-wrap: anywhere;
}
.t-choice__text { margin-top: .45rem; font-size: 14.5px; line-height: 1.5; color: var(--h-muted); }

@media (hover: hover) {
  .t-choice:hover .t-choice__card { border-color: rgba(167, 139, 250, .5); background-color: rgba(117, 70, 199, .08); }
}
.t-choice__input:checked + .t-choice__card {
  border-color: var(--h-violet-2);
  background-color: rgba(117, 70, 199, .2);
  box-shadow: inset 0 0 0 1px var(--h-violet-2), 0 26px 60px -32px rgba(139, 92, 246, .85);
}
.t-choice__input:checked + .t-choice__card .t-choice__icon { background: var(--h-violet); color: #fff; }
.t-choice__input:checked + .t-choice__card .t-choice__mark { border-color: var(--h-violet-2); background: var(--h-violet-2); }
.t-choice__input:checked + .t-choice__card .t-choice__mark::after { transform: rotate(45deg) scale(1); }
.t-choice__input:focus-visible + .t-choice__card { outline: 2px solid var(--h-violet-soft); outline-offset: 3px; }
.t-choice__input[aria-invalid="true"] + .t-choice__card { border-color: rgba(248, 113, 113, .6); }
.t-step .t-error { margin-top: .9rem; font-size: 14px; }

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .t-choice:hover .t-choice__card { transform: translateY(-2px); }
}

/* Tablet angosta y móvil: las opciones pasan a filas (tres columnas ya no caben con su texto) y
   ciudades y áreas miden parecido, así el hueco reservado entre los pasos 1 y 2 queda chico */
@media (max-width: 820px) {
  .t-choices,
  .t-choices--area { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .t-choice__card {
    min-height: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "icon name mark" "icon text mark";
    align-items: center;
    column-gap: 1rem;
    padding: .95rem 1.1rem .95rem .95rem;
  }
  .t-choices--city .t-choice__card { grid-template-areas: "icon name mark"; min-height: 74px; padding-block: .75rem; }
  .t-choice__top { display: contents; }
  .t-choice__icon { grid-area: icon; align-self: center; width: 42px; height: 42px; padding: 9.5px; }
  .t-choice__mark { grid-area: mark; align-self: center; }
  .t-choice__name,
  .t-choices--area .t-choice__name { grid-area: name; margin: 0; font-size: 1.25rem; }
  .t-choices--area .t-choice__name { align-self: end; }
  .t-choice__text { grid-area: text; margin-top: .2rem; align-self: start; }
}

/* Móvil: el texto del área ocupa todo el ancho de la tarjeta (menos líneas, tarjetas más bajas) */
@media (max-width: 560px) {
  .t-choices--area .t-choice__card {
    grid-template-areas: "icon name mark" "text text text";
    column-gap: .85rem;
    padding: .85rem 1rem .95rem .85rem;
  }
  .t-choices--area .t-choice__name { align-self: center; font-size: 1.18rem; }
  .t-choices--area .t-choice__text { margin-top: .55rem; font-size: 13.5px; }
  .t-choices--city .t-choice__name { font-size: 1.2rem; }
}

/* ---------- Hoja de vida: archivo o enlace de Google Drive ---------- */

.t-cv { margin: 0; padding: 0; border: 0; min-width: 0; }
.t-cv__help { margin: 0 0 1rem; font-size: 14.5px; line-height: 1.5; color: var(--h-muted); }
.t-cv__tabs { display: none; }
.t-cv__sublabel { color: var(--h-muted); }
/* Formatos, peso y cómo compartir el enlace: información necesaria, con el contraste del texto
   secundario (--h-faint no llega a 4,5:1 sobre la tarjeta) */
.t-hint { margin-top: .6rem; font-size: 13.5px; line-height: 1.5; color: var(--h-muted); }
.t-form .c-field__input::placeholder { color: rgba(222, 224, 255, .58); }

/* Sin el asistente: los dos caminos, uno debajo del otro, y el selector nativo de archivos con estilo */
/* sin el resumen del asistente, los campos del paso 3 se separan del título */
.t-form:not(.is-wizard) .t-fields { margin-top: 1.5rem; }
.t-form:not(.is-wizard) .t-cv__panel + .t-cv__panel {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255, 255, 255, .12);
}
.t-file { position: relative; }
.t-file__input {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px dashed rgba(167, 139, 250, .35);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  color: var(--h-muted);
  font: inherit;
  font-size: 14.5px;
}
.t-file__input::file-selector-button {
  margin-right: 1rem;
  padding: .65rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--h-violet);
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.t-file__ui,
.t-file__chosen { display: none; }

/* ---------- Avance, resumen y botones (solo con el asistente) ---------- */

.t-progress,
.t-summary,
.t-back,
.t-next { display: none; }

.t-form.is-wizard .t-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 0 clamp(1.9rem, 3.5vw, 2.6rem);
  padding: 0;
  list-style: none;
}
.t-progress li { min-width: 0; }
.t-progress__btn {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: .6rem;
  width: 100%;
  min-height: 62px;
  padding: .95rem 0 .35rem;
  border: 0;
  border-top: 2px solid rgba(167, 139, 250, .16);
  border-radius: 0;
  background: none;
  color: var(--h-faint);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .3s ease;
}
.t-progress__btn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: var(--h-violet-2);
  box-shadow: 0 0 12px rgba(139, 92, 246, .7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--h-ease);
}
.t-progress__num { font-family: var(--h-mono); font-size: 11.5px; letter-spacing: .12em; }
.t-progress__label { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-progress__value {
  grid-column: 2;
  min-height: 1.4em;
  font-size: 13px;
  line-height: 1.4;
  color: var(--h-violet-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Un paso al que ya se puede ir (botón activo) se distingue de uno que todavía no (desactivado) */
.t-progress__btn:not(:disabled) { color: var(--h-muted); }
.t-progress__btn.is-done,
.t-progress__btn[aria-current="step"] { color: var(--h-text); }
.t-progress__btn.is-done::before,
.t-progress__btn[aria-current="step"]::before { transform: scaleX(1); }
.t-progress__btn.is-done:not([aria-current])::before { background: rgba(139, 92, 246, .55); box-shadow: none; }
.t-progress__btn[aria-current="step"] .t-progress__num { color: var(--h-violet-soft); }
.t-progress__btn:disabled { cursor: default; }
@media (hover: hover) {
  .t-progress__btn:not(:disabled):not([aria-current]):hover .t-progress__label { color: var(--h-violet-soft); }
}

.t-form.is-wizard .t-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .55rem;
  margin: 0 0 1.75rem;
  padding: .8rem 1rem;
  border: 1px solid var(--h-border);
  border-radius: 14px;
  background: rgba(117, 70, 199, .08);
  font-size: 15px;
  line-height: 1.5;
  color: var(--h-muted);
}
.t-summary__pick { display: inline-flex; align-items: center; gap: .45rem; }
.t-summary strong { font-weight: 500; color: #fff; }
.t-summary__change {
  padding: .2rem .65rem;
  border: 1px solid rgba(167, 139, 250, .32);
  border-radius: 999px;
  background: none;
  color: var(--h-violet-soft);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease;
}
.t-summary__change:hover { border-color: var(--h-violet-soft); background: rgba(117, 70, 199, .14); }

/* Botones del pie: los del asistente son <button>, se igualan a .h-btn */
.t-nav .h-btn { border: 0; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.t-nav .h-btn--ghost { border: 1px solid rgba(255, 255, 255, .22); }
.t-nav .t-submit,
.t-nav .t-next { margin-left: auto; }
.h-night .t-nav .t-submit { min-height: 52px; padding: 0 1.8rem; }
.t-back:hover span { transform: translateX(-4px); }
.t-form.is-wizard .t-back,
.t-form.is-wizard .t-next { display: inline-flex; }
.t-form.is-wizard[data-step="1"] .t-back,
.t-form.is-wizard[data-step="3"] .t-next,
.t-form.is-wizard:not([data-step="3"]) .t-submit { display: none; }

/* Enviando: la flecha del botón pasa a ser un indicador que gira */
.t-form.is-sending .t-submit { cursor: progress; }
.t-form.is-sending .t-submit .t-arrow { display: none; }
.t-form.is-sending .t-submit::after {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: t-spin .8s linear infinite;
}
@keyframes t-spin { to { transform: rotate(360deg); } }

.t-status:empty { display: none; }
.t-status button {
  margin-left: .35rem;
  padding: .25rem .8rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* ---------- Asistente: un paso a la vez sin saltos ----------
   Los pasos 1 y 2 comparten la misma celda (el más alto fija la altura), así el pie no se mueve
   al ir y volver entre ellos; el paso 3, más largo, ocupa la celda solo. En el teléfono cada paso
   mide lo suyo: ahí las áreas apiladas son mucho más altas que las ciudades y reservar ese alto
   dejaba un hueco grande con «Siguiente» fuera de la pantalla (el cambio solo ocurre tras un toque
   y crece hacia abajo: lo de arriba no se mueve). */

.t-form.is-wizard .t-stage { display: grid; }
.t-form.is-wizard .t-step { grid-area: 1 / 1; }
.t-form.is-wizard .t-step + .t-step { margin-top: 0; padding-top: 0; border-top: 0; }
.t-form.is-wizard .t-step:not(.is-current) { visibility: hidden; }
.t-form.is-wizard[data-step="3"] .t-step:not(.is-current),
.t-form.is-wizard:not([data-step="3"]) .t-step[data-step="3"] { display: none; }
.t-form.is-wizard .t-step__kicker {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .t-form.is-wizard .t-step.is-entering { animation: t-step-in .5s var(--h-ease) both; }
  .t-form.is-wizard[data-dir="back"] .t-step.is-entering { animation-name: t-step-back; }
}
@media (max-width: 560px) {
  .t-form.is-wizard .t-step:not(.is-current) { display: none; }
}
@keyframes t-step-in { from { opacity: 0; transform: translateX(26px); } }
@keyframes t-step-back { from { opacity: 0; transform: translateX(-26px); } }

/* Hoja de vida con pestañas: los dos paneles comparten celda (no cambia la altura al alternar) */
.t-form.is-wizard .t-cv__help { display: none; }
.t-form.is-wizard .t-cv__tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 1rem;
  padding: 4px;
  border: 1px solid var(--h-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
}
.t-cv__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--h-muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
}
.t-cv__tab svg { width: 18px; height: 18px; flex: none; }
.t-cv__tab:hover { color: var(--h-text); }
.t-cv__tab[aria-selected="true"] { background: var(--h-violet); color: #fff; box-shadow: 0 8px 24px -12px rgba(139, 92, 246, .9); }
.t-form.is-wizard .t-cv__panels { display: grid; }
.t-form.is-wizard .t-cv__panel { grid-area: 1 / 1; min-width: 0; }
.t-form.is-wizard .t-cv__panel:not(.is-active) { visibility: hidden; }
.t-form.is-wizard .t-cv__sublabel {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Zona para soltar el archivo: el input transparente la cubre (clic y arrastrar funcionan solos) */
.t-form.is-wizard .t-file {
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: .9rem 1.2rem;
  border: 1px dashed rgba(167, 139, 250, .4);
  border-radius: 16px;
  background: rgba(255, 255, 255, .02);
  transition: border-color .25s ease, background-color .25s ease;
}
.t-form.is-wizard .t-file__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.t-form.is-wizard .t-file__ui { display: flex; align-items: center; gap: 1rem; min-width: 0; pointer-events: none; }
.t-file__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(117, 70, 199, .14);
  color: var(--h-violet-soft);
}
.t-file__icon svg { width: 22px; height: 22px; }
.t-file__cta { font-size: 15px; line-height: 1.45; color: var(--h-muted); }
.t-file__cta strong { font-weight: 500; color: var(--h-violet-soft); text-decoration: underline; text-underline-offset: 3px; }
.t-form.is-wizard .t-file:hover,
.t-form.is-wizard .t-file.is-drag { border-color: var(--h-violet-soft); background: rgba(117, 70, 199, .09); }
.t-form.is-wizard .t-file:focus-within { border-color: var(--h-violet-soft); }
.t-form.is-wizard .t-file:has(.t-file__input:focus-visible) { outline: 2px solid var(--h-violet-soft); outline-offset: 3px; }
.t-form.is-wizard .t-file.has-file { border-style: solid; border-color: rgba(139, 92, 246, .55); background: rgba(117, 70, 199, .1); }
/* después de .has-file: un archivo elegido que el servidor rechazó también se marca en rojo */
.t-form.is-wizard .t-file.is-invalid { border-color: rgba(248, 113, 113, .7); }
.t-form.is-wizard .t-file.has-file .t-file__input { pointer-events: none; }
.t-form.is-wizard .t-file.has-file .t-file__ui { display: none; }
.t-form.is-wizard .t-file.has-file .t-file__chosen { display: flex; align-items: center; gap: 1rem; width: 100%; min-width: 0; }
.t-file__icon--doc { background: var(--h-violet); color: #fff; }
.t-file__meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.t-file__name { font-weight: 500; color: var(--h-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-file__size { font-family: var(--h-mono); font-size: 12px; letter-spacing: .06em; color: var(--h-muted); }
.t-file__actions { display: flex; flex: none; gap: .4rem; }
.t-file__btn {
  position: relative;
  z-index: 1;
  min-height: 38px;
  padding: 0 .9rem;
  border: 1px solid rgba(167, 139, 250, .32);
  border-radius: 999px;
  background: rgba(7, 8, 26, .35);
  color: var(--h-text);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease;
}
.t-file__btn:hover { border-color: var(--h-violet-soft); background: rgba(117, 70, 199, .2); }

/* ---------- Autorización ---------- */

.t-check { position: relative; display: flex; align-items: flex-start; gap: .85rem; cursor: pointer; }
.t-check__input { position: absolute; top: 4px; left: 4px; width: 1px; height: 1px; margin: 0; opacity: 0; }
.t-check__box {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1.5px solid rgba(167, 139, 250, .45);
  border-radius: 6px;
  transition: background-color .25s ease, border-color .25s ease;
}
.t-check__box::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 2.5px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .25s var(--h-ease);
}
.t-check__text { font-size: 15px; line-height: 1.55; color: var(--h-muted); }
.t-check__input:checked + .t-check__box { border-color: var(--h-violet-2); background: var(--h-violet-2); }
.t-check__input:checked + .t-check__box::after { transform: rotate(45deg) scale(1); }
.t-check__input:focus-visible + .t-check__box { outline: 2px solid var(--h-violet-soft); outline-offset: 3px; }
.t-check__input[aria-invalid="true"] + .t-check__box { border-color: #f87171; }

/* ---------- Enviada ---------- */

.t-form.is-done > :not(.t-done) { display: none !important; }
.t-done:focus { outline: none; }
.t-done__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: rgba(134, 239, 172, .12);
  box-shadow: inset 0 0 0 1px rgba(134, 239, 172, .35);
  color: #86efac;
}
.t-done__icon svg { width: 26px; height: 26px; }
.t-done__title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.15rem + 1.3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.t-done__text { max-width: 52ch; margin-top: .9rem; font-size: 16px; line-height: 1.6; color: var(--h-muted); }
.t-done__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 1.8rem 0 2rem;
}
.t-done__summary div { min-width: 0; padding: .9rem 1rem; border: 1px solid var(--h-border); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.t-done__summary dt { font-family: var(--h-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--h-muted); }
.t-done__summary dd { margin: .35rem 0 0; font-weight: 500; color: var(--h-text); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
  .t-done:not([hidden]) { animation: t-step-in .6s var(--h-ease) both; }
}

/* ---------- Ajustes por ancho ---------- */

@media (max-width: 560px) {
  .t-form.is-wizard .t-progress { gap: .5rem; }
  .t-progress__btn { grid-template-columns: minmax(0, 1fr); row-gap: .1rem; min-height: 58px; }
  .t-progress__value { grid-column: 1; font-size: 12px; }
  .t-progress__label { font-size: 13.5px; }
  .t-form.is-wizard .t-cv__tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .t-cv__tab { padding: 0 .6rem; font-size: 13.5px; }
  .t-form.is-wizard .t-file__drag { display: none; }
  .t-form.is-wizard .t-file.has-file .t-file__chosen { flex-wrap: wrap; }
  .t-file__actions { width: 100%; padding-left: calc(46px + 1rem); }
  .t-done__summary { grid-template-columns: minmax(0, 1fr); }
  /* pie del asistente: botón principal arriba y a lo ancho; «Atrás» debajo */
  .t-nav .t-next,
  .t-nav .t-submit { order: -1; margin-left: 0; justify-content: center; }
  .t-nav .t-back { justify-content: center; }
}
@media (max-width: 420px) {
  .t-cv__tab svg,
  .t-cv__tab-long { display: none; }
  /* «Administrativa» entra entera en 360 px */
  .t-progress__value { font-size: 11.5px; letter-spacing: -.01em; }
}
/* Pantallas táctiles: áreas de toque de 44 px sin cambiar cómo se ven (la píldora «cambiar» y la
   autorización crecen hacia afuera con un área invisible; «Cambiar» y «Quitar» del archivo, de verdad) */
@media (max-width: 900px), (pointer: coarse) {
  .t-summary__change { position: relative; }
  .t-summary__change::after { content: ""; position: absolute; inset: -10px -4px; }
  .t-file__btn { min-height: 44px; }
  .t-check { padding-block: .7rem; margin-block: -.7rem; }
}

/* Trabaja con nosotros: cargo dentro del área (paso 2), experiencia y moto/licencia (paso 3).
   Sin el asistente se ven todos los grupos de cargos, cada uno con el nombre de su área, y la
   pregunta de la moto con su aclaración. Las pastillas reutilizan .c-area de Contáctanos. */
.t-cargo { margin-top: 2rem; }
.t-cargo__title { margin: 0 0 .9rem; font-family: var(--h-display, inherit); font-size: 1.15rem; font-weight: 500; color: #fff; }
.t-cargo__empty { display: none; }
.t-cargo-groups { display: grid; gap: 1.1rem; }
.t-cargo-group__title { margin: 0 0 .55rem; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--h-muted); }
.t-pill { --c: var(--h-violet-soft); }
.t-pill input:checked + span { border-color: var(--h-violet-2); background: rgba(117, 70, 199, .22); color: #fff; }
.t-pill input:checked + span::before { opacity: 1; box-shadow: 0 0 0 4px rgba(182, 156, 255, .18); }
.t-pill input:focus-visible + span { outline: 2px solid var(--h-violet-soft); outline-offset: 3px; }
.t-pill input[aria-invalid="true"] + span { border-color: rgba(248, 113, 113, .6); }
.t-form.is-wizard .t-cargo__empty:not([hidden]) { display: block; margin: 0; }
.t-form.is-wizard .t-cargo-group:not(.is-on) { display: none; }
.t-form.is-wizard .t-cargo-group__title { display: none; }
.t-form.is-wizard .t-cargo.is-none { display: none; }

.h-night .c-field__input.t-select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b69cff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
.t-select option { background: #0b0d26; color: var(--h-text); }

.t-moto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.t-moto__q { margin: 0; padding: 0; border: 0; min-width: 0; }
.t-moto__q .c-field__label { padding: 0; }
.t-moto__note { margin: -.2rem 0 .6rem; }
.t-form.is-wizard .t-moto:not(.is-on),
.t-form.is-wizard .t-licencia:not(.is-on) { display: none; }
.t-form.is-wizard .t-moto__note { display: none; }
@media (max-width: 560px) {
  .t-moto { grid-template-columns: 1fr; }
  .t-pill span { min-height: 46px; }
}

/* ---------- Noticias (/noticias y /noticias/<slug>, generadas por scripts/noticias-page.mjs) ---------- */
.n-top { padding: clamp(8rem, 16vw, 12rem) 0 clamp(2.5rem, 5vw, 4rem); }
.n-top__title { margin: 1.2rem 0 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(2.6rem, 1.4rem + 5vw, 6rem); line-height: 1; letter-spacing: -.02em; color: #fff; }
.n-top__lead { max-width: 40rem; margin-top: 1.4rem; }

.n-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: 0; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--h-muted); }
.n-meta__cat { padding: .25rem .6rem; border: 1px solid var(--h-border-strong); border-radius: 999px; color: var(--h-violet-soft); }

div.n-cover--empty { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(120% 120% at 30% 20%, rgba(117, 70, 199, .35), rgba(11, 13, 38, .9)); }
div.n-cover--empty svg { width: 24%; height: auto; aspect-ratio: 107 / 62; color: rgba(182, 156, 255, .55); }

.n-featured { padding-bottom: clamp(3rem, 6vw, 5rem); }
.n-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.n-feature__media { display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--h-border); }
.n-feature__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--h-ease); }
.n-feature__media:hover .n-feature__img { transform: scale(1.03); }
.n-feature__title { margin: 1rem 0 .9rem; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.7rem, 1rem + 2vw, 2.6rem); line-height: 1.12; }
.n-feature__title a, .n-card__title a { color: #fff; text-decoration: none; }
.n-feature__title a:hover, .n-card__title a:hover { color: var(--h-violet-soft); }
.n-feature__text { margin: 0 0 1.6rem; color: var(--h-muted); font-size: 16.5px; line-height: 1.6; }

.n-list { padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--h-border); }
.n-list__title { margin: 0 0 1.6rem; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--h-muted); font-weight: 400; }
.n-list__all { margin: 2.4rem 0 0; text-align: center; }
.n-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); }
.n-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--h-border); border-radius: 18px; overflow: hidden; background: var(--h-panel); transition: border-color .3s ease, transform .3s ease; }
.n-card:hover { border-color: var(--h-border-strong); transform: translateY(-3px); }
.n-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.n-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.n-card__body { display: flex; flex-direction: column; gap: .75rem; padding: 1.3rem 1.3rem 1.4rem; flex: 1; }
.n-card__title { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 1.25rem; line-height: 1.2; }
.n-card__text { margin: 0; color: var(--h-muted); font-size: 14.5px; line-height: 1.55; }
.n-card__more { margin: auto 0 0; padding-top: .3rem; color: var(--h-violet-soft); font-size: 14px; }

.n-empty { padding: 0 0 clamp(5rem, 10vw, 8rem); }
.n-empty__text { margin: 0 0 1.4rem; font-size: 18px; color: var(--h-muted); }

.n-article__head { padding: clamp(8rem, 15vw, 11rem) 0 clamp(2rem, 4vw, 3rem); }
.n-article__wrap { max-width: 50rem; }
.n-article__title { margin: 1.4rem 0 1.1rem; font-family: var(--font-head); font-weight: 500; font-size: clamp(2.1rem, 1.2rem + 3vw, 3.6rem); line-height: 1.08; letter-spacing: -.015em; color: #fff; }
.n-article__lead { margin: 0 0 1.6rem; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.55; color: var(--h-muted); }
.n-article__cover { margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.n-article__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 22px; border: 1px solid var(--h-border); }
.n-prose { font-size: 17px; line-height: 1.75; color: rgba(238, 236, 255, .88); }
.n-prose > * + * { margin-top: 1.15em; }
.n-prose p { margin: 0; }
.n-prose h2 { margin: 2.2em 0 0; font-family: var(--font-head); font-weight: 500; font-size: 1.65rem; line-height: 1.2; color: #fff; }
.n-prose h3 { margin: 1.8em 0 0; font-family: var(--font-head); font-weight: 500; font-size: 1.3rem; color: #fff; }
.n-prose h2 + *, .n-prose h3 + * { margin-top: .7em; }
.n-prose ul, .n-prose ol { margin: 0; padding-left: 1.3em; }
.n-prose li + li { margin-top: .45em; }
.n-prose li::marker { color: var(--h-violet-soft); }
.n-prose a { color: var(--h-violet-soft); text-underline-offset: 3px; }
.n-prose strong { color: #fff; font-weight: 600; }
.n-prose blockquote { margin: 1.8em 0; padding: .4em 0 .4em 1.3em; border-left: 3px solid var(--h-violet); font-family: var(--font-head); font-size: 1.35rem; line-height: 1.4; color: #fff; }
.n-prose blockquote p { margin: 0; }
.n-share { margin: clamp(3rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); padding-top: 1.6rem; border-top: 1px solid var(--h-border); }
.n-share .h-mono { margin: 0 0 1rem; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--h-muted); }

@media (max-width: 1024px) { .n-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .n-feature { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .n-grid { grid-template-columns: minmax(0, 1fr); }
  .n-prose { font-size: 16px; }
}
