/* ============================================================
   Micelia — landing pública
   Portado 1:1 desde el proyecto Astro "MiceliA landing" (design
   system propio, sin frameworks). Ver landing micelia/micelia-landing.
   ============================================================ */

:root {
  --c-bg: #050507;
  --c-text: #ffffff;
  --c-muted: rgba(255, 255, 255, 0.62);
  --c-purple: #0f8f83;
  --c-purple-deep: #0b6d64;
  --c-purple-soft: #5eead4;
  --c-teal: #14b8a6;
  --c-teal-deep: #0d9488;
  --c-teal-soft: #5eead4;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--c-purple-soft);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.badge svg {
  color: var(--c-purple-soft);
}

.badge--section {
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(139, 92, 246, 0.08);
  color: var(--c-purple-soft);
}

.muted {
  color: var(--c-muted);
}

/* reveal on scroll: base */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section {
  position: relative;
  padding: 7.5rem 0;
  background: var(--c-bg);
}

/* variante alterna: superficie ligeramente más clara que el fondo base */
.section-alt {
  background: #08080b;
}

.grid {
  display: grid;
  gap: 1.1rem;
}

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

@media (max-width: 900px) {
  .g-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .g-6 {
    grid-template-columns: 1fr;
  }
}

.section-head {
  max-width: 44rem;
  margin: 0 auto 4.5rem;
  text-align: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 1.3rem 0 1rem;
}

/* disclaimer demostrativo: usado por varias secciones (Impacto, Aliados) */
.demo-note {
  margin: 0.9rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

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

@media (max-width: 720px) {
  .g-2 {
    grid-template-columns: 1fr;
  }
}

/* variante oscura del badge de sección, para usarla sobre fondos ya coloreados */
.badge--section--dark {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text);
}

/* ---------- Tarjeta base ---------- */
.card {
  position: relative;
  border-radius: 1.1rem;
}

/* ---------- Chip (etiqueta pequeña) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.25s ease;
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-primary {
  color: #fff;
  background: var(--c-purple);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.35),
    0 8px 32px rgba(15, 143, 131, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.55),
    0 12px 44px rgba(15, 143, 131, 0.45);
}

.btn-outline {
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(139, 92, 246, 0.08);
}

/* variante para botones outline sobre fondos ya coloreados (p. ej. CtaBand) */
.on-dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.on-dark .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.05rem 2.3rem;
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease,
    backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}

.header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  transition: padding 0.4s ease;
}

.header--solid {
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.header--solid .header__inner {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--c-text);
  flex-shrink: 0;
}

.header__brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.45));
  transition: filter 0.3s ease, transform 0.3s ease;
  object-fit: cover;
  border-radius: 8px;
}

.header__brand:hover .header__brand-mark {
  filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.75));
  transform: scale(1.05);
}

.footer__logo > .footer__brand-mark {
  box-sizing: border-box;
  flex: 0 0 42px;
  width: 42px !important;
  height: 42px !important;
  max-width: 42px;
  object-fit: cover;
  border-radius: 10px;
}

.header__wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.header__wordmark b {
  font-weight: 700;
}

.header__accent {
  font-weight: 700;
  color: var(--c-purple-soft);
}

.header__nav {
  margin-left: auto;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__nav-link {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.25rem;
  width: 0;
  height: 1px;
  transform: translateX(-50%);
  background: var(--c-purple-soft);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.7);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.header__nav-link:hover {
  color: var(--c-text);
}

.header__nav-link:hover::after {
  width: calc(100% - 1.7rem);
}

.header__cta {
  flex-shrink: 0;
}

.header__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.header__burger:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(139, 92, 246, 0.08);
}

