/* IA Productiva — Landing styles
   Palette: Productividad Viva
*/
:root {
  --accion: #E8651A;
  --acento: #FF8C42;
  --confianza: #2C3E50;
  --fondo: #FFF8F0;
  --fondo-alt: #FFFFFF;
  --texto-suave: #5A6470;
  --borde-sutil: #E8DDD0;

  --container: 1200px;
  --pad-x: 24px;
  --section-pad: clamp(5rem, 10vh, 8rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(44, 62, 80, 0.04), 0 2px 8px rgba(44, 62, 80, 0.04);
  --shadow-md: 0 6px 20px rgba(44, 62, 80, 0.08), 0 2px 6px rgba(44, 62, 80, 0.04);
  --shadow-lg: 0 18px 40px rgba(44, 62, 80, 0.12), 0 6px 14px rgba(44, 62, 80, 0.06);
  --shadow-orange: 0 12px 30px rgba(232, 101, 26, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--fondo);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--confianza);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  isolation: isolate;
}

.page-motion-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--fondo);
}

.page-motion-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.18) contrast(1.24) brightness(1);
}

.page-motion-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.34), rgba(255, 248, 240, 0.14) 42%, rgba(255, 248, 240, 0.42)),
    linear-gradient(90deg, rgba(255, 248, 240, 0.28), rgba(255, 248, 240, 0.08) 50%, rgba(255, 248, 240, 0.3));
}

main,
.footer {
  position: relative;
  z-index: 1;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accion);
  text-decoration: none;
}

a:hover {
  color: var(--acento);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Focus state — accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accion);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--confianza);
  color: var(--fondo);
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 1000;
  font-weight: 500;
}
.skip-link:focus {
  left: 16px;
  color: var(--fondo);
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

@media (min-width: 768px) {
  .container { padding-inline: 48px; }
}

/* Type */
h1, h2, h3, h4 {
  color: var(--confianza);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accion);
  background: rgba(232, 101, 26, 0.08);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 101, 26, 0.2);
}

.muted {
  color: var(--texto-suave);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms ease;
  min-height: 48px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accion);
  color: var(--fondo-alt);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--acento);
  transform: scale(1.02);
  box-shadow: 0 16px 36px rgba(232, 101, 26, 0.28);
  color: var(--fondo-alt);
}

.btn-secondary {
  background: transparent;
  color: var(--confianza);
  border: 1.5px solid var(--borde-sutil);
}
.btn-secondary:hover {
  background: var(--fondo-alt);
  border-color: var(--confianza);
  color: var(--confianza);
  transform: scale(1.02);
}

.btn-block {
  width: 100%;
}

.btn-pulse {
  animation: btnPulse 8s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 90%, 100% { transform: scale(1); }
  93% { transform: scale(1.015); }
  96% { transform: scale(1); }
}

/* Section */
section {
  padding-block: var(--section-pad);
  position: relative;
  z-index: 1;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-intro p {
  margin-top: 18px;
  color: var(--texto-suave);
  font-size: 1.125rem;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}
.nav.scrolled {
  background: rgba(255, 248, 240, 0);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--confianza);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--confianza); }
