/* =====================================================================
   WILO — Landing agencia creativa
   Hoja de estilos principal
   ---------------------------------------------------------------------
   Estructura del archivo:
   1.  Tokens (colores de marca, tipografía, sombras, radios)
   2.  Base y tipografía
   3.  Utilidades y animaciones de scroll
   4.  Navegación
   5.  Hero (Inicio)
   6.  Marquee (banda horizontal)
   7.  Encabezados de sección
   8.  Así lo hacemos (collage)
   9.  Servicios (tarjetas + slider)
   10. El Equipo (glassmorphism)
   11. Contacto
   12. Footer
   13. Lightbox
   14. Responsive
   ===================================================================== */

/* ============================ 1. TOKENS ============================= */
:root {
  /* --- Paleta de marca (definida por WILO) --- */
  --violet:      #5B37A7;   /* principal   */
  --orange:      #FF8C00;   /* secundario  */
  --cyan:        #52CEDA;   /* complemento */

  /* --- Derivados para profundidad y texto --- */
  --violet-deep: #3D2472;
  --violet-ink:  #5B37A7;   /* casi negro con base violeta */
  --paper:       #F7F5FB;   /* fondo claro tintado */
  --paper-2:     #EFEBF7;
  --white:       #FFFFFF;
  --muted:       #6B6480;

  /* --- Tipografía --- */
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;

  /* --- Radios --- */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* --- Sombras --- */
  --sh-sm: 0 6px 18px rgba(26,18,48,.10);
  --sh-md: 0 18px 40px rgba(26,18,48,.16);
  --sh-lg: 0 30px 70px rgba(26,18,48,.24);
  --sh-violet: 0 20px 45px rgba(91,55,167,.35);
  --sh-orange: 0 14px 30px rgba(255,140,0,.40);

  /* --- Layout --- */
  --maxw: 1240px;
  --nav-h: 74px;

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

/* ============================ 2. BASE ============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); overflow-x: hidden; }

body {
  font-family: var(--font);
  color: var(--violet-ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

/* Tipografía display */
.display {
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.02em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--violet);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--orange);
}

/* Texto en contorno (firma tipográfica) */
.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--violet-ink);
  text-stroke: 2px var(--violet-ink);
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; }
.btn--wa { background: var(--orange); color: #fff; box-shadow: var(--sh-orange); }
.btn--wa:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 38px rgba(255,140,0,.5); }
.btn--ig {
  background: transparent; color: var(--violet-ink);
  box-shadow: inset 0 0 0 2px var(--violet);
}
.btn--ig:hover { background: var(--violet); color: #fff; transform: translateY(-3px); box-shadow: var(--sh-violet); }
.btn--ghost { color: var(--violet); box-shadow: inset 0 0 0 2px var(--cyan); }
.btn--ghost:hover { background: var(--cyan); color: var(--violet-ink); transform: translateY(-3px); }

/* ==================== 3. UTILIDADES / SCROLL ANIM ================== */
[data-reveal] {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: transform, opacity;
}
[data-reveal="up"]    { transform: translateY(48px); }
[data-reveal="left"]  { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="scale"] { transform: scale(.9); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }
[data-reveal][data-delay="4"] { transition-delay: .4s; }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }

