/* ──────────────────────────────────────────────────────────
 * Rumbo Pro — Landing styles (paleta índigo tech)
 * ────────────────────────────────────────────────────────── */

:root {
  /* Paleta índigo tech */
  --primary: #635BFF;          /* índigo principal (Stripe-like) */
  --primary-dark: #4F46E5;
  --primary-light: #818CF8;
  --accent: #00D4FF;           /* cyan accent */
  --accent-2: #A78BFA;         /* lavanda */

  /* Fondos oscuros */
  --bg-dark: #0A0E1F;          /* casi-negro con tinte azul */
  --bg-darker: #06091A;
  --bg-navy: #0F1B3D;          /* navy profundo */

  /* Fondos claros */
  --bg: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-soft: #F1F5F9;

  /* Texto */
  --ink: #0F172A;              /* casi-negro */
  --ink-muted: #475569;        /* gris medio */
  --ink-soft: #64748B;         /* gris suave */
  --ink-faded: #94A3B8;        /* gris bajo contraste */
  --ink-on-dark: #FFFFFF;
  --ink-on-dark-muted: #CBD5E1;
  --ink-on-dark-faded: #94A3B8;

  /* Bordes */
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-on-dark: rgba(255, 255, 255, 0.08);

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --shadow-primary: 0 10px 30px rgba(99, 91, 255, 0.25);

  /* Spacing */
  --container: 1180px;
  --section-y: 96px;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Escala global: el contenido se ve al 90% del tamaño físico,
   * de modo que el "100% del browser" ahora muestra lo que antes
   * se veía con Ctrl+- una vez. */
  zoom: 0.9;
}
/* En móvil mantenemos zoom 1 para no romper proporciones táctiles */
@media (max-width: 720px) {
  html { zoom: 1; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ──────────────────────────────────────────────────────────
 * HEADER + NAV
 * ────────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  margin-right: auto;
}
.logo-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  color: var(--primary);
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-text {
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo-text em {
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
}

.nav__menu {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s;
}
.nav__link:hover { color: var(--ink); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.25);
}
.nav__cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 91, 255, 0.35);
}

/* Atajos en el nav (Diagnóstico / Calculadora) */
.nav__link--shortcut {
  background: rgba(99, 91, 255, 0.08);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 13px !important;
  transition: all 0.15s;
}
.nav__link--shortcut:hover {
  background: var(--primary);
  color: white !important;
}

/* Botones de atajo en el hero */
.btn--shortcut {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--shortcut:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  color: white;
  transform: translateY(-1px);
}
.btn__emoji {
  font-size: 16px;
  filter: grayscale(0%);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.2s;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ──────────────────────────────────────────────────────────
 * HERO
 * ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 0 120px;
  background: var(--bg-dark);
  color: white;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero__flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}
.hero__glow--1 {
  top: -200px;
  left: -100px;
  background: var(--primary);
}
.hero__glow--2 {
  bottom: -200px;
  right: -100px;
  background: var(--accent);
  opacity: 0.25;
}
.hero__content { position: relative; max-width: 920px; }
.hero__tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-on-dark-muted);
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.04);
}
.hero__title {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 24px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 60%, var(--primary-light) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-on-dark-muted);
  max-width: 680px;
  margin: 0 0 36px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 24px rgba(99, 91, 255, 0.35);
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(99, 91, 255, 0.45);
}
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}
.btn--lg {
  padding: 16px 28px;
  font-size: 16px;
}

/* ──────────────────────────────────────────────────────────
 * STATS BAR
 * ────────────────────────────────────────────────────────── */
.stats {
  background: var(--bg-darker);
  color: white;
  border-top: 1px solid var(--border-on-dark);
  padding: 36px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
}
.stats__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-on-dark-faded);
  line-height: 1.4;
}

/* ──────────────────────────────────────────────────────────
 * SECTION HEADER (común)
 * ────────────────────────────────────────────────────────── */
.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink);
}
.section-lead {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
 * SERVICIOS
 * ────────────────────────────────────────────────────────── */
.services { padding: var(--section-y) 0; background: var(--bg); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.2s;
}
.service-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-2) 100%);
  color: white;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.25);
}
.service-card__icon svg {
  width: 24px;
  height: 24px;
}
.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 14px;
}
.service-card__bullets {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-card__bullets li {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
}
.service-card__bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────
 * PORTAFOLIO
 * ────────────────────────────────────────────────────────── */
.portfolio {
  padding: var(--section-y) 0;
  background: var(--bg-surface);
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  display: block;
  color: inherit;
  text-decoration: none;
}
.portfolio-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.portfolio-card__cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.01em;
}
.portfolio-card:hover .portfolio-card__cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portfolio-card__media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1e293b 0%, #0F1B3D 100%);
  overflow: hidden;
  position: relative;
}
.portfolio-card__media img {
  width: 100%;
  height: calc(100% - 32px);
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
  display: block;
}
.portfolio-card:hover .portfolio-card__media img {
  transform: scale(1.03);
}

/* ============================================================
   BROWSER FRAME — overlay tipo Chrome window arriba de la imagen
   ============================================================ */