.brand-logo {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}
.brand-logo-full {
  max-width: min(230px, 42vw);
}
.brand-logo-footer {
  height: 54px;
  max-width: 260px;
}
.iso {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accion);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-links {
  display: none;
  gap: 4px;
  align-items: center;
  border: 1px solid rgba(44, 62, 80, 0.16);
  border-radius: 999px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.42);
}
.nav-links a {
  color: var(--confianza);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 8px 12px;
  transition: color 180ms ease, background 180ms ease;
}
.nav-links a:hover {
  color: var(--accion);
  background: rgba(232, 101, 26, 0.08);
}
/* CTA dentro del drawer móvil (en desktop se oculta — basta el botón naranja derecho) */
.nav-link-cta {
  background: var(--accion);
  color: #fff !important;
}
.nav-link-cta:hover {
  background: #d35a14 !important;
  color: #fff !important;
}
@media (min-width: 1024px) {
  .nav-link-cta { display: none; }
}
/* Dual labels: por defecto se ve el corto, en >=1024px el largo */
.nav-text-full { display: none; }
.nav-text-short { display: inline; }
@media (min-width: 1024px) {
  .nav-text-full { display: inline; }
  .nav-text-short { display: none; }
}
.nav-cta {
  font-size: 0.9375rem;
  padding: 10px 18px;
  min-height: 40px;
}
.nav-menu {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border: 1px solid var(--borde-sutil);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
  z-index: 60;
  position: relative;
}
.nav-menu:hover { background: rgba(255, 255, 255, 0.9); }
.nav-menu span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--confianza);
  transition: transform 220ms var(--ease-out), opacity 180ms ease;
}
/* Animación hamburguesa -> X */
.nav-menu[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-menu[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Drawer móvil: si .nav-links no es visible aún, lo habilitamos en estado open */
@media (max-width: 1023px) {
  .nav-links {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    background: rgba(255, 248, 240, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--borde-sutil);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms var(--ease-out), opacity 180ms ease;
    z-index: 55;
  }
  .nav-links.is-open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
    text-align: left;
  }
  .nav-link-cta { text-align: center; margin-top: 4px; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-menu { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  padding-top: clamp(1.5rem, 4vh, 3rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
  overflow: hidden;
  background: #000000;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}
.scroll-loop-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.92;
  pointer-events: none;
  mix-blend-mode: normal;
  /* Calienta el video hacia tonos crema/naranja de marca, neutraliza el cian/navy */
  filter: brightness(1.18) saturate(1.45) sepia(0.55) hue-rotate(-18deg);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Glow naranja central detrás del título (mantiene legibilidad) */
    radial-gradient(ellipse at 50% 45%, rgba(232, 101, 26, 0.22), transparent 55%),
    /* Vignette cálido café-naranja en lugar de navy frío */
    linear-gradient(180deg, rgba(58, 30, 8, 0.42), rgba(58, 30, 8, 0.08) 45%, rgba(40, 18, 4, 0.55)),
    linear-gradient(90deg, rgba(74, 38, 12, 0.5), rgba(74, 38, 12, 0.08) 50%, rgba(58, 30, 8, 0.45));
}
.hero-bg::before, .hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: heroDrift 15s ease-in-out infinite alternate;
}
.hero-bg::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.35), transparent 70%);
  top: -200px;
  right: -120px;
}
.hero-bg::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(232, 101, 26, 0.22), transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -6s;
  animation-duration: 12s;
}
@keyframes heroDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-inner {
  position: relative;
  z-index: 3;
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 5vh, 4rem);
}
.hero-center {
  max-width: 1020px;
  margin: 0 auto;
  text-align: center;
}
.hero-kicker {
  display: inline-block;
  color: rgba(255, 248, 240, 0.78);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
@media (min-width: 768px) {
  .hero-kicker { font-size: 0.875rem; }
}
.hero-center h1 {
  display: flex;
  flex-direction: column;
  color: #ffffff;
  font-size: clamp(3.2rem, 12vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.shiny-text {
  color: transparent;
  background:
    linear-gradient(100deg,
      #E8651A 0%,
      #F47A2C 28%,
      #FFD9B8 48%,
      #FFE6CB 52%,
      #FFD9B8 56%,
      #F47A2C 76%,
      #E8651A 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shinySweep 8s ease-in-out infinite;
}
@keyframes shinySweep {
  from { background-position: 140% 0; }
  to { background-position: -60% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .shiny-text { animation: none; background-position: 50% 0; }
}
.hero-copy > * + * { margin-top: 20px; }
.hero-copy h1 { margin-top: 18px; }
.hero-sub {
  font-size: 1.1875rem;
  color: rgba(255, 248, 240, 0.78);
  max-width: 680px;
  line-height: 1.6;
  margin: 24px auto 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.btn-hero {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 248, 240, 0.2);
  border-radius: 999px;
}
.btn-hero:hover {
  background: #1f2933;
}
.btn-hero span {
  transition: transform 180ms var(--ease-out);
}
.btn-hero:hover span {
  transform: translateX(3px);
}
.btn-hero-secondary {
  color: #ffffff;
  border-color: rgba(255, 248, 240, 0.28);
  background: rgba(255, 248, 240, 0.08);
  border-radius: 999px;
}
.btn-hero-secondary:hover {
  color: #ffffff;
  background: rgba(255, 248, 240, 0.14);
  border-color: rgba(255, 248, 240, 0.48);
}
.hero-trust {
  font-size: 0.9375rem;
  color: rgba(255, 248, 240, 0.62);
  text-align: center;
  max-width: 760px;
  margin: clamp(2rem, 6vh, 4rem) auto 0;
}

/* Hero stagger */
.hero-copy .stagger {
  opacity: 0;
  transform: translateY(12px);
  animation: staggerIn 600ms var(--ease-out) forwards;
}
.hero-copy .stagger:nth-child(1) { animation-delay: 0ms; }
.hero-copy .stagger:nth-child(2) { animation-delay: 80ms; }
.hero-copy .stagger:nth-child(3) { animation-delay: 160ms; }
.hero-copy .stagger:nth-child(4) { animation-delay: 240ms; }
.hero-copy .stagger:nth-child(5) { animation-delay: 320ms; }
@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero visual composition */
.hero-visual {
  position: relative;
  min-height: 420px;
  opacity: 0;
  transform: translateY(12px);
  animation: staggerIn 700ms var(--ease-out) 200ms forwards;
}
@media (max-width: 767px) {
  .nav-cta { display: none; }
}

.card {
  background: var(--fondo-alt);
  border: 1px solid var(--borde-sutil);
  border-radius: 14px;
  padding: 28px;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), border-color 250ms ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accion);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(232, 101, 26, 0.08);
  color: var(--accion);
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--texto-suave); font-size: 1rem; }

/* ============================================================
   ANTES / DESPUÉS  (fusión Problema + Solución)
   ============================================================ */
.anchor-quote {
  margin: 32px 0;
  padding: 20px 28px;
  border-left: 3px solid var(--accion);
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--confianza);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}
@media (min-width: 1024px) {
  .ba-grid {
    grid-template-columns: 1fr minmax(320px, 460px) 1fr;
    gap: 48px;
  }
}

.ba-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ba-label {
  display: inline-block;
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(90, 100, 112, 0.08);
  color: var(--texto-suave);
}
.ba-label-after {
  background: rgba(232, 101, 26, 0.12);
  color: var(--accion);
}

.ba-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ba-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--fondo-alt);
  border: 1px solid var(--borde-sutil);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--confianza);
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease;
}
.ba-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.ba-after .ba-list li:hover { border-color: var(--accion); }

