/* ---------------------------------------------------------------------------
   Tipografías servidas desde el propio sitio (antes venían de Google Fonts).
   Son variables: un solo archivo cubre todos los grosores 400–800.
   --------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../assets/fonts/sora-latin.woff2') format('woff2');
}

/* ============================================================================
   GO DEV SYSTEMS · HOJA DE ESTILOS
   ----------------------------------------------------------------------------
   1.  Tokens de diseño
   2.  Reset y base
   3.  Utilidades / layout
   4.  Botones e iconos
   5.  Animaciones de scroll
   6.  Header y navegación
   7.  Hero
   8.  Clientes (marquee)
   9.  Servicios
   10. Chatbot (teléfono)
   11. Proceso
   12. Proyectos
   13. Números
   14. Por qué nosotros
   15. Testimonios
   16. Tecnologías
   17. FAQ
   18. Contacto y formulario
   19. Footer
   20. Flotantes
   21. Responsive
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. TOKENS DE DISEÑO
   --------------------------------------------------------------------------- */
:root {
  /* Color de marca — cambia estos dos y todo el sitio cambia de color */
  --accent:        #1a56f0;
  --accent-dark:   #1140c4;
  --accent-light:  #4f8bff;
  --accent-soft:   #eaf0ff;
  --accent-ring:   rgba(26, 86, 240, .22);

  --wa:            #16a34a;
  --wa-dark:       #128c3e;

  /* Neutros */
  --ink:           #0b1220;
  --ink-2:         #1c2740;
  --muted:         #5a6a85;
  --muted-2:       #8494ac;
  --line:          #e4eaf2;
  --line-2:        #eef2f8;
  --bg:            #ffffff;
  --bg-tint:       #f6f8fc;
  --bg-deep:       #0b1220;

  /* Tipografía */
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display:  'Sora', 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;

  /* Escala fluida */
  --fs-h1:  clamp(2.35rem, 1.15rem + 3.6vw, 4.2rem);
  --fs-h2:  clamp(1.85rem, 1.05rem + 2.3vw, 3rem);
  --fs-h3:  clamp(1.12rem, .95rem + .5vw, 1.35rem);
  --fs-lead:clamp(1rem, .93rem + .35vw, 1.19rem);

  /* Espacio */
  --sp-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --container:  1220px;
  --gutter:     clamp(1.15rem, .6rem + 2vw, 2.5rem);

  /* Radios y sombras */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --sh-xs: 0 1px 2px rgba(11,18,32,.05);
  --sh-sm: 0 2px 8px rgba(11,18,32,.06);
  --sh:    0 10px 30px -12px rgba(11,18,32,.16);
  --sh-md: 0 20px 45px -20px rgba(11,18,32,.22);
  --sh-lg: 0 34px 70px -28px rgba(11,18,32,.28);
  --sh-accent: 0 16px 36px -14px rgba(26,86,240,.55);

  --ease:      cubic-bezier(.22,.61,.36,1);

  /* Flotantes de la esquina inferior derecha. El botón de "volver arriba" se
     posiciona a partir de estos valores, nunca con números sueltos: así los
     dos quedan alineados y con la misma separación en cualquier pantalla. */
  --wa-right:  22px;
  --wa-bottom: 22px;
  --wa-size:   60px;
  --fab-gap:   20px;   /* aire suficiente para el anillo que late (escala 1.65) */
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --dur:       .55s;
}

/* ---------------------------------------------------------------------------
   2. RESET Y BASE
   --------------------------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

body.is-locked { overflow: hidden; }

h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.13;
  letter-spacing: -.025em;
  margin: 0;
  font-weight: 700;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* Barra de progreso de scroll */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1000;
  pointer-events: none;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 0 3px 3px 0;
  transition: transform .1s linear;   /* scaleX en vez de width: no recalcula
                                         el layout de la página en cada frame */
}

/* ---------------------------------------------------------------------------
   3. UTILIDADES / LAYOUT
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sp-section); position: relative; }
.section--tight { padding-block: calc(var(--sp-section) * .62); }
.section--tint { background: var(--bg-tint); }
.section--tint + .section--tint { padding-top: 0; }

.section__head {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 1.5rem + 3vw, 4.2rem);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow span {
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}
.eyebrow--light { color: #fff; }
.eyebrow--light span { background: #fff; }

.section__title { font-size: var(--fs-h2); }
.section__title--left { text-align: left; }
/* Resaltado que se "pinta" solo; funciona aunque el texto ocupe varias líneas */
.section__title em {
  font-style: normal;
  color: var(--accent);
  background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% .3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 1s var(--ease-out) .3s;
}
.section__title.is-visible em { background-size: 100% .3em; }

.section__lead {
  margin-top: 1.15rem;
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 62ch;
  margin-inline: auto;
}
.section__lead--left { margin-inline: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem .95rem .42rem .6rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 100px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--sh-xs);
}
.pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 4px rgba(22,163,74,.16);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(22,163,74,.16); }
  50%     { box-shadow: 0 0 0 8px rgba(22,163,74,.05); }
}

/* ---------------------------------------------------------------------------
   4. BOTONES E ICONOS
   --------------------------------------------------------------------------- */
.ico {
  width: 19px; height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.btn {
  --btn-bg: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-weight: 650;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--sh-accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -16px rgba(26,86,240,.65);
}
.btn--primary .ico { transition: transform .3s var(--ease); }
.btn--primary:hover .ico { transform: translateX(4px); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--sh-xs);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--sh);
}

.btn--wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 16px 36px -14px rgba(22,163,74,.6);
}
.btn--wa:hover { background: var(--wa-dark); transform: translateY(-2px); }

.btn--sm  { padding: .62rem 1.15rem; font-size: .87rem; }
.btn--lg  { padding: 1.02rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------------------
   5. ANIMACIONES DE SCROLL
   --------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transition:
    opacity .5s var(--ease-out),
    transform .62s var(--ease-out),
    filter .5s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal="up"]    { transform: translate3d(0, 42px, 0); }
[data-reveal="left"]  { transform: translate3d(-42px, 0, 0); }
[data-reveal="right"] { transform: translate3d(42px, 0, 0); }
[data-reveal="scale"] { transform: scale(.94) translate3d(0, 26px, 0); filter: blur(6px); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Animación de título por palabras */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .06em;
}
.word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .62s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-split].is-visible .word > span { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .word > span { transform: none !important; }
}

/* ---------------------------------------------------------------------------
   6. HEADER Y NAVEGACIÓN
   --------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding-block: .9rem;
  transition: background .4s var(--ease), box-shadow .4s var(--ease),
              padding .4s var(--ease), border-color .4s var(--ease), transform .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  padding-block: .55rem;
  box-shadow: 0 8px 30px -18px rgba(11,18,32,.35);
}
.header.is-hidden { transform: translateY(-115%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
/* Marca (cubo SVG incrustado): usa currentColor, así se adapta al fondo del contexto */
.brand__mark {
  width: 34px; height: 34px;
  flex: none;
  color: var(--ink);
  transition: transform .5s var(--ease-out);
}
.brand:hover .brand__mark { transform: translateY(-2px) scale(1.05); }
.brand:active .brand__mark { transform: translateY(0) scale(.97); transition-duration: .12s; }

/* --- Animación del cubo -----------------------------------------------------
   1. Se arma solo (cada cara entra desde su eje) cuando la página queda lista.
   2. Un destello lo recorre al terminar de armarse y cada vez que pasas el mouse.
   3. Al pasar el mouse las caras se separan un pelo: da sensación de volumen.
   Todo se apaga con "prefers-reduced-motion".                                */
.cube__face {
  transform-origin: 24px 24px;
  transition: transform .45s var(--ease-out);
}
.cube__shine-bar { opacity: 0; }

