:root {
  --bg:        #0a0812;
  --bg-alt:    #120d1f;
  --bg-soft:   #170f27;
  --ink:       #f4f5f8;
  --ink-soft:  #c9cdd7;
  --muted:     #8b8fa0;
  --line:      #241838;
  --line-soft: #1a1128;

  --brand:     #f4d400;
  --brand-600: #ffe33f;
  --brand-ink: #0a0812;
  --amber:     #fb923c;
  --accent:    #d946ef;
  --accent-2:  #b91c7b;

  --danger:    #ef4444;
  --ok:        #10b981;

  --radius:     14px;
  --radius-sm:  10px;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.5);
  --shadow-md:  0 20px 40px -20px rgba(0,0,0,.7);
  --shadow-yellow: 0 10px 40px -10px rgba(244, 212, 0, .35);

  --container: 1200px;
  --gap:       clamp(1rem, 2vw, 1.5rem);

  --fs-body:   clamp(1rem, .4vw + .95rem, 1.0625rem);
  --fs-lede:   clamp(1.05rem, .6vw + 1rem, 1.25rem);
  --fs-h1:     clamp(2.4rem, 5vw + 1rem, 4.75rem);
  --fs-h2:     clamp(1.6rem, 1.8vw + 1rem, 2.5rem);
  --fs-h3:     clamp(1.125rem, .5vw + 1rem, 1.25rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* `overflow-x: clip` evita el desbordamiento horizontal SIN crear un scroll
     container nuevo. Diferencia clave con `hidden`: `clip` no rompe el
     position:sticky del header en Chrome móvil, que era la causa de que el
     menú a veces se quedara fijo y a veces no al hacer scroll. */
  overflow-x: clip;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--brand-600); }

.prose a { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { margin: 0 0 1em; }

.muted { color: var(--muted); }
.hl    { color: var(--brand); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: var(--brand-ink);
  padding: .5rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.narrow    { max-width: 780px; margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 .75rem; font-weight: 700;
}

.lede { font-size: var(--fs-lede); color: var(--ink-soft); max-width: 62ch; }

/* =======================================================
   HEADER / NAV
   ======================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 8, 18, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); }

.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); font-weight: 800;
  font-size: clamp(1.4rem, 1vw + 1.1rem, 1.65rem);
  letter-spacing: -0.035em;
}
.brand:hover { color: var(--ink); }
.brand-name .hl { color: var(--brand); }

.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 2rem;
}
.primary-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .98rem;
  padding: .5rem 0;
  display: inline-flex; align-items: center; gap: .35rem;
  position: relative;
  transition: color .15s ease;
}
.primary-nav a:hover,
.primary-nav [aria-current="page"] { color: var(--brand); }

/* Scrollspy: enlace activo según sección visible (JS añade .is-active) */
.primary-nav a.is-active:not(.nav-cta) {
  color: var(--brand);
  font-weight: 600;
}
.primary-nav a.is-active:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.primary-nav .nav-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem;
  background: var(--brand);
  color: var(--brand-ink);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -0.005em;
  box-shadow: 0 6px 22px -6px rgba(244, 212, 0, .55);
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.primary-nav .nav-cta:hover,
.primary-nav .nav-cta[aria-current="page"] {
  background: var(--brand-600);
  color: var(--brand-ink);
  box-shadow: 0 10px 30px -6px rgba(244, 212, 0, .7);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none; background: transparent; border: 0; padding: .5rem;
  cursor: pointer;
  position: relative;
  z-index: 51;
  border-radius: 6px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  transition: background .15s ease;
}
.nav-toggle:hover,
.nav-toggle:focus-visible { background: rgba(255, 255, 255, .08); outline: none; }
.nav-toggle:hover span,
.nav-toggle:focus-visible span,
.nav-toggle[aria-expanded="true"] span { background: var(--brand); }
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  margin: 3px 0;
  border-radius: 2px;
  transform-origin: center;
  transition: transform .25s ease, opacity .2s ease, background .15s ease;
}

/* Cuando el menú está abierto, las 3 barras del icono hamburguesa se
   transforman en una "X": la primera rota 45° y baja, la del medio
   desaparece, la tercera rota -45° y sube. Sin cambiar el HTML. */
/* Con margin: 3px 0 + height: 2px en flex-direction: column, la distancia
   centro-a-centro entre barras es 8px (margin-bottom 3 + margin-top 3 + 2).
   translateY(±8px) cruza las dos diagonales EXACTAMENTE en el centro de
   la barra del medio (que se desvanece). */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; flex-direction: column; }

  /* Menú móvil tipo "fullscreen panel": cubre toda la pantalla bajo el
     header (76px) hasta el borde inferior, con fondo opaco. Así no se ve la
     web detrás cuando está abierto. position: fixed para que no se mueva al
     hacer scroll por error. */
  .primary-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--bg);
    display: none;
    padding: 0;
    z-index: 49;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav[data-open="true"] { display: block; }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  /* Cada <li> es una fila completa con separador inferior. La pulsación
     se delega al <a> que ocupa el ancho íntegro, así clicar en cualquier
     punto de la fila activa el enlace (no solo el texto). */
  .primary-nav li {
    border-bottom: 1px solid var(--line-soft);
  }
  .primary-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.15rem 1.25rem;
    border-radius: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
  }
  .primary-nav a:hover,
  .primary-nav a:active { background: var(--bg-soft); }
  .primary-nav a.is-active:not(.nav-cta) { color: var(--brand); }
  /* En móvil el subrayado de scrollspy estorba: lo desactivamos */
  .primary-nav a.is-active:not(.nav-cta)::after { display: none; }

  /* Botón de CTA al final, centrado y separado del último <li> */
  .primary-nav .nav-cta {
    margin: 1.5rem 1.25rem;
    width: calc(100% - 2.5rem);
    justify-content: center;
  }
  .primary-nav li:last-child {
    border-bottom: 0;
  }
}

/* Bloqueo de scroll del <body> cuando el menú móvil está abierto. */
body.nav-open { overflow: hidden; }

/* =======================================================
   HERO
   ======================================================= */