.ba-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  stroke: var(--texto-suave);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ba-icon-check {
  stroke: var(--accion);
  stroke-width: 2.4;
}

.ba-trinity {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
.ba-trinity svg { width: 100%; height: 100%; }

/* Animación: paths del trinity se dibujan al entrar en viewport */
.ba-trinity .trinity-line path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
.reveal.in .ba-trinity .trinity-line path,
.ba-grid.reveal.in .ba-trinity .trinity-line path {
  animation: trinityDraw 1.4s var(--ease-out) forwards;
}
.ba-grid.reveal.in .ba-trinity .trinity-line path:nth-child(2) { animation-delay: 0.15s; }
.ba-grid.reveal.in .ba-trinity .trinity-line path:nth-child(3) { animation-delay: 0.3s; }

@keyframes trinityDraw {
  to { stroke-dashoffset: 0; }
}

.ba-trinity .trinity-node circle,
.ba-trinity .trinity-center circle {
  transition: transform 280ms var(--ease-out), filter 280ms ease;
  transform-origin: center;
  transform-box: fill-box;
}
.ba-trinity .trinity-center circle {
  animation: trinityPulse 3.6s ease-in-out infinite;
}
@keyframes trinityPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(232, 101, 26, 0.0)); }
  50% { filter: drop-shadow(0 0 16px rgba(232, 101, 26, 0.45)); }
}

/* Hover en los nodos: escalan + glow naranja sin tocar el texto */
.ba-trinity .trinity-node {
  cursor: default;
}
.ba-trinity .trinity-node:hover circle {
  transform: scale(1.06);
  filter: drop-shadow(0 0 14px rgba(232, 101, 26, 0.55));
}
/* Cuando hay hover en cualquier nodo, las 3 líneas se intensifican */
.ba-trinity svg:has(.trinity-node:hover) .trinity-line path {
  stroke-width: 2.4;
  stroke: #FF8C42;
  transition: stroke-width 240ms ease, stroke 240ms ease;
}

/* Flow dots: las 3 partículas que recorren las líneas continuamente */
.ba-trinity .trinity-flow circle {
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(232, 101, 26, 0.7));
}
@media (prefers-reduced-motion: reduce) {
  .ba-trinity .trinity-flow { display: none; }
  .ba-trinity .trinity-center circle { animation: none; }
}

.ba-quote {
  margin-top: 40px;
  text-align: center;
  border-left: none;
  border-top: 1px solid var(--borde-sutil);
  border-bottom: 1px solid var(--borde-sutil);
  padding: 24px 16px;
  font-style: normal;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accion);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.inline-link:hover {
  border-bottom-color: var(--accion);
}

/* ============================================================
   METODOLOGÍA
   ============================================================ */
.stepper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  position: relative;
}
@media (min-width: 1024px) {
  .stepper {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
}

.step {
  background: var(--fondo-alt);
  border: 1px solid var(--borde-sutil);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), opacity 200ms;
}
.step > h3, .step > p { width: 100%; }
.step > p { flex: 1; }
.stepper:hover .step:not(:hover) { opacity: 0.55; }
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accion);
}
.step-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accion);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fondo);
  border: 1.5px solid var(--borde-sutil);
  display: grid;
  place-items: center;
  color: var(--accion);
  margin-bottom: 16px;
  transition: all 300ms var(--ease-out);
}
.step.active .step-icon {
  background: var(--accion);
  color: white;
  border-color: var(--accion);
}
.step-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 1.125rem; margin-bottom: 8px; }
.step p { color: var(--texto-suave); font-size: 0.9375rem; line-height: 1.55; margin-bottom: 16px; }
.result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  text-align: center;
  padding: 10px 16px;
  background: rgba(232, 101, 26, 0.08);
  border: 1px solid rgba(232, 101, 26, 0.2);
  color: var(--accion);
  border-radius: 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  margin-top: auto;
  text-wrap: balance;
}
@media (min-width: 1024px) {
  .result-pill { min-height: 56px; }
}

