/* =====================================================
   MÉDULA DIGITAL — Design System
   Colores oficiales (manual de identidad visual):
   Rojo  #ed174a   Pantone P 57-8 U
   Gris  #6c7d8e   Pantone P 174-8 C
   Tipografía oficial: Roboto
===================================================== */

:root{
  --red: #ed174a;
  --red-dark: #c81140;
  --red-darker: #9c0d33;
  --red-tint: #fde7ec;
  --slate: #6c7d8e;
  --slate-dark: #4c5966;
  --slate-tint: #eef1f3;
  --black: #121316;
  --black-soft: #1c1e22;
  --white: #ffffff;
  --off-white: #faf9f8;
  --gray-100: #f3f2f1;
  --gray-200: #e7e5e3;
  --gray-400: #b9bcc0;
  --text: #1c1e22;
  --text-mute: #5a5f66;

  --font: 'Roboto', -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --radius: 18px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.22,.85,.32,1);
  --ease-out-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1); /* soft overshoot — for press feedback and pop-in moments */
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 90px; }
body{
  margin:0;
  font-family: var(--font);
  background: var(--off-white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
.icon{ width:1em; height:1em; fill:currentColor; stroke:currentColor; flex-shrink:0; }

.wrap{ max-width: var(--wrap); margin:0 auto; padding:0 28px; }
.wrap--narrow{ max-width: 860px; }

.c-red{ color: var(--red); }
.c-slate{ color: var(--slate); }
.c-white{ color: var(--white); }

.section{ padding: 120px 0; position:relative; }
.section--dark{ background: var(--black); color: var(--white); }
.section--tint{ background: var(--slate-tint); }
/* text-only section with no grid/list after the section-head — the default
   64px section-head margin (meant to separate the intro from following
   cards) would otherwise just add uneven empty space at the bottom */
.section.about-block{ padding: 72px 0; }
.about-block .section-head{ margin-bottom: 0; }

.kicker{
  display:inline-block;
  font-size: 13px; font-weight:800; letter-spacing:.03em; text-transform:uppercase;
  color:#fff; background: var(--red);
  padding: 5px 12px; margin: 0 0 16px;
}
.kicker.c-red{ color:#fff; }
.h2{
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.underline-red{ position:relative; white-space:nowrap; }
.underline-red::after{
  content:''; position:absolute; left:0; right:0; bottom:.02em; height:.28em;
  background: var(--red-tint); z-index:-1; border-radius: 4px;
}

/* marker-style highlight blocks — press kit language */
.mark{ display:inline-block; font-weight:900; padding: .02em .18em; margin: 0 -.05em; }
.mark-red{ background: var(--red); color:#fff; }
.mark-black{ background: var(--black); color:#fff; }

.section-head{ max-width: 680px; margin-bottom: 64px; }
.section-head--center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head__text{ font-size: 19px; line-height:1.65; color: var(--text-mute); }
.section--dark .section-head__text{ color: #b6bac0; }

/* reveal-on-scroll */
[data-reveal]{ opacity:0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal]{
    transform: none;
    transition: opacity .3s ease;
  }
  .case, .team-card, .dif-card{
    transform: none;
    transition: opacity .3s ease;
    transition-delay: 0ms !important;
  }
  .ticker__track,
  .fab-whatsapp,
  .scroll-cue span,
  .preloader__beam{
    animation: none;
  }
  .hero__video{
    display: none; /* .hero__overlay + the dark hero background remain */
  }
}

/* Staggered card grids: the container stops animating its own opacity
   (the generic [data-reveal] fade is cancelled below) and each card animates
   individually instead, keyed off the same .is-visible class the
   IntersectionObserver in main.js already adds to the container. */
.cases[data-reveal],
.team[data-reveal],
.differentiators[data-reveal]{
  opacity: 1;
  transform: none;
  transition: none;
}

.case,
.team-card,
.dif-card{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.cases.is-visible .case,
.team.is-visible .team-card,
.differentiators.is-visible .dif-card{
  opacity: 1;
  transform: none;
}

.cases.is-visible .case:nth-child(1){ transition-delay: 0ms; }
.cases.is-visible .case:nth-child(2){ transition-delay: 60ms; }
.cases.is-visible .case:nth-child(3){ transition-delay: 120ms; }

.team.is-visible .team-card:nth-child(1){ transition-delay: 0ms; }
.team.is-visible .team-card:nth-child(2){ transition-delay: 60ms; }
.team.is-visible .team-card:nth-child(3){ transition-delay: 120ms; }
.team.is-visible .team-card:nth-child(4){ transition-delay: 180ms; }

.differentiators.is-visible .dif-card:nth-child(1){ transition-delay: 0ms; }
.differentiators.is-visible .dif-card:nth-child(2){ transition-delay: 50ms; }
.differentiators.is-visible .dif-card:nth-child(3){ transition-delay: 100ms; }
.differentiators.is-visible .dif-card:nth-child(4){ transition-delay: 150ms; }
.differentiators.is-visible .dif-card:nth-child(5){ transition-delay: 200ms; }

/* buttons */
.btn{
  display:inline-flex; align-items:center; gap:10px; justify-content:center;
  font-weight:700; font-size:15px; border-radius: 999px; border:2px solid transparent;
  padding: 15px 28px; white-space:nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .icon{ width:18px; height:18px; }
.btn--lg{ padding: 18px 32px; font-size:16px; }
.btn--sm{ padding: 11px 20px; font-size:14px; }
.btn--primary{ background: var(--red); color:#fff; box-shadow: 0 10px 24px -8px rgba(237,23,74,.55); }
.btn--primary:hover{ background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(237,23,74,.65); }
.btn--ghost{ background:transparent; border-color: currentColor; color: var(--text); }
.btn--ghost:hover{ background: var(--text); color:#fff; }
.btn:active{ transform: scale(.96); transition-duration: .12s; transition-timing-function: var(--ease-bounce); }
.btn--primary:active{ background: var(--red-darker); box-shadow: 0 6px 16px -6px rgba(237,23,74,.5); }

/* =================== HEADER =================== */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  background: rgba(250,249,248,.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled{ box-shadow: 0 8px 30px -12px rgba(0,0,0,.15); }
.header__inner{ display:flex; align-items:center; gap:24px; height:82px; transform-origin: left center; transition: transform .25s var(--ease); }
.site-header.is-scrolled .header__inner{ transform: scale(0.94); }

.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand__icon{ width:40px; height:auto; }
.brand__word{ font-size:19px; font-weight:700; letter-spacing:-.01em; }

.nav{ display:flex; gap:32px; margin: 0 auto; }
.nav a{ font-size:14.5px; font-weight:500; color: var(--text); position:relative; padding: 4px 0; }
.nav a::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--red);
  transition: width .25s var(--ease);
}
.nav a:hover::after{ width:100%; }

.header__cta{ flex-shrink:0; }

.hamburger{ display:none; flex-direction:column; gap:5px; background:none; border:none; padding:8px; }
.hamburger span{ width:22px; height:2px; background: var(--text); transition: transform .25s var(--ease), opacity .25s var(--ease); }

.mobile-nav{
  max-height: 0;
  background: var(--off-white); border-top: 0px solid rgba(0,0,0,.06);
  transition: max-height .35s var(--ease-bounce), border-top-width .35s var(--ease);
  overflow:hidden;
}
.mobile-nav__inner{
  display:flex; flex-direction:column; gap:4px; padding: 12px 28px 24px;
}
.mobile-nav a{ padding:12px 0; font-weight:500; border-bottom:1px solid rgba(0,0,0,.06); }
.mobile-nav .btn{ margin-top:14px; width:100%; }
.site-header.is-open .mobile-nav{ max-height: 420px; border-top-width: 1px; }

.mobile-nav-scrim{
  position:fixed; inset:0; z-index:450;
  background: rgba(18,19,22,.55);
  opacity:0; visibility:hidden; pointer-events:none;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.site-header.is-open ~ .mobile-nav-scrim{ opacity:1; visibility:visible; pointer-events:auto; }
.site-header.is-open .hamburger span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.site-header.is-open .hamburger span:nth-child(2){ opacity:0; }
.site-header.is-open .hamburger span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =================== HERO (video full-screen) =================== */
.hero{
  position:relative;
  overflow:hidden;
  height: 100svh;
  min-height: 560px;
  max-height: 980px;
  display:flex; align-items:flex-end;
  overflow:hidden;
  background: var(--black);
  padding-top: 82px; /* clears fixed header */
}
.hero__media{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.hero__video{
  position:absolute; top:50%; left:50%;
  width:177.78vh; height:56.25vw; /* oversize to 16:9, whichever dimension is larger wins → always covers */
  min-width:100%; min-height:100%;
  transform:translate(-50%,-50%);
  border:0; pointer-events:none;
}
.hero__overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(0deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.55) 42%, rgba(10,10,12,.35) 68%, rgba(10,10,12,.55) 100%),
    linear-gradient(100deg, rgba(10,10,12,.6) 0%, rgba(10,10,12,.15) 55%);
}

.hero__inner{
  position:relative; z-index:1;
  width:100%;
  padding-bottom: 74px;
}
.hero__copy{ max-width: 680px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:9px; font-size:13.5px; font-weight:600;
  color:#fff; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  padding: 7px 16px 7px 12px; border-radius:999px; margin:0 0 26px;
}
.eyebrow__dot{ width:8px; height:8px; border-radius:50%; background: var(--red); box-shadow: 0 0 0 4px rgba(237,23,74,.35); }

.hero__title{
  font-size: clamp(42px, 6.4vw, 80px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  color:#fff;
}
.hero__subtitle{
  font-size: 20px; line-height:1.65; color: rgba(255,255,255,.82); max-width:520px; margin: 0 0 38px;
}
.hero__actions{ display:flex; gap:16px; flex-wrap:wrap; }
.btn--on-video{ color:#fff; }
.btn--on-video:hover{ background:#fff; color: var(--text); }

.hero__stats{
  display:flex; gap: 34px; flex-wrap:wrap; margin-top: 52px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18);
}
.hero__stats div{ display:flex; flex-direction:column; gap:2px; flex:1 1 0; min-width:88px; }
.hero__stats .stat{ background:transparent; padding:0; text-align:left; }
.hero__stats strong{ font-size:22px; font-weight:900; color: var(--red); font-variant-numeric: tabular-nums; }
.hero__stats span{ font-size:12.5px; color:#fff; }
.hero__stats .stat strong{ color: var(--red); font-size:22px; margin-bottom:0; }
.hero__stats .stat span{ color:#fff; }

.scroll-cue{
  position:absolute; z-index:1; left:50%; bottom:26px; transform:translateX(-50%);
  width:26px; height:42px; border:2px solid rgba(255,255,255,.5); border-radius:14px;
}
.scroll-cue span{
  position:absolute; top:7px; left:50%; width:4px; height:8px; margin-left:-2px;
  background:#fff; border-radius:2px; animation: cue-drop 1.8s infinite;
}
@keyframes cue-drop{ 0%{ opacity:1; transform:translateY(0);} 70%{ opacity:0; transform:translateY(14px);} 100%{ opacity:0; } }

/* ticker — uniform full-bleed strip, no taper */
.ticker{
  background: var(--black); color:#fff; overflow:hidden; padding: 16px 0;
  border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08);
}
.ticker__track{
  display:flex; align-items:center; gap:20px; white-space:nowrap; width:max-content;
  animation: ticker-scroll 34s linear infinite;
  font-weight:700; font-size: 16px; letter-spacing:.02em;
}
.ticker__track span{ display:inline-flex; align-items:center; gap:10px; padding: 0 6px; }
.svc-icon{ width:20px; height:20px; color: var(--red); flex-shrink:0; }
.svc-icon *{ fill:none; stroke:currentColor; }
@keyframes ticker-scroll{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* =================== PROBLEMA =================== */
.problema__grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap:56px; margin-bottom:64px; }
.problema__text p{ font-size:19px; line-height:1.7; color: var(--text-mute); margin:0 0 16px; }
.problema__highlight{
  display:inline-block; font-weight:800; color:#fff !important; background: var(--black);
  padding: 6px 14px; border-radius: 6px; font-size:19px !important;
}

/* Marketing vs Ventas — bloque diagonal */
.clash{
  position:relative; overflow:hidden; isolation:isolate;
  display:flex; align-items:stretch; min-height: 320px;
  border-radius: var(--radius);
  background: var(--slate);
  box-shadow: 0 30px 60px -30px rgba(20,20,30,.35);
}
.clash__bg{
  position:absolute; inset:0; z-index:0;
  background: var(--red);
  clip-path: polygon(0 0, 56% 0, 44% 100%, 0% 100%);
}
.clash__col{
  position:relative; z-index:1; flex:1 1 50%; color:#fff;
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  padding: 44px 40px;
}
.clash__col--left{ padding-right: 90px; }
.clash__col--right{ align-items:flex-end; text-align:right; padding-left: 90px; }
.clash__icon{ width:46px; height:46px; margin-bottom:16px; opacity:.95; }
.clash__icon *{ fill:none; stroke:currentColor; }
.clash__tag{
  font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  opacity:.85; margin-bottom:10px; display:block;
}
.clash__quote{ font-size: clamp(19px,2.4vw,25px); font-weight:800; line-height:1.28; margin:0; max-width:360px; }

.clash__vs{
  position:absolute; z-index:2; left:50%; top:50%; transform:translate(-50%,-50%);
  display:flex; flex-direction:column; align-items:center; gap:4px;
}
.clash__stress{ width:38px; height:38px; color:#fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.clash__stress *{ fill:none; stroke:currentColor; }
.clash__vs-text{
  font-size:32px; font-weight:900; color:#fff; letter-spacing:.02em;
  text-shadow: 0 4px 14px rgba(0,0,0,.3);
}

/* =================== SERVICIOS =================== */
.svc-list{ border-top:1px solid rgba(255,255,255,.12); }
.svc-item{ border-bottom:1px solid rgba(255,255,255,.12); }
.svc-item__head{
  width:100%; background:none; border:none; color:#fff; display:flex; align-items:center; gap:22px;
  padding: 26px 4px; text-align:left;
}
.svc-item__icon{ width:34px; height:34px; color: var(--red); flex-shrink:0; }
.svc-item__icon *{ fill:none; stroke:currentColor; }
.svc-item__title{ flex:1; font-size: clamp(19px,2.4vw,26px); font-weight:700; }
.svc-item__plus{ width:22px; height:22px; color: var(--red); transition: transform .3s var(--ease); }
.svc-item.is-open .svc-item__plus{ transform: rotate(135deg); }
.svc-item__body{ display:grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.svc-item.is-open .svc-item__body{ grid-template-rows: 1fr; }
.svc-item__body p{ overflow:hidden; margin:0; padding: 0 4px 0 78px; color:#c2c5ca; font-size:18px; line-height:1.65; max-width:640px; }
.svc-item.is-open .svc-item__body p{ padding-bottom:30px; }

/* =================== METODOLOGÍA — pasos con scroll pineado =================== */
.metodologia{ padding-bottom:0; }

.steps{ position:relative; height:340vh; margin-top:20px; }
.steps__pin{
  position:sticky; top:96px;
  height:min(600px,74vh);
  display:flex;
}
.steps__inner{
  display:grid; grid-template-columns:auto auto 1fr; align-items:center; gap:56px;
  width:100%; height:100%;
}

.steps__static{ display:flex; flex-direction:column; align-items:flex-start; gap:26px; }
.steps__static-word{
  font-size: clamp(40px,5vw,64px); font-weight:900; letter-spacing:-.02em; line-height:1;
  color: var(--text);
}
.steps__dots{ display:flex; flex-direction:column; gap:10px; }
.steps__dot{
  width:9px; height:9px; border-radius:50%; background: var(--gray-300); border:1px solid var(--gray-300);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.steps__dot.is-active{ background: var(--red); border-color: var(--red); transform:scale(1.3); }

.steps__icon-stage{ position:relative; width:132px; height:132px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.steps__icon-ring{
  position:absolute; inset:0; border-radius:50%; background: var(--red-tint);
}
.steps__icon{
  position:absolute; width:64px; height:64px; color: var(--red);
  opacity:0; transform: scale(.7) rotate(-8deg); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.steps__icon *{ fill:none; stroke:currentColor; }
.steps__icon.is-active{ opacity:1; transform:scale(1) rotate(0deg); }

.steps__card{
  position:relative; height:100%; border-radius: var(--radius); overflow:hidden;
  box-shadow: 0 30px 60px -28px rgba(20,20,30,.35);
}
.steps__slide{
  position:absolute; inset:0; padding: 40px 44px;
  display:flex; flex-direction:column; justify-content:space-between;
  opacity:0; transform: translateY(22px); transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events:none;
}
.steps__slide.is-active{ opacity:1; transform:none; pointer-events:auto; z-index:2; }

.steps__slide[data-slide="0"]{ background: var(--black); color:#fff; }
.steps__slide[data-slide="1"]{ background: var(--red); color:#fff; }
.steps__slide[data-slide="2"]{ background: var(--slate); color:#fff; }
.steps__slide[data-slide="3"]{ background: var(--gray-100); color: var(--text); }

.steps__slide-top{ display:flex; align-items:flex-start; justify-content:space-between; }
.steps__badge{
  font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  background: rgba(255,255,255,.16); padding:6px 14px; border-radius:999px; height:fit-content;
}
.steps__slide[data-slide="3"] .steps__badge{ background: rgba(0,0,0,.08); color: var(--text-mute); }
.steps__bignum{ font-size: clamp(52px,7vw,84px); font-weight:900; line-height:.85; opacity:.92; }

.steps__title{ font-size: clamp(24px,3vw,32px); font-weight:800; margin:0 0 10px; }
.steps__desc{ font-size:17.5px; line-height:1.6; margin:0; max-width:400px; opacity:.85; }

/* ---- Mobile stacked fallback ---- */
.steps-m{ display:none; }
.steps-m__card{
  border-radius: var(--radius); padding: 34px 28px; margin-bottom:18px; color:#fff;
  box-shadow: 0 20px 40px -26px rgba(20,20,30,.3);
}
.steps-m__card--0{ background: var(--black); }
.steps-m__card--1{ background: var(--red); }
.steps-m__card--2{ background: var(--slate); }
.steps-m__card--3{ background: var(--gray-100); color: var(--text); }
.steps-m__top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.steps-m__icon{ width:44px; height:44px; color:#fff; display:block; margin-bottom:16px; }
.steps-m__icon *{ fill:none; stroke:currentColor; }
.steps-m__card--3 .steps-m__icon{ color: var(--red); }
.steps-m__card .steps__title{ font-size:22px; }
.steps-m__card .steps__desc{ max-width:none; opacity:.85; }
.steps-m__card--3 .steps__badge{ background: rgba(0,0,0,.08); color: var(--text-mute); }

/* =================== RESULTADOS =================== */
.stats{
  display:grid; grid-template-columns: repeat(6,1fr); gap:2px; background: var(--gray-200);
  border-radius: var(--radius); overflow:hidden; margin-bottom: 80px;
}
.stat{ background:#fff; padding: 30px 16px; text-align:center; }
.stat strong{ display:block; font-size: clamp(24px,3vw,32px); font-weight:900; color: var(--red); margin-bottom:8px; }
.stat span{ font-size:12.5px; color: var(--text-mute); line-height:1.4; display:block; }

.cases{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; margin-bottom: 80px; }
.case{
  background:#fff; border:1px solid var(--gray-200); border-radius: var(--radius); padding: 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.case:hover{ transform: translateY(-6px); box-shadow: 0 24px 44px -24px rgba(20,20,30,.22); }
.case__tag{
  display:inline-block; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  color: var(--slate-dark); background: var(--slate-tint); padding:5px 12px; border-radius:999px; margin-bottom:16px;
}
.case h3{ font-size:22px; font-weight:800; margin:0 0 12px; }
.case p{ font-size:16.5px; line-height:1.6; color: var(--text-mute); margin:0 0 22px; }
.case__metrics{ display:flex; flex-wrap:wrap; gap:20px; border-top:1px solid var(--gray-200); padding-top:20px; }
.case__metrics strong{ display:block; font-size:18px; font-weight:900; color: var(--red); }
.case__metrics span{ font-size:11.5px; color: var(--text-mute); }

.clients__label{ text-align:center; font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--text-mute); margin-bottom:24px; }

.clients__filters{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:40px; }
.clients__filter{
  background:#fff; border:1px solid var(--gray-200); color: var(--text-mute);
  font-size:13.5px; font-weight:600; padding:9px 18px; border-radius:999px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.clients__filter:hover{ border-color: var(--red); color: var(--red); }
.clients__filter:active{ transform: scale(.95); transition: transform .12s var(--ease-bounce); }
.clients__filter.is-active{ background: var(--red); border-color: var(--red); color:#fff; }

.clients__grid{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:38px 52px; }
.clients__item{
  opacity: 1;
  transform: scale(1);
  max-width: 140px;
  transition:
    opacity .28s var(--ease-out-soft),
    transform .28s var(--ease-out-soft),
    max-width .28s var(--ease-out-soft),
    margin .28s var(--ease-out-soft);
}
.clients__item.is-hidden{
  opacity: 0;
  transform: scale(.85);
  max-width: 0;
  margin: 0 -26px;
  pointer-events: none;
  overflow: hidden;
}
.clients__item img{
  height:34px; width:auto; max-width:120px; object-fit:contain;
  filter: grayscale(1); opacity:.55; transition: opacity .25s ease, filter .25s ease;
}
.clients__item img:hover{ opacity:1; filter: grayscale(.2); }

/* =================== EQUIPO =================== */
.team{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.team-card{ border-radius: var(--radius); padding: 30px 26px; display:flex; flex-direction:column; min-height: 420px; }
.team-card__avatar{
  width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:17px; margin-bottom:22px; flex-shrink:0;
}
.team-card__quote{ font-size:17px; line-height:1.55; font-style:italic; margin:0 0 24px; flex:1; }
.team-card__name{ font-size:19px; font-weight:800; margin:0 0 2px; }
.team-card__role{ font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; opacity:.75; margin-bottom:18px; display:block; }
.team-card__chips{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:18px; }
.team-card__chips span{ font-size:11px; font-weight:600; padding:4px 10px; border-radius:999px; }
.team-card__closing{ font-size:12.5px; line-height:1.5; opacity:.8; margin:0; }

.team-card--red{ background: var(--red); color:#fff; }
.team-card--red .team-card__avatar{ background: rgba(255,255,255,.2); color:#fff; }
.team-card--red .team-card__chips span{ background: rgba(255,255,255,.18); }

.team-card--black{ background: var(--black); color:#fff; }
.team-card--black .team-card__avatar{ background: rgba(237,23,74,.2); color: var(--red); }
.team-card--black .team-card__chips span{ background: rgba(255,255,255,.1); }

.team-card--slate{ background: var(--slate); color:#fff; }
.team-card--slate .team-card__avatar{ background: rgba(255,255,255,.2); color:#fff; }
.team-card--slate .team-card__chips span{ background: rgba(255,255,255,.18); }

.team-card--light{ background: var(--gray-100); color: var(--text); border:1px solid var(--gray-200); }
.team-card--light .team-card__avatar{ background: var(--red-tint); color: var(--red); }
.team-card--light .team-card__chips span{ background:#fff; border:1px solid var(--gray-200); }

/* =================== POR QUÉ =================== */
.porque{ position:relative; overflow:hidden; }
.porque__media{ position:absolute; inset:0; z-index:0; overflow:hidden; }
.porque__video{
  position:absolute; top:50%; left:50%;
  width:177.78vh; height:56.25vw; /* oversize to 16:9, whichever dimension is larger wins → always covers */
  min-width:100%; min-height:100%;
  transform:translate(-50%,-50%);
  border:0; pointer-events:none;
}
.porque__overlay{ position:absolute; inset:0; background: rgba(238,241,243,.72); }
.porque > .wrap{ position:relative; z-index:1; }
.differentiators{ display:grid; grid-template-columns: repeat(5,1fr); gap:20px; }
.dif-card{ background:#fff; border:1px solid var(--gray-200); border-radius: var(--radius); padding: 28px 22px; }
.dif-card__icon{ width:38px; height:38px; color: var(--red); margin-bottom:18px; }
.dif-card__icon *{ fill:none; stroke:currentColor; }
.dif-card h3{ font-size:16.5px; font-weight:800; line-height:1.3; margin:0 0 10px; }
.dif-card p{ font-size:15.5px; line-height:1.55; color: var(--text-mute); margin:0; }

/* =================== FAQ =================== */
.accordion{ border-top:1px solid var(--gray-200); }
.acc-item{ border-bottom:1px solid var(--gray-200); }
.acc-item__head{
  width:100%; background:none; border:none; text-align:left; display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding: 22px 4px; font-size:16px; font-weight:600; color: var(--text);
}
.acc-item__plus{ width:20px; height:20px; color: var(--red); flex-shrink:0; transition: transform .3s var(--ease); }
.acc-item.is-open .acc-item__plus{ transform: rotate(135deg); }
.acc-item__body{ display:grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc-item.is-open .acc-item__body{ grid-template-rows: 1fr; }
.acc-item__body p{ overflow:hidden; margin:0; padding: 0 40px 0 4px; color: var(--text-mute); font-size:17px; line-height:1.7; }
.acc-item.is-open .acc-item__body p{ padding-bottom:24px; }

/* =================== CTA FINAL =================== */
.cta-final{ background: var(--black); padding: 110px 0; }
.cta-final__inner{ text-align:center; max-width:640px; margin:0 auto; }
.cta-final__bone{ width:40px; height:40px; color: var(--red); margin: 0 auto 24px; display:block; }
.cta-final .h2{ margin-bottom:36px; }
.cta-final__contact{ display:flex; justify-content:center; gap:32px; flex-wrap:wrap; margin: 36px 0 28px; }
.cta-final__contact a{ display:flex; align-items:center; gap:9px; color:#d8dade; font-weight:600; font-size:15px; transition: color .2s ease; }
.cta-final__contact a:hover{ color:#fff; }
.cta-final__social{ display:flex; justify-content:center; gap:16px; }
.cta-final__social a{
  width:42px; height:42px; border-radius:50%; border:1px solid rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center; color:#fff;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.cta-final__social a:hover{ background: var(--red); border-color: var(--red); }
.cta-final__social a:active{ transform: scale(.9); transition: transform .12s var(--ease-bounce); }
.cta-final__social .icon{ width:18px; height:18px; }

/* =================== FOOTER =================== */
.site-footer{ background: var(--off-white); border-top:1px solid var(--gray-200); padding: 20px 0; }
.footer__inner{ display:flex; align-items:center; justify-content:space-between; gap:20px 28px; flex-wrap:wrap; }
.brand--footer{ gap:8px; }
.brand--footer .brand__icon{ width:24px; }
.brand--footer .brand__word{ font-size:14px; }
.footer__tagline{ display:none; }
.footer__nav{ display:flex; gap:18px; flex-wrap:wrap; justify-content:center; margin:0; order:2; }
.footer__nav a{ font-size:13px; font-weight:500; color: var(--text-mute); white-space:nowrap; }
.footer__nav a:hover{ color: var(--red); }
.footer__right{ display:flex; align-items:center; gap:16px; order:3; }
.footer__social{ display:flex; gap:8px; margin:0; }
.footer__social a{
  width:28px; height:28px; border-radius:50%; border:1px solid var(--gray-200);
  display:flex; align-items:center; justify-content:center; color: var(--slate-dark);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.footer__social a:hover{ background: var(--red); border-color: var(--red); color:#fff; }
.footer__social a:active{ transform: scale(.9); transition: transform .12s var(--ease-bounce); }
.footer__social .icon{ width:13px; height:13px; }
.footer__legal{ font-size:12px; color: var(--text-mute); margin:0; white-space:nowrap; }

@media (max-width: 860px){
  .footer__inner{ justify-content:center; text-align:center; }
  .footer__nav{ order:2; justify-content:center; }
  .footer__right{ order:3; flex-direction:column; gap:10px; }
}

/* =================== FLOATING WHATSAPP =================== */
.fab-whatsapp{
  position: fixed; bottom: 26px; right: 26px; z-index: 400;
  width: 58px; height:58px; border-radius:50%; background: var(--red); color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow: 0 12px 30px -8px rgba(237,23,74,.6);
  animation: fab-pulse 2.6s infinite;
}
.fab-whatsapp .icon{ width:26px; height:26px; }
@keyframes fab-pulse{
  0%{ box-shadow: 0 0 0 0 rgba(237,23,74,.45), 0 12px 30px -8px rgba(237,23,74,.6); }
  70%{ box-shadow: 0 0 0 14px rgba(237,23,74,0), 0 12px 30px -8px rgba(237,23,74,.6); }
  100%{ box-shadow: 0 0 0 0 rgba(237,23,74,0), 0 12px 30px -8px rgba(237,23,74,.6); }
}

/* =================== PRELOADER =================== */
.preloader{
  position:fixed; inset:0; z-index:9999; background: var(--off-white);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.is-hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.preloader__scan{ position:relative; width:120px; }
.preloader__logo{ width:100%; display:block; filter: grayscale(1) contrast(1.1); opacity:.5; }
.preloader__beam{
  position:absolute; left:-4px; right:-4px; height:3px; top:0;
  background: var(--red); box-shadow: 0 0 16px 2px rgba(237,23,74,.7);
  animation: scan-move 1.6s ease-in-out infinite;
}
@keyframes scan-move{ 0%{ top:0; } 50%{ top:100%; } 100%{ top:0; } }
.preloader__label{ font-size:12.5px; font-weight:700; letter-spacing:.18em; color: var(--slate-dark); }
.dots span{ animation: dot-blink 1.4s infinite; opacity:0; }
.dots span:nth-child(2){ animation-delay:.2s; }
.dots span:nth-child(3){ animation-delay:.4s; }
@keyframes dot-blink{ 0%,100%{ opacity:0; } 50%{ opacity:1; } }

/* =================== RESPONSIVE =================== */
@media (max-width: 1080px){
  .stats{ grid-template-columns: repeat(3,1fr); }
  .differentiators{ grid-template-columns: repeat(3,1fr); }
  .team{ grid-template-columns: repeat(2,1fr); }
  .cases{ grid-template-columns: 1fr; }
  .steps__inner{ gap:32px; }
  .steps__icon-stage{ width:104px; height:104px; }
  .steps__icon{ width:50px; height:50px; }
}

@media (max-width: 920px){
  .nav, .header__cta{ display:none; }
  .hamburger{ display:flex; margin-left:auto; }
  .hero{ height:100svh; min-height:520px; }
  .hero__inner{ padding-bottom:50px; }
  .hero__stats{ gap:24px; margin-top:34px; padding-top:22px; }
  .problema__grid{ grid-template-columns:1fr; gap:28px; }
  .clash{ flex-direction:column; min-height:0; }
  .clash__bg{ clip-path: polygon(0 0, 100% 0, 100% 46%, 0 58%); }
  .clash__col, .clash__col--right{ align-items:center; text-align:center; padding: 44px 28px 56px; }
  .clash__col--left{ padding-right:28px; padding-bottom:64px; }
  .clash__col--right{ padding-left:28px; padding-top:64px; }
  .clash__quote{ max-width:420px; }
  .steps{ display:none; }
  .steps-m{ display:block; padding: 8px 0 20px; }
  .section{ padding: 84px 0; }
  .metodologia{ padding-bottom:84px; }
}

@media (max-width: 680px){
  .wrap{ padding: 0 20px; }
  .hero__stats{ gap:18px; }
  .hero__stats strong, .hero__stats .stat strong{ font-size:19px; }
  .hero__actions .btn{ flex:1 1 auto; }
  .scroll-cue{ display:none; }
  .stats{ grid-template-columns: repeat(2,1fr); }
  .differentiators{ grid-template-columns: 1fr 1fr; }
  .team{ grid-template-columns: 1fr; }
  .cta-final__contact{ flex-direction:column; gap:14px; align-items:center; }
  .fab-whatsapp{ width:52px; height:52px; bottom:18px; right:18px; }
}

@media (max-width: 400px){
  .hero__stats{ gap:14px 22px; }
}

/* =================== AVISO DE PRIVACIDAD =================== */
.legal-hero{ padding: 168px 0 32px; text-align:center; }
.legal-hero__icon{ width:42px; height:42px; color: var(--red); margin-bottom:16px; }
.legal-hero__icon *{ fill:none; stroke:currentColor; }
.legal-hero .kicker{ justify-content:center; }
.legal-hero__updated{ color: var(--text-mute); font-size:15px; margin: 6px 0 30px; }
.legal-tabs{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

.legal-back{ padding-top:0; }
.legal-back__inner{ text-align:center; }

.legal{ padding-top:48px; padding-bottom:64px; }
.legal__content h2{ font-size: clamp(24px,3vw,32px); font-weight:800; line-height:1.2; letter-spacing:-.01em; margin: 0 0 22px; }
.legal__content h3{ font-size:19px; font-weight:700; margin: 38px 0 12px; }
.legal__content p{ font-size:16px; line-height:1.75; color: var(--text-mute); margin: 0 0 16px; }
.legal__content p strong{ color: var(--text); }
.legal__intro{ padding:16px 20px; background:#fff; border:1px solid var(--gray-200); border-radius: var(--radius-sm); font-size:14.5px !important; margin-bottom:36px !important; }
.legal__list{ margin: 0 0 16px; padding:0; list-style:none; }
.legal__list li{ position:relative; padding-left:22px; font-size:16px; line-height:1.7; color: var(--text-mute); margin-bottom:8px; }
.legal__list li::before{ content:''; position:absolute; left:2px; top:10px; width:6px; height:6px; border-radius:50%; background: var(--red); }
.legal__link{ color: var(--red); font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.legal__note{ font-style:italic; }
.legal__card{ background:#fff; border:1px solid var(--gray-200); border-radius: var(--radius); padding: 30px 26px; }
.legal__card p{ margin-bottom:0; }
.legal__consent{ margin:22px 0 0; padding:0; list-style:none; }
.legal__consent li{ position:relative; padding-left:32px; font-size:15px; color: var(--text); margin-bottom:14px; line-height:1.5; }
.legal__consent li:last-child{ margin-bottom:0; }
.legal__consent li::before{ content:''; position:absolute; left:0; top:1px; width:18px; height:18px; border:2px solid var(--gray-400); border-radius:5px; }

@media (max-width: 680px){
  .legal-hero{ padding: 140px 0 28px; }
}