.header__burger-line {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--c-text);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.header__mobile {
  position: fixed;
  inset: 0;
  /* Justo debajo de .header (100): así la marca y el botón de cerrar,
     que viven dentro de .header, quedan visibles sobre este overlay. */
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 7, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: mobile-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.header__mobile[hidden] {
  display: none;
}

.header__mobile-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__mobile-link {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
  animation: mobile-link-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.header__mobile-list li:nth-child(2) .header__mobile-link { animation-delay: 0.05s; }
.header__mobile-list li:nth-child(3) .header__mobile-link { animation-delay: 0.1s; }
.header__mobile-list li:nth-child(4) .header__mobile-link { animation-delay: 0.15s; }
.header__mobile-list li:nth-child(5) .header__mobile-link { animation-delay: 0.2s; }

.header__mobile-link:hover {
  color: var(--c-text);
  transform: translateX(4px);
}

.header__mobile-cta {
  margin-top: 1.4rem;
  animation: mobile-link-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both 0.28s;
}

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

@keyframes mobile-link-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

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

  .header__burger {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .header__inner,
  .header__nav-link::after,
  .header__burger-line {
    transition: none;
  }

  .header__mobile,
  .header__mobile-link,
  .header__mobile-cta {
    animation: none;
  }
}

/* ============================================================
   Fondo neuronal (canvas animado)
   ============================================================ */
.neural {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.neural__canvas {
  position: absolute;
  inset: 0;
}

.neural__aurora {
  position: absolute;
  width: 58vmax;
  height: 58vmax;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.neural__aurora--a {
  top: -22vmax;
  left: -14vmax;
  background: rgba(15, 143, 131, 0.32);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.neural__aurora--b {
  top: -26vmax;
  right: -16vmax;
  background: rgba(8, 99, 92, 0.28);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.neural__vignette {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.5);
}

@keyframes drift-a {
  to { transform: translate(6vmax, 4vmax) scale(1.12); }
}

@keyframes drift-b {
  to { transform: translate(-5vmax, 6vmax) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .neural__aurora {
    animation: none;
  }
}

/* ============================================================
   Hero — la imagen de fondo cubre la sección completa, de borde a
   borde (sin marco ni margen negro alrededor).
   ============================================================ */
.hero {
  --hero-image: url('/images/background-full.png');
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  color: var(--c-text);
  background-color: #0a0710;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-image) center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0, 0, 0, .92) 60%, rgba(0, 0, 0, .42) 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0, 0, 0, .92) 60%, rgba(0, 0, 0, .42) 82%, transparent 100%);
  pointer-events: none;
}

/* Imagen de fondo provista por diseño: un arco de luz sobre negro,
   con recortes ya compuestos para pantalla ancha y para celular. */
@media (min-width: 900px) {
  .hero { --hero-image: url('/images/background-pc.png'); }
}

@media (max-width: 640px) {
  .hero { --hero-image: url('/images/background-celular.png'); }
}

.hero__frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  /* Reserva espacio abajo para .hero__arc-panel (posicionada en
     absoluto), así el centrado del contenido no invade su zona. */
  padding: clamp(96px, 13vw, 128px) clamp(14px, 3.2vw, 32px) clamp(11rem, 18vw, 14rem);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
  padding: 0.5rem 1.1rem 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-muted);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-teal-soft);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.18), 0 0 10px rgba(94, 234, 212, 0.7);
  flex-shrink: 0;
  animation: badge-pulse 2.4s ease-in-out infinite;
}

.hero__text {
  text-align: center;
  max-width: 54rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.6vw, 5.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both 0.1s;
}

.accent-italic {
  font-style: italic;
  color: var(--c-purple-soft);
  filter: drop-shadow(0 0 26px rgba(139, 92, 246, 0.35));
}

.accent-teal {
  font-style: italic;
  color: var(--c-teal-soft);
  filter: drop-shadow(0 0 26px rgba(20, 184, 166, 0.4));
}

.hero__description {
  position: relative;
  z-index: 3;
  max-width: 34rem;
  margin: 1.4rem auto 0;
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.65;
  color: var(--c-muted);
  text-shadow: 0 2px 14px rgba(16, 5, 35, 0.9);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both 0.25s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both 0.4s;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.25s ease;
}

.hero__btn--primary {
  color: #fff;
  background: var(--c-purple);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.35),
    0 8px 32px rgba(15, 143, 131, 0.35);
}

.hero__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.55),
    0 12px 44px rgba(15, 143, 131, 0.45);
}

.hero__btn--ghost {
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero__btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(139, 92, 246, 0.08);
}

/* El arco de luz ya viene compuesto en la imagen de fondo de
   .hero__frame; este panel sólo flota sobre su zona más brillante. */