/* ============================================================
   PAQUETES
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.price-card {
  background: var(--fondo-alt);
  border: 1px solid var(--borde-sutil);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out), border-color 280ms;
  position: relative;
}
.price-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accion);
  padding-top: 30px;
}
.price-card.featured {
  border: 2px solid var(--accion);
  box-shadow: var(--shadow-orange);
}
@media (min-width: 1024px) {
  .price-card.featured { transform: translateY(-12px); }
  .price-card.featured:hover { transform: translateY(-20px); }
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accion);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(232, 101, 26, 0.08);
  color: var(--accion);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.price-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.price-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.price-amount {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accion);
  letter-spacing: -0.01em;
}
.price-currency {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--texto-suave);
}
.price-for {
  margin-top: 14px;
  color: var(--texto-suave);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.price-divider {
  height: 1px;
  background: var(--borde-sutil);
  margin: 22px 0;
}
.price-includes-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--confianza);
  margin-bottom: 12px;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-list li {
  display: flex;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--confianza);
  line-height: 1.45;
}
.check-icon {
  flex-shrink: 0;
  color: var(--accion);
  margin-top: 2px;
}
.price-result {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--fondo);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--confianza);
  line-height: 1.5;
  font-style: italic;
}
.price-cta {
  margin-top: 24px;
  width: 100%;
}
/* Servicios — bento grid asimétrico */
.services-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) {
  .services-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (min-width: 1024px) {
  .services-bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 1fr;
    gap: 22px;
  }
  .services-bento .service-card { grid-column: span 2; }
  .services-bento .service-card-hero {
    grid-column: span 6;
    grid-row: span 1;
  }
}

.service-card {
  position: relative;
  background: var(--fondo-alt);
  border: 1px solid var(--borde-sutil);
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), border-color 250ms;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,101,26,0.06), rgba(232,101,26,0));
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--accion);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before,
.service-card:focus-within::before { opacity: 1; }

.service-card-hero {
  background:
    linear-gradient(135deg, rgba(232,101,26,0.10), rgba(255,140,66,0.04) 60%, transparent),
    var(--fondo-alt);
  border-color: rgba(232, 101, 26, 0.24);
}
.service-card-hero .service-name { font-size: 1.5rem; }
.service-card-hero .service-desc { font-size: 1.0625rem; }
.service-card-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 26px 28px; }
.service-card-hero .service-icon { margin-bottom: 0; width: 52px; height: 52px; }
.service-card-hero .service-icon svg { width: 26px; height: 26px; }
.service-card-hero .service-name,
.service-card-hero .service-desc { grid-column: 2; margin: 0; }

.service-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accion);
  background: rgba(232, 101, 26, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(232, 101, 26, 0.08);
  color: var(--accion);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  transition: transform 250ms var(--ease-out);
}
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.service-icon svg { width: 22px; height: 22px; }

.service-name {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--confianza);
  margin: 0;
}
.service-desc {
  color: var(--texto-suave);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  /* Hover reveal: collapsed by default on hover-capable devices */
  max-height: 80px;
  overflow: hidden;
  transition: max-height 320ms var(--ease-out), opacity 220ms ease;
}
.service-card:hover .service-desc,
.service-card:focus-within .service-desc { max-height: 240px; }
@media (hover: none) {
  .service-desc { max-height: none; }
}