@keyframes cubeTop   { from { opacity: 0; transform: translateY(-10px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes cubeLeft  { from { opacity: 0; transform: translate(-8px, 6px); }        to { opacity: 1; transform: none; } }
@keyframes cubeRight { from { opacity: 0; transform: translate(8px, 6px); }         to { opacity: 1; transform: none; } }
@keyframes cubeShine {
  0%   { opacity: 0; transform: translateX(0); }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(74px); }
}

/* 1 + 2 · montaje al quedar lista la página (la clase la pone js/main.js) */
.is-ready .brand__mark .cube__top   { animation: cubeTop   .72s cubic-bezier(.34,1.36,.5,1) .02s backwards; }
.is-ready .brand__mark .cube__left  { animation: cubeLeft  .72s cubic-bezier(.34,1.36,.5,1) .14s backwards; }
.is-ready .brand__mark .cube__right { animation: cubeRight .72s cubic-bezier(.34,1.36,.5,1) .24s backwards; }
.is-ready .brand__mark .cube__shine-bar--in { animation: cubeShine 1.15s cubic-bezier(.4,0,.55,1) .72s backwards; }

/* el cubo del preloader se arma en cuanto aparece */
.preloader__logo .cube__top   { animation: cubeTop   .75s cubic-bezier(.34,1.36,.5,1) .1s backwards; }
.preloader__logo .cube__left  { animation: cubeLeft  .75s cubic-bezier(.34,1.36,.5,1) .24s backwards; }
.preloader__logo .cube__right { animation: cubeRight .75s cubic-bezier(.34,1.36,.5,1) .36s backwards; }
.preloader__logo .cube__shine-bar--in { animation: cubeShine 1.6s cubic-bezier(.4,0,.55,1) 1s infinite; }

/* 3 · hover: se separa y vuelve a brillar */
.brand:hover .cube__top   { transform: translateY(-1.8px); }
.brand:hover .cube__left  { transform: translate(-1px, .6px); }
.brand:hover .cube__right { transform: translate(1px, .6px); }
.brand:hover .cube__shine-bar--hover { animation: cubeShine .95s cubic-bezier(.4,0,.55,1) both; }

@media (prefers-reduced-motion: reduce) {
  .cube__face, .brand:hover .cube__face { transform: none !important; }
  .cube__shine-bar { display: none; }
}
.brand__text { font-weight: 500; }
.brand__text strong { font-weight: 800; letter-spacing: -.01em; margin-right: .05em; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  position: relative;
  padding: .55rem .85rem;
  font-size: .93rem;
  font-weight: 550;
  color: var(--muted);
  border-radius: 8px;
  transition: color .25s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: .85rem; right: .85rem; bottom: .28rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .38s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--accent); }
.nav__cta { margin-left: .6rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  place-items: center;
  box-shadow: var(--sh-xs);
}
.burger span {
  display: block;
  width: 19px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
/* las tres barras separadas 7 px de centro a centro: el mismo valor que usa
   el transform para juntarlas y formar la X */
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------------
   7. HERO
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(5.5rem, 4rem + 4.5vw, 7.5rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,18,32,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,18,32,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  will-change: transform;
}
.blob--1 {
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, rgba(26,86,240,.42), transparent 68%);
  top: -14%; right: -8%;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob--2 {
  width: 38vw; height: 38vw; max-width: 500px; max-height: 500px;
  background: radial-gradient(circle, rgba(79,139,255,.35), transparent 68%);
  bottom: -18%; left: -10%;
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
.blob--3 {
  width: 60vw; height: 60vw; max-width: 760px;
  background: radial-gradient(circle, rgba(255,255,255,.24), transparent 66%);
  top: -30%; left: 50%;
  filter: blur(70px);
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-46px, 38px, 0); }   /* sin scale: no hay que
         redibujar el desenfoque en cada frame, solo mover la capa ya dibujada */
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.1rem, 1.15rem + 2.7vw, 3.55rem);
  line-height: 1.08;
  margin: 1.05rem 0 1.2rem;
  max-width: 18ch;
}

.hero__lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 54ch;
}
.hero__lead strong { color: var(--ink); font-weight: 650; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2.1rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.6rem;
  margin-top: 2.2rem;
  font-size: .89rem;
  color: var(--muted);
  font-weight: 550;
}
.hero__trust li { display: flex; align-items: center; gap: .45rem; }
.hero__trust .ico { width: 17px; height: 17px; color: var(--wa); stroke-width: 2.6; }

/* Mockup */
.hero__visual { position: relative; perspective: 1400px; }

.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out);
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .8rem 1rem;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line-2);
}
.mock__bar > span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #dfe6ef;
}
.mock__url {
  margin-left: .7rem;
  flex: 1;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: .72rem;
  color: var(--muted);            /* contraste AA */
  padding: .28rem .8rem;
  text-align: center;
}
.mock__body { padding: 1.3rem; }
.mock__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.mock__kpi {
  background: var(--bg-tint);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: .85rem .95rem;
}
.mock__kpi-label { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.mock__kpi-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.25;
}
.mock__kpi-delta { font-size: .72rem; font-weight: 700; color: #15803d; }   /* verde AA */
.mock__chart { margin-top: 1rem; height: 130px; }
.mock__chart svg { width: 100%; height: 100%; }
.mock__line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.is-visible .mock__line { animation: draw 2.2s var(--ease-out) .4s forwards; }
.mock__area { opacity: 0; }
.is-visible .mock__area { animation: fadeIn .9s ease 1.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.mock__rows { margin-top: 1rem; display: grid; gap: .55rem; }
.mock__line-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem .2rem;
  border-top: 1px solid var(--line-2);
}
.mock__line-item i { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); flex: none; }
.mock__line-item b { height: 9px; border-radius: 5px; background: var(--line-2); flex: 1; }
.mock__line-item:nth-child(2) b { max-width: 72%; }
.mock__line-item:nth-child(3) b { max-width: 58%; }

/* Tarjetas flotantes */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: .72rem .95rem;
  box-shadow: var(--sh-md);
  animation: floaty 5.5s ease-in-out infinite;
  will-change: transform;
}
.float-card div { display: flex; flex-direction: column; line-height: 1.32; }
.float-card strong { font-size: .84rem; color: var(--ink); font-weight: 700; }
.float-card span { font-size: .74rem; color: var(--muted); }
.float-card__icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.float-card__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.float-card__icon--green { background: #e6f7ee; color: var(--wa); }
.float-card--wa  { left: -6%; bottom: 14%; animation-delay: -1.5s; }
.float-card--up  { right: -4%; top: 8%; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}

/* ---------------------------------------------------------------------------
   8. CLIENTES (MARQUEE)
   --------------------------------------------------------------------------- */
.clients { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); overflow: hidden; }
.clients__title {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 2rem;
}
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 1rem + 4vw, 5rem);
  width: max-content;
  animation: scroll-x 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__logo {
  height: 34px;
  width: auto;
  color: var(--muted-2);
  opacity: .55;
  filter: grayscale(1);
  transition: opacity .35s, filter .35s, color .35s, transform .35s;
  flex: none;
}
.marquee__logo:hover { opacity: 1; filter: none; color: var(--accent); transform: scale(1.05); }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------------
   9. SERVICIOS
   --------------------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, .6rem + 1vw, 1.5rem);
}
.service {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1.1rem + 1vw, 2.1rem);
  display: flex;
  flex-direction: column;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s;
}
.service--wide { grid-column: span 3; }
.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: #d3ddec;
}

/* Foco luminoso que sigue al cursor */
[data-spotlight]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(26,86,240,.09), transparent 62%);
}
[data-spotlight]:hover::before { opacity: 1; }

.service__deco {
  position: absolute;
  right: -50px; top: -50px;
  width: 170px; height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity .5s var(--ease), transform .7s var(--ease-out);
  transform: scale(.7);
}
.service:hover .service__deco { opacity: 1; transform: scale(1); }

