/* ===========================================================
   PIXEL STUDIO — Design System
   Light theme · Brand #086CE7 · Ink #171726
   =========================================================== */



.extra{
  color: #086CE7;
}

 :root {
    --ease-spring: cubic-bezier(.22, 1, .36, 1);
  }

  #backToTop {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #2483F1 0%, #1467cc 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    box-shadow: 0 14px 36px -10px rgba(36, 131, 241, 0.65);
    transition:
      transform 0.4s var(--ease-spring),
      box-shadow 0.3s,
      opacity 0.35s var(--ease-spring);
  }

  #backToTop:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 50px -10px rgba(36, 131, 241, 0.8);
  }

  /* Hide when the user is still on the hero section */
  body.is-hero-visible #backToTop {
    opacity: 0;
    transform: translateY(20px) scale(0.85);
    pointer-events: none;
  }

  .top-btn__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #2483F1;
    animation: topPulse 2.4s ease-out infinite;
  }

  @keyframes topPulse {
    0% {
      transform: scale(1);
      opacity: 0.8;
    }

    70% {
      transform: scale(1.6);
      opacity: 0;
    }

    100% {
      opacity: 0;
    }
  }

  html {
    scroll-behavior: smooth;
  }
   
:root {
  /* Brand */
  --brand-500: #086CE7;
  --brand-400: #2E8BF5;
  --brand-300: #5BA8FF;
  --brand-600: #0759C4;
  --brand-700: #064AA0;
  --brand-soft: rgba(8, 108, 231, 0.08);
  --brand-softer: rgba(8, 108, 231, 0.04);

  /* Ink (text/contrast only — never as full background) */
  --ink-900: #171726;
  --ink-800: #1f1f30;
  --ink-700: #3a3a4d;
  --ink-500: #5a5a6e;
  --ink-400: #74748a;
  --ink-300: #b6b6c4;

  /* Surfaces */
  --bg: #f6f7fb;
  --bg-alt: #eef1f7;
  --surface: #ffffff;
  --surface-elev: #ffffff;

  /* Lines */
  --line: rgba(23, 23, 38, 0.07);
  --line-strong: rgba(23, 23, 38, 0.12);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(23, 23, 38, 0.04);
  --shadow-sm: 0 4px 14px -6px rgba(23, 23, 38, 0.10);
  --shadow-md: 0 14px 40px -18px rgba(23, 23, 38, 0.18);
  --shadow-lg: 0 30px 70px -30px rgba(8, 50, 130, 0.25);
  --shadow-brand: 0 18px 40px -18px rgba(8, 108, 231, 0.55);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #086CE7 0%, #2E8BF5 60%, #5BA8FF 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(8, 108, 231, 0.10), rgba(91, 168, 255, 0.04));
  --grad-text: linear-gradient(120deg, #086CE7 0%, #2E8BF5 50%, #086CE7 100%);

  /* Geometry */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Type */
  --font-sans: "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Contiene el sangrado de orbs, halos, cards con offsets negativos y slide-ins
     con translateX. El scroll horizontal en móvil aparecía porque overflow-x
     vivía solo en <body> y en iOS Safari el contenedor de scroll es <html>. */
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
svg { display: block; }

::selection { background: var(--brand-500); color: #fff; }

/* ============ DECORATIVE BACKGROUND ============ */
.bg-mesh,
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.bg-mesh {
  background:
    radial-gradient(800px 600px at 12% -10%, rgba(8, 108, 231, 0.10), transparent 70%),
    radial-gradient(900px 500px at 100% 8%, rgba(91, 168, 255, 0.10), transparent 70%),
    radial-gradient(700px 500px at 50% 120%, rgba(8, 108, 231, 0.05), transparent 70%);
}

.bg-grid {
  background-image:
    linear-gradient(to right, rgba(23, 23, 38, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 23, 38, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
}

/* ============ A11Y SKIP LINK ============
   Hidden until keyboard focus reveals it — lets screen-reader and keyboard
   users jump straight to the main content, skipping the navigation. */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--brand-500);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0 0 12px 0;
  transform: translateY(-110%);
  transition: transform 0.2s ease-out;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #fff;
  outline-offset: -3px;
}

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

.section {
  padding: 40px 0;
  position: relative;
}

/* Inner pages (no hero): clear the fixed navbar with a tight, consistent gap */
.page-main { padding-top: 84px; }
.page-main > section:first-child { padding-top: 18px; }
.section--alt { background: var(--bg-alt); }

/* Escala progresiva — móvil compacto, tablet intermedio, desktop respira.
   Antes saltaba de 96px a 140px directo, lo que en móvil dejaba ~190px
   entre secciones (demasiado). */
@media (min-width: 640px) {
  .section { padding: 52px 0; }
}
@media (min-width: 1024px) {
  .section { padding: 72px 0; }
}

.section__head {
  max-width: 760px;
  margin: 0 0 44px;
}

.section__title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin-top: 18px;
}

.section__subtitle {
  margin-top: 18px;
  font-size: 1.0625rem;
  color: var(--ink-500);
  max-width: 60ch;
}

/* Precio "desde" dentro de cada card de servicio */
.service__price {
  font-size: 0.8rem;
  color: var(--ink-400);
  margin: 4px 0 12px;
}
.service__price strong {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-500);
  letter-spacing: -0.01em;
}
/* En la card oscura (accent) el precio se ve claro */
.service--accent .service__price { color: rgba(255, 255, 255, 0.6); }
.service--accent .service__price strong { color: #fff; }

/* ============ INVERSIÓN / PRECIOS ============ */
.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
@media (min-width: 640px)  { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing { grid-template-columns: repeat(4, 1fr); } }

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s, border-color 0.3s;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(8, 108, 231, 0.25);
}
.price-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 10px;
}
.price-card__from {
  font-size: 0.85rem;
  color: var(--ink-400);
  margin-bottom: 18px;
}
.price-card__from strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brand-500);
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: grid;
  gap: 10px;
}
.price-card li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-700);
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--brand-500);
  border-bottom: 2px solid var(--brand-500);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.pricing-custom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 28px 32px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(8, 108, 231, 0.07), rgba(91, 168, 255, 0.03));
  border: 1px solid rgba(8, 108, 231, 0.14);
}
@media (min-width: 768px) {
  .pricing-custom { flex-direction: row; align-items: center; justify-content: space-between; }
}
.pricing-custom h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 6px;
}
.pricing-custom p {
  color: var(--ink-500);
  font-size: 0.95rem;
  max-width: 62ch;
  margin: 0;
}
.pricing-custom .btn { flex: none; }

/* ============ BANNER DE COOKIES ============ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -24px rgba(12, 30, 66, 0.4);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.45s var(--ease-out);
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookie-banner__text {
  flex: 1 1 300px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-700);
}
.cookie-banner__text a { color: var(--brand-500); font-weight: 600; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 540px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}

/* ============ PAQUETES / PLANES ============ */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s, border-color 0.3s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan--featured {
  border-color: var(--brand-500);
  box-shadow: 0 26px 60px -28px rgba(8, 108, 231, 0.42);
}
@media (min-width: 900px) {
  .plan--featured { transform: scale(1.04); z-index: 1; }
  .plan--featured:hover { transform: scale(1.04) translateY(-4px); }
}
.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2E8BF5, #086CE7);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(8, 108, 231, 0.6);
}
.plan__name { font-size: 1.25rem; font-weight: 600; color: var(--ink-900); }
.plan__tagline { font-size: 0.9rem; color: var(--ink-500); margin: 4px 0 20px; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.plan__price b {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.plan__price span { font-size: 0.85rem; color: var(--ink-400); }
.plan__note { font-size: 0.8rem; color: var(--ink-400); margin-bottom: 22px; }
.plan__list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 12px;
}
.plan__list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-700);
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--brand-500);
  border-bottom: 2px solid var(--brand-500);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.plan__list li.is-key { font-weight: 600; color: var(--ink-900); }
.plan .btn { margin-top: auto; justify-content: center; width: 100%; }

/* ============ BLOG / ARTÍCULO ============ */
.post { max-width: 760px; margin: 0 auto; }
.post__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-400);
}
.prose { font-size: 1.05rem; line-height: 1.72; color: var(--ink-700); }
.prose h2 {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 40px 0 16px;
}
.prose h3 { font-size: 1.15rem; font-weight: 600; color: var(--ink-900); margin: 26px 0 8px; }
.prose p { margin-bottom: 18px; }
.prose ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--brand-500);
  border-bottom: 2px solid var(--brand-500);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.prose strong { color: var(--ink-900); font-weight: 600; }
.prose a:not(.btn) { color: var(--brand-500); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.prose__cta .btn { text-decoration: none; }
.prose__cta > div { display: flex; gap: 12px; flex-wrap: wrap; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--ink-900); background: var(--bg-alt); }
.prose__cta {
  margin: 34px 0;
  padding: 26px 30px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(8, 108, 231, 0.07), rgba(91, 168, 255, 0.03));
  border: 1px solid rgba(8, 108, 231, 0.14);
}

/* Índice del blog */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  text-decoration: none;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s, border-color 0.3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(8, 108, 231, 0.25); }
.post-card__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 12px;
}
.post-card h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: var(--ink-900); margin-bottom: 10px; }
.post-card p { font-size: 0.92rem; line-height: 1.5; color: var(--ink-500); flex: 1; }
.post-card__more { margin-top: 16px; font-size: 0.9rem; font-weight: 600; color: var(--brand-500); }

/* ===== Mejoras móvil para artículos/servicios (prose) ===== */
@media (max-width: 560px) {
  /* CTAs: botones apilados y full-width = fáciles de tocar con el pulgar */
  .prose__cta > div { flex-direction: column; align-items: stretch; }
  .prose__cta .btn { width: 100%; justify-content: center; }
  /* Tablas con más aire en pantallas chicas */
  .prose table { font-size: 0.88rem; }
  .prose th, .prose td { padding: 10px 10px; }
  /* Tipografía de lectura un pelín más cómoda */
  .prose { font-size: 1.02rem; }
  .prose h2 { font-size: 1.4rem; margin-top: 34px; }
}

/* ============ EYEBROW ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-700);
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-xs);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  z-index: 100;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(8, 108, 231, 0.18);
  animation: pulseDot 2.4s var(--ease-out) infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(8, 108, 231, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(8, 108, 231, 0.06); }
}

.eyebrow--inverse {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  backdrop-filter: blur(10px);
}

.eyebrow--inverse .eyebrow__dot {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* ============ TEXT GRADIENT ============ */
.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradientPan 8s ease infinite;
}

@keyframes gradientPan {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
   color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.97rem;
  letter-spacing: -0.005em;
  transition: transform 0.4s var(--ease-spring),
              box-shadow 0.3s var(--ease-out),
              background 0.3s var(--ease-out),
              color 0.3s var(--ease-out);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  will-change: transform;
}

.btn--sm { padding: 10px 16px; font-size: 0.875rem; border-radius: 10px; }

.btn--primary {
  background: var(--grad-brand);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -20px rgba(8, 108, 231, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  color: var(--ink-900);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.btn--ghost:hover {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
  transform: translateY(-2px);
}

.btn--white {
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.25);
}
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.35); }

.btn--outline-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 0;
  transition: padding 0.4s var(--ease-out);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-xs);
  transition: all 0.4s var(--ease-out);
}

.nav.is-scrolled .nav__inner {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px -16px rgba(23, 23, 38, 0.18);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  text-decoration: none;
}

/* Blue rounded badge that frames the white logo so it stands out on light backgrounds */
.nav__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-400) 100%);
  box-shadow:
    0 6px 18px -6px rgba(8, 108, 231, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 280ms ease;
  flex-shrink: 0;
}