.hero {
  position: relative;
  overflow: hidden;
  /* Altura: en móvil usamos 100svh (small viewport — estable, no se ajusta
     con la URL bar al hacer scroll). En desktop sobrescribimos a 100dvh
     en el media query de abajo, que SÍ se actualiza si el usuario
     redimensiona la ventana del navegador. Es comportamiento nativo del
     navegador, sin JS. */
  height: 100vh;
  height: 100svh;
  /* Flex simple: hero-inner con TODO el contenido (badge + h1 + lede +
     outcomes + invite) centrado como un único bloque. Así el invite siempre
     está debajo de las outcomes en el flujo natural, no al fondo del hero. */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* En desktop centramos vertical y horizontalmente. Sumamos 76px al
     padding-top para compensar el header sticky: así el centro óptico cae
     en el punto medio del área visible (no del hero entero, cuya parte
     superior queda detrás del header). Resultado: misma distancia entre
     el header y el badge que entre el CTA y el borde inferior. */
  justify-content: center;
  padding: calc(76px + clamp(1rem, 2vw, 2rem)) 0 clamp(1rem, 2vw, 2rem);
  background:
    radial-gradient(70% 90% at 0% 50%,  rgba(244, 212, 0, .14), transparent 60%),
    radial-gradient(70% 90% at 100% 50%, rgba(217, 70, 239, .16), transparent 60%),
    radial-gradient(55% 60% at 50% 110%, rgba(217, 70, 239, .08), transparent 70%),
    var(--bg);
  --mx: 50%;
  --my: 50%;
}

/* Desktop: usamos 100dvh (dynamic viewport height) que SÍ adapta el alto
   del hero a medida que el usuario redimensiona la ventana del navegador.
   En desktop no hay URL bar variable, así que dvh es estable. */
@media (min-width: 641px) {
  .hero { height: 100dvh; }
}

.circuits {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* static traces (PCB copper) — subtle color, no filters */
.circuits .trails path {
  fill: none;
  stroke-width: 1;
  stroke-linecap: square;
  stroke-linejoin: miter;
  opacity: .22;
}
.circuits .trails .y { stroke: var(--brand); }
.circuits .trails .m { stroke: var(--accent); }
.circuits .trails .pin {
  stroke: rgba(255, 255, 255, .3);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: .6;
}

/* terminator pads — flat, no filter */
.circuits .pads .pad { stroke-width: .8; }
.circuits .pads .pad.y { fill: rgba(244, 212, 0, .25); stroke: var(--brand);  }
.circuits .pads .pad.m { fill: rgba(217, 70, 239, .25); stroke: var(--accent); }

/* vías (through-hole) — flat */
.circuits .vias .via {
  fill: #0a0812;
  stroke-width: 1.2;
}
.circuits .vias .via.y { stroke: var(--brand);  }
.circuits .vias .via.m { stroke: var(--accent); }

/* flowing current pulses — animated, NO filter */
.circuits .pulse {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 22 1400;
  animation: flow linear infinite;
  will-change: stroke-dashoffset;
}
.circuits .pulse.y { stroke: var(--brand);  }
.circuits .pulse.m { stroke: var(--accent); }

/* central chip — flat, no heavy shadows */
.circuits .chip-body {
  fill: #0c0618;
  stroke: rgba(217, 70, 239, .5);
  stroke-width: 1;
}
.circuits .chip-die {
  fill: #15092c;
  stroke: rgba(244, 212, 0, .3);
  stroke-width: .8;
}
.circuits .chip-core line {
  stroke: rgba(244, 212, 0, .22);
  stroke-width: .6;
}
.circuits .chip-indicator {
  fill: var(--brand);
  animation: twinkle 2.4s ease-in-out infinite;
}

@keyframes flow {
  from { stroke-dashoffset: 1422; }
  to   { stroke-dashoffset: 0; }
}
@keyframes twinkle {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}

.hero-glow {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
  background:
    radial-gradient(480px 380px at var(--mx) var(--my),
      rgba(244, 212, 0, .09),
      rgba(217, 70, 239, .05) 40%,
      transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
}
.hero:hover .hero-glow { opacity: 1; }

/* Dark vignette behind hero content for text contrast */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 52%,
      rgba(10, 8, 18, .78) 0%,
      rgba(10, 8, 18, .45) 45%,
      rgba(10, 8, 18, 0) 78%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  padding: 0 1.25rem;
  width: 100%;
  margin: 0 auto;
  /* Flujo normal de bloques, centrado horizontal con text-align + margin:auto.
     Esto deja al hero (flex column, justify-content:center) colocar todo el
     hero-inner centrado verticalmente como un único bloque. */
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1.1rem;
  border: 1.5px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(244, 212, 0, .04);
  margin-bottom: clamp(1.25rem, 2.6vw, 2.25rem);
}
.hero-badge svg { width: 16px; height: 16px; }

.hero h1 {
  /* Override a --fs-h1 global (clamp 2.4rem→4.75rem) con algo más comedido
     para garantizar que todo cabe en viewport corto sin scroll. */
  font-size: clamp(2rem, 3.5vw + 1rem, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 clamp(1rem, 1.8vw, 1.75rem);
}
.hero h1 .hl { color: var(--brand); }

.hero-lede {
  color: #e9ecf3;
  font-size: clamp(.95rem, .35vw + .9rem, 1.1rem);
  max-width: 58ch;
  margin: 0 auto clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.45;
}
.hero-lede .hl {
  color: var(--brand);
  font-weight: 700;
}

/* Outcomes strip inside the hero — replaces the old CTA. Compact and subtle so
   it doesn't compete with the H1 but offers a clear value snapshot before the
   user even scrolls. Margin-top extra para despegarlas de la lede. */
.hero-outcomes {
  list-style: none;
  margin: clamp(1rem, 2.2vw, 1.75rem) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .7rem;
  max-width: 820px;
  width: 100%;
  text-align: left;
}
.hero-outcomes li {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem .9rem;
  background: rgba(12, 10, 24, .72);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, background .15s ease;
}
.hero-outcomes li:hover {
  border-color: rgba(244, 212, 0, .45);
  background: rgba(24, 20, 44, .8);
}
.hero-outcome-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(244, 212, 0, .12);
  color: var(--brand);
  flex-shrink: 0;
}
.hero-outcome-icon svg { width: 17px; height: 17px; }
.hero-outcomes strong {
  color: #f5f6fb;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: -.005em;
  line-height: 1.2;
}

@media (max-width: 780px) {
  .hero-outcomes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 480px;
  }
}
@media (max-width: 380px) {
  .hero-outcomes strong { font-size: .8rem; }
  .hero-outcome-icon { width: 28px; height: 28px; }
  .hero-outcome-icon svg { width: 15px; height: 15px; }
}

/* Scroll invite — va DENTRO del hero-inner, justo debajo de las outcomes.
   Actúa como CTA suave ("sigue leyendo") antes del "Hablemos de tu proyecto"
   que aparece más abajo cuando el usuario ya tiene contexto. */