/* ========================= 4. NAVEGACIÓN ========================== */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  transition: top .35s var(--ease);
}
.nav__inner {
  width: min(var(--maxw), calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: var(--nav-h);
  padding: 0 14px 0 24px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  transition: height .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.nav.is-scrolled { top: 8px; }
.nav.is-scrolled .nav__inner { height: 60px; box-shadow: var(--sh-md); background: rgba(255,255,255,.9); }

.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; }
.nav__logo .dot { color: var(--orange); }
.nav__mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: grid; place-items: center; color: #fff; font-size: .8rem; font-weight: 800;
  box-shadow: var(--sh-violet);
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 10px 16px; font-weight: 600; font-size: .92rem;
  color: var(--violet-ink); border-radius: var(--r-pill); transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease); border-radius: 2px;
}
.nav__link:hover { color: var(--violet); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { display: inline-flex; }
.nav__cta .btn { padding: 11px 22px; font-size: .88rem; }

.nav__burger {
  display: none; width: 46px; height: 46px; border-radius: var(--r-pill);
  background: var(--violet-ink); position: relative;
}
.nav__burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger span:nth-child(3) { top: 27px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Panel móvil */
.nav__mobile {
  position: fixed; inset: 0; z-index: 99;
  background: linear-gradient(160deg, var(--violet), var(--violet-deep));
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 clamp(28px, 8vw, 60px);
  opacity: 0; visibility: hidden; transform: translateY(-16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
body.menu-open .nav__mobile { opacity: 1; visibility: visible; transform: none; }
.nav__mobile a {
  color: #fff; font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 800;
  letter-spacing: -.02em; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12);
  transform: translateX(-20px); opacity: 0; transition: transform .4s var(--ease), opacity .4s;
}
body.menu-open .nav__mobile a { transform: none; opacity: 1; }
body.menu-open .nav__mobile a:nth-child(1) { transition-delay: .08s; }
body.menu-open .nav__mobile a:nth-child(2) { transition-delay: .14s; }
body.menu-open .nav__mobile a:nth-child(3) { transition-delay: .20s; }
body.menu-open .nav__mobile a:nth-child(4) { transition-delay: .26s; }
body.menu-open .nav__mobile a:nth-child(5) { transition-delay: .32s; }
.nav__mobile a span { color: var(--orange); }

/* ============================ 5. HERO ============================= */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 60px; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px);
  align-items: center; width: 100%;
}
.hero__title { font-size: clamp(2.7rem, 7vw, 5.2rem); margin-bottom: 26px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title em { font-style: normal; color: var(--violet); }
.hero__title .swatch { color: var(--orange); }
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 46ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { display: flex; gap: 34px; margin-top: 44px; }
.hero__meta div strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--violet); line-height: 1; }
.hero__meta div span { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* Imagen protagonista con marco inclinado */
.hero__visual { position: relative; }
.hero__frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  transform: rotate(-3deg); transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: var(--sh-lg); aspect-ratio: 5/6; background: var(--violet-deep);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero__visual:hover .hero__frame { transform: rotate(0deg) scale(1.01); }
.hero__visual:hover .hero__frame img { transform: scale(1.06); }
.hero__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 30px;
  background: linear-gradient(to top, rgba(26,18,48,.82) 0%, rgba(26,18,48,0) 55%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.hero__visual:hover .hero__overlay { opacity: 1; }
.hero__overlay p { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; transform: translateY(12px); transition: transform .5s var(--ease); }
.hero__visual:hover .hero__overlay p { transform: none; }
.hero__badge {
  position: absolute; top: 18px; right: -10px; z-index: 3;
  background: var(--cyan); color: var(--violet-ink);
  font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase;
  padding: 10px 18px; border-radius: var(--r-pill); transform: rotate(6deg);
  box-shadow: var(--sh-md); animation: bob 4s ease-in-out infinite;
}

/* Formas flotantes decorativas */
.shape { position: absolute; z-index: 1; will-change: transform; }
.shape--ring { border-radius: 50%; border: 3px solid; background: transparent; }
.shape--disc { border-radius: 50%; }
.shape--blob { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.shape.s1 { width: 190px; height: 190px; top: 12%; right: 6%; border-color: var(--cyan); }
.shape.s2 { width: 110px; height: 110px; bottom: 16%; left: 4%; background: var(--orange); opacity: .18; }
.shape.s3 { width: 260px; height: 260px; top: 40%; left: -70px; background: var(--violet); opacity: .10; }
.shape.s4 { width: 70px; height: 70px; top: 22%; left: 42%; background: var(--cyan); opacity: .22; }
.shape.s5 { width: 150px; height: 150px; bottom: 8%; right: 20%; border: 3px solid var(--orange); border-radius: 50%; opacity: .5; }
.dotgrid {
  position: absolute; width: 160px; height: 160px; bottom: 22%; right: 4%;
  background-image: radial-gradient(var(--violet) 2px, transparent 2px);
  background-size: 22px 22px; opacity: .3; z-index: 1;
}

@keyframes bob { 0%,100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-10px); } }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(8deg); } }
.float-anim { animation: floaty 9s ease-in-out infinite; }
.float-anim.d1 { animation-duration: 11s; }
.float-anim.d2 { animation-duration: 8s; animation-direction: reverse; }

/* =========================== 6. DIVISOR =========================== */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: clamp(22px, 5vw, 44px) 20px;
}
.divider__line {
  height: 2px; width: clamp(48px, 14vw, 110px); border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(91,55,167,.35));
}
.divider__line:last-child { background: linear-gradient(90deg, rgba(91,55,167,.35), transparent); }
.divider__mark {
  width: 9px; height: 9px; border-radius: 2px; flex: none;
  background: var(--orange); transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(255,140,0,.14);
}