/* Servicios / Casos complementarios — colapsable */
.services-more,
.flows-more {
  margin-top: 32px;
  border: 1px solid var(--borde-sutil);
  border-radius: 14px;
  background: var(--fondo-alt);
  overflow: hidden;
}
.services-more > summary,
.flows-more > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--confianza);
  transition: background 200ms ease;
}
.services-more > summary::-webkit-details-marker,
.flows-more > summary::-webkit-details-marker { display: none; }
.services-more > summary:hover,
.flows-more > summary:hover { background: rgba(232, 101, 26, 0.04); }
.services-more-toggle {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(232, 101, 26, 0.1);
  color: var(--accion);
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 280ms var(--ease-out);
}
.services-more[open] .services-more-toggle,
.flows-more[open] .services-more-toggle { transform: rotate(45deg); }
.services-catalog {
  margin-top: 34px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 248, 240, 0.86), rgba(255, 255, 255, 0.96)),
    var(--fondo-alt);
  box-shadow: 0 18px 48px rgba(44, 62, 80, 0.08);
}
.services-catalog > summary {
  padding: 20px 28px;
  font-size: 1rem;
  letter-spacing: 0;
}
.services-catalog-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0 28px 28px;
}
.service-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--borde-sutil);
}
.service-group:first-child { padding-top: 24px; }
.service-group h3 {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accion);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
}
.service-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(44, 62, 80, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 18px;
  border-top: 1px solid rgba(44, 62, 80, 0.08);
}
.service-row:first-child { border-top: 0; }
.service-row-title {
  color: var(--confianza);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.service-row-desc {
  color: var(--texto-suave);
  font-size: 0.9375rem;
  line-height: 1.55;
}
@media (min-width: 820px) {
  .service-group {
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 28px;
    align-items: start;
  }
  .service-row {
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 24px;
    align-items: start;
  }
}
.services-more-grid,
.flows-more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 4px 22px 22px;
}
@media (min-width: 700px) {
  .services-more-grid,
  .flows-more-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-mini h4,
.flow-more-card h4 {
  font-size: 0.9375rem;
  margin: 0 0 6px;
  color: var(--confianza);
  font-weight: 600;
}
.service-mini p,
.flow-more-card p {
  font-size: 0.875rem;
  color: var(--texto-suave);
  line-height: 1.5;
  margin: 0;
}
.flow-more-card .flow-tag {
  display: inline-block;
  margin-bottom: 8px;
}
.flow-more-card .flow-tools {
  margin-top: 8px;
}

.pricing-foot {
  text-align: center;
  margin-top: 40px;
  color: var(--texto-suave);
  font-size: 0.9375rem;
}

/* ============================================================
   BENEFICIOS
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid .benefit-feature { grid-column: 1 / -1; }
}

.benefit {
  background: var(--fondo-alt);
  border: 1px solid var(--borde-sutil);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  gap: 18px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.benefit:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}
.benefit-feature {
  background:
    linear-gradient(135deg, rgba(232, 101, 26, 0.06), rgba(255, 248, 240, 0.6)),
    var(--fondo-alt);
  border-color: rgba(232, 101, 26, 0.22);
}
.benefit-feature h3 { font-size: 1.3125rem; }
.benefit-feature p { font-size: 1rem; }
@media (min-width: 1024px) {
  .benefit-feature { padding: 32px 40px; align-items: center; }
  .benefit-feature .benefit-icon {
    width: 56px;
    height: 56px;
  }
  .benefit-feature .benefit-icon svg { width: 28px; height: 28px; }
}
.benefit-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(232, 101, 26, 0.08);
  color: var(--accion);
  display: grid;
  place-items: center;
}
.benefit-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.benefit p { color: var(--texto-suave); font-size: 0.9375rem; line-height: 1.55; }

/* ============================================================
   EQUIPO / QUIÉN ACOMPAÑA
   ============================================================ */
.equipo-creds {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 880px;
  display: grid;
  gap: 14px;
}
.equipo-creds li {
  background: var(--fondo-alt);
  border: 1px solid var(--borde-sutil);
  border-left: 3px solid var(--accion);
  border-radius: 12px;
  padding: 20px 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.equipo-creds li:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.equipo-creds-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accion);
}
.equipo-creds-text { color: var(--confianza); font-size: 1rem; line-height: 1.55; }
@media (min-width: 768px) {
  .equipo-creds li { grid-template-columns: 160px 1fr; gap: 24px; align-items: baseline; }
}

.section-visual-grid {
  display: none;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (min-width: 900px) {
  .section-visual-grid { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
}
.section-visual {
  margin: 0;
}
.section-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--borde-sutil);
  box-shadow: var(--shadow-md);
}
.section-visual figcaption {
  margin-top: 10px;
  color: var(--texto-suave);
  font-size: 0.9375rem;
}

/* ============================================================
   DIFERENCIADORES
   ============================================================ */
.diff-table {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(44, 62, 80, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(44, 62, 80, 0.1);
}
@media (min-width: 768px) {
  .diff-table { grid-template-columns: 1fr 1fr; }
}
.diff-head {
  min-height: 78px;
  padding: 20px 30px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.diff-head.left {
  background:
    linear-gradient(135deg, rgba(44, 62, 80, 0.05), rgba(44, 62, 80, 0.02)),
    #ECE4D7;
  color: var(--texto-suave);
}
.diff-head.right {
  background:
    linear-gradient(135deg, rgba(232, 101, 26, 0.08), rgba(255, 248, 240, 0.96) 62%),
    var(--fondo-alt);
  color: var(--confianza);
  border-left: 1px solid rgba(232, 101, 26, 0.18);
  position: relative;
}
.diff-head.right::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: var(--accion);
}
.diff-logo {
  width: min(220px, 70%);
  max-height: 48px;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .diff-head.right { border-left: none; border-top: 1px solid var(--borde-sutil); }
}

.diff-row {
  padding: 24px 30px;
  font-size: 1rem;
  line-height: 1.55;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-top: 1px solid rgba(44, 62, 80, 0.1);
}
.diff-row.left {
  background: rgba(244, 236, 224, 0.82);
  color: var(--texto-suave);
}
.diff-row.right {
  background: rgba(255, 248, 240, 0.72);
  color: var(--confianza);
  font-weight: 600;
  border-left: 1px solid rgba(232, 101, 26, 0.18);
}
@media (max-width: 767px) {
  .diff-row.right { border-left: none; }
}
.diff-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 0;
}
.diff-mark.x {
  background: rgba(90, 100, 112, 0.12);
  color: var(--texto-suave);
}
.diff-mark.check {
  background: rgba(232, 101, 26, 0.14);
  color: var(--accion);
}
.diff-mark svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Animación: dibujado de los marks al entrar en viewport */
.diff-mark svg path,
.diff-mark svg polyline {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
}
.diff-table.reveal.in .diff-mark svg path,
.diff-table.reveal.in .diff-mark svg polyline {
  animation: diffMarkDraw 600ms var(--ease-out) forwards;
}
.diff-table.reveal.in .diff-row:nth-child(3) .diff-mark svg path,
.diff-table.reveal.in .diff-row:nth-child(3) .diff-mark svg polyline,
.diff-table.reveal.in .diff-row:nth-child(4) .diff-mark svg path,
.diff-table.reveal.in .diff-row:nth-child(4) .diff-mark svg polyline { animation-delay: 0.1s; }
.diff-table.reveal.in .diff-row:nth-child(5) .diff-mark svg path,
.diff-table.reveal.in .diff-row:nth-child(5) .diff-mark svg polyline,
.diff-table.reveal.in .diff-row:nth-child(6) .diff-mark svg path,
.diff-table.reveal.in .diff-row:nth-child(6) .diff-mark svg polyline { animation-delay: 0.2s; }
.diff-table.reveal.in .diff-row:nth-child(7) .diff-mark svg path,
.diff-table.reveal.in .diff-row:nth-child(7) .diff-mark svg polyline,
.diff-table.reveal.in .diff-row:nth-child(8) .diff-mark svg path,
.diff-table.reveal.in .diff-row:nth-child(8) .diff-mark svg polyline { animation-delay: 0.3s; }
.diff-table.reveal.in .diff-row:nth-child(9) .diff-mark svg path,
.diff-table.reveal.in .diff-row:nth-child(9) .diff-mark svg polyline,
.diff-table.reveal.in .diff-row:nth-child(10) .diff-mark svg path,
.diff-table.reveal.in .diff-row:nth-child(10) .diff-mark svg polyline { animation-delay: 0.4s; }
.diff-table.reveal.in .diff-row:nth-child(11) .diff-mark svg path,
.diff-table.reveal.in .diff-row:nth-child(11) .diff-mark svg polyline,
.diff-table.reveal.in .diff-row:nth-child(12) .diff-mark svg path,
.diff-table.reveal.in .diff-row:nth-child(12) .diff-mark svg polyline { animation-delay: 0.5s; }