.hero-scroll-invite {
  margin-top: clamp(2rem, 3.8vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  z-index: 3;
  position: relative;
}
.hero-scroll-text {
  margin: 0;
  color: var(--brand);
  font-size: clamp(.95rem, .2vw + .9rem, 1.05rem);
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
}
.scroll-cue {
  color: var(--brand);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  pointer-events: none;
}
.scroll-cue svg { width: 28px; height: 28px; }

/* CTA principal del hero, justo bajo la flecha decorativa. Hereda el
   estilo de .btn .btn-primary .btn-lg, solo separamos un poco verticalmente. */
.hero-cta {
  margin-top: clamp(.4rem, 1vw, .75rem);
}

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

@media (max-width: 640px) {
  .circuits { opacity: .6; }

  /* En móvil anclamos el contenido al top: el viewport es estrecho y el
     contenido ocupa casi toda su altura, así que centrarlo lo aleja del
     header y queda visualmente "hundido". Con flex-start el badge queda
     pegado al header y el espacio sobrante (si lo hay) cae al fondo. */
  .hero {
    justify-content: flex-start;
    padding: calc(76px + clamp(.5rem, 1.5vw, 1rem)) 0 clamp(1.5rem, 4vw, 2.5rem);
  }

  /* Compactar el contenido del hero en móvil para que quepa cómodamente
     en el viewport y la simetría arriba/abajo se perciba correctamente. */
  .hero-badge {
    padding: .45rem 1rem;
    font-size: .72rem;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
  }
  .hero h1 {
    font-size: clamp(1.7rem, 6.5vw, 2.2rem);
    line-height: 1.1;
    margin-bottom: clamp(1.25rem, 3.5vw, 1.75rem);
  }
  .hero-lede {
    font-size: clamp(.9rem, 3.6vw, 1.05rem);
    line-height: 1.55;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
  }
  .hero-outcomes {
    margin-top: clamp(1.25rem, 3.5vw, 1.75rem);
    gap: .55rem;
  }
  .hero-outcomes li {
    padding: .65rem .8rem;
    gap: .55rem;
  }
  .hero-outcome-icon { width: 28px; height: 28px; border-radius: 8px; }
  .hero-outcome-icon svg { width: 15px; height: 15px; }
  .hero-outcomes strong { font-size: .82rem; }
  .hero-scroll-invite {
    margin-top: clamp(2rem, 5vw, 2.75rem);
    gap: .9rem;
  }
  .scroll-cue { width: 32px; height: 32px; }
  .scroll-cue svg { width: 22px; height: 22px; }
  .hero-cta { padding: .85rem 1.6rem; font-size: 1rem; }
}

/* =======================================================
   BUTTONS
   ======================================================= */
.btn {
  display: inline-block;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  /* transform: 200ms para que el "lift" del hover se sienta suave; con 50ms
     se percibía como un salto al hacer click. El :active sigue siendo
     instantáneo porque sobreescribe el transform sin transición visible. */
  transition: transform .2s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease, color .15s ease;
}
/* Hover lift global para todos los botones EXCEPTO el del menú principal
   (.primary-nav .nav-cta), que tiene su propio sistema de hover sutil para
   no distraer en la barra de navegación. */
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-yellow); }
.btn-primary:hover {
  background: var(--brand-600);
  color: var(--brand-ink);
  /* Sombra amarilla más extendida y desplazada para reforzar la sensación
     de elevación al hacer hover. */
  box-shadow: 0 12px 28px rgba(244, 212, 0, .35), 0 4px 10px rgba(244, 212, 0, .25);
}

/* Respeto a usuarios que prefieren reducir movimiento: anulamos el lift
   pero mantenemos el cambio de color/sombra como feedback visual. */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
}

/* =======================================================
   SECTIONS
   ======================================================= */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-hero-sm { padding-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: 0; }

.section-head { margin-bottom: 2rem; }
.section-head h2 { margin-bottom: .25rem; }

/* =======================================================
   PROBLEMS SECTION
   ======================================================= */
/* =========================================================
   CONTINUIDAD CROMÁTICA ENTRE SECCIONES
   Cada bloque empieza con el color con el que termina el anterior, y los
   halos radiales se posicionan hacia el centro/inferior (no al borde
   superior) para que el degradado se sienta ambiente, no recortado.
   ========================================================= */
.section-problems {
  background:
    radial-gradient(110% 70% at 50% 50%, rgba(217, 70, 239, .08), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(244, 212, 0, .03), transparent 70%),
    linear-gradient(180deg, #0c0a18 0%, #100e22 100%);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  position: relative;
  border-top: 0;
  border-bottom: 0;
}

.section-head.center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
}
.section-head.center .eyebrow { margin-bottom: .65rem; }
.section-head.center .muted { margin-top: .5rem; }

.problems-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.problem {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.problem:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.problem-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(244, 212, 0, .08);
  color: var(--brand);
  margin-bottom: 1rem;
}
.problem-icon svg { width: 24px; height: 24px; }

.problem h3 {
  font-size: 1.125rem;
  margin: 0 0 .5rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.01em;
}
.problem p {
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* =======================================================
   SERVICES SECTION
   ======================================================= */
.section-services {
  background:
    radial-gradient(95% 55% at 50% 50%, rgba(244, 212, 0, .04), transparent 60%),
    linear-gradient(180deg, #100e22 0%, #141229 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
}
.section-services .service {
  background: #22242f;
  border-color: #2e3142;
}
.section-services .service:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, #2e3142);
  background: #282b38;
}
.section-services .service-icon {
  background: rgba(244, 212, 0, .12);
}

.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.service {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.service:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.service-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(244, 212, 0, .1);
  color: var(--brand);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; }

.service h3 {
  font-size: 1.125rem;
  margin: 0 0 .5rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.service p {
  color: var(--ink-soft);
  margin: 0 0 1rem;
  line-height: 1.55;
}

/* =======================================================
   OUTCOMES STRIP (business problems we solve)
   ======================================================= */
/* =======================================================
   CALLOUT CTA (prominent problem/service footers)
   ======================================================= */
.callout-cta {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(244, 212, 0, .12), transparent 60%),
    radial-gradient(120% 100% at 100% 100%, rgba(217, 70, 239, .12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.callout-cta__icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 8px 24px -8px rgba(244, 212, 0, .5);
  flex-shrink: 0;
}
.callout-cta__icon svg { width: 28px; height: 28px; }
.callout-cta__body h3 {
  margin: 0 0 .3rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.015em;
}
.callout-cta__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}
.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1.02rem;
}
@media (max-width: 720px) {
  .callout-cta { grid-template-columns: 1fr; text-align: center; }
  .callout-cta__icon { margin: 0 auto; }
  .callout-cta .btn { justify-self: center; }
}

/* =======================================================
   CASOS DE ÉXITO
   ======================================================= */
.section-casos {
  background: linear-gradient(180deg, #14102a 0%, #14122a 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
}

.cases-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.case {
  background: #22242f;
  border: 1px solid #2e3142;
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
  position: relative;
}
.case-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: .35rem .75rem;
  background: rgba(244, 212, 0, .1);
  border: 1px solid rgba(244, 212, 0, .35);
  color: var(--brand);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
.case:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, #2e3142);
  background: #282b38;
  transform: translateY(-2px);
}
.case-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(244, 212, 0, .12);
  color: var(--brand);
  margin-bottom: 1.25rem;
}
.case-icon svg { width: 26px; height: 26px; }
.case h3 {
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 0 0 .65rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.01em;
}
.case p {
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
  font-size: .96rem;
}
.case-metric {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--line));
  color: var(--ink-soft);
  font-size: .9rem;
  letter-spacing: .01em;
}
.case-metric strong {
  color: var(--brand);
  font-weight: 800;
  font-size: 1.15rem;
  margin-right: .35rem;
  letter-spacing: -.01em;
}