.hero__arc-panel {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 5vw, 3rem);
  z-index: 1;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
  padding: 0 1.5rem;
}

.hero__arc-panel-text {
  margin: 0;
  max-width: 26rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(5, 5, 7, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
  animation: chevron-bob 2.2s ease-in-out infinite;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hero__scroll:hover {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(5, 5, 7, 0.55);
}

.hero__scroll svg {
  width: 1.15rem;
  height: 1.15rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes chevron-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (max-width: 640px) {
  .hero__frame { min-height: min(38rem, calc(100svh - 96px)); }
  .hero__arc { bottom: -46%; width: 170%; }
  .hero__arc-panel { bottom: 1.25rem; }
  .hero__arc-panel-text { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__description,
  .hero__actions,
  .hero__badge,
  .hero__badge-dot,
  .hero__scroll {
    animation: none;
  }
}

/* ============================================================
   Cómo funciona (circuito)
   ============================================================ */
.how {
  position: relative;
  padding: 7.5rem 0 8.5rem;
  background: var(--c-bg);
  overflow: hidden;
}

.how::before {
  content: "";
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vmax;
  height: 34vmax;
  background: rgba(15, 143, 131, 0.1);
  filter: blur(60px);
  pointer-events: none;
}

.how .container {
  position: relative;
  z-index: 1;
}

.how__circuit {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0 1.25rem;
}

.how__actor {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.9rem 2.3rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease, box-shadow 0.35s ease;
}

.how__actor:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(124, 58, 237, 0.18);
}

.how__node {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-teal-soft);
  box-shadow: 0 0 12px 2px rgba(20, 184, 166, 0.7);
  animation: node-breathe 3.2s ease-in-out infinite;
}

.how__actor h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 1.4rem 0 0.7rem;
}

.how__actor p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.how__num {
  align-self: flex-start;
}

.how__connector {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  color: rgba(94, 234, 212, 0.6);
}

.how__line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
  background: rgba(20, 184, 166, 0.3);
}

.how__pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #99f6e4;
  box-shadow: 0 0 10px 2px rgba(20, 184, 166, 0.8);
  animation: pulse-travel 2.6s linear infinite;
  animation-delay: var(--delay, 0s);
}

.how__connector svg {
  position: relative;
  background: var(--c-bg);
  padding: 2px;
  border-radius: 50%;
}

@keyframes pulse-travel {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}

@keyframes node-breathe {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 8px 1px rgba(167, 139, 250, 0.45); }
  50% { opacity: 1; box-shadow: 0 0 16px 3px rgba(167, 139, 250, 0.85); }
}

@media (max-width: 860px) {
  .how__circuit {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .how__connector {
    width: 100%;
    height: 3.5rem;
  }

  .how__line {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
    transform: translateX(-50%);
    background: rgba(20, 184, 166, 0.3);
  }

  .how__pulse {
    top: 0;
    left: 50%;
    margin-top: 0;
    margin-left: -3px;
    animation-name: pulse-travel-y;
  }

  .how__connector svg {
    transform: rotate(90deg);
  }
}

@keyframes pulse-travel-y {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: calc(100% - 6px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .how__pulse,
  .how__node {
    animation: none;
  }
}

/* ============================================================
   Impacto (métricas)
   ============================================================ */
.impact {
  position: relative;
}

.impact .section-head {
  margin-bottom: 4rem;
}

.impact__metric {
  --accent: var(--c-purple-soft);
  --accent-glow: rgba(139, 92, 246, 0.35);

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.9rem 1.7rem 1.8rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease, box-shadow 0.35s ease;
}

.impact__metric[data-accent="cyan"] {
  --accent: #67e8f9;
  --accent-glow: rgba(34, 211, 238, 0.3);
}

.impact__metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.7rem;
  right: 1.7rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.35;
  transition: opacity 0.35s ease;
}

.impact__metric:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 34px var(--accent-glow);
}

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

.impact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 14%, transparent);
}

.impact__value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  filter: drop-shadow(0 0 18px var(--accent-glow));
}

.impact__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ============================================================
   Desarrollo integral (talento técnico + bienestar)
   ============================================================ */
.integral {
  padding: 8rem 0;
}

.integral__layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

.integral__title {
  margin: 1.4rem 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: var(--c-text);
}