.nav__brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.nav__brand:hover .nav__brand-mark {
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 10px 24px -6px rgba(8, 108, 231, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav__mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
}

.nav__name { font-weight: 600; }

.nav__links {
  display: none;
  gap: 4px;
  align-items: center;
}

@media (min-width: 980px) {
  .nav__links { display: inline-flex; }
}

.nav__links a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--ink-700);
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}

.nav__links a:hover { color: var(--ink-900); background: rgba(8, 108, 231, 0.05); }

/* Link activo — página actual (aria-current="page") o sección actual (scroll spy).
   `.is-active` lo añade el JS de scroll-spy en index.html; `aria-current` se
   pone manualmente en HTML (ej. el link "Términos" en terminos.html). */
.nav__links a.is-active,
.nav__links a[aria-current="page"] {
  color: var(--brand-500);
  font-weight: 600;
  background: rgba(8, 108, 231, 0.06);
}
.nav__links a.is-active::after,
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-500);
}

.nav__cta { display: none; }
@media (min-width: 980px) { .nav__cta { display: inline-flex; } }

.nav__burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.nav__burger span {
  width: 18px; height: 2px; background: var(--ink-900); border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 980px) { .nav__burger { display: none; } }

/* ===== Sidebar / drawer lateral derecho (móvil) ===== */
.nav__mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(84vw, 332px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--line);
  border-radius: 26px 0 0 26px;
  padding: 96px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: -44px 0 90px -30px rgba(8, 16, 32, 0.45);
  transform: translateX(106%);
  visibility: hidden;
  transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.46s;
  z-index: 45;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav__mobile.is-open {
  transform: translateX(0);
  visibility: visible;
}
@media (min-width: 980px) { .nav__mobile { display: none; } }

.nav__mobile a {
  padding: 15px 16px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 1.04rem;
  color: var(--ink-700);
  /* animación de entrada escalonada */
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.4s ease, transform 0.45s var(--ease-out), background 0.2s, color 0.2s;
}
.nav__mobile a:hover,
.nav__mobile a:active { background: var(--brand-soft); color: var(--brand-500); }

/* Icono por cada opción del menú */
.nav__mobile a:not(.btn) { display: flex; align-items: center; gap: 12px; }
.nav__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-500);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.nav__ico svg { width: 18px; height: 18px; }
.nav__mobile a:hover .nav__ico { transform: scale(1.08); }
.nav__mobile a.is-active .nav__ico,
.nav__mobile a[aria-current="page"] .nav__ico { background: var(--brand-500); color: #fff; }

/* Link activo */
.nav__mobile a.is-active,
.nav__mobile a[aria-current="page"] {
  color: var(--brand-500);
  font-weight: 600;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand-500);
  padding-left: calc(16px - 3px);
}
.nav__mobile .btn {
  justify-content: center;
  margin-top: 16px;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.4s ease, transform 0.45s var(--ease-out);
}
/* texto del botón SIEMPRE blanco sobre azul (vence a .nav__mobile a por especificidad) */
.nav__mobile .btn--primary { color: #fff; }

/* al abrir: los items entran deslizando, escalonados */
.nav__mobile.is-open a,
.nav__mobile.is-open .btn { opacity: 1; transform: translateX(0); }
.nav__mobile.is-open a:nth-of-type(1) { transition-delay: 0.08s; }
.nav__mobile.is-open a:nth-of-type(2) { transition-delay: 0.13s; }
.nav__mobile.is-open a:nth-of-type(3) { transition-delay: 0.18s; }
.nav__mobile.is-open a:nth-of-type(4) { transition-delay: 0.23s; }
.nav__mobile.is-open a:nth-of-type(5) { transition-delay: 0.28s; }
.nav__mobile.is-open a:nth-of-type(6) { transition-delay: 0.33s; }
.nav__mobile.is-open a:nth-of-type(7) { transition-delay: 0.38s; }
.nav__mobile.is-open a:nth-of-type(8) { transition-delay: 0.43s; }

/* Botón X para cerrar (inyectado por JS) */
.nav__close {
  position: absolute;
  top: 20px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-700);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.35s var(--ease-spring);
  z-index: 3;
}
.nav__close:hover { background: var(--brand-soft); color: var(--brand-500); transform: rotate(90deg); }

/* ocultar la hamburguesa mientras el drawer está abierto (la X del drawer cierra) */
.nav__burger { transition: opacity 0.3s ease; }
.nav__burger[aria-expanded="true"] { opacity: 0; pointer-events: none; }

/* Logo de Pixel Studio dentro del drawer (arriba a la izquierda) */
.nav__brand-m {
  position: absolute;
  top: 26px;
  left: 22px;
  height: 30px;
  width: auto;
}
/* al abrir el drawer, ocultar la barra superior para no duplicar el logo */
body.is-menu-open .nav__inner { opacity: 0; pointer-events: none; }

/* Fondo oscuro detrás del drawer */
.nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 28, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.46s ease, visibility 0.46s ease;
  z-index: 40;
}
.nav__backdrop.is-open { opacity: 1; visibility: visible; }
@media (min-width: 980px) { .nav__backdrop { display: none; } }

/* Bloquea el scroll del fondo cuando el menú está abierto */
body.is-menu-open { overflow: hidden; }

/* ============ HERO ============ */
.hero {
  padding: 0;
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

/* Scrub stage: 100vh visible + runway de scroll. El JS hace `progress =
   -rect.top / (rect.height - 100vh)`, así que el runway = (min-height - 100vh)
   es justo lo que el usuario debe scrollear para reproducir el video completo.
   Antes era ~5 viewports; ahora ~1.5 — el scroll forward usa playback nativo
   con playbackRate adaptativo (hasta 3×) y el backward usa safeSeek con gate,
   por lo que sigue siendo fluido en ambas direcciones con mucho menos scroll. */
.hero.is-scrub-stage {
  min-height: 200vh;
}

@media (max-width: 1023px) {
  .hero.is-scrub-stage { min-height: 185vh; }
}

@media (max-width: 767px) {
  .hero.is-scrub-stage { min-height: 175vh; }
}

/* The pinned viewport-locked stage that holds video + content while user scrolls */
.hero__stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ============ HERO CINEMATIC VIDEO BACKGROUND ============ */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* Soft, neutral background — small blue accent stays well clear of the video area */
background:
  radial-gradient(
    ellipse 30% 38% at 14% 28%,
    rgba(8, 108, 231, 0.24) 0%,
    rgba(8, 108, 231, 0.12) 45%,
    rgba(8, 108, 231, 0.05) 65%,
    transparent 80%
  ),
  linear-gradient(
    180deg,
    #f5f8ff 0%,
    #ebf1fc 100%
  );
}




.hero__video,
.hero__canvas {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 80%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  /* Subtle intro zoom — lands at scale(1) so the frame renders 1:1 and crisp */
  transform: translate3d(0, 24px, 0) scale(1.12);
  backface-visibility: hidden;
  /* Colour grade only — no blur(): the blur() filter kept the canvas soft */
  filter: saturate(1.18) contrast(1.10);
  opacity: 0;
  transition:
    opacity   1.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
  /* Long soft fade on the left edge — extends across ~36% of the video width
     so the seam between the text column and the video is invisible */
  mask-image: linear-gradient(90deg,
    transparent 0%,
    rgba(0,0,0,0.15) 14%,
    rgba(0,0,0,0.55) 24%,
    #000 36%,
    #000 100%);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    rgba(0,0,0,0.15) 14%,
    rgba(0,0,0,0.55) 24%,
    #000 36%,
    #000 100%);
}

@media (max-width: 1023px) {
  .hero__video,
  .hero__canvas {
    inset: 0;
    width: 100%;
    /* Phones/tablets load the portrait `frames-m` set (laptop centred with
       white padding). Fill the hero and keep it centred. */
    object-fit: cover;
    object-position: center center;
    /* Soft bottom fade-out — kills the visible cut-off line where the frame's
       built-in shadow meets the next section. Gradient blends the canvas into
       the page background for a seamless transition. */
    mask-image: linear-gradient(180deg,
      #000 0%,
      #000 62%,
      rgba(0, 0, 0, 0.85) 78%,
      rgba(0, 0, 0, 0.4) 92%,
      transparent 100%);
    -webkit-mask-image: linear-gradient(180deg,
      #000 0%,
      #000 62%,
      rgba(0, 0, 0, 0.85) 78%,
      rgba(0, 0, 0, 0.4) 92%,
      transparent 100%);
  }
}

.hero__bg.is-loaded .hero__video,
.hero__bg.is-loaded .hero__canvas {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: saturate(1.18) contrast(1.10);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* very subtle white veil — only on the right where the video is */
    linear-gradient(90deg,
      transparent 0%,
      transparent 35%,
      rgba(255, 255, 255, 0.06) 60%,
      rgba(255, 255, 255, 0.08) 100%
    );
}

@media (max-width: 767px) {
  .hero__overlay {
    background:
      linear-gradient(180deg,
        rgba(8, 16, 32, 0.32) 0%,
        rgba(8, 16, 32, 0.10) 40%,
        rgba(8, 16, 32, 0.04) 70%,
        rgba(8, 16, 32, 0) 100%
      );
  }
}

.hero__vignette {
  display: none;
}

/* Phone & tablet: fade the very bottom of the hero into the page bg so the
   frame's built-in shadow doesn't create a visible "section border". This
   stays inside .hero__bg (z-index:0) so it never covers the marquee or text. */
@media (max-width: 1023px) {
  .hero__bg::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22%;
    pointer-events: none;
    background: linear-gradient(180deg,
      transparent 0%,
      rgba(246, 247, 251, 0.35) 45%,
      rgba(246, 247, 251, 0.78) 75%,
      var(--bg) 100%
    );
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 148px 0 0;
  flex: 1 1 auto;
  min-height: 0;
}

@media (max-width: 1023px) {
  .hero.is-scrub-stage .hero__visual { display: none; }
  .hero.is-scrub-stage .hero__grid { grid-template-columns: 1fr; gap: 0; }
}

/* Hero content sits in the left third — indented from the edge so it has breathing room */
.hero.is-scrub-stage .container.hero__grid {
  max-width: 560px;
  margin-left: max(40px, 9vw);
  margin-right: auto;
  grid-template-columns: 1fr;
  gap: 0;
}

.hero.is-scrub-stage .hero__content {
  max-width: 100%;
  justify-self: start;
}

@media (max-width: 767px) {
  .hero__inner { padding-top: 108px; }
  .hero.is-scrub-stage .container.hero__grid {
    max-width: 100%;
    /* Tighten side margins so the title has room to breathe on small phones */
    margin-left: max(20px, 4vw);
    margin-right: max(20px, 4vw);
  }
  .hero.is-scrub-stage .hero__meta { gap: 14px 28px; margin-top: 32px; padding-top: 18px; }
}

/* .boxer {
  background: #171726;
  padding: 10px;
  border-radius: 12px;
} */

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}

/* Frostier glass cards over video background */
.hero .visual__card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

/* Marquee sits above video and pinned to the bottom of the stage */
.hero .logos {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 10px;
}

/* Graceful fallback if the frame sequence fails to load */
.hero--video-failed .hero__video,
.hero--video-failed .hero__canvas,
.hero--video-failed .hero__overlay,
.hero--video-failed .hero__vignette { display: none; }

/* Respect reduced motion: only neutralize the cinematic scale, scrub stays user-controlled */
@media (prefers-reduced-motion: reduce) {
  .hero__video,
  .hero__canvas { transform: none; }
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 80px; }
}

.hero__title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 600;
  line-height: .90;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  margin-top: 22px;
  display: inline-block;
  /* Perpetual float on the whole title */
  animation-name: heroTitleFloat;
  animation-duration: 4.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform;
}

/* ============ PREMIUM HERO TITLE — load-only animations, 2D only ============ */
.hero__title--premium {
  position: relative;
  display: block;
  overflow: visible;
  z-index: 3;
  isolation: isolate;
  /* Disable the global heroTitleFloat — each word handles its own motion */
  animation: none !important;
}