@keyframes diffMarkDraw {
  to { stroke-dashoffset: 0; }
}

/* ============================================================
   CASOS
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .cases-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
  .cases-grid {
    grid-auto-flow: column;
    grid-auto-columns: 88%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin-inline: -24px;
    padding-inline: 24px;
  }
  .case-card { scroll-snap-align: start; }
}

.case-card {
  background: var(--fondo-alt);
  border: 1px solid var(--borde-sutil);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-rubro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.case-rubro-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(232, 101, 26, 0.08);
  color: var(--accion);
  display: grid;
  place-items: center;
}
.case-rubro-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.case-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--confianza);
  line-height: 1.35;
}
.case-block {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.case-block .label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  opacity: 0.85;
}
.case-block.antes {
  background: #F0E8DA;
  color: var(--texto-suave);
}
.case-block.despues {
  background: var(--accion);
  color: white;
  transition: transform 250ms var(--ease-out);
}
.case-card:hover .case-block.despues {
  transform: scale(1.02);
}
.case-block.adopcion {
  background: var(--confianza);
  color: var(--fondo);
}
.case-arrow {
  align-self: center;
  color: var(--accion);
  margin-block: -4px;
}

/* Flow cards (replaces case cards) */
.flows-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .flows-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 1024px) {
  .flows-grid { grid-template-columns: repeat(3, 1fr); }
}
.flow-card {
  background: var(--fondo-alt);
  border: 1px solid var(--borde-sutil);
  border-radius: 16px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), border-color 250ms;
}
.flow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accion);
}
.flow-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accion);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(232, 101, 26, 0.25);
  border-radius: 999px;
  background: rgba(232, 101, 26, 0.06);
}
.flow-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--confianza);
  line-height: 1.3;
  margin: 0;
}
.flow-desc {
  color: var(--texto-suave);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.flow-diagram {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px;
  background: var(--fondo);
  border-radius: 10px;
  border: 1px dashed var(--borde-sutil);
}
.flow-node {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  background: var(--fondo-alt);
  border: 1px solid var(--borde-sutil);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--confianza);
  line-height: 1.3;
}
.flow-node.accent {
  background: var(--accion);
  border-color: var(--accion);
  color: white;
}
.flow-arrow {
  color: var(--accion);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  display: inline-flex;
  animation: flowArrowPulse 2.4s ease-in-out infinite;
}
.flow-card:nth-child(2) .flow-arrow { animation-delay: 0.2s; }
.flow-card:nth-child(3) .flow-arrow { animation-delay: 0.4s; }
.flow-arrow + .flow-node.accent + .flow-arrow { animation-delay: 1.2s; }

@keyframes flowArrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(4px); opacity: 1; }
}

.flow-node.accent {
  box-shadow: 0 0 0 0 rgba(232, 101, 26, 0.45);
  animation: flowNodePulse 2.6s ease-in-out infinite;
}
@keyframes flowNodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 101, 26, 0.0); }
  50% { box-shadow: 0 0 0 6px rgba(232, 101, 26, 0.18); }
}
.flow-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.tool-pill {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--confianza);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fondo);
  border: 1px solid var(--borde-sutil);
}