.integral__highlight {
  font-style: italic;
  background: linear-gradient(95deg, var(--c-teal-soft), var(--c-teal-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(20, 184, 166, 0.35));
}

.integral__description {
  max-width: 34rem;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--c-muted);
}

.integral__description strong {
  color: var(--c-text);
  font-weight: 600;
}

.integral__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.integral__tag {
  position: relative;
  padding: 0.45rem 1rem 0.45rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.integral__tag::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--c-purple-soft);
  box-shadow: 0 0 8px 1px rgba(167, 139, 250, 0.7);
  transition: box-shadow 0.25s ease;
}

.integral__tag:hover {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(139, 92, 246, 0.07);
  color: var(--c-text);
}

.integral__tag:hover::before {
  box-shadow: 0 0 12px 3px rgba(167, 139, 250, 0.9);
}

.integral__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.integral__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.7rem;
  min-height: 11.5rem;
  padding: 1.8rem 1.7rem;
  border-radius: 1.2rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease, box-shadow 0.35s ease;
}

.integral__card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.5),
    0 0 34px rgba(124, 58, 237, 0.16);
}

.integral__node {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-purple-soft);
  box-shadow: 0 0 10px 2px rgba(167, 139, 250, 0.6);
  animation: integral-node 3.4s ease-in-out infinite;
}

.integral__card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.integral__card-title--accent {
  background: linear-gradient(95deg, var(--c-purple-soft), var(--c-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.integral__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.7rem;
  color: var(--c-purple-soft);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.2);
}

.integral__card-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--c-muted);
}

.integral__quote {
  position: relative;
  grid-column: 1 / -1;
  margin: 0;
  padding: 2.3rem 2.4rem 2.3rem 3.8rem;
  border-radius: 1.2rem;
  background: linear-gradient(160deg, rgba(20, 184, 166, 0.12), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(94, 234, 212, 0.3);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(20, 184, 166, 0.12);
}

.integral__quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2.2rem;
  right: 2.2rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-teal-soft), transparent);
  opacity: 0.7;
}

.integral__quote-mark {
  position: absolute;
  top: 1.3rem;
  left: 1.6rem;
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, var(--c-teal-soft), var(--c-teal-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(20, 184, 166, 0.5));
}

.integral__quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

@keyframes integral-node {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 6px 1px rgba(167, 139, 250, 0.4); }
  50% { opacity: 1; box-shadow: 0 0 14px 3px rgba(167, 139, 250, 0.85); }
}

@media (max-width: 900px) {
  .integral__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .integral__description {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .integral__panel {
    grid-template-columns: 1fr;
  }

  .integral__card {
    min-height: 0;
  }

  .integral__quote {
    padding: 1.7rem 1.6rem 1.7rem 3rem;
  }

  .integral__quote-mark {
    left: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .integral__node {
    animation: none;
  }
}

/* ============================================================
   Aliados (carrusel)
   ============================================================ */
.allies {
  padding-bottom: 8.5rem;
  overflow: hidden;
}

.allies .section-head {
  margin-bottom: 4rem;
}

.allies__rail {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.allies__marquee {
  position: relative;
  overflow: hidden;
  padding: 0.4rem 0;
}

.allies__track {
  display: flex;
  align-items: stretch;
  gap: 1.1rem;
  width: max-content;
  will-change: transform;
  animation: allies-scroll var(--duration, 42s) linear infinite;
}

.allies__track--reverse {
  animation-name: allies-scroll-reverse;
}

.allies__marquee:hover .allies__track {
  animation-play-state: paused;
}

@keyframes allies-scroll {
  to { transform: translateX(-50%); }
}

@keyframes allies-scroll-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.allies__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.85rem 1.5rem 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.allies__chip:hover {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(139, 92, 246, 0.07);
  box-shadow: 0 0 26px rgba(124, 58, 237, 0.2);
}

.allies__chip-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border-radius: 0.7rem;
  color: var(--c-purple-soft);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.22);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.15);
}

.allies__chip-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.6rem;
  background: #fff;
  padding: 0.28rem;
}

.allies__chip-node {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-purple-soft);
  box-shadow: 0 0 8px 2px rgba(167, 139, 250, 0.7);
  animation: allies-node 3s ease-in-out infinite;
}