/* ----- LOAD-ONLY: clean 2D entrance per word ----- */
.hero__title--premium .hero__word {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-right: 0.22em;
  opacity: 0;
  transform-origin: 50% 100%;
  /* Scales fluidly from very small phones (~320px) up to desktop.
     min 1.55rem (~25px) keeps "Agencia"/"diseño"/"digital" inside a 320px viewport. */
  font-size: clamp(1.55rem, 6.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  /* Never split a Spanish word mid-character ("dise-ño") on narrow widths */
  word-break: keep-all;
  overflow-wrap: normal;
  animation: heroWordIn 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(280ms + var(--i, 0) * 180ms);
  will-change: transform, opacity;
}

.hero__title--premium .hero__word:last-child { margin-right: 0; }

/* Tighter word gap on small phones so the line breaks happen earlier
   instead of overflowing past the viewport edge. */
@media (max-width: 540px) {
  .hero__title--premium .hero__word {
    margin-right: 0.16em;
    letter-spacing: -0.02em;
  }
}

/* ----- 1. EYEBROW: floats in FIRST on page load (before the title) -----
   No opacity:0 here — animation-fill-mode:both controls the invisible state
   from the keyframe. If reduce-motion kills the animation the eyebrow stays
   visible by default. */
.hero__content .eyebrow {
  animation:
    heroEyebrowIn 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 150ms both,
    heroEyebrowDrift 5.5s ease-in-out infinite 1500ms;
  will-change: transform, opacity;
}

@keyframes heroEyebrowIn {
  0%   { opacity: 0; transform: translateY(36px) scale(0.92); }
  55%  { opacity: 1; transform: translateY(-4px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----- 3. ACTIONS (BUTTON) appear LAST, after all title words have settled ----- */
.hero.is-scrub-stage .hero__actions {
  animation: heroActionsIn 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 2400ms both;
  will-change: transform, opacity;
}

@keyframes heroActionsIn {
  0%   { opacity: 0; transform: translateY(40px) scale(0.92); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero CTA — rounded pill + perpetual glow pulse + shimmer sweep.
   We animate box-shadow (not transform) to stay compatible with [data-magnetic]
   which writes inline transform from JS on pointer move. */
.hero.is-scrub-stage .hero__actions .btn--primary {
  border-radius: 999px;
  padding: 16px 28px;
  font-size: 1rem;
  overflow: hidden;
  animation: heroBtnPulse 2.8s ease-in-out infinite;
}

/* ----- 4. HERO VIDEO: cinematic zoom-in on page load ----- */

/* Pure 2D entrance — slide up + scale, with a subtle overshoot bounce */
@keyframes heroWordIn {
  0% {
    opacity: 0;
    transform: translateY(70px) scale(0.85);
  }
  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ----- ACCENT WORD: gradient text + same 2D entrance + continuous gradient sweep ----- */
.hero__title--premium .hero__word--accent {
  display: inline-block;
  margin-top: 0.05em;

  /* Explicit gradient-text rendering */
  background-image: var(--grad-text);
  background-size: 220% 100%;
  background-position: 0% 50%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  /* Reuses heroWordIn for entrance + adds gradientPan as continuous sweep */
  animation-name: heroWordIn, gradientPan;
  animation-duration: 1.4s, 4s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1), ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: both, none;
  animation-delay: calc(280ms + var(--i, 0) * 180ms), 2000ms;
}

/* ----- HALO behind the title — emerges and breathes once ----- */
.hero__title--premium .hero__halo {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 90%;
  height: 80%;
  transform: translateY(-50%) scale(0.6);
  background:
    radial-gradient(ellipse 60% 70% at 30% 50%, rgba(8, 108, 231, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 50%, rgba(91, 168, 255, 0.30), transparent 70%);
  filter: blur(70px);
  opacity: 0;
  pointer-events: none;
  z-index: 0; /* sit behind text but above the title's own bg (which is transparent) */
  animation:
    heroHaloIn 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) 100ms forwards,
    heroHaloBreath 6s ease-in-out infinite 2s;
  will-change: opacity, transform;
}

@keyframes heroHaloIn {
  0%   { opacity: 0; transform: translateY(-50%) scale(0.6); }
  60%  { opacity: 1; transform: translateY(-50%) scale(1.1); }
  100% { opacity: 0.9; transform: translateY(-50%) scale(1); }
}

@keyframes heroHaloBreath {
  0%, 100% { opacity: 0.9;  transform: translateY(-50%) scale(1); }
  50%      { opacity: 0.55; transform: translateY(-50%) scale(1.12); }
}

/* ----- Reduced-motion fallback: keep the entrance but flatten 3D motion ----- */
@media (prefers-reduced-motion: reduce) {
  .hero__title--premium .hero__word {
    /* Override the global motion overrides AND deliver a soft fade-up entrance */
    animation: heroWordFadeSoft 1s ease-out both !important;
    animation-delay: calc(180ms + var(--i, 0) * 140ms) !important;
  }
  @keyframes heroWordFadeSoft {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  .hero__title--premium .hero__halo {
    animation: none !important;
    opacity: 0.55;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes heroTitleFloat {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(4px, -14px); }
  100% { transform: translate(0, 0); }
}

/* "en México" — independent compound animation: gradient sweep + floating */
.hero__title .text-grad {
  display: inline-block;
  background-size: 220% 100%;
  animation-name: gradientPan, heroAccentFloat;
  animation-duration: 3.5s, 4s;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-delay: 0s, -1s;
  will-change: transform, background-position;
}

@keyframes heroAccentFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-6px, 10px) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}

/* heroEyebrowDrift keyframes — used by the eyebrow rule above
   (entrance + drift are combined there into one animation declaration) */
@keyframes heroEyebrowDrift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(14px); }
}

/* Dot pulses with a halo */
.hero__content .eyebrow__dot {
  animation-name: heroDotPulse;
  animation-duration: 1.6s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes heroDotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(8, 108, 231, 0.6); }
  50%      { transform: scale(1.4); box-shadow: 0 0 0 8px rgba(8, 108, 231, 0); }
}

.hero__subtitle {
  margin-top: 26px;
  font-size: 1.15rem;
  color: var(--ink-500);
  max-width: 56ch;
  line-height: 1.55;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero CTA: only on desktop — hidden on mobile & tablet */
@media (max-width: 1023px) {
  .hero__actions { display: none; }
}

/* Shimmer sweep pseudo-element + glow keyframes for the hero CTA.
   The base styles (rounded pill, padding, animation-name) are declared
   on the unified rule earlier in this file. */
.hero.is-scrub-stage .hero__actions .btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: heroBtnShimmer 3.4s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero.is-scrub-stage .hero__actions .btn--primary > * {
  position: relative;
  z-index: 1;
}

@keyframes heroBtnPulse {
  0%, 100% {
    box-shadow:
      0 8px 22px -6px rgba(8, 108, 231, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  50% {
    box-shadow:
      0 14px 38px -8px rgba(8, 108, 231, 0.70),
      0 0 0 6px rgba(8, 108, 231, 0.10),
      inset 0 1px 0 rgba(255, 255, 255, 0.30);
  }
}

@keyframes heroBtnShimmer {
  0%   { transform: translateX(-120%); }
  60%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero.is-scrub-stage .hero__actions .btn--primary,
  .hero.is-scrub-stage .hero__actions .btn--primary::before { animation: none; }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-500);
}
.hero__meta strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.025em;
  font-feature-settings: "tnum";
}

/* ============ HERO VISUAL (photo + glass cards) ============ */
.hero__visual { position: relative; min-height: 480px; }

.visual {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 5;
  max-width: 580px;
  margin-left: auto;
}

.visual__glow {
  position: absolute;
  inset: 4%;
  background: radial-gradient(circle at 30% 30%, rgba(8, 108, 231, 0.35), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(91, 168, 255, 0.30), transparent 60%);
  filter: blur(60px);
  z-index: 0;
  animation: glowMove 9s ease-in-out infinite;
}

@keyframes glowMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, 4%) scale(1.05); }
}

.visual__photo {
  position: absolute;
  inset: 8% 6% 12% 8%;
  border-radius: 22px;
  overflow: hidden;
  z-index: 1;
  box-shadow:
    0 30px 80px -20px rgba(8, 50, 130, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: float 10s ease-in-out infinite;
}
.visual__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.visual__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 108, 231, 0.18), transparent 50%);
  mix-blend-mode: multiply;
}

.visual__card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  z-index: 3;
}

.row { display: flex; align-items: center; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-500);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.chip--mono {
  background: rgba(23, 23, 38, 0.05);
  color: var(--ink-700);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
}

.metric__label { font-size: 0.78rem; color: var(--ink-500); }
.metric__value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.metric__delta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #00a85f;
  background: rgba(0, 168, 95, 0.10);
  padding: 3px 8px;
  border-radius: 6px;
}

.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 80px;
  padding-top: 6px;
}
.bars span {
  height: var(--h);
  background: linear-gradient(180deg, var(--brand-400), var(--brand-500));
  border-radius: 4px 4px 2px 2px;
  animation: barRise 1s var(--ease-out) backwards;
}
.bars span:nth-child(1) { animation-delay: 0.10s; }
.bars span:nth-child(2) { animation-delay: 0.18s; }
.bars span:nth-child(3) { animation-delay: 0.26s; }
.bars span:nth-child(4) { animation-delay: 0.34s; }
.bars span:nth-child(5) { animation-delay: 0.42s; }
.bars span:nth-child(6) { animation-delay: 0.50s; }
.bars span:nth-child(7) { animation-delay: 0.58s; }

@keyframes barRise {
  from { height: 0; opacity: 0; }
  to   { height: var(--h); opacity: 1; }
}

.visual__card--float { padding: 12px 14px; }

.visual__card--a {
  top: 2%;
  right: 0%;
  display: inline-flex;
  align-items: center;
  animation: float 7s ease-in-out infinite reverse;
  animation-delay: 0.4s;
}
.float-row { display: inline-flex; align-items: center; gap: 10px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #00a85f;
  box-shadow: 0 0 0 4px rgba(0, 168, 95, 0.15);
  animation: pulseDot 2s var(--ease-out) infinite;
}
.dot--live { background: var(--brand-500); box-shadow: 0 0 0 4px rgba(8, 108, 231, 0.2); }
.float-text { font-size: 0.85rem; font-weight: 500; color: var(--ink-900); }
.float-time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-500); }

.visual__card--b {
  top: 38%;
  right: -4%;
  width: 200px;
  padding: 16px;
  animation: float 9s ease-in-out infinite;
  animation-delay: 0.8s;
}
.mini-stat__title { font-size: 0.72rem; color: var(--ink-500); }
.mini-stat__value {
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.025em;
  font-feature-settings: "tnum";
  margin: 2px 0 10px;
}
.mini-stat__value span { font-size: 0.95rem; color: var(--brand-500); margin-left: 2px; }
.mini-stat__bar {
  width: 100%; height: 6px;
  background: rgba(23, 23, 38, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.mini-stat__bar i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--grad-brand);
  border-radius: 999px;
  animation: barFill 1.4s var(--ease-out) backwards;
  animation-delay: 0.6s;
}
@keyframes barFill { from { width: 0; } }

.visual__card--c {
  bottom: 4%;
  left: 0%;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 8.4s ease-in-out infinite;
  animation-delay: 0.2s;
}