.browser-frame {
  background: #1F2937;
}
.browser-frame__bar {
  position: relative;
  height: 32px;
  background: linear-gradient(180deg, #2A3441 0%, #1F2937 100%);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 2;
}
.browser-frame__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2);
}
.browser-frame__dot--r { background: #FF5F57; }
.browser-frame__dot--y { background: #FEBC2E; }
.browser-frame__dot--g { background: #28C840; }
.browser-frame__url {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 16px 4px 28px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-frame__url::before {
  content: '🔒';
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  opacity: 0.6;
}
.portfolio-card__body {
  padding: 20px 22px 24px;
}
.portfolio-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(99, 91, 255, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.portfolio-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.portfolio-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
 * PROCESO
 * ────────────────────────────────────────────────────────── */
.process { padding: var(--section-y) 0; background: var(--bg); }
.process__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: process;
}
.process-step {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.process-step__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(99, 91, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.process-step h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.process-step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
 * SOBRE
 * ────────────────────────────────────────────────────────── */
.about {
  padding: var(--section-y) 0;
  background: var(--bg-surface);
}
.about__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.about__copy .section-tag { margin-bottom: 12px; }
.about__copy .section-title { text-align: left; margin-bottom: 20px; }
.about__copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 16px;
}
.about__card {
  background: var(--bg-dark);
  color: white;
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 96px;
}
.about__card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-on-dark);
  gap: 16px;
}
.about__card-row:last-child { border-bottom: none; }
.about__card-label {
  font-size: 13px;
  color: var(--ink-on-dark-faded);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.about__card-value {
  font-size: 14.5px;
  color: white;
  font-weight: 600;
  text-align: right;
}

/* ──────────────────────────────────────────────────────────
 * CTA FINAL
 * ────────────────────────────────────────────────────────── */
.cta-final {
  position: relative;
  padding: 100px 0;
  background: var(--bg-dark);
  color: white;
  overflow: hidden;
  text-align: center;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(99, 91, 255, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(0, 212, 255, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final__inner {
  position: relative;
  max-width: 720px;
}
.cta-final__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.cta-final__lead {
  font-size: 18px;
  color: var(--ink-on-dark-muted);
  margin: 0 0 32px;
  line-height: 1.6;
}
.cta-final__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cta-final__note {
  font-size: 13px;
  color: var(--ink-on-dark-faded);
  margin: 0;
}
.cta-final__note strong {
  color: white;
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────
 * FOOTER
 * ────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-darker);
  color: var(--ink-on-dark-muted);
  padding: 64px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-on-dark);
}
.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a {
  font-size: 14px;
  color: var(--ink-on-dark-muted);
  transition: color 0.15s;
}
.footer__col a:hover { color: white; }
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-light);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.footer__logo .logo-text { color: white; }
.footer__copy {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-on-dark-faded);
  margin: 0;
  max-width: 320px;
}
.footer__bottom {
  padding-top: 24px;
}
.footer__bottom p {
  font-size: 13px;
  color: var(--ink-on-dark-faded);
  margin: 0;
}

/* ──────────────────────────────────────────────────────────
 * RESPONSIVE
 * ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid,
  .portfolio__grid,
  .process__list { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --section-y: 72px; }
  .nav__menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    background: white;
    flex-direction: column;
    padding: 32px;
    gap: 16px;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    visibility: hidden;
    z-index: 80;
  }
  .nav__menu.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .nav__link { font-size: 17px; }
  .hamburger { display: flex; }
  .nav__cta { display: none; }

  .hero { padding: 64px 0 80px; }
  .stats__grid { grid-template-columns: 1fr; }
  .services__grid,
  .portfolio__grid,
  .process__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__card { position: static; }
}

/* ============================================================
 * TABS INTERACTIVOS DE SERVICIOS
 * ============================================================ */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  padding: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab__ico { font-size: 16px; }
.tab:hover { color: var(--ink); background: rgba(99, 91, 255, 0.06); }
.tab.is-active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}

.tab-panels {
  position: relative;
  min-height: 480px;
}
.tab-panel {
  display: none;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  animation: panelIn 0.4s ease-out;
}
.tab-panel.is-active { display: grid; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-copy h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.panel-copy > p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin: 0 0 22px;
}
.panel-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 28px;
  list-style: none;
  padding: 0;
}
.panel-bullets li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
}
.panel-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  background: rgba(99, 91, 255, 0.12);
  color: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.panel-includes {
  margin: 0 0 22px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.06), rgba(0, 212, 255, 0.06));
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.panel-includes strong {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.panel-mockup {
  position: relative;
  perspective: 1200px;
}

/* ============================================================
 * MOCKUP — BROWSER (Sitios web)
 * ============================================================ */
.mockup-browser {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  transform: rotate3d(1, -0.4, 0, 4deg);
  transition: transform 0.4s;
}
.mockup-browser:hover { transform: rotate3d(0, 0, 0, 0deg); }
.mockup-browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}
.mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.mockup-dot--r { background: #FF5F57; }
.mockup-dot--y { background: #FEBC2E; }
.mockup-dot--g { background: #28C840; }
.mockup-browser__url {
  margin-left: 14px;
  background: white;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  color: #475569;
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}
.mockup-browser__body {
  padding: 32px 28px;
  background: linear-gradient(180deg, white 0%, #FAFAFA 100%);
  min-height: 320px;
}
.mockup-hero-mini { text-align: center; margin-bottom: 28px; }
.mockup-pill {
  display: inline-block;
  background: rgba(99, 91, 255, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.mockup-h {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #0F172A;
  margin-bottom: 18px;
}
.mockup-h span {
  background: linear-gradient(120deg, #635BFF, #06B6D4);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.mockup-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.mockup-btn {
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}
.mockup-btn--primary { background: #635BFF; color: white; }
.mockup-btn--ghost { background: white; color: #475569; border: 1px solid #E2E8F0; }
.mockup-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mockup-tile {
  height: 60px;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.mockup-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.7) 50%, transparent 70%);
  animation: shimmer 2.5s infinite;
}
.mockup-tile:nth-child(2)::before { animation-delay: 0.3s; }
.mockup-tile:nth-child(3)::before { animation-delay: 0.6s; }
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================================
 * MOCKUP — PHONE (WhatsApp)
 * ============================================================ */
.mockup-phone {
  max-width: 340px;
  margin: 0 auto;
  background: #111B21;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  border: 8px solid #0B1014;
}
.mockup-phone__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  background: #202C33;
  color: white;
}
.mockup-phone__back { font-size: 22px; color: #94A3B8; }
.mockup-phone__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #635BFF, #06B6D4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
}
.mockup-phone__name { font-size: 14px; font-weight: 600; }
.mockup-phone__status { font-size: 11px; color: #25D366; }
.mockup-phone__chat {
  background: #0B141A;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(99, 91, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  padding: 16px 12px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mockup-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.4;
  color: white;
  animation: bubbleIn 0.4s ease-out;
}
.mockup-bubble--in {
  background: #202C33;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.mockup-bubble--out {
  background: #005C4B;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.mockup-bubble:nth-child(2) { animation-delay: 0.2s; animation-fill-mode: backwards; }
.mockup-bubble:nth-child(3) { animation-delay: 0.4s; animation-fill-mode: backwards; }
.mockup-bubble:nth-child(4) { animation-delay: 0.6s; animation-fill-mode: backwards; }
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.mockup-typing {
  align-self: flex-end;
  background: #005C4B;
  padding: 10px 14px;
  border-radius: 10px;
  border-bottom-right-radius: 2px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.mockup-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  opacity: 0.5;
  animation: typingDot 1.4s infinite;
}
.mockup-typing span:nth-child(2) { animation-delay: 0.2s; }
.mockup-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* ============================================================
 * MOCKUP — DASHBOARD (ERPs)
 * ============================================================ */
.mockup-dash {
  display: grid;
  grid-template-columns: 56px 1fr;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  min-height: 380px;
}
.mockup-dash__sidebar {
  background: #0F172A;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.mockup-dash__brand {
  color: #635BFF;
  font-size: 22px;
  line-height: 1;
}
.mockup-dash__menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mockup-dash__item {
  color: #94A3B8;
  font-size: 18px;
  padding: 8px;
  border-radius: 6px;
  line-height: 1;
}
.mockup-dash__item.is-active {
  color: white;
  background: rgba(99, 91, 255, 0.2);
}
.mockup-dash__main {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mockup-dash__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mockup-dash__title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
}
.mockup-dash__chip {
  background: #F1F5F9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
}
.mockup-dash__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mockup-kpi {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 12px 14px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mockup-kpi__lbl {
  font-size: 10px;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.mockup-kpi__num {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.02em;
}
.mockup-kpi__trend {
  font-size: 10.5px;
  font-weight: 600;
}
.mockup-trend--up { color: #16A34A; }
.mockup-trend--down { color: #DC2626; }
.mockup-dash__chart {
  flex: 1;
  background: #FAFBFC;
  border-radius: 8px;
  padding: 14px;
  min-height: 120px;
}
.mockup-dash__chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
 * MOCKUP — FLOW (Automatizaciones)
 * ============================================================ */
.mockup-flow {
  background: linear-gradient(135deg, #FAFAFA 0%, #F4F4F5 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  min-height: 280px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}
.mockup-flow__lines {
  position: absolute;
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  pointer-events: none;
}
.mockup-node {
  position: absolute;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  min-width: 100px;
  transition: transform 0.2s;
}
.mockup-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(99, 91, 255, 0.15);
}
.mockup-node__ico {
  font-size: 18px;
  flex-shrink: 0;
}
.mockup-node strong {
  display: block;
  font-size: 11.5px;
  color: #0F172A;
  font-weight: 700;
}
.mockup-node span {
  font-size: 10.5px;
  color: #64748B;
}
.mockup-node--trig { border-left: 3px solid #635BFF; }
.mockup-node--ai { border-left: 3px solid #A78BFA; background: linear-gradient(135deg, white, #FAF5FF); }
.mockup-node--act { border-left: 3px solid #06B6D4; }

/* ============================================================
 * MOCKUP — AUDIT (Marketing IA)
 * ============================================================ */
.mockup-audit {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.mockup-audit__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 14px;
}
.mockup-audit__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mockup-audit__url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #0F172A;
  font-weight: 600;
}
.mockup-score {
  position: relative;
  width: 60px;
  height: 60px;
}
.mockup-score svg { width: 60px; height: 60px; }
.mockup-score span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #16A34A;
}
.mockup-audit__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mockup-audit__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  background: #FAFBFC;
  border-radius: 8px;
}
.mockup-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: white;
}
.mockup-audit__item--ok .mockup-check { background: #16A34A; }
.mockup-audit__item--warn .mockup-check { background: #F59E0B; }
.mockup-audit__item--bad .mockup-check { background: #DC2626; }
.mockup-audit__item strong {
  display: block;
  font-size: 13px;
  color: #0F172A;
  font-weight: 600;
}
.mockup-audit__item span {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.4;
}

/* ============================================================
 * RESPONSIVE TABS + MOCKUPS
 * ============================================================ */
@media (max-width: 960px) {
  .tabs { max-width: 100%; overflow-x: auto; justify-content: flex-start; flex-wrap: nowrap; }
  .tab { white-space: nowrap; }
  .tab-panel.is-active { grid-template-columns: 1fr; gap: 36px; }
  .mockup-browser { transform: none; }
}

/* ============================================================
 * ANIMACIONES SCROLL FADE-IN
 * ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
 * HERO ROTATING TEXT (typewriter)
 * ============================================================ */
.hero__rotator {
  display: inline-block;
  min-width: 11ch;
  position: relative;
  white-space: nowrap;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 60%, var(--primary-light) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero__rotator::after {
  content: "|";
  display: inline-block;
  margin-left: 4px;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  background: none;
  font-weight: 400;
  animation: caret 1s steps(1) infinite;
}
@media (max-width: 720px) {
  .hero__rotator { min-width: auto; white-space: normal; }
}
@keyframes caret {
  50% { opacity: 0; }
}

/* ============================================================
 * COUNTER STAT — preparado para JS
 * ============================================================ */
.stat-num.is-counting { font-variant-numeric: tabular-nums; }

/* ============================================================
 * TERMINAL MOCKUP (sección Proceso)
 * ============================================================ */
.terminal {
  max-width: 880px;
  margin: 0 auto;
  background: #0A0E1F;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(99, 91, 255, 0.18);
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #1A1F35 0%, #14182B 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.terminal__dot--r { background: #FF5F57; }
.terminal__dot--y { background: #FEBC2E; }
.terminal__dot--g { background: #28C840; }
.terminal__title {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}
.terminal__tab {
  font-size: 11px;
  padding: 3px 9px;
  background: rgba(99, 91, 255, 0.18);
  color: #A78BFA;
  border-radius: 4px;
  border: 1px solid rgba(99, 91, 255, 0.25);
}
.terminal__body {
  padding: 24px 28px 32px;
  min-height: 460px;
  font-size: 14px;
  line-height: 1.65;
  color: #E2E8F0;
  position: relative;
}
.terminal__body .t-prompt { color: #A78BFA; }
.terminal__body .t-cmd { color: #FFFFFF; font-weight: 600; }
.terminal__body .t-arg { color: #06B6D4; }
.terminal__body .t-comment { color: #64748B; font-style: italic; }
.terminal__body .t-header {
  color: #FEBC2E;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  display: inline-block;
  margin-top: 8px;
}
.terminal__body .t-step-num {
  color: #635BFF;
  background: rgba(99, 91, 255, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}
.terminal__body .t-check {
  color: #22C55E;
  font-weight: 700;
}
.terminal__body .t-arrow {
  color: #A78BFA;
}
.terminal__body .t-success {
  color: #22C55E;
  font-weight: 600;
}
.terminal__body .t-info {
  color: #06B6D4;
}
.terminal__body .t-key {
  color: #FBBF24;
}
.terminal__body .t-link {
  color: #38BDF8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.terminal__line {
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal__line--empty { height: 1.65em; }
.terminal__caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: #06B6D4;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: termCaret 1s steps(1) infinite;
}
@keyframes termCaret { 50% { opacity: 0; } }

.terminal__live-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 260px;
}
.terminal__live-input {
  min-width: 200px;
}
.terminal__caret--live {
  /* Hereda animación termCaret del .terminal__caret base */
  margin-left: 0;
}
.terminal__live-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #F1F5F9;
  font-family: 'JetBrains Mono', monospace;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  caret-color: #06B6D4;
}
.terminal__live-input::placeholder {
  color: #475569;
  font-style: italic;
}
.terminal__live-input:focus { outline: none; }
.terminal__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.terminal__cta-hint {
  font-size: 13px;
  color: var(--ink-muted);
  font-family: 'JetBrains Mono', monospace;
}
@media (max-width: 720px) {
  .terminal__body { padding: 18px 18px 24px; font-size: 12.5px; min-height: 540px; }
  .terminal__title { font-size: 10px; }
}

/* ============================================================
 * CHAT WIDGET FLOTANTE (esquina inferior derecha)
 * ============================================================ */
.chatw {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.chatw__fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #635BFF 0%, #00D4FF 100%);
  color: white;
  box-shadow:
    0 12px 28px rgba(99, 91, 255, 0.45),
    0 0 0 0 rgba(99, 91, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s;
  animation: fabPulse 2.5s ease-in-out infinite;
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(99, 91, 255, 0.45), 0 0 0 0 rgba(99, 91, 255, 0.5); }
  50%      { box-shadow: 0 12px 28px rgba(99, 91, 255, 0.5),  0 0 0 14px rgba(99, 91, 255, 0); }
}
.chatw__fab:hover {
  transform: translateY(-2px) scale(1.05);
  animation: none;
}
.chatw__fab-ico {
  width: 26px;
  height: 26px;
  transition: opacity 0.2s, transform 0.25s;
}
.chatw__fab-ico--close {
  position: absolute;
  opacity: 0;
  transform: rotate(-45deg);
}
.chatw.is-open .chatw__fab-ico--chat {
  opacity: 0;
  transform: rotate(45deg);
}
.chatw.is-open .chatw__fab-ico--close {
  opacity: 1;
  transform: rotate(0);
}
.chatw.is-open .chatw__fab { animation: none; }
.chatw__fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  background: #FF5F57;
  color: white;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid white;
}
.chatw.is-open .chatw__fab-badge { display: none; }
.chatw__fab-badge.is-hidden { display: none; }

.chatw__panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: white;
  border-radius: 18px;
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(99, 91, 255, 0.1);
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  display: none; /* oculto por defecto */
}
.chatw__panel.is-open {
  display: flex;
  animation: chatPanelIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Forzar oculto si tiene el atributo [hidden] como fallback */
.chatw__panel[hidden] { display: none !important; }
@keyframes chatPanelIn {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chatw__header {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
  color: white;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chatw__header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #635BFF, #00D4FF);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.4);
}
.chatw__header-avatar svg { width: 22px; height: 22px; }
.chatw__header-info { flex: 1; }
.chatw__header-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.chatw__header-status {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}
.chatw__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: chatDot 2s ease-in-out infinite;
}
@keyframes chatDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.3); }
}
.chatw__header-close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.chatw__header-close:hover { background: rgba(255, 255, 255, 0.16); }
.chatw__header-close svg { width: 16px; height: 16px; }

.chatw__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 8px;
  background: #FAFBFC;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
.chatw__body::-webkit-scrollbar { width: 6px; }
.chatw__body::-webkit-scrollbar-thumb { background: rgba(99, 91, 255, 0.2); border-radius: 3px; }

.chatw__msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  animation: chatMsgIn 0.3s ease-out;
  word-wrap: break-word;
}
@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chatw__msg--bot {
  background: white;
  color: #0F172A;
  border: 1px solid #E5E7EB;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.chatw__msg--user {
  background: linear-gradient(135deg, #635BFF, #5046E5);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.25);
}
.chatw__msg strong { font-weight: 700; }
.chatw__msg a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.chatw__msg--user a { color: white; }
.chatw__msg-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 12px;
  background: #25D366;
  color: white !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s;
}
.chatw__msg-cta:hover { background: #128C7E; transform: translateY(-1px); }
.chatw__msg-cta svg { width: 14px; height: 14px; }

.chatw__typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.chatw__typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94A3B8;
  animation: chatTyping 1.4s infinite;
}
.chatw__typing span:nth-child(2) { animation-delay: 0.2s; }
.chatw__typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.chatw__quick {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #F8FAFC;
  border-top: 1px solid #E5E7EB;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.chatw__quick::-webkit-scrollbar { display: none; }
.chatw__chip {
  flex-shrink: 0;
  padding: 7px 12px;
  background: white;
  border: 1px solid #CBD5E1;
  border-radius: 100px;
  font-family: inherit;
  font-size: 12.5px;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  scroll-snap-align: start;
}
.chatw__chip:hover {
  border-color: #635BFF;
  color: #635BFF;
  background: rgba(99, 91, 255, 0.04);
}

.chatw__input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: white;
  border-top: 1px solid #E5E7EB;
}
.chatw__input input {
  flex: 1;
  border: 1px solid #E5E7EB;
  background: #F8FAFC;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.15s;
}
.chatw__input input:focus {
  border-color: #635BFF;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
}
.chatw__send {
  width: 40px;
  height: 40px;
  border: none;
  background: linear-gradient(135deg, #635BFF, #5046E5);
  color: white;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.chatw__send:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3); }
.chatw__send svg { width: 18px; height: 18px; }

.chatw__footer {
  padding: 8px 14px 10px;
  background: white;
  border-top: 1px solid #F1F5F9;
  text-align: center;
  font-size: 10.5px;
  color: #94A3B8;
}

@media (max-width: 480px) {
  .chatw { bottom: 16px; right: 16px; }
  .chatw__panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 100px);
    right: -8px;
  }
}

/* ============================================================
 * SECCIÓN "QUIÉN ESTÁ ATRÁS" — 3 ALTERNATIVAS INTERACTIVAS
 * ============================================================ */
/* Segmented pill (reemplaza abx-tabs) */
.seg-tabs {
  display: flex;
  width: fit-content;
  margin: 0 auto 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  gap: 2px;
}
.seg-tab {
  background: transparent;
  border: none;
  padding: 10px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.seg-tab:hover {
  color: var(--ink);
  background: rgba(99, 91, 255, 0.05);
}
.seg-tab.is-active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 14px rgba(99, 91, 255, 0.4);
}

/* Mantener compat con código viejo del JS */
.abx-tabs, .abx-tab { display: none; }
.abx-panel { display: none; animation: panelIn 0.4s ease-out; }
.abx-panel.is-active { display: block; }

/* ────── 1. CALCULADORA DE PRESUPUESTO ────── */
.calc {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
.calc__controls h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.calc__lead {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 28px;
}
.calc__group { margin-bottom: 26px; }
.calc__group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}
.calc__services {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-svc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.calc-svc:hover { border-color: var(--primary-light); background: white; }
.calc-svc input { position: absolute; opacity: 0; pointer-events: none; }
.calc-svc__check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.calc-svc__check::after {
  content: "✓";
  color: white;
  font-weight: 700;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.15s;
}
.calc-svc input:checked ~ .calc-svc__check {
  background: var(--primary);
  border-color: var(--primary);
}
.calc-svc input:checked ~ .calc-svc__check::after { opacity: 1; }
.calc-svc:has(input:checked) {
  border-color: var(--primary);
  background: rgba(99, 91, 255, 0.06);
}
.calc-svc__ico { font-size: 22px; }
.calc-svc strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.calc-svc span:not(.calc-svc__check):not(.calc-svc__ico) { display: block; font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }

.calc__size {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.calc-size {
  position: relative;
  cursor: pointer;
}
.calc-size input { position: absolute; opacity: 0; pointer-events: none; }
.calc-size span {
  display: block;
  padding: 14px 12px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-align: center;
  transition: all 0.15s;
}
.calc-size span strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.calc-size span em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.calc-size input:checked ~ span {
  border-color: var(--primary);
  background: rgba(99, 91, 255, 0.08);
}
.calc-size input:checked ~ span strong { color: var(--primary); }

.calc__result { position: relative; }
.calc__result-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
  border-radius: 14px;
  padding: 28px 26px;
  color: white;
  position: sticky;
  top: 100px;
  min-height: 420px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}
.calc__result-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.calc__result-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.5);
}
.calc__empty-ico {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.4;
}
.calc__result-empty p { font-size: 14px; line-height: 1.5; }
.calc__result-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.calc__result-services .csvc {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 7px 0;
}
.calc__result-services .csvc::before {
  content: "✓";
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: #0F172A;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.calc__result-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 16px 0;
}
.calc__result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.calc__result-lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.calc__result-big {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}
.calc__result-val {
  font-size: 15px;
  font-weight: 600;
  color: white;
}
.calc__result-note {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin: 16px 0 20px;
}
.calc__result-cta { width: 100%; justify-content: center; }

/* ────── 2. QUIZ ────── */
.quiz {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(160deg, #0F172A 0%, #1E1B4B 60%, #0F172A 100%);
  border: 1px solid rgba(99, 91, 255, 0.2);
  border-radius: 18px;
  padding: 28px 32px 24px;
  box-shadow: 0 30px 70px -20px rgba(15, 23, 42, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.quiz::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(99, 91, 255, 0.22), transparent 65%);
  pointer-events: none;
}
.quiz::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.14), transparent 65%);
  pointer-events: none;
}
.quiz > * { position: relative; z-index: 1; }
.quiz__progress { margin-bottom: 24px; }
.quiz__progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.quiz__progress-pct {
  color: #00D4FF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.quiz__bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.quiz__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.55);
}
.quiz__steps { display: none; } /* legacy */
.quiz__q { display: none; flex: 1; }
.quiz__q.is-active { display: block; animation: panelIn 0.3s ease-out; }
.quiz__q h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: white;
}
.quiz__opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quiz__opts--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.quiz-opt {
  display: block;
  cursor: pointer;
  position: relative;
}
.quiz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-opt span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
  transition: all 0.18s ease;
  position: relative;
}
.quiz-opt span::after {
  content: '→';
  font-size: 16px;
  color: #00D4FF;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
  margin-left: 8px;
  font-weight: 700;
}
.quiz-opt:hover span {
  border-color: rgba(99, 91, 255, 0.55);
  background: rgba(99, 91, 255, 0.1);
  box-shadow: 0 4px 18px rgba(99, 91, 255, 0.2);
}
.quiz-opt:hover span::after {
  opacity: 1;
  transform: translateX(0);
}
.quiz-opt input:checked ~ span {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.22), rgba(0, 212, 255, 0.14));
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(99, 91, 255, 0.3);
}
.quiz-opt input:checked ~ span::after { opacity: 1; transform: translateX(0); }
.quiz__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.quiz__btn {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: all 0.15s;
}
.quiz__btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: white;
  background: rgba(99, 91, 255, 0.15);
}
.quiz__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.quiz__btn--next {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 18px rgba(99, 91, 255, 0.4);
}
.quiz__btn--next:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(99, 91, 255, 0.5);
}
.quiz__btn--next:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.quiz__result {
  display: none;
  text-align: center;
  animation: panelIn 0.4s ease-out;
}
.quiz__result.is-active { display: block; }
.quiz__result-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00D4FF;
  margin-bottom: 12px;
}
.quiz__result h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
  color: white;
}
.quiz__result-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.quiz__reco {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.quiz__reco--p1 { border-left-color: #F87171; }
.quiz__reco--p2 { border-left-color: #FBBF24; }
.quiz__reco--p3 { border-left-color: #4ADE80; }
.quiz__reco-pri {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.quiz__reco--p1 .quiz__reco-pri { background: rgba(248, 113, 113, 0.18); color: #FCA5A5; }
.quiz__reco--p2 .quiz__reco-pri { background: rgba(251, 191, 36, 0.18); color: #FCD34D; }
.quiz__reco--p3 .quiz__reco-pri { background: rgba(74, 222, 128, 0.18); color: #86EFAC; }
.quiz__reco-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}
.quiz__reco-body p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
}
.quiz__restart {
  display: block;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  margin: 16px auto 0;
}
.quiz__restart:hover { color: #00D4FF; }

@media (max-width: 960px) {
  .calc { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
  .calc__result-card { position: static; }
  .abx-tabs, .abx-tabs--2 { grid-template-columns: 1fr; }
  .quiz__opts--grid { grid-template-columns: 1fr; }
}

/* ============================================================
 * PORTAFOLIO FILTROS
 * ============================================================ */
.pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: -16px auto 36px;
}
.pf-filter {
  padding: 9px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.pf-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pf-filter.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.3);
}
.portfolio-card { transition: all 0.3s; }

/* ============================================================
   STACK BAND — banda de tecnologías con scroll infinito
   ============================================================ */
.stack-band {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, transparent 0%, rgba(99, 91, 255, 0.04) 50%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.stack-band__head {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stack-band__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
.stack-band__sub {
  font-size: 13px;
  color: var(--ink-muted);
}
.stack-band__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.stack-band__track {
  display: inline-flex;
  gap: 18px;
  white-space: nowrap;
  animation: stackScroll 30s linear infinite;
  padding: 6px 0;
  will-change: transform;
}
.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 26px;
  background: white;
  border: 1px solid rgba(99, 91, 255, 0.18);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.stack-chip:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 22px rgba(99, 91, 255, 0.18);
}
@keyframes stackScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ============================================================
   COMPARE — tabla Rumbo Pro vs agencia vs freelancer
   ============================================================ */
.compare {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #FAFBFF 0%, #FFF 100%);
}
.compare__wrap {
  margin: 40px auto 0;
  max-width: 980px;
  overflow-x: auto;
  border-radius: 18px;
  background: white;
  box-shadow: 0 30px 80px -30px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(99, 91, 255, 0.1);
}
.compare__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.compare__table thead {
  background: linear-gradient(180deg, #F8F9FF 0%, white 100%);
}
.compare__table th,
.compare__table td {
  padding: 16px 18px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid rgba(99, 91, 255, 0.06);
}
.compare__th-label {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare__th-us {
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.08), rgba(0, 212, 255, 0.06));
  position: relative;
}
.compare__th-pill {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(99, 91, 255, 0.35);
}
.compare__th-other {
  color: var(--ink-muted);
  font-weight: 600;
}
.compare__label {
  color: var(--ink);
  font-weight: 600;
}
.compare__cell {
  color: var(--ink-muted);
}
.compare__cell--us {
  background: rgba(99, 91, 255, 0.04);
  color: var(--ink);
}
.compare__cell--us strong { color: var(--primary); }
.cmp-yes {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border-radius: 50%;
  font-weight: 800;
  margin-right: 6px;
}
.cmp-no {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border-radius: 50%;
  font-weight: 800;
  margin-right: 6px;
}
.compare__note {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ============================================================
   INDUSTRIES — casos por rubro
   ============================================================ */
.industries {
  padding: 80px 0 32px;
  background: white;
}
.ind-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ind-card {
  padding: 0;
  background: linear-gradient(180deg, #FFF 0%, #FAFBFF 100%);
  border: 1px solid rgba(99, 91, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}
.ind-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 91, 255, 0.3);
  box-shadow: 0 20px 50px -20px rgba(99, 91, 255, 0.25);
}
.ind-card__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 91, 255, 0.18), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.14), transparent 60%),
    linear-gradient(135deg, #F8FAFF 0%, #EEF2FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s;
}
.ind-card:hover .ind-card__visual {
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 91, 255, 0.26), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.22), transparent 60%),
    linear-gradient(135deg, #F8FAFF 0%, #EEF2FF 100%);
}
.ind-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 91, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 91, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.ind-card__icon {
  position: relative;
  width: 44px;
  height: 44px;
  transition: transform 0.4s ease;
  z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(99, 91, 255, 0.22));
}
.ind-card:hover .ind-card__icon {
  transform: scale(1.08) rotate(-3deg);
}
.ind-card__chip {
  position: absolute;
  top: 10px;
  left: 12px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}
.ind-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ind-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--ink);
}
.ind-card__pitch {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.ind-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ind-card__bullets li {
  font-size: 12px;
  color: var(--ink);
  padding-left: 14px;
  position: relative;
  line-height: 1.45;
}
.ind-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
}
.ind-card__link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.ind-card__link:hover { text-decoration: underline; }
.ind-cta {
  margin-top: 40px;
  text-align: center;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.08), rgba(0, 212, 255, 0.06));
  border: 1px solid rgba(99, 91, 255, 0.12);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ind-cta p { max-width: 560px; }
.ind-cta p { margin: 0; color: var(--ink); font-size: 15px; }

/* ============================================================
   TESTIMONIALS — métricas reales
   ============================================================ */
.testim {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #FAFBFF 0%, white 100%);
  position: relative;
}
.testim__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testim__card {
  padding: 30px 26px;
  background: white;
  border: 1px solid rgba(99, 91, 255, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.testim__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.15);
}
.testim__card--accent {
  background: linear-gradient(160deg, #0F172A 0%, #1E1B4B 100%);
  color: white;
  border-color: transparent;
}
.testim__card--accent .testim__quote { color: rgba(255, 255, 255, 0.92); }
.testim__card--accent .testim__role  { color: rgba(255, 255, 255, 0.85); }
.testim__card--accent .testim__stack { color: rgba(255, 255, 255, 0.55); }
.testim__metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.testim__num {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.testim__card--accent .testim__num {
  background: linear-gradient(135deg, #00D4FF, #A78BFA);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.testim__unit {
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 600;
}
.testim__card--accent .testim__unit { color: rgba(255, 255, 255, 0.7); }
.testim__quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
  font-style: italic;
}
.testim__quote::before {
  content: '"';
  font-size: 40px;
  line-height: 0;
  vertical-align: -18px;
  color: var(--primary);
  font-weight: 800;
  margin-right: 2px;
}
.testim__meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(99, 91, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.testim__card--accent .testim__meta { border-top-color: rgba(255, 255, 255, 0.12); }
.testim__role {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.testim__stack {
  font-size: 12px;
  color: var(--ink-muted);
}
.testim__disclaimer {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
  font-style: italic;
}

/* ============================================================
   ROI — calculadora de ahorro
   ============================================================ */
.roi {
  padding: 100px 0 80px;
  background: linear-gradient(160deg, #0F172A 0%, #1E1B4B 60%, #0F172A 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.roi::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 91, 255, 0.25), transparent 60%);
  pointer-events: none;
}
.roi::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.roi .section-title { color: white; }
.roi .section-lead { color: rgba(255, 255, 255, 0.75); }
.roi .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #00D4FF;
  border-color: rgba(0, 212, 255, 0.25);
}
.roi__wrap {
  position: relative;
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: start;
}
.roi__inputs {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.roi__field { display: flex; flex-direction: column; gap: 10px; }
.roi__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.roi__field--cost .roi__label {
  color: #00D4FF;
  font-weight: 600;
}
.roi__slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.roi__slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  outline: none;
}
.roi__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.5);
}
.roi__slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.5);
}
.roi__output {
  min-width: 75px;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: white;
  font-weight: 600;
}
.roi__results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.roi__result-card {
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.roi__result-card--main {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.2), rgba(0, 212, 255, 0.12));
  border-color: rgba(99, 91, 255, 0.4);
}
.roi__result-card--payback {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(0, 212, 255, 0.1));
  border-color: rgba(167, 139, 250, 0.3);
}
.roi__result-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.roi__result-num {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #FFF, #A78BFA);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.roi__result-card--main .roi__result-num {
  font-size: 42px;
  background: linear-gradient(135deg, #00D4FF, #FFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.roi__result-num--secondary { font-size: 22px; }
.roi__result-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}
.roi__cta {
  grid-column: 1 / -1;
  margin-top: 8px;
  justify-content: center;
}
.roi__disclaimer {
  position: relative;
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* ============================================================
   FAQ — acordeón
   ============================================================ */
.faq {
  padding: 100px 0 80px;
  background: white;
}
.faq__container { max-width: 820px; }
.faq__list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: white;
  border: 1px solid rgba(99, 91, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq__item[open] {
  border-color: rgba(99, 91, 255, 0.4);
  box-shadow: 0 10px 30px -10px rgba(99, 91, 255, 0.2);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  transition: background 0.15s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: rgba(99, 91, 255, 0.03); }
.faq__icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 91, 255, 0.08);
  color: var(--primary);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.25s, background 0.25s;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}
.faq__a {
  padding: 0 22px 22px;
  animation: faqSlide 0.25s ease;
}
.faq__a p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
}
.faq__a a {
  color: var(--primary);
  font-weight: 600;
}
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE — secciones nuevas
   ============================================================ */
@media (max-width: 960px) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .testim__grid { grid-template-columns: repeat(2, 1fr); }
  .roi__wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ind-grid { grid-template-columns: 1fr; }
  .testim__grid { grid-template-columns: 1fr; }
  .roi__results { grid-template-columns: 1fr; }
  .roi__result-card--main .roi__result-num { font-size: 32px; }
  .compare__table { font-size: 13px; }
  .compare__table th, .compare__table td { padding: 12px 10px; }
  .stack-chip { font-size: 13px; padding: 10px 18px; }
  .faq__q { font-size: 14px; padding: 16px 18px; }
}