.allies__chip-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.allies__chip-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

.allies__chip-group {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

@keyframes allies-node {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 6px 1px rgba(167, 139, 250, 0.45); }
  50% { opacity: 1; box-shadow: 0 0 12px 3px rgba(167, 139, 250, 0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .allies__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .allies__chip-node {
    animation: none;
  }
}

/* ============================================================
   Equipo
   ============================================================ */
.team {
  position: relative;
  overflow: hidden;
}

.team::before {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75vmax;
  height: 36vmax;
  background: radial-gradient(ellipse, rgba(15, 143, 131, 0.1), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}

.team .container {
  position: relative;
  z-index: 1;
}

.team .section-head {
  margin-bottom: 4.5rem;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.team__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.6rem 1.6rem 2.1rem;
  border-radius: 1.3rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease, box-shadow 0.35s ease;
}

.team__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.6rem;
  right: 1.6rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-purple-soft), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.team__card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(124, 58, 237, 0.16);
}

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

.team__node {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-purple-soft);
  box-shadow: 0 0 10px 2px rgba(167, 139, 250, 0.6);
  animation: team-node 3.6s ease-in-out infinite;
}

.team__avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.2rem;
  height: 5.2rem;
  margin-bottom: 1.4rem;
}

.team__avatar-core {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--c-purple), var(--c-purple-deep) 70%);
  box-shadow: 0 0 26px rgba(124, 58, 237, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.team__avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(167, 139, 250, 0.35);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.team__card:hover .team__avatar-core {
  transform: scale(1.06);
  box-shadow: 0 0 38px rgba(124, 58, 237, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.team__card:hover .team__avatar-ring {
  transform: rotate(90deg) scale(1.04);
  border-color: rgba(167, 139, 250, 0.65);
}

.team__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.team__role {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--c-muted);
}

.team__area {
  margin-top: 0.9rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: rgba(139, 92, 246, 0.08);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-purple-soft);
}

.team__focus {
  margin: 1.2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--c-muted);
}

.team__card--open {
  border-style: dashed;
  border-color: rgba(167, 139, 250, 0.28);
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.05), rgba(255, 255, 255, 0.01));
}

.team__avatar--open .team__avatar-core {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: var(--c-purple-soft);
  box-shadow: none;
}

.team__join {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.3rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-purple-soft);
  text-decoration: none;
  transition: color 0.25s ease, gap 0.25s ease;
}

.team__join:hover {
  color: #fff;
  gap: 0.7rem;
}

.team__note {
  margin-top: 2.5rem;
  text-align: center;
}

@keyframes team-node {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 6px 1px rgba(167, 139, 250, 0.4); }
  50% { opacity: 1; box-shadow: 0 0 14px 3px rgba(167, 139, 250, 0.85); }
}

@media (max-width: 560px) {
  .team__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team__node,
  .team__avatar-ring {
    animation: none;
    transition: none;
  }
}

/* ============================================================
   CTA final
   ============================================================ */
.cta {
  position: relative;
  padding: 4rem 0 8.5rem;
  background: var(--c-bg);
}

.cta__band {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 2.5rem 5.5rem;
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(167, 139, 250, 0.22);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(167, 139, 250, 0.15);
  animation: cta-ring-pulse 5s ease-in-out infinite;
}

.cta__glow {
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.cta__glow--teal {
  top: -14rem;
  left: -8rem;
  background: rgba(124, 58, 237, 0.38);
  animation: cta-drift-a 14s ease-in-out infinite alternate;
}

.cta__glow--cyan {
  bottom: -16rem;
  right: -8rem;
  background: rgba(13, 148, 136, 0.38);
  animation: cta-drift-b 18s ease-in-out infinite alternate;
}

.cta__title {
  max-width: 46rem;
  margin: 1.6rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--c-text);
}

.cta__highlight {
  color: var(--c-purple-soft);
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.45));
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.8rem;
}

@keyframes cta-drift-a {
  to { transform: translate(7rem, 5rem) scale(1.15); }
}

@keyframes cta-drift-b {
  to { transform: translate(-6rem, -4rem) scale(1.1); }
}