.visual__card--d {
  bottom: 22%;
  left: -6%;
  padding: 14px;
  width: 160px;
  display: grid;
  gap: 10px;
  animation: float 9.6s ease-in-out infinite reverse;
  animation-delay: 1s;
}
.bars--mini {
  height: 36px;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding-top: 0;
}
.bars--mini span {
  border-radius: 3px 3px 1px 1px;
}
.avatar-stack { display: inline-flex; }
.av {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  background-size: cover;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-700);
  background-color: var(--bg-alt);
}
.av:first-child { margin-left: 0; }
.av--1 { background-image: url('https://picsum.photos/seed/pxs-av-1/80/80'); }
.av--2 { background-image: url('https://picsum.photos/seed/pxs-av-2/80/80'); }
.av--3 { background-image: url('https://picsum.photos/seed/pxs-av-3/80/80'); }
.av--n { background: var(--brand-soft); color: var(--brand-500); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============ LOGOS BAND ============ */
.logos {
  margin-top: 110px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos__inner { display: grid; gap: 18px; align-items: center; }
.logos__label {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-400);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============ MARQUEE CAROUSEL — sliding text only ============ */
.marquee {
  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);
}

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  animation: marquee 48s linear infinite;
  white-space: nowrap;
  will-change: transform;
  padding: 8px 0;
}

/* Plain typographic items — no buttons, no chips, just clean text sliding */
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  font-family: inherit;
  font-weight: 500;
  color: var(--ink-800);
  letter-spacing: -0.018em;
  flex-shrink: 0;
}

/* Diamond separator after each item — keeps everything in the carousel rhythm */
.marquee__track span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(8, 108, 231, 0.45);
}

/* Pause the carousel on hover so the user can read */
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* Left-to-right variant: reverse keyframe direction */
.marquee--ltr .marquee__track {
  animation-direction: reverse;
}

/* Services band — premium presentation */
.logos--services {
  padding: 56px 0 60px;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

.logos--services .logos__inner {
  gap: 28px;
}

.logos--services .logos__label {
  color: var(--brand-500);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  margin: 0 auto;
}

.logos--services .logos__label::before,
.logos--services .logos__label::after {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-500));
}
.logos--services .logos__label::after {
  background: linear-gradient(90deg, var(--brand-500), transparent);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ SERVICES (BENTO GRID) ============ */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px)  { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(12, 1fr); } }

.service {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform 0.45s var(--ease-spring), box-shadow 0.4s var(--ease-out), border-color 0.3s;
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 1024px) {
  .service              { grid-column: span 4; }
  .service--feature     { grid-column: span 7; padding: 40px; }
  .service:nth-child(2) { grid-column: span 5; }
  .service--wide        { grid-column: span 6; padding: 36px; }
  .service--accent      { grid-column: span 12; padding: 40px 48px; }
}

.service:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 108, 231, 0.25);
  box-shadow: var(--shadow-md);
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(8, 108, 231, 0.22) 0%, rgba(46, 139, 245, 0.10) 25%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}
.service:hover::before { opacity: 1; }

.service > * { position: relative; z-index: 1; }

.service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.service__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease-spring), background 0.3s, color 0.3s;
  border: 1px solid rgba(8, 108, 231, 0.15);
}
.service__icon svg { width: 22px; height: 22px; }
.service:hover .service__icon { transform: rotate(-6deg) scale(1.06); background: var(--brand-500); color: #fff; }

.service__head .service__icon { margin-bottom: 0; }

.service__icon--inverse {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.service--accent:hover .service__icon--inverse { background: #fff; color: var(--brand-500); }

.service__tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-500);
}
.service__tag--inverse {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.service h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.018em;
  line-height: 1.2;
}
.service--feature h3 { font-size: 1.7rem; }

.service p {
  margin-top: 12px;
  color: var(--ink-500);
  font-size: 0.97rem;
  line-height: 1.6;
}

.service__list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.service__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--ink-700);
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(8, 108, 231, 0.18);
}

/* Accent service (Chatbots) — dark inverse for variety */
.service--accent {
  background: linear-gradient(135deg, #171726 0%, #1f2240 100%);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}
.service--accent::after {
  content: "";
  position: absolute;
  inset: -50% -10% auto auto;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(8, 108, 231, 0.45), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.service--accent h3 { color: #fff; }
.service--accent p { color: rgba(255, 255, 255, 0.7); }
.service--accent .service__list li { color: rgba(255, 255, 255, 0.85); }

/* ============ WHY US ============ */
.why__head { max-width: 760px; margin-bottom: 72px; }

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 1024px) {
  .why__grid { grid-template-columns: 1.2fr 1fr; gap: 80px; }
}

.why__benefits {
  display: grid;
  gap: 4px;
}

.benefit {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 26px 16px 26px 0;
  border-top: 1px solid var(--line);
  transition:
    padding 0.4s var(--ease-out),
    background 0.4s var(--ease-out);
  border-radius: 14px;
}
.benefit:last-child { border-bottom: 1px solid var(--line); }

.benefit:hover {
  padding-left: 16px;
  background:
    linear-gradient(90deg, rgba(8, 108, 231, 0.04), transparent 70%);
}

/* Subtle accent bar that grows from the left on hover */
.benefit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-400));
  border-radius: 999px;
  transform: translateY(-50%);
  transition: height 0.4s var(--ease-out);
}
.benefit:hover::before { height: 60%; }

/* Icon container — rounded-square brand badge */
.benefit__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(8, 108, 231, 0.10), rgba(91, 168, 255, 0.06));
  border: 1px solid rgba(8, 108, 231, 0.14);
  color: var(--brand-500);
  flex-shrink: 0;
  margin-top: 4px;
  transition:
    transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    background 320ms ease,
    border-color 320ms ease,
    color 320ms ease,
    box-shadow 320ms ease;
}

.benefit__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.benefit:hover .benefit__icon {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  border-color: transparent;
  color: #fff;
  transform: scale(1.06) rotate(-3deg);
  box-shadow:
    0 10px 24px -8px rgba(8, 108, 231, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.benefit h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.benefit p {
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* Benefit chip (sales-y pill above the title) */
.benefit__chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-500);
  border: 1px solid rgba(8, 108, 231, 0.16);
  margin-bottom: 10px;
}
.benefit__chip--accent {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-400));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 14px -6px rgba(8, 108, 231, 0.5);
}

/* CTA at the bottom of the benefits column */
.benefit__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-400) 100%);
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.3s,
    filter 0.25s;
  align-self: flex-start;
  width: fit-content;
}
.benefit__cta svg {
  transition: transform 0.35s var(--ease-spring);
}
.benefit__cta:hover,
.benefit__cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 22px 44px -16px rgba(8, 108, 231, 0.6);
  outline: none;
}
.benefit__cta:hover svg,
.benefit__cta:focus-visible svg {
  transform: translateX(4px);
}

/* Why panel */
.why__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
  overflow: hidden;
}
.why__panel::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(8, 108, 231, 0.12), transparent 70%);
  z-index: 0;
}
.why__panel > * { position: relative; z-index: 1; }

.why__panel-head { margin-bottom: 28px; }
.why__panel-head h4 {
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* ============ WHY · STOCK / MARKET CHART ============ */
.why__chart {
  position: relative;
  height: 250px;
  margin: 8px 0 24px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 5%, rgba(46, 139, 245, 0.22), transparent 55%),
    linear-gradient(165deg, #0b1f44 0%, #081428 55%, #050d1c 100%);
  border: 1px solid rgba(98, 156, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 60px rgba(4, 12, 28, 0.6);
}

/* 3D perspective grid floor (depth) */
.why__chart-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 300px;
  perspective-origin: 50% 8%;
  z-index: 0;
  pointer-events: none;
}
.why__chart-floor {
  position: absolute;
  left: -30%;
  right: -30%;
  top: 32%;
  bottom: -45%;
  background-image:
    repeating-linear-gradient(0deg,  rgba(120, 185, 255, 0.30) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(120, 185, 255, 0.22) 0 1px, transparent 1px 30px);
  transform: rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 30%, rgba(0,0,0,0.35) 70%, transparent 95%);
  mask-image: linear-gradient(to top, #000 30%, rgba(0,0,0,0.35) 70%, transparent 95%);
}

/* Glowing horizon line where the floor recedes */
.why__chart-horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 33%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 205, 255, 0.55), transparent);
  box-shadow: 0 0 20px 2px rgba(90, 170, 255, 0.3);
  z-index: 1;
  pointer-events: none;
}

/* Glowing trend line + area overlay (fills full box; path has built-in padding) */
.why__chart-trend {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}
.why__chart-line {
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
  transition: stroke-dashoffset 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
  filter:
    drop-shadow(0 0 5px rgba(120, 205, 255, 0.85))
    drop-shadow(0 0 12px rgba(60, 150, 255, 0.5));
}
.why__chart-area {
  opacity: 0;
  transition: opacity 1.1s ease 1.4s;
}
.why__panel.is-visible .why__chart-line { stroke-dashoffset: 0; }
.why__panel.is-visible .why__chart-area { opacity: 1; }

/* Glowing nodes on the line */
.why__chart-node {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #eaf7ff;
  box-shadow: 0 0 0 3px rgba(46, 139, 245, 0.28), 0 0 12px rgba(130, 210, 255, 0.9);
  z-index: 4;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-spring);
}
.why__panel.is-visible .why__chart-node {
  opacity: 1;
  transform: scale(1);
  transition-delay: 1.7s;
}
.why__chart-node--end {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  box-shadow: 0 0 0 4px rgba(46, 139, 245, 0.32), 0 0 16px rgba(130, 210, 255, 1);
}
.why__chart-node--end::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(130, 210, 255, 0.6);
  animation: whyNodePulse 2.2s ease-out infinite;
}
@keyframes whyNodePulse {
  0%   { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Numeric ticker values (index-style glowing text) */
.why__chart-tag {
  position: absolute;
  transform: translate(-50%, -50%) translateY(6px);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #eaf6ff;
  white-space: nowrap;
  text-shadow:
    0 0 8px rgba(120, 200, 255, 0.7),
    0 1px 3px rgba(0, 0, 0, 0.6);
  z-index: 5;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.7s var(--ease-spring);
}
.why__panel.is-visible .why__chart-tag {
  opacity: 1;
  transform: translate(-50%, -50%);
  transition-delay: 1.9s;
}
.why__chart-tag--peak {
  font-size: 1.15rem;
  color: #fff;
  text-shadow:
    0 0 12px rgba(140, 215, 255, 0.95),
    0 0 24px rgba(70, 160, 255, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ============ WHY · MINI METRICS ROW ============ */
.why__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(8, 108, 231, 0.04), rgba(91, 168, 255, 0.02));
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.why__metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 4px;
  text-align: center;
  position: relative;
}
.why__metric + .why__metric::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 18%;
  height: 64%;
  width: 1px;
  background: var(--line);
}
.why__metric strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-500);
  font-feature-settings: "tnum";
}
.why__metric--down strong {
  color: var(--ink-900);
}
.why__metric span {
  font-size: 0.72rem;
  color: var(--ink-500);
  line-height: 1.3;
}

.why__panel-foot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--ink-400);
}

@media (max-width: 720px) {
  .why__chart { height: 210px; }
  .why__metric strong { font-size: 0.95rem; }
  .why__metric span { font-size: 0.66rem; }
  .why__chart-tag { font-size: 0.66rem; padding: 2px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .why__chart-line,
  .why__chart-area,
  .why__chart-node,
  .why__chart-tag {
    transition: none;
  }
  .why__chart-line { stroke-dashoffset: 0; }
  .why__chart-node--end::after { animation: none; }
}

/* ============ PORTFOLIO ============ */
.portfolio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 720px) {
  .portfolio { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .portfolio {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 280px;
  }
  .project        { grid-column: span 3; }
  .project--lg    { grid-column: span 6; grid-row: span 2; }
}

.project {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  display: block;
  isolation: isolate;
  transition: transform 0.6s var(--ease-out), box-shadow 0.5s;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1.5px rgba(8, 108, 231, 0.55), 0 30px 60px -24px rgba(8, 16, 32, 0.5);
}

.project__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out), filter 0.6s;
}
.project:hover .project__media img { transform: scale(1.06); }

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0) 30%, rgba(8, 14, 28, 0.5) 64%, rgba(8, 14, 28, 0.94) 100%);
  z-index: 1;
  transition: opacity 0.5s;
}
/* tinte de marca sutil al pasar el cursor */
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 108, 231, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.project:hover::before { opacity: 1; }