/* ============================================================
   DOT NAV LATERAL — route map visual de secciones
   ============================================================ */
.dotnav {
  position: fixed;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  z-index: 90;
  pointer-events: none;
}
.dotnav__list {
  list-style: none;
  padding: 14px 10px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 91, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
/* Línea conectora */
.dotnav__list::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(99, 91, 255, 0.15), rgba(0, 212, 255, 0.10));
  transform: translateX(-50%);
  border-radius: 1px;
  z-index: 0;
}
.dotnav__dot {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  z-index: 1;
}
.dotnav__dot span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(99, 91, 255, 0.35);
  transition: all 0.3s ease;
}
.dotnav__dot:hover span {
  border-color: var(--primary);
  transform: scale(1.25);
}
.dotnav__dot.is-active span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.15), 0 4px 12px rgba(99, 91, 255, 0.35);
}
/* Tooltip a la izquierda */
.dotnav__dot::before {
  content: attr(data-label);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #0F172A;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}
.dotnav__dot::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #0F172A;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.dotnav__dot:hover::before,
.dotnav__dot:hover::after {
  opacity: 1;
}
.dotnav__dot:hover::before {
  transform: translateY(-50%) translateX(0);
}

/* Ocultar dotnav en mobile y tablet (no calza con el chat widget) */
@media (max-width: 980px) {
  .dotnav { display: none; }
}

/* ============================================================
   CTA FINAL — layout 2 columnas (WhatsApp + Form lead capture)
   ============================================================ */
.cta-final__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 2;
}
.cta-final__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.cta-final__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 32px 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
.cta-final__card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  background: rgba(0, 212, 255, 0.15);
  color: #00D4FF;
  border-radius: 999px;
  margin-bottom: 16px;
}
.cta-final__card h3 {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.cta-final__card p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  margin: 0 0 22px;
}
.cta-final__card--wa { background: linear-gradient(160deg, rgba(99, 91, 255, 0.18), rgba(0, 212, 255, 0.08)); border-color: rgba(99, 91, 255, 0.35); }
.cta-final__card--wa .cta-final__card-tag { background: rgba(34, 197, 94, 0.18); color: #4ADE80; }
.cta-final__alt {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cta-final__alt a {
  color: #00D4FF;
  font-weight: 600;
  text-decoration: none;
}

/* ============================================================
   LEAD FORM
   ============================================================ */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lead-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lead-form__field > span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}
.lead-form__field > span small {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 4px;
}
.lead-form__field input,
.lead-form__field select,
.lead-form__field textarea {
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: white;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.lead-form__field input::placeholder,
.lead-form__field textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.lead-form__field input:focus,
.lead-form__field select:focus,
.lead-form__field textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.06);
}
.lead-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%2300D4FF' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 6px;
  padding-right: 38px;
  cursor: pointer;
}
.lead-form__field select option { background: #1E1B4B; color: white; }
.lead-form__field textarea { resize: vertical; min-height: 64px; font-family: inherit; }
.lead-form__submit {
  margin-top: 4px;
  justify-content: center;
}
.lead-form__msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.lead-form__msg--ok   { background: rgba(34, 197, 94, 0.12);  color: #4ADE80; border: 1px solid rgba(34, 197, 94, 0.3); }
.lead-form__msg--err  { background: rgba(239, 68, 68, 0.12);  color: #FCA5A5; border: 1px solid rgba(239, 68, 68, 0.3); }
.lead-form__msg--warn { background: rgba(251, 191, 36, 0.12); color: #FCD34D; border: 1px solid rgba(251, 191, 36, 0.3); }
.lead-form__note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .cta-final__grid { grid-template-columns: 1fr; }
  .lead-form__row { grid-template-columns: 1fr; }
}

/* Badge "Caso de estudio" en portfolio card */
.portfolio-card__badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.15), rgba(0, 212, 255, 0.12));
  border: 1px solid rgba(99, 91, 255, 0.3);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Link "Leer caso completo" en testimonio */
.testim__case-link {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.testim__case-link:hover { border-bottom-color: var(--primary); }
.testim__card--accent .testim__case-link { color: #00D4FF; }

/* ============================================================
   PORTFOLIO CARD con caso de estudio enlazado (Restobar)
   ============================================================ */
.portfolio-card--has-case {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.portfolio-card--has-case .portfolio-card__main {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
/* CTA secundario al pie del card → link al caso de estudio */
.portfolio-card__case-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.12), rgba(0, 212, 255, 0.08));
  border-top: 1px solid rgba(99, 91, 255, 0.2);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s;
}
.portfolio-card__case-cta:hover {
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.22), rgba(0, 212, 255, 0.14));
}
.portfolio-card__case-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.portfolio-card__case-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.portfolio-card__case-label strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
}
.portfolio-card__case-label small {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-top: 2px;
}
.portfolio-card__case-arrow {
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.2s;
}
.portfolio-card__case-cta:hover .portfolio-card__case-arrow {
  transform: translateX(4px);
}