/* ==================== BOTÓN FLOTANTE WHATSAPP ==================== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; position: relative; z-index: 2; }
.wa-float:hover { transform: scale(1.1) rotate(4deg); box-shadow: 0 16px 40px rgba(37,211,102,.62); }
.wa-float:active { transform: scale(1.04); }
/* Anillo de pulso sutil (microinteracción constante y ligera) */
.wa-float__pulse {
  position: absolute; inset: 0; border-radius: 50%; z-index: 1;
  background: #25D366; animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .5; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { opacity: 0; }
}

/* ===================== 7. ENCABEZADOS SECCIÓN ===================== */
.head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow::before { display: none; }
.head__title { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 16px 0 14px; }
.head__title .outline { -webkit-text-stroke-width: 2px; }
.head__sub { color: var(--muted); font-size: 1.05rem; }

/* ==================== 8. ASÍ LO HACEMOS (collage) ================= */
/* --- Fondo audiovisual + overlay + video destacado --- */
.proceso {
  /* Oscurecimiento del fondo (regulable): sube el último valor (0–1)
     para oscurecer más, bájalo para aclarar. */
  --proceso-overlay: rgba(26, 18, 48, .72);
  position: relative;
  overflow: hidden;
  color: #fff;                 /* texto claro para contrastar con el fondo */
  isolation: isolate;
}
.proceso__bg { position: absolute; inset: 0; z-index: 0; }
.proceso__bg video,
.proceso__bg img {
  width: 100%; height: 100%;
  object-fit: cover;           /* cubre sin deformar */
  display: block;
}
.proceso__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: var(--proceso-overlay);
}
/* El contenido queda por encima del fondo y el overlay */
.proceso .container { position: relative; z-index: 2; }