.project__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  transform: translateY(8px);
  transition: transform 0.5s var(--ease-out);
}
.project:hover .project__caption { transform: translateY(0); }

.project__caption .chip {
  background: rgba(8, 108, 231, 0.92);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px -8px rgba(8, 108, 231, 0.6);
}

.project__caption h3 {
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.project--lg .project__caption h3 { font-size: 2rem; }

.project__caption p {
  margin-top: 4px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.project__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.4s var(--ease-spring), background 0.3s;
  flex-shrink: 0;
}
.project:hover .project__arrow {
  background: var(--brand-500);
  transform: rotate(-45deg) scale(1.05);
  border-color: transparent;
}

@media (max-width: 720px) {
  .project { aspect-ratio: 4 / 3; }
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1024px) {
  .testimonials {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 22px;
  }
  .quote--feature { grid-row: span 2; padding: 44px; }
}

.quote {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  overflow: hidden;
}
.quote:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.quote__mark {
  color: var(--brand-500);
  margin-bottom: 16px;
  width: 40px; height: 40px;
}

blockquote {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-700);
  letter-spacing: -0.005em;
}
.quote--feature blockquote {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-900);
  letter-spacing: -0.018em;
}

figcaption {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
figcaption strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
figcaption span {
  font-size: 0.82rem;
  color: var(--ink-500);
}

/* ============ TEAM ============ */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px)  { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(4, 1fr); } }

.member {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.4s;
  isolation: isolate;
}
.member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.member__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
  transition: transform 1.2s var(--ease-out);
  position: relative;
}
.member:hover .member__photo { transform: scale(1.05); }
.member__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(23, 23, 38, 0.4));
}

.member__body { padding: 22px; }
.member h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.member__role {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--brand-500);
  font-weight: 500;
}
.member__social {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}
.member__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--ink-700);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-spring);
}
.member__social a:hover {
  background: var(--brand-500);
  color: #fff;
  transform: translateY(-2px);
}

/* ============ CTA ============ */
.cta { padding: 80px 0 120px; }

.cta__card {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(91, 168, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(8, 108, 231, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, #0a0e1a 0%, #050810 100%);
  border-radius: 32px;
  padding: 56px 28px;
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(8, 16, 32, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .cta__card { padding: 80px 64px; border-radius: 40px; }
}

@media (min-width: 1024px) {
  .cta__card { padding: 96px 88px; }
}

/* ===== Contacto: card compacta para que quepa en escritorio (no afecta el Home) ===== */
.page-main .cta { padding: 10px 0 48px; }
.page-main .cta__card { padding: 40px 28px; }
.page-main .cta__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 14px; }
.page-main .cta__subtitle { margin-top: 14px; font-size: 1rem; }
.page-main .cta-form { gap: 16px; }
@media (min-width: 768px) {
  .page-main .cta__card { padding: 48px 52px; }
}
@media (min-width: 980px) {
  .page-main .cta__layout { gap: 48px; }
}
@media (min-width: 1024px) {
  .page-main .cta__card { padding: 52px 60px; }
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cta__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.cta__blob--a {
  top: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(91, 168, 255, 0.55), transparent 70%);
  animation: glowMove 12s ease-in-out infinite;
}
.cta__blob--b {
  bottom: -40%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46, 139, 245, 0.45), transparent 70%);
  animation: glowMove 14s ease-in-out infinite reverse;
}

.cta__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000 30%, transparent 80%);
}

/* Two-column layout on wide screens: copy on the left, form on the right */
.cta__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 980px) {
  .cta__layout {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

.cta__content {
  color: #fff;
  text-align: left;
  margin: 0;
  max-width: none;
}

/* Light gradient text variant for the dark CTA card */
.text-grad-light {
  background: linear-gradient(120deg, #fff 0%, #5BA8FF 50%, #2E8BF5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradientPan 6s ease infinite;
}

/* ============ CTA FORM ============ */
.cta-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cta-form__field { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; }

.cta-form__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cta-form__input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 280ms ease, background 280ms ease, box-shadow 280ms ease;
}
.cta-form__input::placeholder { color: rgba(255, 255, 255, 0.30); }
.cta-form__input:focus {
  outline: none;
  border-color: var(--brand-400);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(8, 108, 231, 0.18);
}

/* Chip selector for the product */
.cta-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.cta-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.cta-chip span {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition:
    background 260ms ease,
    border-color 260ms ease,
    color 260ms ease,
    transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 260ms ease;
}

.cta-chip:hover span {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cta-chip input:focus-visible + span {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(8, 108, 231, 0.22);
}

/* Selected chip — branded fill */
.cta-chip input:checked + span {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-400) 100%);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 8px 22px -8px rgba(8, 108, 231, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Select de servicios — visible solo en tablet/móvil. Estilo coherente con
   .cta-form__input pero con chevron custom (SVG inline en background-image
   para no añadir dependencias). */
.cta-form__select { display: none; }

@media (max-width: 1023px) {
  .cta-form__chips { display: none; }

  .cta-form__select {
    display: block;
    width: 100%;
    padding: 16px 44px 16px 20px;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.04);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 280ms ease, background-color 280ms ease, box-shadow 280ms ease;
  }

  .cta-form__select:focus {
    outline: none;
    border-color: var(--brand-400);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(8, 108, 231, 0.18);
  }

  /* Estado "tiene valor seleccionado" — leve realce branded */
  .cta-form__select:valid:not([value=""]),
  .cta-form__select.has-value {
    border-color: rgba(8, 108, 231, 0.35);
    background-color: rgba(8, 108, 231, 0.08);
  }

  /* El dropdown nativo en sistemas que lo permiten estilizar (Firefox, algunos
     Android). En iOS Safari ignora estos estilos del <option> pero igual luce
     decente porque usa el sheet nativo del SO. */
  .cta-form__select option {
    background: var(--ink-900);
    color: #fff;
  }
  .cta-form__select option[value=""] {
    color: rgba(255, 255, 255, 0.65);
  }
}

/* Submit button */
.cta-form__submit {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-400) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow:
    0 16px 36px -12px rgba(8, 108, 231, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 220ms ease, filter 220ms ease;
}

.cta-form__submit:hover {
  filter: brightness(1.06);
  box-shadow:
    0 22px 50px -14px rgba(8, 108, 231, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-form__submit:active { transform: translateY(1px) scale(0.99); }
.cta-form__submit svg { transition: transform 220ms ease; }
.cta-form__submit:hover svg { transform: translateX(3px); }

.cta-form__note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin: 0;
}

.cta__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 22px;
  color: #fff;
}
.cta__title em {
  font-style: normal;
  background: linear-gradient(120deg, #ffffff, #b9d6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta__subtitle {
  margin: 22px auto 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
  line-height: 1.55;
}

.cta__actions {
  margin-top: 36px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ============ FOOTER ============ */
.footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding-top: 80px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
@media (min-width: 720px)  { .footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.footer__brand p {
  margin-top: 18px;
  color: var(--ink-500);
  font-size: 0.93rem;
  max-width: 36ch;
  line-height: 1.55;
}

.footer__social {
  margin-top: 22px;
  display: flex;
  gap: 8px;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink-700);
  background: var(--surface);
  transition: all 0.3s var(--ease-out);
}
.footer__social a:hover {
  background: var(--brand-500);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

.footer__col h5 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-900);
  margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 12px; padding: 0; list-style: none; margin: 0; }
.footer__col a, .footer__col li {
  font-size: 0.93rem;
  color: var(--ink-500);
  transition: color 0.25s;
}
.footer__col a:hover { color: var(--brand-500); }

/* Contact column with icons (lines) */
.footer__col--contact ul li,
.footer__col--contact ul li a,
.footer__col--contact ul li address {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-500);
  line-height: 1.5;
  font-size: 0.92rem;
}
.footer__col--contact ul li a:hover { color: var(--brand-500); }
.footer__ico {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--brand-500);
}

/* Mobile / tablet CTA — hidden on desktop */
.footer__cta-mobile { display: none; }

/* ============ FOOTER — tablet & mobile redesign ============ */
@media (max-width: 1023px) {
  .footer { padding-top: 56px; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
  }

  /* Centered brand block */
  .footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .footer__brand p {
    max-width: 42ch;
    margin: 6px auto 0;
    font-size: 0.95rem;
  }
  .footer__social {
    justify-content: center;
    margin-top: 14px;
  }

  /* ============ Footer WhatsApp CTA — premium (matches service modal) ============ */
  .footer__cta-mobile {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    margin-top: 26px;
    padding: 15px 28px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.005em;
    color: #fff;
    text-decoration: none;
    background:
      linear-gradient(135deg, #25d366 0%, #1ebe5d 45%, #128c7e 100%);
    box-shadow:
      0 18px 38px -14px rgba(18, 140, 126, 0.55),
      0 6px 14px -6px rgba(37, 211, 102, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    overflow: hidden;
    isolation: isolate;
    transition:
      transform 0.35s var(--ease-spring),
      box-shadow 0.35s var(--ease-out),
      filter 0.25s;
  }

  /* Inner soft glow ring */
  .footer__cta-mobile::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 15px;
    background:
      radial-gradient(120% 80% at 50% -20%, rgba(255, 255, 255, 0.35) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
  }

  /* Shimmer sweep on hover */
  .footer__cta-mobile::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 50%;
    background: linear-gradient(
      100deg,
      transparent 20%,
      rgba(255, 255, 255, 0.45) 50%,
      transparent 80%
    );
    transform: skewX(-18deg);
    transition: left 0.85s var(--ease-out);
    pointer-events: none;
    z-index: 1;
  }
  .footer__cta-mobile:hover::after,
  .footer__cta-mobile:focus-visible::after {
    left: 130%;
  }

  .footer__cta-mobile > * { position: relative; z-index: 2; }

  .footer__cta-mobile svg {
    flex: none;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
    animation: footerCtaPulse 2.4s ease-in-out infinite;
  }

  .footer__cta-mobile:hover,
  .footer__cta-mobile:focus-visible {
    transform: translateY(-3px);
    box-shadow:
      0 24px 46px -14px rgba(18, 140, 126, 0.65),
      0 10px 22px -8px rgba(37, 211, 102, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      inset 0 -1px 0 rgba(0, 0, 0, 0.14);
    filter: brightness(1.06) saturate(1.05);
    outline: none;
  }
  .footer__cta-mobile:active {
    transform: translateY(-1px);
    transition-duration: 0.15s;
  }

  @keyframes footerCtaPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
  }

  @media (prefers-reduced-motion: reduce) {
    .footer__cta-mobile svg { animation: none; }
    .footer__cta-mobile::after { display: none; }
  }

  /* Hide the redundant "Servicios" + "Estudio" lists on mobile/tablet —
     they're already in the main nav. */
  .footer__col--secondary { display: none; }

  /* Contact column: centered, divider above, generous spacing */
  .footer__col--contact {
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }
  .footer__col--contact h5 {
    margin-bottom: 16px;
    text-align: center;
  }
  .footer__col--contact ul {
    gap: 14px;
    justify-items: center;
  }
  .footer__col--contact ul li,
  .footer__col--contact ul li a,
  .footer__col--contact ul li address {
    font-size: 0.94rem;
  }

  .footer__bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

/* Phones: tighten further */
@media (max-width: 540px) {
  .footer { padding-top: 48px; }
  .footer__inner {
    gap: 28px;
    padding-bottom: 32px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .footer__brand p { font-size: 0.9rem; max-width: 36ch; }
  .footer__cta-mobile { width: 100%; max-width: 320px; }
  .footer__col--contact h5 { font-size: 0.74rem; }
  .footer__col--contact ul li,
  .footer__col--contact ul li a,
  .footer__col--contact ul li address {
    font-size: 0.88rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-400);
  text-align: center;
}
.footer__bottom a:hover { color: var(--brand-500); }

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  /* Disable autoplay/looping animations that can trigger vestibular issues.
     The services marquee is intentionally KEPT — it's a brand element the
     user explicitly wants visible. Scroll-driven and hover transitions
     stay on because they are user-initiated. */
  .hero__title,
  .hero__title .text-grad,
  .hero.is-scrub-stage .hero__actions .btn--primary::before,
  .visual__photo,
  .cta__blob {
    animation: none !important;
  }
  /* Soften reveal — fade in only, no translate */
  .reveal { transform: none; transition-duration: 0.5s; }
}

/* ============ SERVICE FEATURE-GRID (cards with image) ============ */
.service__feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 720px) {
  .service--feature .service__feature-grid,
  .service--wide .service__feature-grid,
  .service--accent .service__feature-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
  }
}

.service__visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow:
    0 20px 50px -20px rgba(8, 50, 130, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: var(--bg-alt);
}
.service__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.service:hover .service__visual img { transform: scale(1.04); }

.service__visual-tag {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: 0.01em;
}

.service__visual--phone { aspect-ratio: 9 / 14; max-width: 220px; margin: 0 auto; border-radius: 24px; }

/* ============ CHAT MOCK (WhatsApp-style) ============ */
.chat-mock {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.chat-mock__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-mock__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.chat-mock__head strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}
.chat-mock__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}
.chat-mock__status .dot { background: #25d366; box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18); }

.chat-mock__msg {
  padding: 8px 12px;
  font-size: 0.85rem;
  line-height: 1.35;
  border-radius: 14px;
  max-width: 85%;
  animation: chatIn 0.5s var(--ease-out) backwards;
}
.chat-mock__msg--in {
  background: #2a2a3d;
  color: #ffffff;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-mock__msg--out {
  background: #128c7e;
  color: #fff;
  font-weight: 500;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  margin-left: auto;
  animation-delay: 0.2s;
}
.chat-mock__msg--typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  animation-delay: 0.4s;
}
.chat-mock__msg--typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  animation: typing 1.4s ease-in-out infinite;
}
.chat-mock__msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-mock__msg--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ STACK TECNOLÓGICO ============ */
.stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px)  { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stack-grid { grid-template-columns: repeat(3, 1fr); } }