/* Y mantener el badge inline en testimonio activo */
.testim__case-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Badge "EN VIVO" para proyectos que están públicos en producción */
.portfolio-card__live-tag {
  position: absolute;
  top: 42px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.95);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
  animation: liveBlink 2.4s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.75; }
}

/* Featured card (Chinchi) — sutil glow para destacar producto propio */
.portfolio-card--featured {
  border: 1px solid rgba(99, 91, 255, 0.18);
  box-shadow: 0 20px 50px -20px rgba(99, 91, 255, 0.25);
}


/* ============================================================
   MOBILE FIXES UNIVERSALES (audit Playwright 2026-05-26)
   ============================================================ */
@media (max-width: 720px) {
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Tablas anchas → scroll horizontal nativo */
  table.compare__table,
  table.ot-table,
  table.tarifa,
  .table-scroll {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 12px;
  }
  table.compare__table th,
  table.compare__table td {
    padding: 8px 10px !important;
    font-size: 11.5px;
    white-space: normal;
    min-width: 110px;
  }

  /* Mockup side cards (caso restobar) */
  .mockup-side, .mockup-side__item {
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .mockup-side__item {
    font-size: 11.5px;
    padding: 8px 10px;
  }
  .mockup-side__ico { display: none !important; }

  /* SVG genéricos */
  svg:not([class*='ico']):not([class*='icon']) {
    max-width: 100%;
    height: auto;
  }
}