.service__icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: transform .5s var(--ease-out), background .35s;
}
.service__icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.service:hover .service__icon { transform: translateY(-3px) rotate(-6deg); }
.service__icon--green { background: #e6f7ee; color: var(--wa); }

.service__title { font-size: var(--fs-h3); margin-bottom: .65rem; }
.service__text { color: var(--muted); font-size: .96rem; }

.service__list {
  margin-top: 1.15rem;
  display: grid;
  gap: .55rem;
  font-size: .9rem;
  color: var(--ink-2);
}
.service__list li {
  position: relative;
  padding-left: 1.55rem;
}
.service__list li::before {
  content: '';
  position: absolute;
  left: 0; top: .42em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a56f0' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 6'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.service__link {
  margin-top: auto;
  padding-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 650;
  font-size: .92rem;
  color: var(--accent);
  align-self: flex-start;
}
.service__link span { transition: transform .32s var(--ease); }
.service__link:hover span { transform: translateX(5px); }

.service--accent {
  background: linear-gradient(160deg, #f2fbf6, #ffffff 55%);
  border-color: #cdead9;
}
.service__badge {
  position: absolute;
  top: 1.35rem; right: 1.35rem;
  background: var(--wa);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: 100px;
}

/* ---------------------------------------------------------------------------
   10. CHATBOT (TELÉFONO)
   --------------------------------------------------------------------------- */
.chatbot {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}

.feature-list { display: grid; gap: 1.35rem; margin: 2.2rem 0; }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__num {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  flex: none;
  box-shadow: var(--sh-xs);
}
.feature h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.feature p { color: var(--muted); font-size: .93rem; }

.chatbot__phone { position: relative; display: grid; place-items: center; }
.phone__glow {
  position: absolute;
  width: 78%; height: 62%;
  background: radial-gradient(circle, rgba(26,86,240,.28), transparent 68%);
  filter: blur(60px);
  z-index: -1;
}

.phone {
  width: min(360px, 100%);
  background: #fff;
  border: 10px solid #0d1526;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(11,18,32,.08);
  position: relative;
}
.phone__notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 22px;
  background: #0d1526;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone__topbar {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 2rem .9rem .8rem;
  background: #0f7a55;
  color: #fff;
}
.phone__back { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.phone__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
  flex: none;
}
.phone__who { display: flex; flex-direction: column; line-height: 1.25; }
.phone__who strong { font-size: .92rem; font-weight: 650; }
.phone__who span { font-size: .72rem; opacity: .82; }

.phone__chat {
  height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: .9rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background-color: #e9e2db;
  background-image:
    radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    radial-gradient(rgba(11,18,32,.035) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
}
.phone__chat::-webkit-scrollbar { display: none; }

.bubble {
  max-width: 82%;
  padding: .55rem .78rem;
  border-radius: 12px;
  font-size: .855rem;
  line-height: 1.45;
  color: #0f1a2b;
  box-shadow: 0 1px 1px rgba(11,18,32,.12);
  position: relative;
  animation: bubbleIn .45s var(--ease-out) both;
  word-wrap: break-word;
}
.bubble--user { align-self: flex-end; background: #d9fdd3; border-bottom-right-radius: 3px; }
.bubble--bot  { align-self: flex-start; background: #fff; border-bottom-left-radius: 3px; }
.bubble__time {
  display: block;
  text-align: right;
  font-size: .62rem;
  color: rgba(15,26,43,.45);
  margin-top: .12rem;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(14px) scale(.94); }
  to   { opacity: 1; transform: none; }
}

.typing {
  align-self: flex-start;
  background: #fff;
  border-radius: 12px;
  border-bottom-left-radius: 3px;
  padding: .7rem .85rem;
  display: flex;
  gap: 4px;
  box-shadow: 0 1px 1px rgba(11,18,32,.12);
  animation: bubbleIn .3s var(--ease-out) both;
}
.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9aa7b6;
  animation: blink 1.3s infinite;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink {
  0%,60%,100% { opacity: .3; transform: translateY(0); }
  30%         { opacity: 1;  transform: translateY(-3px); }
}

.phone__input {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .8rem .9rem;
  background: #f0f2f5;
}
.phone__input span {
  flex: 1;
  background: #fff;
  border-radius: 100px;
  padding: .55rem .9rem;
  font-size: .82rem;
  color: var(--muted-2);
}
.phone__input i {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #0f7a55;
  flex: none;
  position: relative;
}
.phone__input i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 16-8-6 16-2.5-6.5L4 12Z'/%3E%3C/svg%3E") center/17px no-repeat;
}

/* ---------------------------------------------------------------------------
   11. PROCESO
   --------------------------------------------------------------------------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, .5rem + 1.4vw, 1.8rem);
  padding-top: 3.2rem;
}
.steps__line {
  position: absolute;
  top: 1.6rem;
  left: 6%; right: 6%;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.steps__note {
  margin-top: 2.2rem;
  text-align: center;
  color: var(--muted-2);
  font-size: .82rem;
  line-height: 1.6;
  max-width: 620px;
  margin-inline: auto;
}
.steps__line span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  transition: width .25s linear;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.7rem 1.4rem 1.5rem;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: #d3ddec; }

/* Nodo sobre la línea del timeline (centrado arriba de cada tarjeta) */
.step::before {
  content: '';
  position: absolute;
  top: -1.6rem; left: 50%;
  transform: translateX(-50%);
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent-light);
  box-shadow: 0 0 0 5px var(--bg-tint);
  z-index: 2;
  transition: border-color .35s, transform .35s var(--ease-out);
}
.step:hover::before { border-color: var(--accent); transform: translateX(-50%) scale(1.18); }

/* Número gigante de fondo (marca de agua) */
.step__ghost {
  position: absolute;
  top: .35rem; right: .55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4.1rem;
  line-height: 1;
  color: #eef2f9;
  letter-spacing: -.05em;
  z-index: 0;
  pointer-events: none;
  transition: color .4s;
}
.step:hover .step__ghost { color: #e6edfb; }

/* Ícono de la etapa */
.step__icon {
  position: relative;
  z-index: 1;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid #e0e9ff;
  color: var(--accent);
  margin-bottom: 1.1rem;
  transition: transform .5s var(--ease-out), background .35s, color .35s, border-color .35s;
}
.step__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.step:hover .step__icon {
  transform: translateY(-2px) scale(1.06);
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.step__title { position: relative; z-index: 1; font-size: 1.08rem; margin: 0 0 .5rem; }
.step__text { position: relative; z-index: 1; font-size: .91rem; color: var(--muted); }
.step__time {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.2rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: .36rem .72rem;
  border-radius: 100px;
}
.step__time svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------------------
   12. PROYECTOS
   --------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.filter {
  padding: .55rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: .89rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.filter:hover { color: var(--ink); border-color: #cfd9e7; }
.filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: var(--sh-accent);
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.1rem, .7rem + 1vw, 1.7rem);
}

.project {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out),
              opacity .4s var(--ease), border-color .4s;
}
.project:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); border-color: #d3ddec; }
.project.is-hidden {
  display: none;
}
.project.is-filtering { opacity: 0; transform: scale(.96); }

.project__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-tint);
  aspect-ratio: 3 / 2;
}
.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.project:hover .project__media img { transform: scale(1.06); }
.project__tag {
  position: absolute;
  left: .9rem; bottom: .9rem;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: .74rem;
  font-weight: 700;
  padding: .34rem .75rem;
  border-radius: 100px;
  box-shadow: var(--sh-sm);
}

.project__body { padding: 1.45rem; display: flex; flex-direction: column; flex: 1; }
.project__title { font-size: 1.14rem; }
.project__client {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: .35rem 0 .75rem;
}
.project__text { font-size: .92rem; color: var(--muted); }

.project__stats {
  display: flex;
  gap: 1.6rem;
  margin: 1.25rem 0;
  padding: .95rem 0;
  border-block: 1px solid var(--line-2);
}
.project__stats li { display: flex; flex-direction: column; }
.project__stats strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--ink);
  letter-spacing: -.03em;
}
.project__stats span { font-size: .76rem; color: var(--muted-2); }

.project__stack { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.project__stack span {
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-tint);
  border: 1px solid var(--line-2);
  padding: .25rem .6rem;
  border-radius: 7px;
}

.projects__note {
  text-align: center;
  margin-top: 2.8rem;
  color: var(--muted);
  font-size: .98rem;
}
.projects__note a { color: var(--accent); font-weight: 650; }
.projects__note a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
   13. NÚMEROS
   --------------------------------------------------------------------------- */
.stats-band {
  background: var(--bg-deep);
  color: #fff;
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(26,86,240,.4), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(79,139,255,.28), transparent 45%);
}
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem);
  letter-spacing: -.045em;
  color: #fff;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff, #bcd0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span {
  display: block;
  margin-top: .5rem;
  font-size: .88rem;
  color: rgba(255,255,255,.68);
  font-weight: 550;
}

/* ---------------------------------------------------------------------------
   14. POR QUÉ NOSOTROS
   --------------------------------------------------------------------------- */
.whys {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: clamp(1rem, .6rem + 1vw, 1.5rem);
}
.why {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.7rem 1.5rem;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s;
}
.why:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: #d3ddec; }
.why__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
  transition: transform .5s var(--ease-out);
}
.why:hover .why__icon { transform: scale(1.08) rotate(-5deg); }
.why__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.why h3 { font-size: 1.04rem; margin-bottom: .5rem; }
.why p { font-size: .93rem; color: var(--muted); }

/* ---------------------------------------------------------------------------
   15. TESTIMONIOS
   --------------------------------------------------------------------------- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; padding: .4rem; margin: -.4rem; }
.slider__track {
  display: flex;
  gap: clamp(1rem, .6rem + 1vw, 1.5rem);
  transition: transform .75s var(--ease-out);
  will-change: transform;
}
.quote {
  flex: 0 0 calc((100% - 2 * clamp(1rem, .6rem + 1vw, 1.5rem)) / 3);
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-xs);
}
.quote__stars { color: #f5a524; letter-spacing: .12em; font-size: .95rem; margin-bottom: 1rem; }
.quote blockquote {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-2);
  line-height: 1.65;
  flex: 1;
}
.quote blockquote::before { content: '“'; color: var(--accent); font-size: 1.6em; line-height: 0; vertical-align: -.28em; margin-right: .05em; font-family: var(--font-display); }
.quote figcaption {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-2);
}
.quote__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--accent-light));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: .85rem;
  flex: none;
}
.quote figcaption > span:last-child { display: flex; flex-direction: column; font-size: .82rem; color: var(--muted); }
.quote figcaption strong { display: block; font-size: .95rem; color: var(--ink); font-weight: 650; }

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2.2rem;
}
.slider__btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .3s var(--ease);
  box-shadow: var(--sh-xs);
}
.slider__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slider__btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.06); }
.slider__btn:disabled { opacity: .35; cursor: not-allowed; transform: none; background: #fff; border-color: var(--line); color: inherit; }

.slider__dots { display: flex; gap: .45rem; }
.slider__dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: #cfd9e7;
  cursor: pointer;
  transition: all .35s var(--ease);
}
.slider__dots button.is-active { width: 26px; background: var(--accent); }

/* ---------------------------------------------------------------------------
   16. TECNOLOGÍAS
   --------------------------------------------------------------------------- */
.tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  max-width: 900px;
  margin-inline: auto;
}
.tech__chip {
  padding: .6rem 1.15rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  transition: all .3s var(--ease);
  box-shadow: var(--sh-xs);
}
.tech__chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--sh);
}