.stack-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s, border-color 0.3s;
  overflow: hidden;
  isolation: isolate;
}
.stack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 108, 231, 0.25);
  box-shadow: var(--shadow-md);
}
.stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(8, 108, 231, 0.22) 0%, rgba(46, 139, 245, 0.10) 25%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}
.stack-card:hover::before { opacity: 1; }
.stack-card > * { position: relative; z-index: 1; }

.stack-card h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 18px;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-alt);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-900);
  transition: background 0.3s, transform 0.3s var(--ease-spring);
}
.stack-pills li:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.dot-color {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* ============ PROCESO ============ */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 720px)  { .process:not(.process--stack) { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process:not(.process--stack) { grid-template-columns: repeat(4, 1fr); gap: 0; } }

.process__step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}
@media (min-width: 1024px) {
  .process:not(.process--stack) .process__step {
    border-radius: 0;
    border-right: none;
    background: transparent;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid var(--line);
    padding: 0 32px;
  }
  .process:not(.process--stack) .process__step:first-child { border-left: none; padding-left: 0; }
  .process:not(.process--stack) .process__step:last-child { padding-right: 0; }
}

.process:not(.process--stack) .process__step:hover { transform: translateY(-6px); }

/* ============ PROCESS — STACKING SCROLL CARDS ============ */
.process--stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  position: relative;
}

@media (min-width: 1024px) {
  .process--stack .process__step {
    position: sticky;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 56px 60px;
    margin-bottom: 22vh;
    box-shadow:
      0 30px 70px -30px rgba(8, 16, 32, 0.18),
      0 1px 0 rgba(255, 255, 255, 0.7) inset;
    transform-origin: 50% 0;
    transition:
      transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 320ms ease,
      filter 320ms ease,
      box-shadow 320ms ease;
    will-change: transform, opacity, filter;
    overflow: hidden;
  }

  /* Decorative diagonal grain so cards have texture even when scaled back */
  .process--stack .process__step::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 90% 10%, rgba(8, 108, 231, 0.06), transparent 50%),
      radial-gradient(circle at 10% 90%, rgba(91, 168, 255, 0.04), transparent 50%);
    pointer-events: none;
    z-index: 0;
  }
  .process--stack .process__step > * { position: relative; z-index: 1; }

  /* Stagger sticky offsets — each card stops 18px below the previous one,
     so the user always sees a thin edge of the cards below the active one. */
  .process--stack .process__step:nth-child(1) { top: 110px; z-index: 1; }
  .process--stack .process__step:nth-child(2) { top: 128px; z-index: 2; }
  .process--stack .process__step:nth-child(3) { top: 146px; z-index: 3; }
  .process--stack .process__step:nth-child(4) { top: 164px; z-index: 4; margin-bottom: 0; }
}

/* Larger spacing on wide viewports */
@media (min-width: 1024px) {
  .process--stack .process__step {
    padding: 68px 72px;
    border-radius: 32px;
  }
}

/* Phones & portrait tablets — no sticky stacking. Each card makes a
   dramatic 3D "stand-up" entrance: it pivots up from its bottom edge,
   rises and scales in, then settles with a soft spring overshoot. */
@media (max-width: 1023px) {
  .process--stack .process__step {
    margin-bottom: 18px;
    box-shadow: 0 18px 40px -24px rgba(8, 16, 32, 0.22);
  }
  .process--stack .process__step.reveal {
    opacity: 0;
    transform: perspective(1100px) rotateX(-30deg) translateY(70px) scale(0.9);
    transform-origin: 50% 100%;
    transition:
      opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 0.9s cubic-bezier(0.34, 1.28, 0.64, 1),
      box-shadow 0.9s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
  }
  .process--stack .process__step.reveal.is-visible {
    opacity: 1;
    transform: perspective(1100px) rotateX(0deg) translateY(0) scale(1);
  }
}

/* Respect reduced motion — gentle fade/slide instead of the 3D rotation */
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .process--stack .process__step.reveal {
    transform: translateY(22px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .process--stack .process__step.reveal.is-visible {
    transform: none;
  }
}

/* Header row holding the icon and the step label */
.process__head {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

/* Icon badge — rounded-square with brand gradient outline */
.process__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-500);
  background:
    linear-gradient(135deg, rgba(8, 108, 231, 0.10) 0%, rgba(91, 168, 255, 0.04) 100%);
  border: 1px solid rgba(8, 108, 231, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition:
    transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1),
    background 360ms ease,
    border-color 360ms ease,
    color 360ms ease,
    box-shadow 360ms ease;
  flex-shrink: 0;
}

.process__icon svg {
  width: 26px;
  height: 26px;
}

.process__step:hover .process__icon {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-400) 100%);
  border-color: transparent;
  color: #fff;
  transform: rotate(-6deg) scale(1.06);
  box-shadow:
    0 14px 30px -10px rgba(8, 108, 231, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.process__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-500);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid rgba(8, 108, 231, 0.16);
  transition: background 360ms ease, color 360ms ease, border-color 360ms ease;
}

.process__step:hover .process__num {
  background: var(--brand-500);
  color: #fff;
  border-color: transparent;
}

/* Animated connection line between steps (only on wide layout) */
.process__line {
  position: absolute;
  top: 50px;
  left: 78px;
  right: -16px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-500) 0%, rgba(8, 108, 231, 0.15) 100%);
  display: none;
  border-radius: 1px;
  overflow: hidden;
}
.process__line::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -20%;
  width: 40%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
  filter: blur(2px);
  animation: processLineSweep 3.4s ease-in-out infinite;
}
@media (min-width: 1024px) {
  .process__line { display: block; }
}

@keyframes processLineSweep {
  0%   { transform: translateX(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(280%); opacity: 0; }
}

.process__step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.process__step p {
  color: var(--ink-500);
  font-size: 0.95rem;
  line-height: 1.55;
}
.process__time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-700);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  transition: background 320ms ease, color 320ms ease, border-color 320ms ease;
}
.process__time::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(8, 108, 231, 0.18);
}
.process__step:hover .process__time {
  background: #fff;
  border-color: rgba(8, 108, 231, 0.20);
  color: var(--ink-900);
}

/* ============ STATS BAND ============ */
.stats {
  background: var(--ink-900);
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 10% 50%, rgba(8, 108, 231, 0.30), transparent 60%),
    radial-gradient(600px 400px at 90% 50%, rgba(46, 139, 245, 0.20), transparent 60%);
}
.stats::after {
  content: "";
  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 70% 70% at 50% 50%, #000 30%, transparent 80%);
}

.stats__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px)  { .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; } }
@media (min-width: 1024px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

.stats__item {
  text-align: left;
  padding: 0 8px;
}

.stats__num {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
  font-feature-settings: "tnum";
  display: inline-flex;
  align-items: baseline;
}
.stats__num i {
  font-style: normal;
  font-size: 0.5em;
  font-weight: 500;
  margin-left: 4px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats__label {
  margin-top: 14px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: -0.005em;
}

/* ----- STATS — mobile & tablet redesign (≤1023px) -----
   En escritorio los 4 stats van en línea y respiran. En tablet/móvil pasar
   a 4 filas se siente alargado, y la grid 2x2 sin contenedor visual deja
   los números flotando. Aquí convertimos cada stat en una card glass con
   accent bar superior y forzamos 2x2 para mejor balance vertical. */
@media (max-width: 1023px) {
  .stats { padding: 56px 0; }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stats__item {
    position: relative;
    text-align: center;
    padding: 26px 16px 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.09);
    overflow: hidden;
  }

  /* Accent bar superior — gradient azul que da rítmo entre cards */
  .stats__item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28%;
    right: 28%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
    opacity: 0.7;
  }

  .stats__num {
    font-size: clamp(2rem, 7.2vw, 2.6rem);
    justify-content: center;
  }
  .stats__num i { font-size: 0.46em; margin-left: 3px; }

  .stats__label {
    margin-top: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.005em;
    line-height: 1.35;
  }
}

/* Pantallas muy chicas (<380px): apretar un poco más para que no se corten
   números o etiquetas largas. */
@media (max-width: 380px) {
  .stats__grid { gap: 10px; }
  .stats__item { padding: 22px 10px 18px; }
  .stats__num { font-size: 1.9rem; }
  .stats__label { font-size: 0.76rem; }
}

/* ============ WHATSAPP CTA BUTTON ============ */
.btn--whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(37, 211, 102, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -18px rgba(37, 211, 102, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ============ FLOATING WHATSAPP ============ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 36px -10px rgba(37, 211, 102, 0.65);
  z-index: 60;
  transition:
    transform 0.4s var(--ease-spring),
    box-shadow 0.3s,
    opacity 0.35s var(--ease-spring);
}
.wa-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 50px -10px rgba(37, 211, 102, 0.8);
}

/* Hide while hero is on screen */
body.is-hero-visible .wa-float {
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
}
body.is-hero-visible .wa-float__pulse {
  display: none;
}
.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 720px) {
  .wa-float { width: 54px; height: 54px; bottom: 18px; right: 18px; }
}

/* ============ TEAM GROUP (single editorial photo) ============ */
.team-group {
  display: grid;
  gap: 36px;
}

.team-group__photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #0c1a36, #171726);
  isolation: isolate;
  transition: box-shadow .5s var(--ease-out);
}

.team-group__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 1.4s var(--ease-out), filter .6s var(--ease-out);
}

.team-group__photo:hover { box-shadow: var(--shadow-brand); }
.team-group__photo:hover img { transform: scale(1.022); }