/* =======================================================
   TESTIMONIOS
   ======================================================= */
.section-testimonios {
  background:
    radial-gradient(85% 55% at 50% 50%, rgba(244, 212, 0, .04), transparent 60%),
    linear-gradient(180deg, #14122a 0%, #161430 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}

.testimonial {
  margin: 0;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.testimonial:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background: rgba(255, 255, 255, .06);
  transform: translateY(-2px);
}

.testimonial blockquote {
  margin: 0;
  position: relative;
  padding-top: .75rem;
}
.testimonial blockquote::before {
  content: "\201C";
  position: absolute;
  top: -1.75rem; left: -.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--brand);
  opacity: .35;
  pointer-events: none;
}
.testimonial blockquote p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: .98rem;
}

.stars {
  color: var(--brand);
  font-size: 1.15rem;
  letter-spacing: 3px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(244, 212, 0, .25));
}

.author {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.author-photo {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .15), transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  /* Borde con tono de marca translúcido. Antes era blanco a 12% pero
     desaparecía sobre fotos con fondo claro (p.ej. Francisco Fábrega
     fotografiado contra una pared blanca). Un magenta translúcido
     contrasta con cualquier foto y mantiene la coherencia con la
     paleta del sitio. */
  border: 2px solid rgba(217, 70, 239, .35);
  display: flex;
  align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px -4px rgba(217, 70, 239, .35);
}
.testimonial:nth-child(2) .author-photo { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.15), transparent 60%), linear-gradient(135deg, var(--accent) 0%, var(--brand) 100%); }
.testimonial:nth-child(3) .author-photo { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.15), transparent 60%), linear-gradient(225deg, var(--brand) 0%, var(--accent) 100%); }
.testimonial:nth-child(4) .author-photo { background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.15), transparent 60%), linear-gradient(315deg, var(--accent) 0%, var(--brand) 100%); }
.testimonial:nth-child(5) .author-photo { background: radial-gradient(circle at 30% 70%, rgba(255,255,255,.15), transparent 60%), linear-gradient(45deg, var(--brand) 0%, var(--accent) 100%); }
.testimonial:nth-child(6) .author-photo { background: radial-gradient(circle at 70% 70%, rgba(255,255,255,.15), transparent 60%), linear-gradient(180deg, var(--accent) 0%, var(--brand) 100%); }
/* Cuando la foto es una imagen real, anulamos sombra interna del gradiente */
.author-photo:has(img) {
  background: var(--surface-2, #1a1426);
}
.author-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.author-initial {
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(10, 8, 18, .7);
  letter-spacing: -.02em;
}
.author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.author-info strong {
  color: var(--ink);
  font-size: .96rem;
  font-weight: 700;
}
.author-info span {
  color: var(--muted);
  font-size: .85rem;
  margin-top: .15rem;
}

/* =======================================================
   NOSOTROS
   ======================================================= */
.section-nosotros {
  /* La sección ahora vive entre Testimonios (cierra en #161430) y Precios
     (abre en #0c0a18). Top a #161430 y bottom a #0c0a18 para una
     transición invisible con ambas vecinas. El carácter violeta lo
     aporta un halo radial central amplio y sutil (.12), que se funde
     sin bordes con las secciones contiguas. */
  background:
    radial-gradient(120% 75% at 50% 50%, rgba(217, 70, 239, .12), transparent 70%),
    radial-gradient(70% 55% at 85% 55%, rgba(217, 70, 239, .08), transparent 70%),
    radial-gradient(60% 50% at 15% 50%, rgba(217, 70, 239, .05), transparent 70%),
    linear-gradient(180deg, #161430 0%, #14102a 35%, #14102a 65%, #0c0a18 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
}

.founders {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap;
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}
.founder {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
}
.founder-photo {
  width: clamp(120px, 18vw, 160px);
  height: clamp(120px, 18vw, 160px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.15), transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 40px -14px rgba(217, 70, 239, .55);
  overflow: hidden;
  position: relative;
}
.founder-photo:has(img) {
  background: var(--surface-2, #1a1426);
}
.founder-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.founder-initial {
  font-size: clamp(2.8rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: rgba(10, 8, 18, .65);
  letter-spacing: -.03em;
  line-height: 1;
}
.founder figcaption { text-align: center; }
.founder figcaption h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.founder figcaption p {
  margin: .15rem 0 0;
  font-size: .9rem;
}

.founders-bio {
  max-width: 780px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.founders-bio p {
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 1.02rem;
}
.founders-bio strong { color: var(--ink); }

.pillars {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.pillars li {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s ease, transform .2s ease;
}
.pillars li:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  transform: translateY(-2px);
}
.pillar-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(244, 212, 0, .1);
  color: var(--brand);
  margin-bottom: .9rem;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillars li h3 {
  font-size: 1.05rem;
  margin: 0 0 .4rem;
  color: var(--ink);
  font-weight: 700;
}
.pillars li p {
  color: var(--ink-soft);
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
}

/* =======================================================
   PROCESS (Cómo trabajamos paso a paso)
   ======================================================= */
.section-process {
  background:
    radial-gradient(80% 50% at 50% 55%, rgba(244, 212, 0, .04), transparent 70%),
    /* El top empalma con el cierre de Services (#141229). Tramo flat los
       primeros 25% para que la transición sea invisible, luego oscurece
       suavemente hasta #14102a (con el que abre Workflow). */
    linear-gradient(180deg, #141229 0%, #141229 25%, #14102a 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
}

.process {
  list-style: none;
  padding: 0;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.process-step:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 212, 0, .35);
  box-shadow: 0 10px 30px -12px rgba(244, 212, 0, .18);
}

.process-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--brand);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.process-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 212, 0, .35), transparent);
}

.process-body h3 {
  font-size: 1.1rem;
  margin: 0 0 .5rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}
.process-body p {
  color: var(--ink-soft);
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
}

/* =======================================================
   CLIENTS STRIP — banda de logos de clientes entre hero y problemas
   Mismo patrón visual que .process-tools (monocromo blanco al 65% por
   defecto, color real en hover), pero como banda independiente con un
   pequeño borde superior/inferior para separarla del resto.
   ======================================================= */
.section-clients {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  /* Recoge los halos laterales que quedan al fondo del hero (amarillo a la
     izquierda, magenta a la derecha) y los desvanece progresivamente hacia
     abajo. Así la atmósfera del hero "respira" un poco más en el primer
     bloque y la frontera entre ambos es invisible. */
  background:
    radial-gradient(70% 100% at 0% 0%,  rgba(244, 212, 0, .05), transparent 65%),
    radial-gradient(70% 100% at 100% 0%, rgba(217, 70, 239, .06), transparent 65%),
    linear-gradient(180deg, #0a0812 0%, #0c0a18 100%);
  border-top: 0;
  border-bottom: 0;
}
.clients-label {
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}
.clients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  /* nowrap para forzar los 4 en una sola línea en desktop. En móvil/tablet
     se vuelve a wrap mediante media query más abajo. */
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
/* Wrapper de filas: cada <ul.clients-list> es una fila independiente que
   centra y wrappa sus propios logos. Apilamos las filas en columna con un
   gap consistente para que la "fila 1" y la "fila 2" sean explícitas y
   robustas, sin trucos de flex-basis sobre un <li> separador. */
.clients-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.clients-list li {
  display: flex;
  align-items: center;
  padding: .5rem .9rem;
  border-radius: 12px;
  flex-shrink: 0;
  /* Pastilla blanca que solo aparece al hacer hover. Permite a los logos
     con texto oscuro (Coolmod, Perfume's Club, Meliá…) mantener sus
     colores reales sobre un fondo legible. Patrón B2B estándar. */
  transition: background .2s ease;
}
.clients-list li:hover,
.clients-list li:focus-within {
  background: #fff;
}
.clients-list img {
  display: block;
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1) opacity(.6);
  transition: filter .25s ease, transform .2s ease;
}

/* Alturas específicas por logo para equilibrar el peso visual.
   Cada logo tiene proporción y carga gráfica distinta: los wordmarks
   alargados quedan pequeños a alturas estándar, los logos cuadrados
   con icono dominan demasiado. Estos valores buscan que todos los
   logos tengan un peso visual similar dentro de la fila. */
.clients-list img[src*="coolmod"]    { height: 40px; }
.clients-list img[src*="perfumes"]   { height: 30px; }
.clients-list img[src*="melia"]      { height: 34px; }
.clients-list img[src*="mayoral"]    { height: 38px; }
.clients-list img[src*="neobookings"]{ height: 36px; }
.clients-list img[src*="netelip"]    { height: 48px; }
.clients-list img[src*="uib"]        { height: 44px; }
.clients-list img[src*="infortisa"]  { height: 44px; }
.clients-list li:hover img,
.clients-list li:focus-within img {
  filter: none;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .clients-list li:hover img,
  .clients-list li:focus-within img { transform: none; }
}

/* Tablet/móvil: dejamos que los logos se reorganicen en dos filas */
@media (max-width: 880px) {
  .clients-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
  .clients-list img { height: 26px; }
  .clients-list img[src*="coolmod"]    { height: 32px; }
  .clients-list img[src*="perfumes"]   { height: 24px; }
  .clients-list img[src*="melia"]      { height: 28px; }
  .clients-list img[src*="mayoral"]    { height: 31px; }
  .clients-list img[src*="neobookings"]{ height: 29px; }
  .clients-list img[src*="netelip"]    { height: 39px; }
  .clients-list img[src*="uib"]        { height: 36px; }
  .clients-list img[src*="infortisa"]  { height: 36px; }
}

/* Tech-stack strip — logos de las herramientas con las que trabajamos.
   Por defecto en monocromo (grayscale + opacidad reducida). Al pasar el ratón
   sobre cada uno, recupera su color original con un leve translateY. */
.process-tools {
  margin: clamp(3rem, 5vw, 4rem) 0 clamp(3rem, 5vw, 4rem);
  text-align: center;
}
.process-tools__label {
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}
.process-tools__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem);
}
.process-tools__list li {
  display: flex;
  align-items: center;
}
.process-tools__list img {
  display: block;
  height: 30px;
  width: auto;
  /* Default: monocromo apagado para que todos los logos se vean uniformes.
     brightness(0) invert(1) los pasa a blanco puro (cualquier color de origen
     queda igualado), y opacity .65 los suaviza sobre el fondo oscuro. */
  filter: brightness(0) invert(1) opacity(.65);
  transition: filter .25s ease, transform .2s ease;
}