.case-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 768px) {
  .case-media-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.case-media {
  margin: 0;
  background: var(--fondo-alt);
  border: 1px solid var(--borde-sutil);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.case-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.case-media figcaption {
  padding: 14px 16px 16px;
  color: var(--confianza);
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 500;
}
.case-caption {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-rubro {
  font-weight: 700;
  font-size: 1rem;
  color: var(--confianza);
  letter-spacing: -0.005em;
}
.case-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case-pills li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(232, 101, 26, 0.08);
  color: var(--accion);
  border: 1px solid rgba(232, 101, 26, 0.2);
  line-height: 1.3;
  transition: background 180ms ease, transform 180ms ease;
}
.case-media:hover .case-pills li {
  background: rgba(232, 101, 26, 0.14);
}

/* ============================================================
   CTA SECTION (Diagnóstico)
   ============================================================ */
.cta-section {
  background: linear-gradient(180deg, var(--fondo) 0%, rgba(255, 140, 66, 0.06) 100%);
}
.cta-card {
  max-width: 720px;
  margin: 40px auto 0;
  background: var(--fondo-alt);
  border: 1px solid var(--borde-sutil);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.cta-pricing {
  margin: 18px auto 0;
  max-width: 640px;
  padding: 14px 20px;
  background: rgba(232, 101, 26, 0.08);
  border: 1px solid rgba(232, 101, 26, 0.22);
  border-radius: 14px;
  font-size: 0.9375rem;
  color: var(--confianza);
  line-height: 1.55;
}
.cta-pricing strong {
  color: var(--accion);
  font-weight: 600;
}
.cta-pricing-note {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--texto-suave);
  font-style: italic;
}

.cta-bullets {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-bullets li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--confianza);
  line-height: 1.5;
}
.cta-bullets .check-icon {
  margin-top: 3px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}
@media (min-width: 600px) {
  .form-grid.two-col { grid-template-columns: 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--confianza);
}
.field label .opt {
  font-weight: 400;
  color: var(--texto-suave);
  margin-left: 4px;
}
.field input,
.field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--borde-sutil);
  background: var(--fondo);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--confianza);
  transition: border-color 200ms, box-shadow 200ms;
  min-height: 48px;
}
.field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accion);
  box-shadow: 0 0 0 4px rgba(232, 101, 26, 0.15);
}
.field .hint {
  font-size: 0.8125rem;
  color: var(--texto-suave);
}
.field.error input,
.field.error textarea {
  border-color: #c44a2a;
}
.field-error {
  font-size: 0.8125rem;
  color: #c44a2a;
}

.form-foot {
  margin-top: 14px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--texto-suave);
}

/* Form sections (survey) */
.form-section {
  border: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-legend {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accion);
  padding: 0;
  margin-bottom: 4px;
}
.field-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--confianza);
  display: block;
  margin-bottom: 4px;
}
.field select {
  padding: 12px 14px;
  border: 1.5px solid var(--borde-sutil);
  background: var(--fondo);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--confianza);
  min-height: 48px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6470' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.field select:focus {
  outline: none;
  border-color: var(--accion);
  box-shadow: 0 0 0 4px rgba(232, 101, 26, 0.15);
}
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1.5px solid var(--borde-sutil);
  background: var(--fondo);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--confianza);
  cursor: pointer;
  transition: all 180ms var(--ease-out);
  user-select: none;
}
.chip:hover {
  border-color: var(--accion);
  color: var(--accion);
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip:has(input:checked) {
  background: var(--accion);
  border-color: var(--accion);
  color: white;
}
.chip:has(input:focus-visible) {
  outline: 2px solid var(--accion);
  outline-offset: 2px;
}

.form-success {
  text-align: center;
  padding: 32px 16px;
  display: none;
}
.form-success.visible { display: block; }
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #DDF1DE;
  color: #2A6B3E;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.success-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success-icon svg polyline {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
}
.form-success.visible .success-icon {
  animation: successPop 480ms var(--ease-out) backwards;
}
.form-success.visible .success-icon svg polyline {
  animation: successDraw 600ms var(--ease-out) 240ms forwards;
}
@keyframes successPop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes successDraw {
  to { stroke-dashoffset: 0; }
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--texto-suave); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  counter-reset: faqnum;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  position: relative;
  background: var(--fondo-alt);
  border: 1px solid var(--borde-sutil);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
}
/* Barra lateral naranja: invisible por defecto, se "ilumina" al hover y al abrir */
.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accion);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 280ms var(--ease-out);
}
.faq-item:hover {
  border-color: rgba(232, 101, 26, 0.28);
  box-shadow: var(--shadow-sm);
}
.faq-item:hover::before { transform: scaleY(0.4); }
.faq-item[open] {
  border-color: rgba(232, 101, 26, 0.38);
  box-shadow: var(--shadow-md);
  background:
    linear-gradient(180deg, rgba(232, 101, 26, 0.04), transparent 38%),
    var(--fondo-alt);
}
.faq-item[open]::before { transform: scaleY(1); }