.team-group__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 50% at 0% 0%, rgba(8, 108, 231, 0.18), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(23, 23, 38, 0.55), transparent 60%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

.team-group__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 23, 38, 0.10) 0%, transparent 35%, transparent 60%, rgba(23, 23, 38, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ----- floating glass chips ----- */
.team-group__chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-900);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px -14px rgba(8, 50, 130, 0.45);
  white-space: nowrap;
  animation: teamChipFloat 7s ease-in-out infinite;
}

.team-group__chip svg { color: var(--brand-500); }

.team-group__chip--tl {
  top: 22px;
  left: 22px;
}

.team-group__chip--tr {
  top: 22px;
  right: 22px;
  animation-delay: -2.3s;
}

.team-group__chip--bl {
  left: 22px;
  bottom: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  animation-delay: -4.6s;
}

.team-group__chip--bl strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.team-group__chip--bl em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes teamChipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .team-group__chip { animation: none; }
}

/* ----- band below photo ----- */
.team-group__band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}

@media (min-width: 900px) {
  .team-group__band {
    grid-template-columns: 1.1fr 1fr;
    padding: 38px 44px;
    gap: 44px;
  }
}

.team-group__lead {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-900);
  letter-spacing: -0.005em;
  margin: 0;
}

.team-group__lead strong {
  color: var(--brand-500);
  font-weight: 700;
}

.team-group__lead span {
  display: block;
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0;
}

.team-group__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-group__pills li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid rgba(8, 108, 231, 0.18);
  color: var(--brand-700);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
  cursor: default;
}

.team-group__pills li:hover {
  background: var(--grad-brand);
  color: #fff;
  transform: translateY(-2px);
  border-color: transparent;
}

/* ----- responsive tweaks for chips on small screens ----- */
@media (max-width: 640px) {
  .team-group__chip {
    font-size: 0.72rem;
    padding: 8px 12px;
  }
  /* Ocultar chips de ubicación y "+10 personas activas" en móvil */
  .team-group__chip--tl,
  .team-group__chip--tr { display: none; }
  .team-group__chip--bl {
    left: 14px;
    bottom: 14px;
    padding: 10px 14px;
  }
  .team-group__chip--bl strong { font-size: 0.82rem; }
  .team-group__chip--bl em { font-size: 0.62rem; }
  .team-group__band { padding: 24px; }
}

/* ============ FAQ ============ */
.faq {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}

.faq__item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq__item[open] {
  border-color: rgba(8, 108, 231, 0.32);
  box-shadow: var(--shadow-md);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }

.faq__q h3 {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.005em;
  line-height: 1.4;
  margin: 0;
}

.faq__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-500);
  transition: transform .35s var(--ease-spring), background .3s var(--ease-out), color .3s var(--ease-out);
}

.faq__item[open] .faq__icon {
  transform: rotate(180deg);
  background: var(--grad-brand);
  color: #fff;
}

.faq__a {
  padding: 0 26px 24px;
  color: var(--ink-700);
  animation: faqFadeIn .35s var(--ease-out);
}

.faq__a p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-700);
}