/* Override por logo: ElevenLabs tiene una proporción muy alargada (7.7:1),
   así que a la altura común se renderiza mucho más ancho que el resto.
   Lo bajamos para que no domine la fila. */
.process-tools__list img[src*="elevenlabs"] { height: 22px; }
/* Gemini: el SVG tiene whitespace inferior dentro del viewBox y queda
   visualmente más abajo que el resto. Lo subimos un par de píxeles para
   alinearlo con el baseline óptico de los demás logos. */
.process-tools__list img[src*="gemini"] { transform: translateY(-3px); }
.process-tools__list li:hover img,
.process-tools__list li:focus-within img {
  filter: none;
  transform: translateY(-2px);
}
/* Gemini parte de translateY(-3px); en hover lo elevamos a -5px para mantener
   la animación coherente con el resto sin perder su alineación base. */
.process-tools__list li:hover img[src*="gemini"],
.process-tools__list li:focus-within img[src*="gemini"] {
  transform: translateY(-5px);
}

@media (prefers-reduced-motion: reduce) {
  .process-tools__list li:hover img,
  .process-tools__list li:focus-within img { transform: none; }
  /* Conservamos la alineación base de Gemini: no es animación, es corrección
     visual estática. */
  .process-tools__list img[src*="gemini"],
  .process-tools__list li:hover img[src*="gemini"],
  .process-tools__list li:focus-within img[src*="gemini"] {
    transform: translateY(-3px);
  }
}