@keyframes cta-ring-pulse {
  0%, 100% {
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 0 1px rgba(167, 139, 250, 0.15),
      0 0 40px rgba(139, 92, 246, 0.12);
  }
  50% {
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 0 1px rgba(167, 139, 250, 0.4),
      0 0 70px rgba(139, 92, 246, 0.3);
  }
}

@media (max-width: 720px) {
  .cta__band {
    padding: 3.8rem 1.6rem 4.2rem;
    border-radius: 1.3rem;
  }

  .cta__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
  }

  .cta__actions .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta__glow,
  .cta__band {
    animation: none;
  }
}

/* ============================================================
   Formulario de contacto / postulación
   ============================================================ */
.contact {
  position: relative;
  padding: 7.5rem 0 9rem;
  background: var(--c-bg);
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 30%;
  right: -15vmax;
  width: 45vmax;
  height: 45vmax;
  background: rgba(15, 143, 131, 0.12);
  filter: blur(70px);
  pointer-events: none;
}

.contact__container {
  position: relative;
  z-index: 1;
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.contact__header {
  position: sticky;
  top: 6rem;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 1.3rem 0 1.1rem;
}

.contact__highlight {
  font-style: italic;
  color: var(--c-purple-soft);
  filter: drop-shadow(0 0 22px rgba(139, 92, 246, 0.35));
}

.contact__description {
  margin: 0;
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--c-muted);
}

.contact__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  padding: 2.4rem 2.3rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.contact__form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2.3rem;
  right: 2.3rem;
  height: 1px;
  background: var(--c-purple-soft);
  opacity: 0.5;
}

.contact__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.contact__legend {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.contact__profile-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  outline: none;
}

.contact__profile-card {
  position: relative;
  cursor: pointer;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.3s ease, background 0.3s ease,
    box-shadow 0.3s ease, transform 0.3s ease;
}

.contact__profile-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-2px);
}

.contact__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact__profile-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.2rem 1.25rem;
}

.contact__profile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.5rem;
  border-radius: 0.65rem;
  color: var(--c-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease, background 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact__profile-label {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--c-text);
}

.contact__profile-sublabel {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* estado seleccionado: la tarjeta "se activa" — vía :has(), sin JS */
.contact__profile-card.is-selected,
.contact__profile-card:has(.contact__radio:checked) {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(139, 92, 246, 0.09);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.25),
    inset 0 0 24px rgba(139, 92, 246, 0.06);
}

.contact__profile-card.is-selected .contact__profile-icon,
.contact__profile-card:has(.contact__radio:checked) .contact__profile-icon {
  color: var(--c-purple-soft);
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.3);
}

.contact__profile-card:has(.contact__radio:focus-visible) {
  outline: 2px solid var(--c-purple-soft);
  outline-offset: 3px;
}

.contact__fields {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.1rem;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact__field--full {
  grid-column: 1 / -1;
}

/* cada perfil despliega únicamente su propio bloque de campos — vía :has(), sin JS */
.contact__form:has(#profile-student:checked) .contact__fields--student,
.contact__form:has(#profile-startup:checked) .contact__fields--startup,
.contact__form:has(#profile-organization:checked) .contact__fields--organization,
.contact__form:has(#profile-university:checked) .contact__fields--university {
  display: grid;
}

.contact__submit {
  display: none;
}

.contact__form:has(.contact__radio:checked) .contact__submit {
  display: flex;
}

/* páginas "Soy ..." (perfil fijo): sin selector ni radios, se muestran directo */
.contact__fields--locked {
  display: grid;
}

.contact__submit--locked {
  display: flex;
}

.contact__profile-options a.contact__profile-card {
  text-decoration: none;
}

.contact__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.contact__required {
  color: var(--c-purple-soft);
}

.contact__optional {
  color: rgba(255, 255, 255, 0.35);
  text-transform: none;
  letter-spacing: 0.03em;
}

.contact__input {
  width: 100%;
  padding: 0.85rem 1.05rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: var(--c-text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact__input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

/* El popup nativo del <select> se pinta con fondo claro en la mayoría de
   navegadores; sin esto el texto claro heredado de .contact__input queda
   ilegible dentro del propio dropdown. */
select.contact__input option {
  color: #111827 !important;
  background: #fff !important;
}

.contact__input:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.6);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18), 0 0 20px rgba(124, 58, 237, 0.12);
}

.contact__input[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.6);
}

.contact__input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.contact__textarea {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.6;
}

.contact__field-error {
  margin: 0;
  min-height: 1em;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #fca5a5;
}

.contact__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
}

.contact__checkbox {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--c-purple);
  cursor: pointer;
}