.faq-q {
  list-style: none;
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 22px 20px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--confianza);
  cursor: pointer;
  transition: color 180ms ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before {
  counter-increment: faqnum;
  content: counter(faqnum, decimal-leading-zero);
  flex-shrink: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accion);
  letter-spacing: 0.06em;
  min-width: 24px;
}
.faq-q > span:not(.faq-toggle) { flex: 1; }
.faq-item:hover .faq-q { color: var(--accion); }

.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--accion);
  transition: transform 280ms var(--ease-out);
  margin-left: auto;
}
.faq-toggle svg {
  width: 18px;
  height: 18px;
}
.faq-item[open] .faq-toggle { transform: rotate(180deg); }

/* Apertura: max-height + fade-in del contenido */
.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 320ms var(--ease-out), opacity 220ms ease 60ms;
}
.faq-item[open] .faq-a {
  max-height: 600px;
  opacity: 1;
}
.faq-a-inner {
  padding: 0 26px 22px 56px;
  color: var(--texto-suave);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 720px;
  transform: translateY(-6px);
  transition: transform 280ms var(--ease-out);
}
.faq-item[open] .faq-a-inner { transform: translateY(0); }

@media (max-width: 600px) {
  .faq-q { padding: 18px 16px 18px 20px; gap: 14px; font-size: 1rem; }
  .faq-a-inner { padding: 0 20px 20px 46px; font-size: 0.9375rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--confianza);
  color: var(--fondo);
  padding-block: 64px 32px;
}
.footer a { color: var(--fondo); }
.footer a:hover { color: var(--acento); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; }
}
.footer-brand .brand { color: var(--fondo); }
.footer-tag {
  margin-top: 14px;
  font-style: italic;
  color: var(--acento);
  font-size: 0.9375rem;
}
.footer-desc {
  margin-top: 12px;
  color: rgba(255, 248, 240, 0.75);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 360px;
}
.footer-col h4 {
  color: var(--fondo);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 0.9375rem;
  color: rgba(255, 248, 240, 0.85);
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.9375rem;
  color: rgba(255, 248, 240, 0.85);
}
.footer-contact-list .icon {
  display: inline-block;
  width: 20px;
  margin-right: 6px;
  color: var(--accion);
}
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 248, 240, 0.12);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 248, 240, 0.65);
}

/* ============================================================
   LEGAL
   ============================================================ */
.legal-page {
  background: var(--fondo);
  min-height: 100vh;
}
.legal-container {
  max-width: 820px;
}
.legal-container h1 {
  margin-top: 28px;
  margin-bottom: 12px;
}
.legal-container h2 {
  margin-top: 36px;
  margin-bottom: 10px;
  font-size: 1.35rem;
}
.legal-container p {
  color: var(--texto-suave);
}
.legal-note {
  margin-top: 40px;
  padding: 18px 20px;
  border-left: 3px solid var(--accion);
  background: var(--fondo-alt);
}

/* ============================================================
   REVEAL ANIMATION (scroll-triggered)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 400ms; }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .hero-bg::before, .hero-bg::after { animation: none !important; }
  .scroll-loop-video { display: none !important; }
  .reveal, .reveal-stagger > *, .hero-copy .stagger, .hero-visual {
    opacity: 1 !important;
    transform: none !important;
  }
  .btn-pulse { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Lo último en LinkedIn (tarjetas estáticas, indexables)
   ============================================================ */
.li-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .li-grid { grid-template-columns: repeat(3, 1fr); }
}
.li-card {
  display: flex;
  flex-direction: column;
  background: var(--fondo-alt);
  border: 1px solid var(--borde-sutil);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), border-color 250ms;
}
.li-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accion);
}
.li-card__media {
  display: block;
  aspect-ratio: 1200 / 627;
  background: var(--fondo);
  overflow: hidden;
}
.li-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
.li-card:hover .li-card__media img { transform: scale(1.04); }
.li-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
}
.li-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0A66C2;
}
.li-badge svg { width: 18px; height: 18px; }
.li-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--confianza);
}
.li-card__excerpt {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--texto-suave);
}
.li-card__link {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 600;
  color: var(--accion);
}
.li-foot {
  margin-top: 36px;
  text-align: center;
}
.li-follow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  color: #fff;
  background: #0A66C2;
  padding: 12px 22px;
  border-radius: 10px;
  transition: filter 150ms, transform 150ms var(--ease-out);
}
.li-follow:hover { filter: brightness(1.07); transform: translateY(-2px); }
.li-follow svg { width: 20px; height: 20px; }

/* Footer · íconos sociales */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 248, 240, 0.08);
  border: 1px solid rgba(255, 248, 240, 0.14);
  color: var(--fondo);
  transition: background 150ms, color 150ms, transform 150ms var(--ease-out);
}
.footer-social a:hover {
  background: var(--accion);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social svg { width: 20px; height: 20px; }