.faq__a strong {
  color: var(--ink-900);
  font-weight: 600;
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE TWEAKS ============ */
@media (max-width: 720px) {
  .nav { padding: 12px 8px; }
  .nav__inner { padding: 10px 14px; border-radius: 14px; }
  //.hero { padding-top: 130px; }
  .hero__visual { min-height: 380px; }
  .visual { max-width: 380px; margin: 0 auto; }
  .visual__card--b { width: 170px; }
  .why__panel { padding: 26px; position: static; }
  .cta__card { padding: 56px 24px; }
  .section__head { margin-bottom: 32px; }
  .benefit { grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; }
  .faq__q { padding: 18px 20px; gap: 12px; }
  .faq__a { padding: 0 20px 22px; }
  .faq__icon { width: 32px; height: 32px; }
}


/* ============================================================================
   SCROLL-DRIVEN ANIMATIONS — modern progressive enhancement
   ----------------------------------------------------------------------------
   Uses CSS `animation-timeline: view()` which ties keyframes directly to the
   element's position in the viewport. This is naturally BIDIRECTIONAL — the
   animation plays forward as the element scrolls into view and reverses as
   the user scrolls back up. No JS, no flicker, GPU-accelerated.

   Browsers without support (older Safari/Firefox stable) keep the existing
   IntersectionObserver-based .reveal flow as a graceful fallback.
   ============================================================================ */

@supports (animation-timeline: view()) {

  /* ---------- 1. Bidirectional reveal — runs through entry and into the cover phase ---------- */
  .reveal {
    animation: revealEnter linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  @keyframes revealEnter {
    from { opacity: 0; transform: translateY(48px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ---------- 2. Eyebrows slide IN FROM THE LEFT — slow ---------- */
  .section__head .eyebrow,
  .why__head .eyebrow {
    animation: slideFromLeft linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }

  @keyframes slideFromLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  @keyframes slideFromRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  /* ---------- 3. Section titles slide in from LEFT with blur — extended range ---------- */
  .section__head h2,
  .why__head h2 {
    animation: revealTitle linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }

  @keyframes revealTitle {
    from { opacity: 0; transform: translateX(-40px); filter: blur(6px); }
    to   { opacity: 1; transform: translateX(0); filter: blur(0); }
  }

  /* ---------- 3b. Subtitles slide in from the RIGHT — even slower ---------- */
  .section__subtitle,
  .section__head p,
  .why__head p {
    animation: slideFromRight linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 50%;
  }

  /* ---------- 3c. Card content text ---------- */
  .service h3, .service p, .service ul,
  .stack-card h3, .stack-card p,
  .project__caption,
  .benefit h3, .benefit p,
  .faq__q, .faq__a,
  .process__step h3, .process__step p, .process__step .process__time {
    animation: revealEnter linear both;
    animation-timeline: view();
    animation-range: entry 4% cover 35%;
  }

  /* ---------- 3d. Two-column directional slides — slow with cover phase ---------- */
  .why__benefits,
  .cta__content,
  .stats__copy,
  .footer__brand {
    animation: slideFromLeft linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  .why__panel,
  .cta-form,
  .visual {
    animation: slideFromRight linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  /* ---------- 4. Card grids lift in one-by-one (staggered per index) ----------
     animation-range start is offset per nth-child so each card begins its
     animation a little later than the previous → visible stagger effect. */
  .services .service,
  .stack-grid .stack-card,
  .portfolio .project,
  .why__benefits .benefit,
  .faq__item {
    animation: revealCardLift linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }

  /* Stagger: each subsequent card starts later — wide ranges with cover phase for slower cascade */
  .services .service:nth-child(1),
  .stack-grid .stack-card:nth-child(1),
  .portfolio .project:nth-child(1),
  .why__benefits .benefit:nth-child(1),
  .faq__item:nth-child(1) { animation-range: entry 0%  entry 80%; }

  .services .service:nth-child(2),
  .stack-grid .stack-card:nth-child(2),
  .portfolio .project:nth-child(2),
  .why__benefits .benefit:nth-child(2),
  .faq__item:nth-child(2) { animation-range: entry 7%  entry 87%; }

  .services .service:nth-child(3),
  .stack-grid .stack-card:nth-child(3),
  .portfolio .project:nth-child(3),
  .why__benefits .benefit:nth-child(3),
  .faq__item:nth-child(3) { animation-range: entry 14% entry 94%; }

  .services .service:nth-child(4),
  .stack-grid .stack-card:nth-child(4),
  .portfolio .project:nth-child(4),
  .why__benefits .benefit:nth-child(4),
  .faq__item:nth-child(4) { animation-range: entry 21% cover 5%; }

  .services .service:nth-child(5),
  .stack-grid .stack-card:nth-child(5),
  .portfolio .project:nth-child(5),
  .faq__item:nth-child(5) { animation-range: entry 28% cover 12%; }

  .services .service:nth-child(6),
  .stack-grid .stack-card:nth-child(6),
  .portfolio .project:nth-child(6),
  .faq__item:nth-child(6) { animation-range: entry 35% cover 19%; }

  .services .service:nth-child(7),
  .stack-grid .stack-card:nth-child(7),
  .faq__item:nth-child(7) { animation-range: entry 42% cover 26%; }

  .services .service:nth-child(8),
  .stack-grid .stack-card:nth-child(8),
  .faq__item:nth-child(8) { animation-range: entry 49% cover 33%; }

  /* Cards in odd column slots come from LEFT, even from RIGHT — true alternating slide */
  .services .service:nth-child(odd),
  .stack-grid .stack-card:nth-child(odd),
  .portfolio .project:nth-child(odd) {
    animation-name: cardLiftFromLeft;
  }
  .services .service:nth-child(even),
  .stack-grid .stack-card:nth-child(even),
  .portfolio .project:nth-child(even) {
    animation-name: cardLiftFromRight;
  }

  @keyframes cardLiftFromLeft {
    from { opacity: 0; transform: translateX(-60px) translateY(40px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
  }
  @keyframes cardLiftFromRight {
    from { opacity: 0; transform: translateX(60px) translateY(40px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
  }

  @keyframes revealCardLift {
    from { opacity: 0; transform: translateY(56px) scale(0.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* ---------- 5. Icon badges pop with rotation ---------- */
  .benefit__icon,
  .process__icon,
  .service__icon {
    animation: revealIconPop linear both;
    animation-timeline: view();
    animation-range: entry 6% entry 75%;
  }

  @keyframes revealIconPop {
    from { opacity: 0; transform: scale(0.4) rotate(-22deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
  }

  /* ---------- 7. Big stats numbers grow into view ---------- */
  [data-stat],
  .stats__num {
    animation: revealNumber linear both;
    animation-timeline: view();
    animation-range: entry 8% entry 88%;
  }

  @keyframes revealNumber {
    from { opacity: 0; transform: translateY(36px) scale(0.78); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* ---------- 9. Testimonials — slide from RIGHT, slow ---------- */
  .testimonial,
  .quote {
    animation: slideFromRight linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }

  /* ---------- 10. Subtle parallax drift on hero visual cards ---------- */
  .visual__card--float {
    animation: revealParallax linear;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }

  @keyframes revealParallax {
    from { transform: translateY(20px); }
    to   { transform: translateY(-30px); }
  }

  /* ---------- 11. Section background pan as user scrolls past ---------- */
  .section--alt {
    animation: revealSectionPan linear;
    animation-timeline: view();
    animation-range: cover 0% cover 100%;
    background-size: 200% 200%;
  }

  @keyframes revealSectionPan {
    from { background-position: 0% 0%; }
    to   { background-position: 100% 100%; }
  }

  /* ---------- 12. Logos / marquee container fades in on entry ---------- */
  .logos--services .logos__label {
    animation: revealEyebrow linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }

  /* ============================================================================
     MOBILE & TABLET overrides (≤1023px)
     ----------------------------------------------------------------------------
     En desktop las animaciones vienen con desplazamientos horizontales (±60px,
     -40px) y blur — pensadas para grids de 2-4 columnas anchas. En tablet y
     móvil el layout es de 1 columna, así que esos slides laterales se ven
     descoordinados y los recorridos largos dejan elementos invisibles por
     mucho tiempo. Aquí los reemplazamos por fade-up vertical, recortamos los
     rangos para que el reveal termine cerca del top del viewport, y unificamos
     las cards en un solo keyframe sin alternancia L/R.
     ============================================================================ */
  @media (max-width: 1023px) {

    /* Eyebrows + títulos + subtítulos: fade-up vertical, sin slide horizontal
       ni blur. Mucho más limpio en pantalla angosta. */
    .reveal,
    .section__head .eyebrow,
    .why__head .eyebrow,
    .section__head h2,
    .why__head h2,
    .section__subtitle,
    .section__head p,
    .why__head p,
    .testimonial,
    .quote {
      animation-name: revealEnter;
      animation-range: entry 5% cover 25%;
    }

    /* Bloques de dos columnas (texto vs panel) — ya no llegan de los lados.
       En 1 columna se apilan, así que basta con un fade-up parejo. */
    .why__benefits,
    .cta__content,
    .stats__copy,
    .footer__brand,
    .why__panel,
    .cta-form,
    .visual {
      animation-name: revealEnter;
      animation-range: entry 5% cover 25%;
    }

    /* Cards: entrada con pop dramático + ligera rotación alternada.
       Distancia mayor (48px), escala inicial 0.88, micro-overshoot al 60%
       que sube la card 8px arriba antes de asentarse → sensación elástica
       sin recurrir a librerías. La rotación odd/even añade carácter sin
       depender de slides horizontales (que causarían overflow). */
    .services .service:nth-child(odd),
    .stack-grid .stack-card:nth-child(odd),
    .portfolio .project:nth-child(odd) {
      animation-name: cardPopMobileLeft;
    }
    .services .service:nth-child(even),
    .stack-grid .stack-card:nth-child(even),
    .portfolio .project:nth-child(even) {
      animation-name: cardPopMobileRight;
    }

    /* Benefits y FAQ items: pop simple, sin rotación alternada porque
       visualmente son listas y la rotación se sentiría desordenada. */
    .why__benefits .benefit,
    .faq__item {
      animation-name: cardPopMobile;
    }

    @keyframes cardPopMobile {
      0%   { opacity: 0; transform: translateY(48px) scale(0.9); }
      60%  { opacity: 1; transform: translateY(-8px) scale(1.025); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    @keyframes cardPopMobileLeft {
      0%   { opacity: 0; transform: translateY(48px) scale(0.88) rotate(-1.8deg); }
      60%  { opacity: 1; transform: translateY(-8px) scale(1.03) rotate(0.6deg); }
      100% { opacity: 1; transform: translateY(0)   scale(1)    rotate(0); }
    }
    @keyframes cardPopMobileRight {
      0%   { opacity: 0; transform: translateY(48px) scale(0.88) rotate(1.8deg); }
      60%  { opacity: 1; transform: translateY(-8px) scale(1.03) rotate(-0.6deg); }
      100% { opacity: 1; transform: translateY(0)   scale(1)    rotate(0); }
    }

    /* Range uniforme — sin stagger CSS por nth-child porque en 1 columna el
       propio layout produce el efecto "una a una": cada card ocupa su propia
       fila, así que entra al viewport cuando el usuario scrollea hasta ella.
       Esto se siente más natural que un stagger pre-calculado. */
    .services .service,
    .stack-grid .stack-card,
    .portfolio .project,
    .services .service:nth-child(1),
    .services .service:nth-child(2),
    .services .service:nth-child(3),
    .services .service:nth-child(4),
    .services .service:nth-child(5),
    .services .service:nth-child(6),
    .services .service:nth-child(7),
    .services .service:nth-child(8),
    .stack-grid .stack-card:nth-child(1),
    .stack-grid .stack-card:nth-child(2),
    .stack-grid .stack-card:nth-child(3),
    .stack-grid .stack-card:nth-child(4),
    .stack-grid .stack-card:nth-child(5),
    .stack-grid .stack-card:nth-child(6),
    .stack-grid .stack-card:nth-child(7),
    .stack-grid .stack-card:nth-child(8),
    .portfolio .project:nth-child(1),
    .portfolio .project:nth-child(2),
    .portfolio .project:nth-child(3),
    .portfolio .project:nth-child(4),
    .portfolio .project:nth-child(5),
    .portfolio .project:nth-child(6),
    .why__benefits .benefit,
    .why__benefits .benefit:nth-child(1),
    .why__benefits .benefit:nth-child(2),
    .why__benefits .benefit:nth-child(3),
    .why__benefits .benefit:nth-child(4),
    .faq__item,
    .faq__item:nth-child(1),
    .faq__item:nth-child(2),
    .faq__item:nth-child(3),
    .faq__item:nth-child(4),
    .faq__item:nth-child(5),
    .faq__item:nth-child(6),
    .faq__item:nth-child(7),
    .faq__item:nth-child(8) {
      animation-range: entry 0% cover 28%;
    }

    /* Texto interno de las cards — rango más corto para que aparezca pronto */
    .service h3, .service p, .service ul,
    .stack-card h3, .stack-card p,
    .project__caption,
    .benefit h3, .benefit p,
    .faq__q, .faq__a,
    .process__step h3, .process__step p, .process__step .process__time {
      animation-range: entry 4% cover 20%;
    }

    /* Iconos: pop con rotación grande + overshoot para que se sientan
       "vivos" entrando — replicamos el feel de las cards. */
    .benefit__icon,
    .process__icon,
    .service__icon {
      animation-name: revealIconPopMobile;
      animation-range: entry 8% entry 55%;
    }

    @keyframes revealIconPopMobile {
      0%   { opacity: 0; transform: scale(0.3) rotate(-35deg); }
      60%  { opacity: 1; transform: scale(1.15) rotate(8deg); }
      100% { opacity: 1; transform: scale(1) rotate(0); }
    }

    /* Números de stats: pop con overshoot — entra desde abajo, escala
       hasta 1.06 al 60% y asienta. Mucho más vivo que el fade-up plano. */
    [data-stat],
    .stats__num {
      animation-name: revealNumberMobile;
      animation-range: entry 10% entry 75%;
    }

    @keyframes revealNumberMobile {
      0%   { opacity: 0; transform: translateY(30px) scale(0.7); }
      60%  { opacity: 1; transform: translateY(-4px) scale(1.06); }
      100% { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* Hero parallax drift apagado en móvil (las cards ya están display:none,
       esto es defensa en profundidad). */
    .visual__card--float {
      animation: none;
    }
  }

  /* ---------- Reduce-motion: keep scroll-driven reveals, just remove transforms ----------
     Scroll-driven animations are user-controlled (the user drives them with the
     scroll wheel) so they're considered safe under WCAG. We only flatten any
     parallax / drift effects that move autonomously. */
  @media (prefers-reduced-motion: reduce) {
    .visual__card--float,
    .section--alt {
      animation: none;
    }
  }
}


/* ===================== SERVICE CTA "VER DETALLES" ===================== */
.service__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(8, 108, 231, 0.07);
  color: var(--brand-500);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid rgba(8, 108, 231, 0.15);
  transition:
    background 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s var(--ease-out);
}
.service__more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease-spring);
}
.service__more:hover,
.service__more:focus-visible {
  background: var(--brand-500);
  color: #fff;
  border-color: var(--brand-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
  outline: none;
}
.service__more:hover svg,
.service__more:focus-visible svg {
  transform: translateX(4px);
}
.service:hover .service__more {
  background: var(--brand-500);
  color: #fff;
  border-color: var(--brand-500);
}
.service:hover .service__more svg {
  transform: translateX(3px);
}

.service__more--inverse {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.service__more--inverse:hover,
.service__more--inverse:focus-visible {
  background: #fff;
  color: var(--brand-500);
  border-color: #fff;
}
.service--accent:hover .service__more--inverse {
  background: #fff;
  color: var(--brand-500);
  border-color: #fff;
}

/* ===================== SERVICE MODAL ===================== */
/* Native <dialog> reset */
.service-modal[open] {
  display: block;
}
.service-modal {
  /* Reset native dialog */
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  overflow: hidden;
  /* Stack above wa-float (z-index ~ 95) */
  z-index: 9000;
}
.service-modal::backdrop {
  background: transparent; /* we use our own backdrop div for animation control */
}
.service-modal:not([open]) {
  display: none;
}

.service-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 36, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  z-index: 1;
}
.service-modal.is-open .service-modal__backdrop {
  opacity: 1;
}

.service-modal__panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 20px)) scale(0.96);
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px clamp(22px, 4vw, 38px) 28px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.5s var(--ease-spring);
  z-index: 2;
}
.service-modal.is-open .service-modal__panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* subtle decorative gradient inside the panel */
.service-modal__panel::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 220px;
  background:
    radial-gradient(640px circle at 20% 0%, rgba(8, 108, 231, 0.14), transparent 60%),
    radial-gradient(420px circle at 90% 10%, rgba(91, 168, 255, 0.12), transparent 60%);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  pointer-events: none;
  z-index: 0;
}
.service-modal__panel > * {
  position: relative;
  z-index: 1;
}

.service-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(23, 23, 38, 0.05);
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s, transform 0.3s var(--ease-spring);
  z-index: 3;
}
.service-modal__close svg { width: 18px; height: 18px; }
.service-modal__close:hover,
.service-modal__close:focus-visible {
  background: var(--ink-900);
  color: #fff;
  transform: rotate(90deg);
  outline: none;
}

/* HERO of modal */
.service-modal__hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 26px;
  padding-right: 40px; /* leave space for close button */
}
.service-modal__icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--grad-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-brand);
}
.service-modal__icon svg {
  width: 24px;
  height: 24px;
}
.service-modal__heading { min-width: 0; }
.service-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-500);
  background: var(--brand-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.service-modal__title {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink-900);
  margin: 0 0 6px 0;
}
.service-modal__lede {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-500);
  margin: 0;
}

/* "Por qué tu negocio lo necesita" block */
.service-modal__block {
  margin-bottom: 24px;
}

.service-modal__block-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-900);
  margin: 0 0 14px 0;
}
.service-modal__bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(8, 108, 231, 0.18);
  display: inline-block;
}

.service-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.service-modal__list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-700);
}
.service-modal__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--brand-500);
  border-bottom: 2px solid var(--brand-500);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* "¿Sabías que…?" callout */
.service-modal__fact {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(8, 108, 231, 0.045);
  border: 1px solid rgba(8, 108, 231, 0.1);
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.service-modal__fact-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -8px rgba(8, 108, 231, 0.55);
  position: relative;
  z-index: 1;
}
.service-modal__fact-icon svg { width: 18px; height: 18px; }
.service-modal__fact-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.service-modal__fact-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-500);
  margin-bottom: 2px;
}
.service-modal__fact-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-900);
  font-weight: 500;
}

/* CTA WhatsApp — premium */
.service-modal__cta {
  text-align: center;
  padding-top: 2px;
}
.service-modal__quote {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 28px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  color: #fff;
  background:
    linear-gradient(135deg, #25d366 0%, #1ebe5d 45%, #128c7e 100%);
  box-shadow:
    0 18px 38px -14px rgba(18, 140, 126, 0.55),
    0 6px 14px -6px rgba(37, 211, 102, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s var(--ease-out),
    filter 0.25s;
}

/* Inner soft glow ring */
.service-modal__quote::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(255, 255, 255, 0.35) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Shimmer sweep on hover */
.service-modal__quote::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 50%;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 80%
  );
  transform: skewX(-18deg);
  transition: left 0.85s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}
.service-modal__quote:hover::after,
.service-modal__quote:focus-visible::after {
  left: 130%;
}

.service-modal__quote > * { position: relative; z-index: 2; }

.service-modal__quote svg {
  flex: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
  animation: quotePulse 2.4s ease-in-out infinite;
}

.service-modal__quote:hover,
.service-modal__quote:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 24px 46px -14px rgba(18, 140, 126, 0.65),
    0 10px 22px -8px rgba(37, 211, 102, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14);
  filter: brightness(1.06) saturate(1.05);
  outline: none;
}
.service-modal__quote:active {
  transform: translateY(-1px);
  transition-duration: 0.15s;
}

@keyframes quotePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.service-modal__cta-note {
  margin: 8px 0 0;
  font-size: 0.74rem;
  color: var(--ink-500);
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .service-modal__quote svg { animation: none; }
  .service-modal__quote::after { display: none; }
}

/* Block scroll when modal is open */
body.is-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .service-modal__backdrop,
  .service-modal__panel {
    transition: none;
  }
}