/* ---------------------------------------------------------------------------
   17. FAQ
   --------------------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
.faq__head { position: sticky; top: 120px; }
.faq__head .btn { margin-top: 1.8rem; }

.accordion { display: grid; gap: .7rem; }
.acc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .3s, box-shadow .35s var(--ease);
}
.acc[open] { border-color: #cad7ea; box-shadow: var(--sh); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 1rem;
  color: var(--ink);
  transition: color .25s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent); }
.acc summary i {
  position: relative;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  flex: none;
  transition: transform .4s var(--ease), background .3s;
}
.acc summary i::before,
.acc summary i::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: translate(-50%,-50%);
  transition: transform .4s var(--ease), opacity .3s;
}
.acc summary i::after { transform: translate(-50%,-50%) rotate(90deg); }
.acc[open] summary i { transform: rotate(180deg); background: var(--accent); }
.acc[open] summary i::before,
.acc[open] summary i::after { background: #fff; }
.acc[open] summary i::after { opacity: 0; }

.acc__body {
  padding: 0 1.35rem 1.3rem;
  color: var(--muted);
  font-size: .95rem;
  animation: accIn .45s var(--ease-out);
}
.acc__body p { max-width: 62ch; }
@keyframes accIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   18. CONTACTO Y FORMULARIO
   --------------------------------------------------------------------------- */