@media (max-width: 600px) {
  .process-tools__list img { height: 26px; }
  .process-tools__list img[src*="elevenlabs"] { height: 18px; }
  .process-tools__list { gap: 1.5rem 2rem; }
}

/* =======================================================
   PRECIOS
   ======================================================= */
.section-precios {
  background:
    radial-gradient(85% 60% at 50% 50%, rgba(244, 212, 0, .06), transparent 60%),
    radial-gradient(55% 50% at 100% 100%, rgba(217, 70, 239, .07), transparent 70%),
    /* Top empalma con el cierre de Nosotros (#0c0a18). Subimos
       gradualmente a #14112d que conecta con el FAQ. */
    linear-gradient(180deg, #0c0a18 0%, #14112d 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
}

.pricing {
  list-style: none;
  padding: 0;
  margin: clamp(2.5rem, 4vw, 3.5rem) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* Gap más generoso en desktop para que las flechas conectoras tengan aire
     visible a ambos lados, sin tocar los bordes de las cards. */
  gap: clamp(2.5rem, 4vw, 3.5rem);
  position: relative;
  align-items: stretch;
}

.pricing-plan {
  position: relative;
  background: var(--bg-alt);
  /* Borde sólido con el color del plan a ~50% de opacidad: visible sin gritar */
  border: 1px solid var(--plan-edge);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.25rem, 2vw, 1.75rem) clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  /* Cada plan usa su propio color de acento a través de custom properties
     para no duplicar reglas. Por defecto = amarillo de marca. */
  --plan: var(--brand);
  --plan-soft: rgba(244, 212, 0, .12);
  --plan-border: rgba(244, 212, 0, .3);       /* borde punteado del precio */
  --plan-edge:   rgba(244, 212, 0, .5);       /* borde sólido del card */
  --plan-edge-hover: rgba(244, 212, 0, .8);
  --plan-bg: rgba(244, 212, 0, .05);
  --plan-glow: rgba(244, 212, 0, .2);
}
.pricing-plan:hover {
  transform: translateY(-3px);
  border-color: var(--plan-edge-hover);
  box-shadow: 0 20px 40px -20px var(--plan-glow);
}

/* Fase 2 — ámbar (naranja) para diferenciarse de la fase 1 amarilla */
.pricing-plan--two {
  --plan: var(--amber);
  --plan-soft: rgba(251, 146, 60, .14);
  --plan-border: rgba(251, 146, 60, .35);
  --plan-edge:   rgba(251, 146, 60, .55);
  --plan-edge-hover: rgba(251, 146, 60, .85);
  --plan-bg: rgba(251, 146, 60, .06);
  --plan-glow: rgba(251, 146, 60, .22);
}

/* Fase 3 (recurrente) — magenta con un sutil halo de fondo para señalar que
   es el plan continuo de relación a largo plazo. */
.pricing-plan.is-highlight {
  --plan: var(--accent);
  --plan-soft: rgba(217, 70, 239, .14);
  --plan-border: rgba(217, 70, 239, .35);
  --plan-edge:   rgba(217, 70, 239, .5);
  --plan-edge-hover: rgba(217, 70, 239, .8);
  --plan-bg: rgba(217, 70, 239, .06);
  --plan-glow: rgba(217, 70, 239, .28);
  background:
    linear-gradient(180deg, rgba(217, 70, 239, .06), transparent 60%),
    var(--bg-alt);
}

/* Número circular en la esquina superior — 01 / 02 / 03 */
.pricing-num {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--plan);
  display: grid;
  place-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--plan);
  letter-spacing: -.02em;
  z-index: 2;
}

/* Cabecera del plan: badge + título + tagline */
.pricing-head {
  text-align: center;
  margin-top: .75rem;
}
.pricing-badge {
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--plan-soft);
  color: var(--plan);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.pricing-plan h3 {
  font-size: clamp(1.2rem, 1.3vw, 1.4rem);
  margin: 0 0 .5rem;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
}
.pricing-tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.45;
}

/* Caja de precio destacada */
.pricing-price {
  padding: 1.1rem 1rem;
  background: var(--plan-bg);
  border: 1px dashed var(--plan-border);
  border-radius: var(--radius-sm);
  text-align: center;
  margin: .25rem 0;
}
.pricing-from {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  margin-bottom: .15rem;
}
.pricing-amount {
  display: block;
  font-size: clamp(1.85rem, 2.4vw, 2.4rem);
  font-weight: 800;
  color: var(--plan);
  line-height: 1;
  letter-spacing: -.03em;
}
.pricing-per {
  font-size: .6em;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0;
  margin-left: .15em;
}
.pricing-cadence {
  display: block;
  margin-top: .55rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Checklist de features — check usa el color del plan via CSS var,
   pero como data-URL requiere hex literal, renderizamos iconos específicos
   por plan con sobreescrituras más abajo. */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.pricing-features li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--ink-soft);
  font-size: .93rem;
  line-height: 1.45;
}
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background-color: var(--plan-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  /* Check amarillo por defecto (fase 1) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4d400' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.pricing-plan--two .pricing-features li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fb923c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.pricing-plan.is-highlight .pricing-features li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d946ef' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Entregable del plan (footer de cada card) */
.pricing-outcome {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: .85rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.4;
}
.pricing-outcome strong {
  color: var(--plan);
  font-weight: 700;
}

/* =========================================================
   FLECHAS CONECTORAS 1 → 2 → 3
   Siempre visibles (desktop horizontal, móvil vertical) para
   reforzar la secuencia de las fases.
   ========================================================= */
.pricing-plan:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4d400' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  opacity: .7;
  pointer-events: none;
  z-index: 1;
}
/* Flecha que sale del plan 2 — ámbar */
.pricing-plan--two:not(:last-child)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fb923c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* Desktop: flecha horizontal centrada en el hueco entre cards */
@media (min-width: 900px) {
  .pricing-plan:not(:last-child)::after {
    top: 50%;
    /* El gap entre cards es clamp(2.5rem, 4vw, 3.5rem). Calculamos el centro
       del gap: left = 100% (borde derecho de la card) + (gap/2) - (arrow/2). */
    left: calc(100% + (clamp(2.5rem, 4vw, 3.5rem) / 2) - 12px);
    transform: translateY(-50%);
  }
}

/* Móvil: flecha vertical en el gap entre cards apiladas.
   Gap más generoso (80-100px) para que la flecha tenga sitio tanto de la card
   anterior como del círculo del siguiente número (que sobresale 20px). */