/* Textos claros dentro de la sección (legibilidad sobre el fondo) */
.proceso .eyebrow { color: var(--cyan); }
.proceso .eyebrow::before { background: var(--cyan); }
.proceso .head__title { color: #fff; }
.proceso .head__sub { color: rgba(255,255,255,.82); }

/* --- Video principal destacado (protagonista, centrado) --- */
.proceso__feature {
  max-width: 900px;
  margin: 8px auto clamp(40px, 6vw, 64px);
}
.proceso__player {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 6px rgba(255,255,255,.04);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.proceso__player:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 6px rgba(82,206,218,.18);
}
.proceso__player video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

#proceso { background: var(--violet-ink); }
.collage {
  columns: 3; column-gap: 22px;
}
.collage__item {
  break-inside: avoid; margin-bottom: 22px; position: relative;
  border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  box-shadow: var(--sh-sm); transform: rotate(var(--tilt, 0deg));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.collage__item:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: var(--sh-lg); z-index: 5; }
.collage__item img { width: 100%; transition: transform .7s var(--ease); }
.collage__item:hover img { transform: scale(1.08); }
.collage__cap {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 20px;
  background: linear-gradient(to top, rgba(61,36,114,.85), rgba(61,36,114,0) 60%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.collage__cap span { color: #fff; font-weight: 700; }
.collage__cap .plus {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 1.4rem;
  transform: scale(.6); transition: transform .4s var(--ease);
}
.collage__item:hover .collage__cap { opacity: 1; }
.collage__item:hover .collage__cap .plus { transform: scale(1); }

/* ====================== 9. SERVICIOS ============================== */
.services__list { display: flex; flex-direction: column; gap: 16px; }
.service {
  background: var(--white); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--sh-sm); transition: box-shadow .4s var(--ease);
  border: 1px solid var(--paper-2);
}
.service.is-open { box-shadow: var(--sh-md); }
.service__head {
  display: flex; align-items: center; gap: 22px; width: 100%; text-align: left;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 34px);
  transition: background .3s;
}
.service__head:hover { background: var(--paper); }
.service__num { font-size: 1.1rem; font-weight: 800; color: var(--cyan); min-width: 40px; }
.service__ico {
  width: 56px; height: 56px; border-radius: 14px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  transition: transform .4s var(--ease);
}
.service__ico svg { width: 26px; height: 26px; }
.service.is-open .service__ico { transform: rotate(-8deg) scale(1.05); background: linear-gradient(135deg, var(--orange), #e07800); }
.service__info { flex: 1; }
.service__info h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 800; letter-spacing: -.01em; }
.service__info p { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.service__toggle {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--paper); display: grid; place-items: center;
  transition: transform .4s var(--ease), background .3s;
}
.service__toggle::before, .service__toggle::after {
  content: ""; position: absolute; background: var(--violet); border-radius: 2px;
}
.service__toggle::before { width: 16px; height: 2px; }
.service__toggle::after { width: 2px; height: 16px; transition: transform .4s var(--ease); }
.service.is-open .service__toggle { background: var(--violet); }
.service.is-open .service__toggle::before { background: #fff; }
.service.is-open .service__toggle::after { background: #fff; transform: rotate(90deg); }

.service__panel { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.service__panelinner { padding: 0 clamp(20px, 3vw, 34px) clamp(24px, 3vw, 34px); }

/* Slider dentro de servicio */
.slider { position: relative; }
.slider__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding: 4px 2px 14px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 clamp(240px, 32%, 340px); scroll-snap-align: start;
  border-radius: var(--r-sm); overflow: hidden; cursor: pointer; position: relative;
  aspect-ratio: 4/3; box-shadow: var(--sh-sm); background: var(--paper-2);
}
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.slide:hover img { transform: scale(1.07); }
.slide__play {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(26,18,48,.28);
  transition: background .3s;
}
.slide__play svg { width: 58px; height: 58px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
.slide:hover .slide__play { background: rgba(26,18,48,.12); }
.slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; background: var(--white);
  box-shadow: var(--sh-md); display: grid; place-items: center; color: var(--violet);
  transition: transform .3s, background .3s, color .3s;
}
.slider__nav:hover { background: var(--violet); color: #fff; transform: translateY(-50%) scale(1.08); }
.slider__nav.prev { left: -14px; } .slider__nav.next { right: -14px; }
.slider__nav svg { width: 20px; height: 20px; }

/* ====================== 9b. CLIENTES (logos) ===================== */
#clientes { background: var(--white); padding-bottom: clamp(60px, 8vw, 100px); }
.clients__rows { display: flex; flex-direction: column; gap: 22px; }
.clients__row {
  position: relative; overflow: hidden;
  /* Difumina los bordes para que los logos aparezcan y desaparezcan suave */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__track {
  display: flex; align-items: center; gap: clamp(28px, 5vw, 64px);
  width: max-content; will-change: transform;
}
.clients__track--left  { animation: clientsLeft  40s linear infinite; }
.clients__track--right { animation: clientsRight 40s linear infinite; }
/* Pausa al pasar el cursor por la fila */
.clients__row:hover .clients__track { animation-play-state: paused; }

.client__logo {
  flex: none; display: grid; place-items: center;
  height: 62px; padding: 0 10px;
}
.client__logo img {
  max-height: 100%; width: auto; max-width: 170px; object-fit: contain;
  /* Se ven en escala de grises y toman color al pasar el cursor */
  filter: grayscale(1); opacity: .62;
  transition: filter .4s var(--ease), opacity .4s var(--ease), transform .4s var(--ease);
}
.client__logo:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.06); }

@keyframes clientsLeft  { to { transform: translateX(-50%); } }
@keyframes clientsRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ====================== 10. EL EQUIPO ============================= */
#equipo { color: #fff; position: relative; background: var(--violet-ink); overflow: hidden; }
.equipo__bg { position: absolute; inset: 0; z-index: 0; }
.equipo__bg img { width: 100%; height: 100%; object-fit: cover; }
.equipo__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(26,18,48,.86), rgba(61,36,114,.72)); }
#equipo .container { position: relative; z-index: 2; }
#equipo .eyebrow { color: var(--cyan); }
#equipo .eyebrow::before { background: var(--cyan); }
#equipo .head__title { color: #fff; }
#equipo .head__title .outline { -webkit-text-stroke-color: rgba(255,255,255,.6); }
#equipo .head__sub { color: rgba(255,255,255,.75); }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member {
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg); padding: 20px; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s;
  animation: floatCard 7s ease-in-out infinite;
}
.member:nth-child(2) { animation-delay: .8s; }
.member:nth-child(3) { animation-delay: 1.6s; }
.member:nth-child(4) { animation-delay: 2.4s; }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.member:hover {
  transform: translateY(-14px) scale(1.03); background: rgba(255,255,255,.16);
  box-shadow: 0 30px 60px rgba(0,0,0,.42); animation-play-state: paused;
}
.member__photo {
  width: 108px; height: 108px; border-radius: 50%; margin: 6px auto 16px; overflow: hidden;
  border: 3px solid rgba(255,255,255,.5); box-shadow: 0 10px 24px rgba(0,0,0,.3);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-size: 1.15rem; font-weight: 800; }
.member__role {
  display: inline-block; margin-top: 8px; font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--violet-ink);
  background: var(--cyan); padding: 5px 14px; border-radius: var(--r-pill);
}