.cta {
  position: relative;
  background: linear-gradient(140deg, #0b1220 0%, #10214a 48%, #17337f 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000, transparent 75%);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.contact__title {
  font-size: var(--fs-h2);
  color: #fff;
  max-width: 15ch;
}
.contact__title em { font-style: normal; color: #86b0ff; }
.contact__lead {
  margin-top: 1.15rem;
  font-size: var(--fs-lead);
  color: rgba(255,255,255,.72);
  max-width: 46ch;
}

.contact__list { display: grid; gap: 1.15rem; margin-top: 2.4rem; }
.contact__list li { display: flex; align-items: center; gap: .9rem; }
.contact__list div { display: flex; flex-direction: column; line-height: 1.45; }
.contact__list strong {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  font-weight: 700;
}
.contact__list a, .contact__list div > span { font-size: .98rem; color: #fff; font-weight: 550; }
.contact__list a { transition: color .25s; }
.contact__list a:hover { color: #86b0ff; }
.contact__ico {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center;
  flex: none;
  color: #86b0ff;
}
.contact__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Formulario */
.form {
  background: #fff;
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 1rem + 2vw, 2.5rem);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.55);
  color: var(--ink-2);
}
.form__title { font-size: 1.35rem; margin-bottom: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.field { display: flex; flex-direction: column; margin-bottom: 1.05rem; }
.field label {
  font-size: .84rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: .45rem;
}
.field input, .field textarea {
  font: inherit;
  font-size: .94rem;
  padding: .8rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background .25s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 108px; }
.field input::placeholder, .field textarea::placeholder { color: #a6b3c6; }
.field input:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.field__error {
  display: none;
  font-size: .78rem;
  color: #d93636;
  margin-top: .35rem;
  font-weight: 600;
}
.field.has-error input,
.field.has-error textarea { border-color: #f0a5a5; background: #fff6f6; }
.field.has-error .field__error { display: block; }
#chipsError { display: none; }
#chipsError.is-shown { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: .52rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-tint);
  transition: all .25s var(--ease);
  user-select: none;
}
.chip:hover span { border-color: #c7d4e6; color: var(--ink); }
.chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(26,86,240,.8);
}
.chip input:focus-visible + span { outline: 3px solid var(--accent-ring); outline-offset: 2px; }

.form__note {
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   19. FOOTER
   --------------------------------------------------------------------------- */
.footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,.62);
  padding-top: clamp(3.5rem, 2rem + 4vw, 5.5rem);
  font-size: .92rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: clamp(1.8rem, 1rem + 3vw, 3.5rem);
  padding-bottom: 3rem;
}
.brand--footer { color: #fff; margin-bottom: 1.1rem; }
.brand--footer .brand__mark { color: #fff; }
.brand--footer .brand__text strong { color: #fff; }
.footer__brand p { max-width: 38ch; line-height: 1.7; }

.socials { display: flex; gap: .6rem; margin-top: 1.5rem; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center;
  transition: all .3s var(--ease);
}
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }

.footer__col { display: flex; flex-direction: column; gap: .7rem; }
.footer__col h4 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  margin-bottom: .5rem;
  font-weight: 700;
}
.footer__col a { transition: color .25s, transform .25s; width: fit-content; }
.footer__col a:hover { color: #fff; transform: translateX(3px); }
.footer__cta { margin-top: .8rem; color: #fff !important; }
.footer__cta:hover { transform: translateY(-2px); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-block: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
}
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a:hover { color: #fff; }

/* ---------------------------------------------------------------------------
   20. FLOTANTES
   --------------------------------------------------------------------------- */
.fab {
  position: fixed;
  z-index: 800;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform .4s var(--ease-out), opacity .35s, box-shadow .35s, visibility .35s;
}
.fab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.fab--wa {
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 14px 32px -10px rgba(22,163,74,.65);
}
.fab--wa::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: ripple 2.6s ease-out infinite;
}
@keyframes ripple {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.65); opacity: 0; }
}
.fab--wa:hover { transform: scale(1.09); }
.fab__label {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--ink);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: .5rem .85rem;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all .3s var(--ease);
  pointer-events: none;
  box-shadow: var(--sh);
}
.fab--wa:hover .fab__label { opacity: 1; transform: translateX(0); }

.fab--top {
  right: calc(var(--wa-right) + (var(--wa-size) - 44px) / 2);   /* mismo eje que el de WhatsApp */
  bottom: calc(var(--wa-bottom) + var(--wa-size) + var(--fab-gap) + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--sh);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}
.fab--top.is-shown { opacity: 1; visibility: visible; transform: none; }
.fab--top:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------------------------------------------------------------------------
   21. RESPONSIVE
   --------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(4, 1fr); }
  .service, .service--wide { grid-column: span 2; }
  .quote { flex: 0 0 calc((100% - clamp(1rem,.6rem + 1vw,1.5rem)) / 2); }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  html { scroll-padding-top: 78px; }

  /* el desenfoque del header es caro de recomponer al hacer scroll en móvil */
  .header, .header.is-stuck, .header__inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* sin desenfoque, el fondo translúcido dejaría ver el contenido pasando por
     debajo: en móvil el header se vuelve casi sólido */
  body .header, body .header.is-stuck { background: #fff; }

  .burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;                    /* 5 + 2 de alto = 7 px entre centros */
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 84vw);
    height: 100vh;
    height: 100dvh;                 /* alto visible real, sin la barra del navegador */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: .2rem;
    padding: 5.5rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;   /* al llegar al final no arrastra la página */
    background: #fff;
    box-shadow: -20px 0 60px -20px rgba(11,18,32,.35);
    transform: translateX(105%);
    transition: transform .5s var(--ease-out);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }


  /* Capa oscura detrás del panel: separa el menú del contenido y al tocarla
     se cierra (el clic cae en el body y lo recoge el manejador de main.js). */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, .5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .4s var(--ease-out), visibility .4s;
    z-index: 850;                /* encima de todo menos del header (900) */
  }
  body.is-locked::after { opacity: 1; visibility: visible; pointer-events: auto; }

  /* Con el menú abierto se esconde todo el widget de WhatsApp (botón y globo).
     Se oculta el contenedor: el globo entra con una animación propia y esa
     animación ganaría a cualquier opacity puesto sobre él. */
  body.is-locked .wa {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s, visibility .25s;
  }
  .nav__link { padding: .95rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav__link::after { left: .5rem; right: auto; width: 24px; bottom: .55rem; }
  .nav__cta { margin: 1.4rem 0 0; justify-content: center; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__title { max-width: 20ch; }
  .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .float-card--wa { left: -2%; }
  .float-card--up { right: -2%; }

  /* Carrusel de logos: quieto en móvil (ver nota en la sección 8) */
  body .marquee {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }
  body .marquee__track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.4rem;
    padding-inline: 1.25rem;
  }
  .marquee__logo { opacity: .55; }

  .chatbot, .faq, .contact { grid-template-columns: 1fr; }

  /* Contacto en una sola columna: el bloque de texto se centra, como el
     encabezado del resto de las secciones. En escritorio sigue alineado a la
     izquierda porque convive con la tarjeta de al lado. */
  .contact__copy { text-align: center; }
  .contact__title {
    max-width: 20ch;              /* 15ch partía el título en cuatro renglones */
    margin-inline: auto;
  }
  .contact__lead { margin-inline: auto; }
  .contact__list {
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: left;             /* los datos se leen mejor alineados */
  }
  .faq__head { position: static; }
  .chatbot__phone { order: -1; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .steps__line { display: none; }
  .step::before { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1rem; }
}

@media (max-width: 700px) {
  .services { grid-template-columns: 1fr; }
  .service, .service--wide { grid-column: span 1; }

  .quote { flex: 0 0 100%; }

  .projects { grid-template-columns: 1fr; }

  .form__row { grid-template-columns: 1fr; gap: 0; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .float-card { padding: .6rem .75rem; transform: scale(.9); }
  .float-card--wa { left: -1%; bottom: 8%; }
  .float-card--up { right: -1%; top: 6%; }

  .fab--wa { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .filters { gap: .4rem; }
  .filter { padding: .5rem .95rem; font-size: .84rem; }
}

/* ============================================================================
   22. PASE DE DISEÑO PREMIUM  (refinamientos sobre lo anterior)
   ============================================================================ */

:root {
  --accent-2:   #123fd6;                                   /* azul profundo para degradados */
  --grad:       linear-gradient(135deg, #2f6bff, #123fd6); /* degradado de marca */
  --grad-soft:  linear-gradient(135deg, #eaf0ff, #f3f7ff);
  --ink:        #0a1020;
  --muted:      #56617a;
  --line:       #e6ebf3;
  --sh:    0 14px 34px -16px rgba(11,18,32,.20);
  --sh-md: 0 26px 55px -24px rgba(11,18,32,.26);
  --sh-lg: 0 44px 90px -34px rgba(11,18,32,.34);
  --sh-accent: 0 18px 40px -14px rgba(26,86,240,.5);
}

/* --- Grano fílmico global (muy sutil) --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;   /* sin mix-blend-mode: mezclar toda la pantalla cada frame
                      era de lo más caro del sitio al hacer scroll */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .grain { display: none; } }
/* En móviles y tabletas no se pinta: el detalle no se aprecia y sí se siente */
@media (hover: none), (max-width: 940px) { .grain { display: none; } }

/* --- Tipografía un poco más fina y elegante --- */
h1, h2, h3, h4 { letter-spacing: -.03em; }
body { letter-spacing: -.005em; }

/* --- Header: hairline con degradado + sombra más limpia --- */
.header.is-stuck {
  background: rgba(255,255,255,.72);
  box-shadow: 0 1px 0 rgba(11,18,32,.06), 0 14px 40px -22px rgba(11,18,32,.4);
}
.header.is-stuck::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-ring), transparent);
}

/* --- Eyebrow como chip suave --- */
.eyebrow {
  padding: .4rem .85rem;
  background: var(--accent-soft);
  border: 1px solid #dbe6ff;
  border-radius: 100px;
  margin-bottom: 1.3rem;
}
.eyebrow--light {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
  color: #cfe0ff;
}
.eyebrow--light span { background: #cfe0ff; }

/* --- Botones: degradado + brillo que barre en hover --- */
.btn--primary {
  background: var(--grad);
  overflow: hidden;
  isolation: isolate;
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.4) 48%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease);
}
.btn--primary:hover::before { transform: translateX(130%); }
.btn--primary:hover { background: linear-gradient(135deg, #3a74ff, #1a49e0); }

.btn--wa {
  background: linear-gradient(135deg, #25d366, #12a150);
  overflow: hidden;
  isolation: isolate;
}
.btn--wa::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.4) 48%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .75s var(--ease);
}
.btn--wa:hover::before { transform: translateX(130%); }
.btn--wa:hover { background: linear-gradient(135deg, #2ee06f, #0f9048); }
.ico--wa { fill: currentColor; stroke: none; width: 21px; height: 21px; }

/* --- Prueba social del hero (avatares + estrellas) --- */
.hero__proof {
  display: flex;
  align-items: center;
  gap: .95rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero__avatars { display: flex; }
.hero__avatars span {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .74rem;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  border: 2.5px solid #fff;
  box-shadow: var(--sh-sm);
  margin-left: -12px;
}
.hero__avatars span:first-child { margin-left: 0; }
.hero__avatars span:nth-child(2) { background: linear-gradient(135deg, #16a34a, #0f7a55); }
.hero__avatars span:nth-child(3) { background: linear-gradient(135deg, #7c3aed, #4f2bc4); }
.hero__avatars span:nth-child(4) { background: linear-gradient(135deg, #f59e0b, #d97706); }
.hero__proof-text { display: flex; flex-direction: column; line-height: 1.35; }
.stars { color: #f5a524; letter-spacing: .1em; font-size: .95rem; }
.hero__proof-text span { font-size: .86rem; color: var(--muted); }
.hero__proof-text strong { color: var(--ink); font-weight: 700; }

/* --- Mockup del hero: sombra y borde más finos --- */
.mock { border-color: #e9eef6; box-shadow: 0 50px 100px -40px rgba(11,18,32,.42), 0 0 0 1px rgba(11,18,32,.04); }
.float-card { border-radius: 16px; box-shadow: 0 24px 50px -22px rgba(11,18,32,.32), 0 0 0 1px rgba(11,18,32,.03); }

/* --- Línea de acento superior que se revela en las tarjetas --- */
/* (Las tarjetas del proceso NO la llevan: chocaba con el badge y la línea del timeline.) */
.service::after,
.why::after,
.project::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
  border-radius: 3px 3px 0 0;
}
.service:hover::after,
.why:hover::after,
.project:hover::after { transform: scaleX(1); }
.service--accent::after { background: linear-gradient(135deg, #25d366, #0f9048); }

/* Iconos de servicio con degradado sutil */
.service__icon {
  background: var(--grad-soft);
  border: 1px solid #e0e9ff;
}
.service__icon--green { background: linear-gradient(135deg, #e6f7ee, #f0fbf5); border-color: #cdead9; }
.why__icon { background: var(--grad-soft); border: 1px solid #e0e9ff; }

/* --- Marquee de clientes: muro de marcas profesional --- */
.clients {
  border-block: 1px solid var(--line-2);
  background: linear-gradient(180deg, #fff, var(--bg-tint));
  padding-block: clamp(3rem, 2.4rem + 2vw, 4.5rem);
}
.clients__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  font-size: .78rem;
  color: var(--muted-2);
  margin-bottom: 2.4rem;
}
.clients__title::before,
.clients__title::after {
  content: '';
  height: 1px;
  width: min(90px, 12vw);
  background: linear-gradient(90deg, transparent, var(--line));
}
.clients__title::after { background: linear-gradient(90deg, var(--line), transparent); }

.marquee {
  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 { animation-duration: 46s; gap: clamp(2.8rem, 1rem + 4.5vw, 5.5rem); }
.marquee__logo {
  height: 32px;
  color: #24324b;              /* gris tinta: se lee como logo real */
  opacity: .48;
  filter: grayscale(1) contrast(.92);
}
.marquee__logo:hover {
  opacity: 1;
  filter: none;
  color: var(--accent);
  transform: translateY(-2px) scale(1.04);
}
@media (max-width: 560px) {
  .clients__title::before, .clients__title::after { display: none; }
  .clients__title { text-align: center; }
}

/* --- Banda de números: divisores y textura --- */
.stats-band {
  background:
    radial-gradient(circle at 12% 18%, rgba(47,107,255,.45), transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(79,139,255,.30), transparent 45%),
    linear-gradient(135deg, #070c18, #0f1c3d);
}
.stat { position: relative; padding: .4rem 0; }
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 58px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.16), transparent);
}
@media (max-width: 940px) { .stat + .stat::before { display: none; } }

/* --- Testimonios: comilla de fondo y tarjeta más rica --- */
.quote { position: relative; overflow: hidden; box-shadow: var(--sh-sm); }
.quote::before {
  content: '“';
  position: absolute;
  top: -1.5rem; right: .4rem;
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: var(--accent-soft);
  z-index: 0;
  pointer-events: none;
}
.quote > * { position: relative; z-index: 1; }
.quote blockquote::before { content: none; }

/* --- Proceso: número con degradado --- */
.step__num { background: var(--grad); }

/* --- Chips de tecnología con sombra suave --- */
.tech__chip:hover { background: var(--grad-soft); }

/* --- FAQ: acordeón más definido --- */
.acc[open] { box-shadow: var(--sh); }
.acc summary i { background: var(--grad-soft); }

/* --- Contacto: fondo más rico + tarjeta de formulario elevada --- */
.cta {
  background:
    radial-gradient(circle at 78% 12%, rgba(47,107,255,.28), transparent 46%),
    linear-gradient(150deg, #070c18 0%, #0f1f47 52%, #17337f 100%);
}
.form {
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 50px 110px -35px rgba(0,0,0,.6);
}
.form::before {
  content: '';
  display: block;
  width: 46px; height: 46px;
  border-radius: 14px;
  margin-bottom: 1.15rem;
  background-color: #1a49e0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4.5h16v11H5.4L4 17V4.5Z'/%3E%3Cpath d='M8 9h8M8 12h5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
  box-shadow: var(--sh-accent);
}

/* Chip seleccionado con degradado */
.chip input:checked + span { background: var(--grad); border-color: transparent; }

/* --- Footer: acento superior --- */
.footer {
  background: linear-gradient(180deg, #0a1020, #070c18);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,107,255,.6), transparent);
}
.socials a:hover { background: var(--grad); border-color: transparent; }

/* --- FAB de WhatsApp: verde de marca --- */
.fab--wa { background: linear-gradient(135deg, #25d366, #0f9048); box-shadow: 0 16px 34px -10px rgba(18,161,80,.6); }
.fab--wa::after { border-color: #25d366; }
.fab--wa svg { width: 28px; height: 28px; }

/* --- Enlaces de servicio con subrayado animado --- */
.service__link { position: relative; }
.service__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.service__link:hover::after { transform: scaleX(1); }

/* --- Filtros de proyectos con degradado --- */
.filter.is-active { background: var(--grad); border-color: transparent; }

/* --- Ajuste responsive de la prueba social --- */
@media (max-width: 940px) {
  .hero__proof { justify-content: flex-start; }
}
@media (max-width: 460px) {
  .hero__proof { flex-wrap: wrap; gap: .7rem; }
}

/* ============================================================================
   23. CAPA PREMIUM  ·  preloader, cursor, scrollbar y micro-detalles
   ============================================================================ */

/* --- Preloader de marca (premium, claro) --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(47,107,255,.10), transparent 55%),
    linear-gradient(160deg, #ffffff 0%, #f6f9ff 60%, #eef3fc 100%);
  transition: transform 1s cubic-bezier(.76,0,.24,1), visibility 1s;
  will-change: transform;
}
.preloader.is-done { transform: translateY(-101%); visibility: hidden; pointer-events: none; }

/* rejilla sutil de fondo */
.preloader__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,18,32,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,18,32,.04) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 45%, #000, transparent 78%);
}

.preloader__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.preloader.is-done .preloader__inner { opacity: 0; transform: translateY(-16px); }

/* marca: logo + anillo de progreso circular + glow */
.preloader__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px; height: 108px;
  animation: preIn .8s var(--ease-out) both;
}
.preloader__glow {
  position: absolute;
  width: 150%; height: 150%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47,107,255,.20), transparent 62%);
  filter: blur(16px);
  animation: prePulse 2.1s ease-in-out infinite;
}
@keyframes prePulse {
  0%,100% { opacity: .45; transform: scale(.9); }
  50%     { opacity: .9;  transform: scale(1.08); }
}
/* Anillo SVG: track + relleno que sigue el porcentaje real */
.preloader__ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);          /* empieza arriba */
  overflow: visible;
}
.preloader__ring-track { fill: none; stroke: #e4ecf9; stroke-width: 3; }
.preloader__ring-fill {
  fill: none;
  stroke: url(#pgrad);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;          /* vacío; el JS lo reduce */
  transition: stroke-dashoffset .18s linear;
  filter: drop-shadow(0 0 5px rgba(26,86,240,.35));
}
.preloader__logo {
  position: relative;
  width: 62px; height: 62px;
  color: var(--ink);
  filter: drop-shadow(0 12px 22px rgba(26,86,240,.28));
}

/* texto */
.preloader__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  animation: preIn .8s var(--ease-out) .12s both;
}
.preloader__word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.preloader__word strong { font-weight: 800; margin-right: .05em; }
.preloader__tag {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* porcentaje */
.preloader__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  animation: preIn .8s var(--ease-out) .22s both;
}
.preloader__count i { font-style: normal; color: var(--muted-2); margin-left: 1px; }

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

.no-preloader .preloader { display: none; }
@media (prefers-reduced-motion: reduce) {
  .preloader__glow { animation: none; }
  .preloader__mark, .preloader__text, .preloader__count { animation: none; }
  .preloader__ring-fill { transition: none; }
  .preloader { transition: opacity .4s, visibility .4s; }
  .preloader.is-done { transform: none; opacity: 0; }
}

/* (El cursor personalizado se retiró: se usa el cursor normal del sistema.) */

/* --- Scrollbar de marca --- */
html { scrollbar-width: thin; scrollbar-color: #c4d2ea transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #cfdaec;
  border-radius: 100px;
  border: 3px solid #fff;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

/* --- Borde con degradado que aparece en tarjetas clave (hover) --- */
.service, .project, .why { position: relative; }
.service::before,
.project::before,
.why::before { border-radius: inherit; }

/* --- Refinamiento de foco (accesible + elegante) --- */
:focus-visible { outline-color: var(--accent); }

/* --- Enlaces de navegación: punto sutil en el activo --- */
.nav__link.is-active { font-weight: 650; }

/* --- Imágenes de proyecto: brillo diagonal al hover --- */
.project__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
  pointer-events: none;
}
.project:hover .project__media::after { transform: translateX(120%); }

/* --- Botones: leve levantamiento del ícono play (ghost) --- */
.btn--ghost:hover .ico { transform: scale(1.12); }

/* --- Detalle: separadores más suaves en secciones claras --- */
.section--tint { box-shadow: inset 0 1px 0 rgba(11,18,32,.03), inset 0 -1px 0 rgba(11,18,32,.03); }

/* ============================================================================
   24. SOBRE NOSOTROS / EQUIPO
   ============================================================================ */
.about {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.about__text { margin-top: 1.15rem; color: var(--muted); font-size: 1rem; max-width: 56ch; }

.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin-top: 2.2rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--line);
}
.fact { display: flex; flex-direction: column; }
.fact strong {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem);
  color: var(--ink);
  letter-spacing: -.04em;
  line-height: 1;
}
.fact span { margin-top: .35rem; font-size: .82rem; color: var(--muted-2); font-weight: 550; }

.about__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, #fff, #f4f8ff);
  border: 1px solid #dbe6ff;
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  box-shadow: var(--sh-md);
}
.about__card-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  margin-bottom: 1.15rem;
  box-shadow: var(--sh-accent);
}
.about__card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.about__card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.about__card p { color: var(--muted); font-size: .95rem; }
.about__values { display: grid; gap: .7rem; margin-top: 1.4rem; }
.about__values li {
  position: relative;
  padding-left: 1.7rem;
  font-size: .92rem;
  font-weight: 550;
  color: var(--ink-2);
}
.about__values li::before {
  content: '';
  position: absolute;
  left: 0; top: .1em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a56f0' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 6'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* --- Equipo --- */
.team__title {
  text-align: center;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  margin-bottom: clamp(2rem, 1.4rem + 1.5vw, 3rem);
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, .6rem + 1vw, 1.5rem);
}
.member {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.3rem 1.3rem 1.5rem;
  text-align: center;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: #d3ddec; }
.member__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.1rem;
  background: var(--bg-tint);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.member:hover .member__photo img { transform: scale(1.05); }
.member__name { font-size: 1.08rem; }
.member__role { margin-top: .25rem; font-size: .86rem; color: var(--accent); font-weight: 600; }
.member__socials { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.member__socials a {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all .3s var(--ease);
}
.member__socials svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.member__socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

.team__note {
  text-align: center;
  margin-top: 2.6rem;
  color: var(--muted);
  font-size: .98rem;
  max-width: 60ch;
  margin-inline: auto;
}

/* ============================================================================
   25. BLOG / RECURSOS
   ============================================================================ */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, .7rem + 1vw, 1.7rem);
}
.post {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.post:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); border-color: #d3ddec; }
.post__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-tint);
}
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post:hover .post__media img { transform: scale(1.06); }
.post__cat {
  position: absolute;
  left: .9rem; top: .9rem;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .32rem .72rem;
  border-radius: 100px;
  box-shadow: var(--sh-sm);
}
.post__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.45rem 1.5rem; }
.post__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--muted-2);
  font-weight: 550;
  margin-bottom: .7rem;
}
.post__title { font-size: 1.14rem; line-height: 1.32; }
.post__title a { transition: color .25s; }
.post__title a:hover { color: var(--accent); }
.post__excerpt { margin-top: .6rem; font-size: .92rem; color: var(--muted); flex: 1; }
.post__link {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 650;
  font-size: .9rem;
  color: var(--accent);
  align-self: flex-start;
}
.post__link span { transition: transform .32s var(--ease); }
.post__link:hover span { transform: translateX(5px); }

.posts__note { text-align: center; margin-top: 2.8rem; color: var(--muted); font-size: .98rem; }
.posts__note a { color: var(--accent); font-weight: 650; }
.posts__note a:hover { text-decoration: underline; }

/* Línea de acento superior (igual que las otras tarjetas) */
.member::after,
.post::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
  border-radius: 3px 3px 0 0;
  z-index: 2;
}
.member:hover::after,
.post:hover::after { transform: scaleX(1); }

/* --- Responsive equipo / blog --- */
@media (max-width: 940px) {
  .about { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .team__grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .about__facts { gap: 1.4rem; }
}

/* Navegación: subimos el punto de colapso para que quepan los enlaces nuevos */
@media (min-width: 941px) and (max-width: 1080px) {
  .nav__link { padding: .5rem .6rem; font-size: .88rem; }
  .nav__cta { margin-left: .3rem; }
}

/* Separador entre Testimonios (claro) y Tecnologías (claro) */
#tecnologias { border-top: 1px solid var(--line-2); }

/* ============================================================================
   26. HERO COMPACTO  ·  que la primera pantalla quepa completa
   ============================================================================ */
.hero__actions { margin-top: 1.7rem; }
.hero__trust   { margin-top: 1.6rem; }
.hero__proof   { margin-top: 1.5rem; padding-top: 1.3rem; }

/* Pantallas de altura media (laptops) */
@media (min-width: 941px) and (max-height: 900px) {
  .hero { padding-top: 5.4rem; padding-bottom: 2rem; }
  .hero__title { font-size: clamp(1.9rem, .9rem + 2.4vw, 3rem); }
  .hero__lead { font-size: 1rem; }
  .hero__actions, .hero__trust { margin-top: 1.3rem; }
  .hero__proof { margin-top: 1.2rem; padding-top: 1.1rem; }
}

/* Pantallas muy bajitas: priorizamos titular + botones */
@media (min-width: 941px) and (max-height: 720px) {
  .hero { padding-top: 5rem; }
  .hero__title { font-size: 2.35rem; margin: .8rem 0 .95rem; }
  .hero__lead { margin-top: .2rem; }
  .hero__trust { display: none; }
  .hero__proof { display: none; }
}

/* ============================================================================
   27. PROYECTO CON ENLACE  (imagen clicable + "ver sitio")
   ============================================================================ */
a.project__media { display: block; cursor: pointer; }
.project__link {
  margin-top: 1.15rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 650;
  font-size: .9rem;
  color: var(--accent);
}
.project__link span { transition: transform .3s var(--ease); }
.project__link:hover { text-decoration: underline; }
.project__link:hover span { transform: translateX(5px); }

/* ============================================================================
   28. BOTÓN DE IDIOMA (ES / EN)
   ============================================================================ */
.lang {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-left: .35rem;
  padding: .5rem .72rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .01em;
  color: var(--muted);            /* contraste AA sobre blanco */
  box-shadow: var(--sh-xs);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.lang:hover { border-color: #cfd9e7; box-shadow: var(--sh-sm); transform: translateY(-1px); }
.lang__globe { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.lang__opt { transition: color .2s; }
.lang__opt.is-on { color: var(--accent); }
.lang__sep { color: #d3dced; font-weight: 500; }
.header.is-stuck .lang { background: rgba(255,255,255,.7); }

/* En el menú móvil, que no se estire a todo el ancho */
@media (max-width: 940px) {
  .nav .lang { align-self: flex-start; margin: 1.1rem 0 0; padding: .6rem 1rem; font-size: .9rem; }
  .nav .lang__globe { width: 17px; height: 17px; }
}

/* ---------------------------------------------------------------------------
   22. WIDGET FLOTANTE DE WHATSAPP
   --------------------------------------------------------------------------- */
.wa {
  position: fixed;
  right: var(--wa-right);
  bottom: calc(var(--wa-bottom) + env(safe-area-inset-bottom, 0px));   /* que no lo tape la barra del móvil */
  z-index: 880;                                            /* por debajo del header (900) */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}
/* En el móvil la barra del navegador se come la franja de abajo: el widget
   sube lo suficiente para no quedar nunca debajo de ella. */
@media (max-width: 940px) {
  :root { --wa-right: 16px; --wa-bottom: 46px; }
}
.wa__replies { display: none; }

/* IMPORTANTE: el atributo hidden manda sobre los display:flex/grid de abajo
   (si no, el globo, el badge, los puntitos y los chips nunca se ocultan) */
.wa [hidden] { display: none !important; }

/* --- Botón flotante --- */
.wa .fab--wa {
  position: relative;
  right: auto; bottom: auto;
  width: var(--wa-size); height: var(--wa-size);
  background: linear-gradient(135deg, #25d366, #0f9048);
  color: #fff;
  box-shadow: 0 16px 34px -10px rgba(18,161,80,.6);
  -webkit-tap-highlight-color: transparent;
}
.wa .fab--wa::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ripple 2.6s ease-out infinite;
  pointer-events: none;
}
.wa .fab--wa:hover { transform: scale(1.08); box-shadow: 0 20px 42px -10px rgba(18,161,80,.72); }
.wa .fab--wa:active { transform: scale(.94); }
.wa .fab--wa:focus-visible { outline: 3px solid rgba(37,211,102,.45); outline-offset: 4px; }

/* Llamada de atención cuando hay "mensaje nuevo" */
.wa .fab--wa.is-nudging { animation: waNudge 2.2s var(--ease) 2; }
@keyframes waNudge {
  0%, 60%, 100% { transform: rotate(0) scale(1); }
  8%  { transform: rotate(-13deg) scale(1.05); }
  16% { transform: rotate(11deg)  scale(1.05); }
  24% { transform: rotate(-9deg)  scale(1.04); }
  32% { transform: rotate(7deg)   scale(1.03); }
  40% { transform: rotate(-4deg)  scale(1.02); }
  48% { transform: rotate(0)      scale(1); }
}

/* Iconos que se intercambian (WhatsApp <-> cerrar) */
.fab__icons { position: relative; display: grid; place-items: center; width: 28px; height: 28px; }
.fab__ico {
  position: absolute;
  width: 28px; height: 28px;
  transition: transform .45s var(--ease-out), opacity .3s;
}
.fab__ico--x { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; opacity: 0; transform: rotate(-90deg) scale(.4); }
.wa.is-open .fab__ico--wa { opacity: 0; transform: rotate(90deg) scale(.4); }
.wa.is-open .fab__ico--x  { opacity: 1; transform: rotate(0) scale(1); }
.wa.is-open .fab--wa::after { animation: none; opacity: 0; }
.wa.is-open .fab--wa { background: linear-gradient(135deg, #0f9048, #0b7038); }

/* Contador de mensaje nuevo */
.fab__badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 21px; height: 21px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: #ef4444;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  animation: waPop .5s var(--ease-out) both;
}
@keyframes waPop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* La etiqueta lateral se oculta con el panel abierto o en pantallas táctiles */
.wa.is-open .fab__label { opacity: 0 !important; }
@media (hover: none) { .fab__label { display: none; } }

/* --- Globo de invitación --- */
.wa__teaser {
  position: relative;
  display: flex;
  align-items: center;
  gap: .35rem;
  max-width: 250px;
  padding: .55rem .3rem .55rem .9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px 16px 4px 16px;
  box-shadow: var(--sh-md);
  animation: waTeaserIn .55s var(--ease-out) both;
}
.wa__teaser::after {
  content: '';
  position: absolute;
  right: 14px; bottom: -7px;
  width: 12px; height: 12px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
  border-radius: 0 0 3px 0;
}
.wa__teaser.is-hiding { animation: waTeaserOut .3s var(--ease) both; }
@keyframes waTeaserIn {
  from { opacity: 0; transform: translateY(10px) scale(.9); }
  to   { opacity: 1; transform: none; }
}
@keyframes waTeaserOut {
  to { opacity: 0; transform: translateY(6px) scale(.94); }
}
.wa__teaser-btn {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
}
.wa__teaser-x {
  flex: none;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--muted-2);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.wa__teaser-x:hover { background: var(--bg-tint); color: var(--ink); }
.wa__teaser-x svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* --- Ventana de chat --- */
.wa__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(330px, calc(100vw - 34px));
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 34px 70px -24px rgba(11,18,32,.42);
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.92);
  transition: opacity .3s var(--ease), transform .45s var(--ease-out), visibility .45s;
}
.wa.is-open .wa__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.wa__panel:focus { outline: none; }

.wa__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 1rem;
  background: linear-gradient(135deg, #16a34a, #0b7038);
  color: #fff;
}
.wa__avatar {
  flex: none;
  position: relative;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
}
.wa__avatar svg { width: 22px; height: 22px; color: #fff; }
.wa__who { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.wa__who strong { font-family: var(--font-display); font-size: .98rem; letter-spacing: -.01em; }
.wa__status {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .74rem;
  line-height: 1.3;
  color: rgba(255,255,255,.85);
}
.wa__status i {
  flex: none;
  width: 7px; height: 7px;
  background: #7bf7a6;
  border-radius: 50%;
  animation: waLive 2s ease-in-out infinite;
}
@keyframes waLive {
  0%, 100% { box-shadow: 0 0 0 0 rgba(123,247,166,.75); }
  70%      { box-shadow: 0 0 0 6px rgba(123,247,166,0); }
}
.wa__close {
  margin-left: auto;
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.12);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background .2s, transform .3s var(--ease);
}
.wa__close:hover { background: rgba(255,255,255,.26); transform: rotate(90deg); }
.wa__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

.wa__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem .95rem;
  max-height: min(46vh, 340px);
  overflow-y: auto;
  background:
    radial-gradient(circle at 12% 18%, rgba(22,163,74,.06), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(26,86,240,.05), transparent 44%),
    var(--bg-tint);
  scrollbar-width: thin;
}
.wa__thread { display: flex; flex-direction: column; gap: .5rem; }

.wa__bubble {
  position: relative;
  max-width: 88%;
  padding: .6rem .8rem 1.15rem;
  font-size: .87rem;
  line-height: 1.45;
  border-radius: 14px;
  box-shadow: var(--sh-xs);
  animation: waBubbleIn .45s var(--ease-out) both;
}
.wa__bubble--bot { align-self: flex-start; background: #fff; color: var(--ink-2); border-bottom-left-radius: 4px; }
.wa__bubble--me  { align-self: flex-end;  background: #d9fdd3; color: #0b3b1f; border-bottom-right-radius: 4px; }
.wa__time {
  position: absolute;
  right: .6rem; bottom: .35rem;
  font-size: .62rem;
  font-weight: 600;
  color: var(--muted-2);
}
.wa__bubble--me .wa__time { color: #4b7a5c; }
@keyframes waBubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* Indicador "escribiendo…" */
.wa__typing {
  width: fit-content;
  margin-top: .5rem;
  padding: .65rem .8rem;
  display: flex;
  gap: 4px;
  background: #fff;
  border-radius: 14px 14px 14px 4px;
  box-shadow: var(--sh-xs);
  animation: waBubbleIn .35s var(--ease-out) both;
}
.wa__typing span {
  width: 7px; height: 7px;
  background: #b7c3d6;
  border-radius: 50%;
  animation: waDot 1.3s ease-in-out infinite;
}
.wa__typing span:nth-child(2) { animation-delay: .18s; }
.wa__typing span:nth-child(3) { animation-delay: .36s; }
@keyframes waDot {
  0%, 60%, 100% { transform: translateY(0);   opacity: .45; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

/* Opciones rápidas */
.wa__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem;
  margin-top: .75rem;
}
.wa__chips.is-hiding { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.wa__chip {
  padding: .45rem .8rem;
  background: #fff;
  border: 1px solid #c9e9d4;
  border-radius: 100px;
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: #0f7a3d;
  cursor: pointer;
  box-shadow: var(--sh-xs);
  opacity: 0;
  transform: translateY(8px);
  animation: waChipIn .4s var(--ease-out) forwards;
  transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease);
}
.wa__chip:nth-child(2) { animation-delay: .07s; }
.wa__chip:nth-child(3) { animation-delay: .14s; }
.wa__chip:nth-child(4) { animation-delay: .21s; }
.wa__chip:hover { background: #16a34a; border-color: #16a34a; color: #fff; transform: translateY(-2px); }
.wa__chip:active { transform: scale(.96); }
.wa__chip:focus-visible { outline: 2px solid #16a34a; outline-offset: 2px; }
@keyframes waChipIn {
  to { opacity: 1; transform: none; }
}

/* Pie con el botón que abre WhatsApp */
.wa__foot {
  flex: none;
  padding: .85rem .95rem 1rem;
  background: #fff;
  border-top: 1px solid var(--line-2);
}
.wa__cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .78rem 1rem;
  background: linear-gradient(135deg, #25d366, #0f9048);
  color: #fff;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  box-shadow: 0 12px 26px -12px rgba(18,161,80,.85);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa__cta svg { width: 18px; height: 18px; }
.wa__cta:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(18,161,80,.95); color: #fff; }
.wa__cta:active { transform: translateY(0) scale(.98); }
.wa__cta::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-18deg);
  animation: waShine 3.6s ease-in-out infinite;
}
@keyframes waShine {
  0%, 62%   { left: -60%; }
  92%, 100% { left: 130%; }
}
.wa__cta.is-hot { animation: waHot 1.4s var(--ease-out) 2; }
@keyframes waHot {
  0%, 100% { transform: none; }
  30%      { transform: scale(1.04); }
  60%      { transform: scale(.99); }
}
.wa__note {
  margin: .5rem 0 0;
  text-align: center;
  font-size: .73rem;
  color: var(--muted-2);
}

/* El botón "volver arriba" estorba cuando el chat está abierto */
.wa.is-open ~ .fab--top { opacity: 0 !important; visibility: hidden !important; }

@media (max-width: 640px) {
  :root { --wa-size: 56px; }
  .wa .fab--wa { width: var(--wa-size); height: var(--wa-size); }
  .wa__body { max-height: 42vh; }
  .wa__teaser { max-width: min(230px, calc(100vw - 90px)); }
}

@media (prefers-reduced-motion: reduce) {
  .wa .fab--wa::after,
  .wa__cta::before,
  .wa__status i { animation: none; }
  .wa__panel { transition: opacity .2s, visibility .2s; transform: none; }
  .wa .fab--wa.is-nudging { animation: none; }
  .wa__chip { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   23. PÁGINA DE ARTÍCULO  (blog/articulo-*.html)
   --------------------------------------------------------------------------- */
.art-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(6.5rem, 5rem + 5vw, 9.5rem);
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: linear-gradient(180deg, var(--bg-tint), var(--bg));
}
.art-wrap { max-width: 760px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--muted-2);
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }

.art-cat {
  display: inline-block;
  margin: 1.4rem 0 .9rem;
  padding: .34rem .8rem;
  background: var(--accent-soft);
  border: 1px solid #d8e3ff;
  border-radius: 100px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--accent);
}
.art-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 1.2rem + 2.8vw, 3.05rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
  color: var(--ink);
}
.art-desc {
  margin: 1.05rem 0 0;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
}
.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--muted);
}
.art-meta__author { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink-2); }
.art-meta__author svg { width: 22px; height: 22px; }

.art-cover {
  max-width: 940px;
  margin: clamp(2rem, 1.4rem + 2vw, 3rem) auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.art-cover img { display: block; width: 100%; height: auto; }

/* --- Cuerpo del texto --- */
.art-body { padding-block: clamp(2.6rem, 2rem + 2.5vw, 4.5rem); }
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.055rem;
  line-height: 1.78;
  color: var(--ink-2);
}
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.35rem; }
.prose__lead {
  font-size: 1.18rem;
  line-height: 1.62;
  font-weight: 500;
  color: var(--ink);
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
}
.prose h2 {
  margin-top: 2.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.03em;
  color: var(--ink);
  scroll-margin-top: 6rem;
}
.prose h3 {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { color: var(--ink-2); }
/* Solo los enlaces dentro del texto: los botones (.btn) conservan su estilo */
.prose a:not([class]) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:not([class]):hover { color: var(--accent-dark); }
.prose ul, .prose ol {
  margin-top: 1.1rem;
  padding-left: 1.35rem;
  display: grid;
  gap: .62rem;
}
.prose li { padding-left: .15rem; }
.prose li::marker { color: var(--accent); font-weight: 700; }

.callout {
  margin-top: 2rem;
  padding: 1.15rem 1.3rem;
  background: var(--accent-soft);
  border: 1px solid #d8e3ff;
  border-radius: var(--r);
  font-size: .99rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.callout strong {
  display: block;
  margin-bottom: .3rem;
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Cierre con botón de WhatsApp --- */
.art-cta {
  margin-top: 3.2rem;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  background: linear-gradient(150deg, #f4fbf6, #eef5ff);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  text-align: center;
}
.art-cta h2 {
  margin: 0 0 .6rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem);
  letter-spacing: -.03em;
  color: var(--ink);
}
.art-cta p { margin: 0 auto 1.3rem; max-width: 46ch; color: var(--muted); font-size: 1rem; }
.art-cta__note { display: block; margin-top: .75rem; font-size: .78rem; color: var(--muted-2); }

.btn--wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  background: linear-gradient(135deg, #25d366, #0f9048);
  color: #fff;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .96rem;
  box-shadow: 0 14px 30px -14px rgba(18,161,80,.9);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn--wa svg { width: 19px; height: 19px; }
.btn--wa:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 20px 38px -16px rgba(18,161,80,1); }
.btn--wa:active { transform: translateY(0) scale(.98); }

/* --- "Sigue leyendo": dos tarjetas centradas --- */
.posts--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin-inline: auto;
}

@media (max-width: 700px) {
  .posts--2 { grid-template-columns: 1fr; }
  .prose { font-size: 1.01rem; }
  .prose__lead { font-size: 1.08rem; }
}

/* ---------------------------------------------------------------------------
   24. CONTACTO POR WHATSAPP  (tarjeta que sustituye al formulario)
   --------------------------------------------------------------------------- */
.wacard {
  background: #fff;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r-xl);
  padding: clamp(1.6rem, 1rem + 2vw, 2.5rem);
  box-shadow: 0 50px 110px -35px rgba(0,0,0,.6);
  color: var(--ink-2);
}
.wacard__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 17px;
  background: linear-gradient(135deg, #25d366, #0f9048);
  box-shadow: 0 14px 28px -12px rgba(18,161,80,.8);
  color: #fff;
}
.wacard__icon svg { width: 27px; height: 27px; }

.wacard__title {
  margin: 1.15rem 0 .55rem;
  font-family: var(--font-display);
  font-size: 1.42rem;
  letter-spacing: -.03em;
  color: var(--ink);
}
.wacard__text { font-size: .97rem; line-height: 1.6; color: var(--muted); }

.wacard__label {
  margin: 1.7rem 0 .75rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.wacard__opts { display: grid; gap: .55rem; }
.waopt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .82rem 1.05rem;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 650;
  font-size: .96rem;
  color: var(--ink-2);
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.waopt span { color: var(--muted-2); transition: transform .3s var(--ease-out), color .25s; }
.waopt:hover {
  background: #fff;
  border-color: #b9e6c9;
  color: #0f7a3d;
  transform: translateX(3px);
  box-shadow: 0 12px 26px -18px rgba(18,161,80,.9);
}
.waopt:hover span { color: #16a34a; transform: translateX(4px); }
.waopt:focus-visible { outline: 2px solid #16a34a; outline-offset: 2px; }

.wacard__cta { margin-top: 1.5rem; }

.wacard__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line-2);
}
.wacard__live { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--muted); }
.wacard__live i {
  width: 8px; height: 8px;
  background: #16a34a;
  border-radius: 50%;
  animation: waLive 2s ease-in-out infinite;
}
.wacard__phone { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink); transition: color .25s; }
.wacard__phone:hover { color: #0f7a3d; }

@media (max-width: 940px) {
  .wacard__foot { justify-content: flex-start; }
}