@media (max-width: 899.98px) {
  .pricing {
    grid-template-columns: 1fr;
    gap: clamp(5rem, 8vw, 6rem);
  }
  .pricing-num { top: -20px; width: 44px; height: 44px; font-size: 1rem; }
  .pricing-plan:not(:last-child)::after {
    left: 50%;
    bottom: -38px;
    transform: translateX(-50%) rotate(90deg);
  }
}

/* =======================================================
   CONTACTO
   ======================================================= */
.section-contacto {
  background:
    radial-gradient(95% 65% at 50% 50%, rgba(217, 70, 239, .09), transparent 60%),
    linear-gradient(180deg, #131129 0%, #150f2a 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 6vw, 5rem);
  position: relative;
}

/* =======================================================
   CARDS
   ======================================================= */

/* =======================================================
   BULLETS / STEPS
   ======================================================= */

/* =======================================================
   BREADCRUMBS
   ======================================================= */
.breadcrumbs { padding-top: 1.5rem; }
.breadcrumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
  font-size: .9rem; color: var(--muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* =======================================================
   PROSE
   ======================================================= */
.prose h2 { margin-top: 2.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35em 0; color: var(--ink-soft); }
.prose li strong { color: var(--ink); }
.prose p { color: var(--ink-soft); }

/* =======================================================
   FAQ
   ======================================================= */
.section-faq {
  background:
    radial-gradient(80% 55% at 50% 50%, rgba(244, 212, 0, .04), transparent 60%),
    linear-gradient(180deg, #14112d 0%, #131129 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  margin-bottom: .75rem;
  background: rgba(255, 255, 255, .03);
  transition: border-color .15s ease, background .15s ease;
}
.faq details:hover { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.faq details[open] {
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: rgba(244, 212, 0, .04);
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
  display: inline;
}
.faq summary::after {
  content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin: .9rem 0 0; color: var(--ink-soft); line-height: 1.6; }

/* =======================================================
   SUCCESS MODAL (contact form)
   ======================================================= */
dialog.modal {
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  border-radius: 20px;
  padding: 0;
  background: var(--bg-alt);
  color: var(--ink);
  max-width: 460px;
  width: calc(100% - 2rem);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
dialog.modal::backdrop {
  background: rgba(10, 8, 18, .75);
  backdrop-filter: blur(4px);
}
.modal-body {
  padding: 2.25rem 2rem 1.75rem;
  text-align: center;
}
.modal-icon {
  width: 68px; height: 68px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, .15);
  color: var(--ok);
  margin: 0 auto 1rem;
  box-shadow: 0 0 0 8px rgba(16, 185, 129, .05);
}
.modal-icon svg { width: 34px; height: 34px; }
.modal-body h3 {
  margin: 0 0 .5rem;
  font-size: 1.35rem;
  color: var(--ink);
}
.modal-body p {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}
.modal-body form { margin: 0; }

/* =======================================================
   LEGAL NAV (inside /legal)
   ======================================================= */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-top: 1.25rem;
}
.legal-nav a {
  padding: .5rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .875rem;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.legal-nav a:hover { border-color: var(--brand); color: var(--brand); }

/* =======================================================
   CTA BLOCK
   ======================================================= */

/* =======================================================
   FORM
   ======================================================= */
.form-wrapper {
  max-width: 960px;
  margin: 0 auto;
}
.form { display: grid; gap: 1rem; }
.form-wide .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
.form-wide .form-row-full { grid-column: 1 / -1; }

.form-row { display: grid; gap: .45rem; }
.form label {
  font-weight: 600;
  font-size: .95rem;
  color: #ffffff;
}
.req { color: var(--brand); font-weight: 700; }

.form-legend {
  margin: 0 0 1rem;
  font-size: .875rem;
  color: var(--muted);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="url"],
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  color: #ffffff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  padding: .95rem 1rem;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form input::placeholder,
.form textarea::placeholder { color: rgba(255, 255, 255, .4); }
.form textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.form input:hover,
.form select:hover,
.form textarea:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, .09);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(244, 212, 0, .22);
}
.form [aria-invalid="true"] {
  border-color: var(--danger);
  background: rgba(239, 68, 68, .08);
}
.form input:invalid:not(:placeholder-shown),
.form textarea:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

/* Select: misma estética que el resto de inputs + chevron amarillo custom */
.form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.75rem;
  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='%23f4d400' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px 18px;
}
.form select:not(:focus):invalid,
.form select option[value=""] { color: rgba(255, 255, 255, .55); }
/* Las opciones del menú heredan el color del SO; forzamos fondo y texto en
   navegadores que lo permiten para que el desplegable no parezca de Windows 95 */
.form select option { background: var(--bg-alt); color: var(--ink); }

.form-row-check { align-items: flex-start; }
.form-row-check label {
  font-weight: 400;
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.5;
}
.form-row-check input {
  margin-top: .22rem;
  width: 18px; height: 18px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.form-row-check a { color: var(--brand); }
.form-row-check a:hover { color: var(--brand-600); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: .5rem;
}
.form-actions .btn { flex-shrink: 0; }
.form-foot { font-size: .875rem; margin: 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 720px) {
  .form-wide .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
}

.alert {
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.alert-error { border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); color: var(--danger); }
.alert a { color: inherit; text-decoration: underline; }

/* =======================================================
   FOOTER
   ======================================================= */
.site-footer {
  margin-top: 0;
  /* Continúa la cadena cromática desde donde termina .section-contacto
     (#150f2a) — sin border-top ni margin-top que generen una "costura". */
  background: linear-gradient(180deg, #150f2a 0%, #110c22 100%);
  border-top: 0;
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 2fr 1fr;
  align-items: end;
}
/* El <p> tiene margin-bottom: 1em por defecto global, y al ser el último hijo
   de su columna, ese margen "empuja" el align-items:end, haciendo que el
   enlace legal de la derecha quede visualmente más arriba que la tagline.
   Reseteamos el margin-bottom para que ambas filas terminen al mismo nivel. */
.footer-grid p { margin: 0; }
.footer-legal {
  text-align: right;
  font-size: .95rem;
}
.footer-legal a {
  color: var(--ink-soft);
}
.footer-legal a:hover { color: var(--brand); }

@media (max-width: 560px) {
  .footer-legal { text-align: left; }
}

.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  font-size: .9rem;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =======================================================
   FOCUS / MOTION
   ======================================================= */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .circuits .pulse { stroke-dasharray: none; opacity: .3; }
  .hero-glow { display: none; }
}

/* =======================================================
   SECCIÓN WORKFLOW + diagrama orgánico
   --------------------------------------------------------
   Diseño orgánico: nodos circulares con glow de color
   distribuidos en el canvas. Líneas en ángulo recto entre
   nodos con dos comportamientos:
     - Líneas internas: conectan nodos dentro de la zona central
       (que coincide aproximadamente con el ancho legible del
       contenido del sitio).
     - Líneas externas: salen desde los bordes del viewBox
       (x=0 y x=1600), que coinciden con los bordes del viewport
       porque el SVG ocupa width:100% del .section-workflow (que
       no tiene padding horizontal). Efecto: las líneas parecen
       continuar fuera del frame visible mientras los nodos se
       mantienen en la zona central legible.
   Sin tooltips ni interactividad: los nodos son decoración pura.
   El hover solo refuerza el glow sutilmente.
   ======================================================= */
.section-workflow {
  background:
    radial-gradient(95% 60% at 50% 50%, rgba(217, 70, 239, .08), transparent 70%),
    /* Top y bottom igual a #14102a: empalma sin línea de transición con
       Process (cierra en #14102a) y con Casos (abre en #14102a). El
       carácter violeta lo aporta el halo radial central decorativo. */
    linear-gradient(180deg, #14102a 0%, #14102a 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
  /* Recortamos cualquier overflow para que el SVG nunca cause
     scroll horizontal aunque su viewBox sea más ancho que el
     viewport. */
  overflow: hidden;
}
/* En esta sección la cabecera y el SVG van muy próximos:
   anulamos el margin-bottom de la cabecera (que por defecto
   es 2rem en el resto del sitio) para que el flujo visual
   quede compacto. */
.section-workflow .section-head {
  margin-bottom: 0;
}

.workflow {
  margin: 0;
  padding: 0;
  position: relative;
  /* El <figure> está fuera del .container, así ocupa el ancho
     completo del viewport. Esto permite que las líneas externas
     del SVG (que terminan en x=0 / x=1600 del viewBox) lleguen
     visualmente hasta los bordes del navegador. */
}
.workflow__svg {
  display: block;
  width: 100%;
  height: auto;
  /* aspect-ratio derivado del viewBox 1600×500 para evitar CLS
     antes de que el SVG renderice. */
  aspect-ratio: 1600 / 500;
}

/* === Conexiones ===
   Líneas en ángulo recto. Cada categoría cromática tiene un
   stroke ligeramente saturado y un drop-shadow del mismo color
   para crear glow. */
.wf-edges .wf-edge {
  stroke-width: 1.8;
  fill: none;
}
.wf-edges .wf-edge--cyan {
  stroke: rgba(56, 220, 180, .55);
  filter: drop-shadow(0 0 3px rgba(56, 220, 180, .45));
}
.wf-edges .wf-edge--purple {
  stroke: rgba(150, 130, 255, .55);
  filter: drop-shadow(0 0 3px rgba(150, 130, 255, .45));
}
.wf-edges .wf-edge--pink {
  stroke: rgba(255, 90, 130, .55);
  filter: drop-shadow(0 0 3px rgba(255, 90, 130, .45));
}
.wf-edges .wf-edge--yellow {
  stroke: rgba(244, 212, 0, .55);
  filter: drop-shadow(0 0 3px rgba(244, 212, 0, .45));
}

/* === Partículas de datos ===
   Pequeñas esferas luminosas amarillas que viajan por las
   conexiones mediante <animateMotion> SVG nativo. */
.wf-particles circle {
  filter: drop-shadow(0 0 6px rgba(244, 212, 0, .9));
}

/* === Nodos ===
   Círculos r=40 con borde de color y glow. El icono va dentro,
   centrado vía translate(-12 -12). No hay etiquetas ni tooltips:
   el icono comunica el rol. */
.wf-node {
  /* Sin cursor pointer ni outline: no son interactivos. La
     transición es solo para suavizar el efecto de iluminación
     en hover. */
  transition: filter .25s ease;
}

.wf-node__bg {
  fill: #0a0814;
  stroke-width: 2.2;
  transition: stroke-width .2s ease;
}

/* Variantes de color por categoría: cada nodo lleva un tono
   identitario (cyan, purple, pink, yellow, white). El glow
   se aplica al <g> contenedor mediante drop-shadow. */
.wf-node--cyan   .wf-node__bg { stroke: #38dcb4; }
.wf-node--cyan          { filter: drop-shadow(0 0 8px rgba(56, 220, 180, .5)); }
.wf-node--cyan   .wf-node__icon { color: #38dcb4; }

.wf-node--purple .wf-node__bg { stroke: #9682ff; }
.wf-node--purple        { filter: drop-shadow(0 0 8px rgba(150, 130, 255, .5)); }
.wf-node--purple .wf-node__icon { color: #9682ff; }

.wf-node--pink   .wf-node__bg { stroke: #ff5a82; }
.wf-node--pink          { filter: drop-shadow(0 0 8px rgba(255, 90, 130, .5)); }
.wf-node--pink   .wf-node__icon { color: #ff5a82; }

.wf-node--yellow .wf-node__bg { stroke: #f4d400; }
.wf-node--yellow        { filter: drop-shadow(0 0 8px rgba(244, 212, 0, .55)); }
.wf-node--yellow .wf-node__icon { color: #f4d400; }

.wf-node--white  .wf-node__bg { stroke: #f4f5f8; }
.wf-node--white         { filter: drop-shadow(0 0 10px rgba(255, 255, 255, .35)); }
.wf-node--white  .wf-node__icon { color: #f4f5f8; }

/* Hover: el glow del nodo se intensifica.
   Como el filter está en el <g> con clase .wf-node--<color>,
   sobreescribimos el filter con un glow más fuerte. */
.wf-node--cyan:hover    { filter: drop-shadow(0 0 14px rgba(56, 220, 180, .9)); }
.wf-node--purple:hover  { filter: drop-shadow(0 0 14px rgba(150, 130, 255, .9)); }
.wf-node--pink:hover    { filter: drop-shadow(0 0 14px rgba(255, 90, 130, .9)); }
.wf-node--yellow:hover  { filter: drop-shadow(0 0 14px rgba(244, 212, 0, .95)); }
.wf-node--white:hover   { filter: drop-shadow(0 0 16px rgba(255, 255, 255, .7)); }

/* === Reducción de movimiento ===
   Ocultamos las partículas (ahorran cómputo y respetan al usuario). */
@media (prefers-reduced-motion: reduce) {
  .wf-particles { display: none; }
}

/* === Pausa fuera del viewport ===
   El JS añade .workflow--paused cuando la sección sale del
   viewport, ocultando las partículas para no consumir CPU
   ni batería innecesariamente. */
.workflow--paused .wf-particles { visibility: hidden; }