/* ====================== 11. CONTACTO ============================== */
#contacto { background: var(--white); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.contact__info { display: flex; flex-direction: column; }
.contact__rows { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 30px; }
.crow { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--paper-2); }
.crow__ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--paper); color: var(--violet); }
.crow__ico svg { width: 22px; height: 22px; }
.crow__label { display: block; margin-bottom: 3px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crow__val { display: block; font-weight: 600; font-size: 1.02rem; }
.crow__val a:hover { color: var(--violet); }
.contact__cta {
  margin-top: auto; background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  border-radius: var(--r-lg); padding: 28px; color: #fff; box-shadow: var(--sh-violet);
}
.contact__cta h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.contact__cta p { color: rgba(255,255,255,.8); font-size: .92rem; margin-bottom: 18px; }

.contact__map {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md);
  min-height: 420px; position: relative; background: var(--paper-2);
}
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ======================== 12. FOOTER ============================= */
.footer { background: var(--violet-ink); color: #fff; padding: clamp(56px, 8vw, 84px) 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand .nav__logo { font-size: 1.8rem; margin-bottom: 16px; }
.footer__tag { color: rgba(255,255,255,.65); max-width: 34ch; }
.footer__col h4 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.footer__col a { display: block; color: rgba(255,255,255,.8); padding: 6px 0; transition: color .25s, transform .25s; }
.footer__col a:hover { color: #fff; transform: translateX(4px); }
.footer__socials { display: flex; gap: 12px; margin-top: 22px; }
.footer__socials a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: transform .3s var(--ease), background .3s;
}
.footer__socials a:hover { transform: translateY(-4px) scale(1.05); }
.footer__socials a.ig:hover { background: var(--orange); }
.footer__socials a.tt:hover { background: var(--cyan); color: var(--violet-ink); }
.footer__socials a.wa:hover { background: #25D366; }
.footer__socials svg { width: 22px; height: 22px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; flex-wrap: wrap; color: rgba(255,255,255,.55); font-size: .86rem; }

/* ======================== 13. LIGHTBOX =========================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 4vw; background: rgba(16,10,32,.92); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { max-width: 92vw; max-height: 88vh; position: relative; transform: scale(.94); transition: transform .4s var(--ease); }
.lightbox.is-open .lightbox__stage { transform: scale(1); }
.lightbox__stage img, .lightbox__stage video { max-width: 92vw; max-height: 88vh; border-radius: var(--r-md); box-shadow: 0 30px 80px rgba(0,0,0,.6); display: block; }
.lightbox__close {
  position: absolute; top: -54px; right: 0; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--violet-ink); display: grid; place-items: center; font-size: 1.5rem;
  transition: transform .3s, background .3s;
}
.lightbox__close:hover { transform: rotate(90deg); background: var(--orange); color: #fff; }
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
  transition: background .3s, transform .3s;
}
.lightbox__arrow:hover { background: var(--orange); }
.lightbox__arrow.prev { left: -74px; } .lightbox__arrow.next { right: -74px; }
.lightbox__arrow svg { width: 24px; height: 24px; }

/* ======================== 14. RESPONSIVE ========================= */
@media (max-width: 980px) {
  .collage { columns: 2; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 460px; margin: 0 auto; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .contact { grid-template-columns: 1fr; }
  .hero__meta { gap: 22px; }
  .lightbox__arrow.prev { left: 8px; } .lightbox__arrow.next { right: 8px; }
  .lightbox__arrow { background: rgba(255,255,255,.22); }
  .service__head { gap: 14px; padding: 18px; }
  .service__num { display: none; }
  /* Video principal: menos margen inferior en móvil */
  .proceso__feature { margin-bottom: clamp(28px, 8vw, 40px); }
  /* Clientes: logos y espacios más compactos en tablet/móvil */
  .clients__rows { gap: 16px; }
  .client__logo { height: 50px; padding: 0 6px; }
  .client__logo img { max-width: 130px; }
}

@media (max-width: 520px) {
  .collage { columns: 1; }
  .team { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .slide { flex: 0 0 78%; }
  /* Clientes: aún más compacto y con difuminado de bordes más suave */
  .client__logo { height: 44px; padding: 0 4px; }
  .client__logo img { max-width: 108px; }
  .clients__row {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }
  /* Botón flotante: posición cómoda y algo más pequeño en móvil */
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* Accesibilidad: respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Foco visible para teclado */
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