.contact__consent-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--c-muted);
}

.contact__submit {
  width: 100%;
  justify-content: center;
}

.contact__submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.contact__feedback {
  padding: 1rem 1.2rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.55;
  animation: contact-feedback-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact__feedback.is-success {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.contact__feedback.is-error {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

@keyframes contact-feedback-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .contact__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact__header {
    position: static;
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
  }

  .contact__description {
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .contact__form {
    padding: 1.8rem 1.4rem;
  }

  .contact__fields,
  .contact__profile-options {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact__feedback {
    animation: none;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative;
  background: var(--c-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  bottom: -18vmax;
  left: 50%;
  transform: translateX(-50%);
  width: 60vmax;
  height: 24vmax;
  background: rgba(76, 29, 149, 0.14);
  filter: blur(60px);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem 2rem;
  padding: 4.5rem 0 3.5rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--c-text);
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.footer__wordmark b {
  font-weight: 700;
}

.footer__tagline {
  max-width: 20rem;
  margin: 1rem 0 1.6rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--c-muted);
}

.footer__socials {
  display: flex;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  color: var(--c-muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.25s ease, border-color 0.25s ease,
    background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.footer__social:hover {
  color: var(--c-purple-soft);
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.25);
  transform: translateY(-2px);
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__nav-title {
  margin: 0 0 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.footer__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer__nav-link::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-purple-soft);
  box-shadow: 0 0 8px 2px rgba(167, 139, 250, 0.7);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer__nav-link:hover {
  color: var(--c-text);
  transform: translateX(2px);
}

.footer__nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.footer__contact-link svg {
  color: var(--c-purple-soft);
  flex-shrink: 0;
}

.footer__mantra {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 2.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal-link {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer__legal-link:hover {
  color: var(--c-purple-soft);
}

@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

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

  .footer__tagline {
    max-width: 26rem;
  }
}

@media (max-width: 560px) {
  .footer__inner {
    grid-template-columns: 1fr;
    padding: 3.5rem 0 3rem;
  }

  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   Páginas legales (privacidad / términos)
   ============================================================ */
.legal-hero {
  position: relative;
  padding: 10rem 0 4rem;
  background: var(--c-bg);
  overflow: hidden;
}

.legal-hero__container {
  position: relative;
  z-index: 2;
}

.legal-hero__title {
  margin: 1.2rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.legal-hero__updated {
  margin: 0;
  color: var(--c-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-body {
  background: var(--c-bg);
  padding: 1rem 0 6rem;
}

.legal-prose {
  max-width: 46rem;
  margin: 0 auto;
}

.legal-prose h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.9rem;
}

.legal-prose p,
.legal-prose li {
  color: var(--c-muted);
  line-height: 1.75;
  font-size: 0.98rem;
}

.legal-prose ul {
  padding-left: 1.2rem;
}

.legal-prose strong {
  color: var(--c-text);
}

.legal-prose a {
  color: var(--c-purple-soft);
  text-decoration: underline;
}

/* ============================================================
   Páginas de rol (soy-talento / soy-startup / soy-organizacion / soy-universidad)
   ============================================================ */
.role-hero {
  position: relative;
  padding: 10rem 0 5rem;
  background: var(--c-bg);
  overflow: hidden;
}

.role-hero__container {
  position: relative;
  z-index: 2;
  max-width: 44rem;
}

.role-hero__title {
  margin: 1.2rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.role-hero__description {
  margin: 0 0 2rem;
  color: var(--c-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.role-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.role-details__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 860px) {
  .role-details__layout {
    grid-template-columns: 1fr;
  }
}

.role-details__head {
  margin: 0 0 1.8rem;
  text-align: left;
  max-width: none;
}

.role-details__head h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.role-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--c-muted);
  line-height: 1.6;
}

.role-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  color: var(--c-purple-soft);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.role-list__icon--expect {
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
