/* ─────────────────────────────────────────────────────────────────
   THE HULP AGENCY  —  tokens exactos de Figma
   ───────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/overpass-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Overpass';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/overpass-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Overpass Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/overpass-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Overpass Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/overpass-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* colors — fondo teal oscuro como imagen de referencia */
  --bg:          #041a1c;
  --blue-1:      #2bf0fa;          /* accent cyan */
  --blue-3:      #189ba2;          /* teal medio */
  --blue-3-bg:   rgba(24,155,162,.20);
  --blue-4:      #0f7379;          /* teal medio-oscuro — títulos servicios/testimonios */
  --blue-5:      #074e52;          /* teal oscuro — texto sobre fondos claros */
  --blue-6:      #022c2e;          /* teal casi negro — gradiente crecimiento */
  --white-20:    rgba(255,255,255,.20);
  --white:       #ffffff;
  --off-white:   #efefef;
  --muted:       rgba(239,239,239,.50);
  --gray-3:      #898989;          /* texto terciario / bordes numerados */
  --gray-4:      #656565;          /* texto secundario sobre fondos claros */

  /* typography */
  --font-sans:   'Overpass', sans-serif;
  --font-mono:   'Overpass Mono', monospace;

  /* spacing tokens */
  --s14:  14px;
  --s16:  16px;
  --s24:  24px;
  --s32:  32px;
  --s48:  48px;

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

img { display: block; }

/* flecha compartida por los botones pill (hero, nosotros, proyectos) */
.btn-arrow {
  width: 25px; height: 17px;
  flex-shrink: 0;
  overflow: visible;
  transition: transform .3s var(--ease-out);
}

/* ── scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1a2a3a; border-radius: 2px; }


/* ══════════════════════════════════════════════════════════════════
   NAV
   Figma: 1300×121px @ x=70 · links gap=48px · padding-y=32px
══════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding-inline: 70px;
  height: 121px;
  display: flex;
  align-items: center;
  transition: background .4s, backdrop-filter .4s, height .4s;
}

.nav.scrolled {
  height: 72px;
  background: rgba(7,8,14,.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav__inner {
  width: 100%;
  max-width: 1300px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--s48);
}

/* logo */
.nav__logo {
  flex-shrink: 0;
  line-height: 1;
}
.nav__logo img {
  display: block;
  width: 132px;
  height: auto;
}
.nav__logo svg { display: none; }
.nav__logo svg { overflow: visible; }

/* links — Overpass SemiBold 20px / lh 1.4 */
.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s48);
  flex: 1;
}

.nav__link {
  text-decoration: none;
  color: var(--white);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: color .2s;
}
.nav__link:hover { color: var(--blue-1); }

/* actions group */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  flex-shrink: 0;
}

/* contacto button — Overpass Mono SemiBold 18px · border #2bf0fa · rounded 24px · px24 py16 */
.nav__cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s16) var(--s24);
  border: 1px solid var(--blue-1);
  border-radius: var(--s24);
  color: var(--blue-1);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.9px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .3s var(--ease-out), color .3s var(--ease-out),
              box-shadow .3s var(--ease-out), transform .2s var(--ease-out);
}
.nav__cta:hover {
  background: var(--blue-1);
  color: var(--bg);
  box-shadow: 0 0 0 1px var(--blue-1), 0 0 22px rgba(43, 240, 250, .35);
}
.nav__cta:active { transform: scale(.96); }
.nav__cta:focus-visible {
  outline: 2px solid var(--blue-1);
  outline-offset: 3px;
}

/* burger — 45×45px · border #2bf0fa · rounded 22.5px */
.nav__burger {
  width: 45px; height: 45px;
  border: 1px solid var(--blue-1);
  border-radius: 22.5px;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  /* sat left of cta: hidden on desktop, shown on mobile */
  margin-left: 0;
  transition: background .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .2s var(--ease-out);
}
.nav__burger:hover {
  background: rgba(43, 240, 250, .1);
  box-shadow: 0 0 16px rgba(43, 240, 250, .25);
}
.nav__burger:active { transform: scale(.94); }
.nav__burger:focus-visible {
  outline: 2px solid var(--blue-1);
  outline-offset: 3px;
}
.nav__burger .btn-arrow { color: var(--blue-1); }


/* ══════════════════════════════════════════════════════════════════
   HERO
   Figma frame: 1440×758px (≈ 52.6% of width as height)
   We use 100vh for immersive effect, scaling positions from design.
══════════════════════════════════════════════════════════════════ */

/*
  Design reference (1440px wide, 758px tall):
  Word 1  "Estrategia,"   x=294  y=244   w=445  h=70
  Word 2  "Tecnología"    x=692  y=344   w=455  h=70
  Word 3  "y Creatividad" x=447  y=444   w=546  h=70
  CTA row                 x=398  y=640   w=644  h=48

  Pill burst              x=775  y=244   w=375  h=70   (image)
  Pill A                  x=290  y=344   w=180  h=70
  Pill B                  x=485  y=344   w=180  h=70

  Font: Overpass SemiBold 100px, lh=1, ls=-5px
  We express positions as vw percentages of 1440px.
*/

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 758px;
  overflow: hidden;
  background: var(--bg);
}

/* canvas Three.js — Three.js setea width/height via style */
.hero__canvas {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 0;
}

/* Glow ambiental sobre Three.js — replica el glow del diseño */
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    /* glow dorado-ámbar izquierda-centro (como la referencia) */
    radial-gradient(ellipse 45% 40% at 22% 68%, rgba(220, 155, 30, 0.18) 0%, transparent 70%),
    /* glow blanco-amarillo centro-bajo */
    radial-gradient(ellipse 20% 22% at 36% 78%, rgba(255, 230, 120, 0.14) 0%, transparent 60%),
    /* glow cyan derecha */
    radial-gradient(ellipse 50% 45% at 72% 45%, rgba(43, 240, 250, 0.08) 0%, transparent 65%);
}


/* ── DECORACIONES ─────────────────────────────────────────────── */
.hero__decos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/*
  Positions expressed as percentages of the 1440×758 design frame:
  burst:  left=775/1440=53.8%   top=244/758=32.2%   w=375/1440=26%   h=70/758=9.2%
  pillA:  left=290/1440=20.1%   top=344/758=45.4%   w=180/1440=12.5% h=70/758=9.2%
  pillB:  left=485/1440=33.7%   top=344/758=45.4%   w=180/1440=12.5% h=70/758=9.2%
*/

.deco {
  position: absolute;
}

/* Pill — diagonal border-radius (only tr + bl = 32px) */
.deco--pill {
  border-radius: 0 32px 0 32px;
}

/* Pill izquierda — reubicada como acento ambiental junto al subtítulo */
.deco--pill-a {
  left: 6%; top: 42%;
  width: 11%; height: 8%;
  background: rgba(43, 240, 250, 0.08);
  border: 1px solid rgba(43, 240, 250, 0.20);
}

/* Pill derecha — reubicada como acento ambiental junto al subtítulo */
.deco--pill-b {
  left: 83%; top: 42%;
  width: 11%; height: 8%;
  background: rgba(24, 155, 162, 0.15);
  border: 1px solid rgba(43, 240, 250, 0.12);
}


/* ── TIPOGRAFÍA HERO ──────────────────────────────────────────── */
.hero__type {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/*
  Font: Overpass SemiBold, 80px → 5.556vw en 1440px reference
  Posiciones como % del frame (1440×758):
  title:    top=201/758=26.5%  w=1173px  (centrado)
  subtitle: top=383/758=50.5%  w=681px   (centrado)
  cta:      left=432/1440=30%  top=640/758=84.4%
*/

.hero__title {
  position: absolute;
  top: 26.5%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1173px, 88vw);
  text-align: center;
}

.hero__title-line {
  display: block;
  overflow: hidden;             /* para clip de la animación entrada */
}

.word-inner {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(32px, 5.556vw, 80px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;       /* -4px a 80px = -0.05em */
  color: var(--white);
  white-space: nowrap;
}

.hero__subtitle {
  position: absolute;
  top: 50.5%;
  left: 50%;
  transform: translateX(-50%);
  width: min(681px, 72vw);
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.667vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--white);
}

/* CTA row: tagline + botón */
.hero__cta-row {
  position: absolute;
  left: 30%;
  top: 84.4%;
  display: flex;
  align-items: center;
  gap: 144px;                  /* gap=144px de Figma */
  transform: translateY(-50%);
}

/* Tagline — Overpass Medium 18px / lh 1.4 */
.hero__tagline {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--off-white);
  width: 310px;
}

/* Botón Escríbenos — Overpass Mono SemiBold 18px · gradiente · border #2bf0fa · rounded 24px · px24 py16 */
.hero__btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s14);
  padding: var(--s16) var(--s24);
  border: 1px solid var(--blue-1);
  border-radius: var(--s24);
  background: linear-gradient(90deg, var(--white-20) 0%, var(--blue-3-bg) 100%);
  color: var(--blue-1);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.9px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .3s var(--ease-out), color .3s var(--ease-out),
              box-shadow .3s var(--ease-out), transform .2s var(--ease-out);
}
.hero__btn:hover {
  background: var(--blue-1);
  color: var(--bg);
  box-shadow: 0 0 0 1px var(--blue-1), 0 0 26px rgba(43, 240, 250, .4);
}
.hero__btn:active { transform: scale(.97); }
.hero__btn:focus-visible {
  outline: 2px solid var(--blue-1);
  outline-offset: 3px;
}
.hero__btn:hover .btn-arrow { transform: translate(3px, -2px); }


/* ══════════════════════════════════════════════════════════════════
   NOSOTROS
   Figma: 1440×540px · fondo blanco · padding 120px 70px
══════════════════════════════════════════════════════════════════ */
.nosotros {
  background: var(--white);
  padding: 120px 70px;
  overflow: hidden;
}

.nosotros__inner {
  max-width: 1300px;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.nosotros__deco {
  flex-shrink: 0;
  width: 600px;
  max-width: 46%;
  border-radius: 64px;
  overflow: hidden;
  align-self: center;
}
.nosotros__deco img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 638 / 440;
  object-fit: cover;
}

.nosotros__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s48);
  width: 640px;
  max-width: 100%;
}

.nosotros__title {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--blue-5);
}

.nosotros__copy {
  display: flex;
  flex-direction: column;
  gap: var(--s24);
}
.nosotros__lead {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--blue-5);
}
.nosotros__text {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-4);
}

/* Botón — mismo lenguaje visual que hero__btn, adaptado a fondo claro */
.nosotros__btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s14);
  padding: var(--s16) var(--s24);
  border: 1px solid var(--blue-3);
  border-radius: var(--s24);
  background: linear-gradient(90deg, var(--white-20) 0%, var(--blue-3-bg) 100%);
  color: var(--blue-5);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.9px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .3s var(--ease-out), color .3s var(--ease-out),
              box-shadow .3s var(--ease-out), transform .2s var(--ease-out);
}
.nosotros__btn:hover {
  background: var(--blue-3);
  color: var(--white);
  box-shadow: 0 0 0 1px var(--blue-3), 0 8px 26px rgba(24, 155, 162, .3);
}
.nosotros__btn:active { transform: scale(.97); }
.nosotros__btn:focus-visible {
  outline: 2px solid var(--blue-3);
  outline-offset: 3px;
}
.nosotros__btn:hover .btn-arrow { transform: translate(3px, -2px); }


/* ══════════════════════════════════════════════════════════════════
   PROYECTOS  ("Historias que hablan por nuestro trabajo")
   Figma: 1440×1192px · fondo oscuro · onda de partículas decorativa
══════════════════════════════════════════════════════════════════ */
.proyectos {
  position: relative;
  background: var(--bg);
  padding: 120px 70px 80px;
  overflow: hidden;
}

.proyectos__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.proyectos__inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.proyectos__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.proyectos__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s32);
  max-width: 1042px;
}

.proyectos__title {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--white);
  text-shadow: 0 4px 4px rgba(0, 0, 0, .25);
}

.proyectos__subtitle {
  display: block;
  margin-top: var(--s24);
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--white);
  text-shadow: none;
}

.proyectos__btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s14);
  padding: var(--s16) var(--s24);
  border: 1px solid var(--blue-1);
  border-radius: var(--s24);
  background: linear-gradient(90deg, var(--white-20) 0%, var(--blue-3-bg) 100%);
  color: var(--blue-1);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.9px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .3s var(--ease-out), color .3s var(--ease-out),
              box-shadow .3s var(--ease-out), transform .2s var(--ease-out);
}
.proyectos__btn:hover {
  background: var(--blue-1);
  color: var(--bg);
  box-shadow: 0 0 0 1px var(--blue-1), 0 0 26px rgba(43, 240, 250, .4);
}
.proyectos__btn:active { transform: scale(.97); }
.proyectos__btn:focus-visible {
  outline: 2px solid var(--blue-1);
  outline-offset: 3px;
}
.proyectos__btn:hover .btn-arrow { transform: translate(3px, -2px); }

.proyectos__actions {
  display: flex;
  align-items: center;
  gap: var(--s24);
  flex-wrap: wrap;
}

.proyectos__reel-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s14);
  min-height: 56px;
  background: rgba(43, 240, 250, .08);
  border: 1px solid rgba(43, 240, 250, .48);
  border-radius: 28px;
  padding: 10px 22px 10px 12px;
  color: var(--blue-1);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background .25s var(--ease-out), color .25s var(--ease-out),
              border-color .25s var(--ease-out), box-shadow .25s var(--ease-out),
              transform .2s var(--ease-out);
}
.proyectos__reel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--blue-1);
  flex-shrink: 0;
  transition: background .25s var(--ease-out), transform .25s var(--ease-out);
}
.proyectos__reel-icon svg { width: 17px; height: 17px; fill: var(--blue-1); transition: fill .25s var(--ease-out); }
.proyectos__reel-btn:hover {
  background: var(--blue-1);
  border-color: var(--blue-1);
  color: var(--bg);
  box-shadow: 0 0 26px rgba(43, 240, 250, .34);
  transform: translateY(-1px);
}
.proyectos__reel-btn:hover .proyectos__reel-icon { background: var(--blue-1); transform: scale(1.08); }
.proyectos__reel-btn:hover .proyectos__reel-icon svg { fill: var(--bg); }
.proyectos__reel-btn:focus-visible { outline: 2px solid var(--blue-1); outline-offset: 3px; }

/* Síguenos + iconos sociales */
.proyectos__social {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.proyectos__social-label {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.9px;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}
.proyectos__divider {
  width: 1px;
  height: 45px;
  background: rgba(255, 255, 255, .2);
}
.proyectos__icons {
  display: flex;
  align-items: center;
}
.social-icon {
  width: 45px; height: 45px;
  border-radius: 50%;
  background: var(--blue-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out);
}
.social-icon svg { width: 26px; height: 26px; fill: currentColor; }
.social-icon:hover {
  background: var(--white);
  box-shadow: 0 0 18px rgba(43, 240, 250, .5);
  transform: translateY(-2px);
}
.social-icon:focus-visible {
  outline: 2px solid var(--blue-1);
  outline-offset: 3px;
}

/* Tarjetas de proyectos */
.proyectos__cards {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.proyecto-card {
  position: relative;
  flex: 1 1 300px;
  max-width: 401px;
  aspect-ratio: 401 / 521;
  border-radius: 56px;
  overflow: hidden;
  text-decoration: none;
}
.proyecto-card--sm { max-width: 315px; aspect-ratio: 315 / 527; border-radius: 67px; }
.proyecto-card--md { max-width: 336px; aspect-ratio: 336 / 532; border-radius: 61px; }
.proyecto-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-out);
}
.proyecto-card:hover img { transform: scale(1.06); }

.proyecto-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(4, 26, 28, .45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.proyecto-card__play svg { width: 26px; height: 26px; fill: var(--white); margin-left: 3px; }
.proyecto-card__play:hover {
  background: var(--blue-1);
  border-color: var(--blue-1);
  transform: translate(-50%, -50%) scale(1.08);
}
.proyecto-card__play:hover svg { fill: var(--bg); }
.proyecto-card__play:focus-visible { outline: 2px solid var(--blue-1); outline-offset: 3px; }

.proyecto-card__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 10, 11, .78) 100%);
}
.proyecto-card__info h3 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 40px);
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--white);
}
.proyecto-card__info span {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.8px;
  text-transform: uppercase;
  color: var(--white);
}

/* Stepper 01–04 — decorativo: la línea se "pinta" en cyan brillante al entrar en viewport */
.proyectos__stepper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 45px;
}
.stepper__track {
  position: absolute;
  left: 27px; right: 27px;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, .18);
  transform: translateY(-50%);
}
.stepper__progress {
  position: absolute;
  left: 27px; right: 27px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-1);
  box-shadow: 0 0 10px 2px rgba(43, 240, 250, .85), 0 0 24px 6px rgba(43, 240, 250, .35);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  overflow: hidden;
}
/* brillo que recorre la línea una vez completado el trazo */
.stepper__progress::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .95) 50%, transparent 100%);
  animation: stepper-shine 3.2s ease-in-out infinite;
  animation-play-state: paused;
}
.stepper__progress.is-drawn::after { animation-play-state: running; }
@keyframes stepper-shine {
  0%   { transform: translateX(-120%); }
  60%, 100% { transform: translateX(280%); }
}

.stepper__num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 54px; height: 45px;
  border-radius: var(--s24);
  border: 1px solid var(--gray-4);
  background: var(--bg);
  color: var(--gray-4);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.9px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.stepper__num.is-active {
  border-color: var(--blue-1);
  color: var(--blue-1);
  box-shadow: 0 0 16px rgba(43, 240, 250, .3);
}


/* ══════════════════════════════════════════════════════════════════
   DISEÑAMOS EL CRECIMIENTO
   Figma: 1440×758px · gradiente blue-6→blue-5 · imagen + copy
══════════════════════════════════════════════════════════════════ */
.crecimiento {
  background: linear-gradient(180deg, var(--blue-6) 0%, var(--blue-5) 100%);
  padding: 120px 70px;
}

.crecimiento__inner {
  max-width: 1300px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.crecimiento__image {
  flex-shrink: 0;
  width: 449px;
  max-width: 36%;
  border-radius: 49px;
  overflow: hidden;
}
.crecimiento__image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 449 / 299;
  object-fit: cover;
}

.crecimiento__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s48);
}

.crecimiento__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, .25);
}

.crecimiento__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(28px, 3.33vw, 48px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--off-white);
}

.crecimiento__cols {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.crecimiento__cols p {
  flex: 1 1 320px;
  max-width: 420px;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--off-white);
}

.crecimiento__btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s14);
  padding: var(--s16) var(--s24);
  border: 1px solid var(--blue-1);
  border-radius: var(--s24);
  background: linear-gradient(90deg, var(--white-20) 0%, var(--blue-3-bg) 100%);
  color: var(--blue-1);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.9px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease-out), color .3s var(--ease-out),
              box-shadow .3s var(--ease-out), transform .2s var(--ease-out);
}
.crecimiento__btn:hover {
  background: var(--blue-1);
  color: var(--bg);
  box-shadow: 0 0 0 1px var(--blue-1), 0 0 26px rgba(43, 240, 250, .4);
}
.crecimiento__btn:active { transform: scale(.97); }
.crecimiento__btn:focus-visible { outline: 2px solid var(--blue-1); outline-offset: 3px; }
.crecimiento__btn:hover .btn-arrow { transform: translate(3px, -2px); }


/* ══════════════════════════════════════════════════════════════════
   SERVICIOS
   Figma: 1440×1261px · fondo blanco · lista de 5 filas
══════════════════════════════════════════════════════════════════ */
.servicios {
  background: var(--white);
  padding: 120px 70px;
}

.servicios__inner {
  max-width: 1300px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s48);
}

.servicios__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(28px, 3.33vw, 48px);
  letter-spacing: -0.05em;
  line-height: 1.2;
  color: var(--blue-5);
}
.servicios__subtitle {
  margin-top: var(--s16);
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--blue-5);
}

.servicios__btn {
  margin-top: var(--s32);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s14);
  padding: var(--s16) var(--s24);
  border: 1px solid var(--blue-3);
  border-radius: var(--s24);
  background: linear-gradient(90deg, var(--white-20) 0%, var(--blue-3-bg) 100%);
  color: var(--blue-5);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.9px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease-out), color .3s var(--ease-out),
              box-shadow .3s var(--ease-out), transform .2s var(--ease-out);
}
.servicios__btn:hover {
  background: var(--blue-3);
  color: var(--white);
  box-shadow: 0 0 0 1px var(--blue-3), 0 8px 26px rgba(24, 155, 162, .3);
}
.servicios__btn:active { transform: scale(.97); }
.servicios__btn:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 3px; }
.servicios__btn:hover .btn-arrow { transform: translate(3px, -2px); }

.servicios__list {
  display: flex;
  flex-direction: column;
  gap: var(--s14);
}

.servicio {
  display: flex;
  align-items: center;
  background: var(--off-white);
  border-radius: var(--s32);
  padding: var(--s32) var(--s24);
}

.servicio__left {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  min-width: 0;
}

.servicio__num {
  flex-shrink: 0;
  min-width: 54px;
  height: 45px;
  padding: 0 16px;
  border: 1px solid var(--gray-3);
  border-radius: var(--s24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.9px;
  color: var(--gray-3);
}

.servicio__icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.servicio__text {
  display: flex;
  flex-direction: column;
  gap: var(--s24);
  max-width: 640px;
}
.servicio__text h3 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(32px, 3.2vw, 54px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--blue-4);
}
.servicio__text p {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-4);
}


/* ══════════════════════════════════════════════════════════════════
   TESTIMONIOS  ("Qué dicen de nosotros")
   Figma: 1440×1600px · fondo gris claro
══════════════════════════════════════════════════════════════════ */
.testimonios {
  background: var(--off-white);
  padding: 120px 70px;
}

.testimonios__inner {
  max-width: 1300px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s48);
}

.testimonios__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s24);
  flex-wrap: wrap;
}
.testimonios__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 60px;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--blue-5);
}
.testimonios__btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s14);
  padding: var(--s16) var(--s24);
  border: 1px solid var(--blue-3);
  border-radius: var(--s24);
  background: linear-gradient(90deg, var(--white-20) 0%, var(--blue-3-bg) 100%);
  color: var(--blue-5);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.9px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease-out), color .3s var(--ease-out),
              box-shadow .3s var(--ease-out), transform .2s var(--ease-out);
}
.testimonios__btn:hover {
  background: var(--blue-3);
  color: var(--white);
  box-shadow: 0 0 0 1px var(--blue-3), 0 8px 26px rgba(24, 155, 162, .3);
}
.testimonios__btn:active { transform: scale(.97); }
.testimonios__btn:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 3px; }
.testimonios__btn:hover .btn-arrow { transform: translate(3px, -2px); }

.testimonios__cards {
  display: flex;
  gap: 20px;
  filter: drop-shadow(0 4px 24px rgba(15, 115, 121, .2));
}

.rating-card {
  flex: 1 1 0;
  min-width: 0;
  height: 411px;
  background: linear-gradient(180deg, var(--white-20) 0%, var(--blue-3-bg) 100%);
  border-radius: var(--s32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s14);
  padding: 32px;
}
.rating-card__score {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(64px, 9vw, 140px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--blue-4);
}
.rating-card__stars { width: 171px; max-width: 100%; }

.testimonial-card {
  flex: 1 1 0;
  min-width: 0;
  height: 411px;
  background: var(--white);
  border-radius: var(--s32);
  padding: var(--s32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-card__quote {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  color: var(--blue-5);
}
.testimonial-card--alt .testimonial-card__quote {
  font-weight: 400;
  font-size: 24px;
}
.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: var(--s14);
  margin-top: var(--s24);
}
.testimonial-card__name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.9px;
  text-transform: uppercase;
  color: var(--blue-4);
}
.testimonial-card__role {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--gray-3);
}

.testimonios__banner {
  position: relative;
  width: 100%;
  border-radius: 87px;
  overflow: hidden;
}
.testimonios__banner img {
  width: 100%;
  height: auto;
  display: block;
}
.testimonios__banner-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(4, 26, 28, .48);
  backdrop-filter: blur(8px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.testimonios__banner-play svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  margin-left: 4px;
}
.testimonios__banner-play:hover {
  background: var(--blue-1);
  border-color: var(--blue-1);
  color: var(--bg);
  transform: translate(-50%, -50%) scale(1.08);
}


/* ══════════════════════════════════════════════════════════════════
   MARCAS  ("Marcas que confían en nuestro trabajo")
   Figma: 1440×822px · fondo gris claro
══════════════════════════════════════════════════════════════════ */
.marcas {
  background: var(--off-white);
  padding: 120px 70px;
}

.marcas__inner {
  max-width: 1300px;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s48);
  flex-wrap: wrap;
}

.marcas__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s48);
  max-width: 420px;
  flex-shrink: 0;
}
.marcas__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 60px;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--blue-5);
}
.marcas__text {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-4);
}
.marcas__btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s14);
  padding: var(--s16) var(--s24);
  border: 1px solid var(--blue-3);
  border-radius: var(--s24);
  background: linear-gradient(90deg, var(--white-20) 0%, var(--blue-3-bg) 100%);
  color: var(--blue-5);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.9px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s var(--ease-out), color .3s var(--ease-out),
              box-shadow .3s var(--ease-out), transform .2s var(--ease-out);
}
.marcas__btn:hover {
  background: var(--blue-3);
  color: var(--white);
  box-shadow: 0 0 0 1px var(--blue-3), 0 8px 26px rgba(24, 155, 162, .3);
}
.marcas__btn:active { transform: scale(.97); }
.marcas__btn:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 3px; }
.marcas__btn:hover .btn-arrow { transform: translate(3px, -2px); }

.marcas__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 640px;
  filter: drop-shadow(0 4px 24px rgba(15, 115, 121, .2));
}
.marca-card {
  flex: 1 1 260px;
  height: 276px;
  border-radius: var(--s32);
  background: linear-gradient(180deg, var(--white-20) 0%, var(--blue-3-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s32);
}
.marca-card--alt {
  background: linear-gradient(180deg, var(--blue-3-bg) 0%, var(--white-20) 100%);
}
.marca-card img {
  max-width: 100%;
  max-height: 100%;
}


/* ══════════════════════════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════════════════════════ */
.contacto {
  background: var(--off-white);
  padding: 120px 70px;
}
.contacto__inner {
  max-width: 1300px;
  margin-inline: auto;
  display: flex;
  gap: 80px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contacto__intro {
  flex: 1 1 340px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: var(--s24);
}
.contacto__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(32px, 3.5vw, 48px);
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--blue-5);
}
.contacto__text {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-4);
}
.contacto__info {
  display: flex;
  flex-direction: column;
  gap: var(--s16);
  margin-top: var(--s16);
}
.contacto__info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  border-top: 1px solid rgba(7, 78, 82, .15);
  padding-top: var(--s16);
}
.contacto__info-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.65px;
  text-transform: uppercase;
  color: var(--blue-3);
}
.contacto__info-value {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--blue-5);
  transition: color .25s var(--ease-out);
}
.contacto__info-item:hover .contacto__info-value { color: var(--blue-3); }

/* HubSpot embeds el formulario dentro de un <iframe> propio (cross-origin),
   así que solo podemos estilizar el contenedor desde aquí — el look interno
   de los campos se ajusta desde el editor de HubSpot (pestaña Style). */
.contacto__form {
  flex: 1 1 480px;
  max-width: 680px;
  background: var(--white);
  border-radius: var(--s32);
  padding: var(--s48);
  min-height: 620px;
}
.contacto__form iframe { width: 100% !important; }
.contacto__form-placeholder {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(2, 65, 63, .2);
  border-radius: 20px;
  color: rgba(2, 65, 63, .55);
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: center;
}


/* ══════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  background: var(--bg);
  padding: 80px 70px 40px;
  overflow: hidden;
}
.footer__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin-inline: auto;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s32);
  flex-wrap: wrap;
}
.footer__logo { line-height: 1; flex-shrink: 0; }
.footer__logo img {
  display: block;
  width: 132px;
  height: auto;
}
.footer__logo svg { display: none; }
.footer__logo svg { overflow: visible; }

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--s32);
  flex-wrap: wrap;
}
.footer__links a {
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  transition: color .2s var(--ease-out);
}
.footer__links a:hover { color: var(--blue-1); }

.footer__social { display: flex; align-items: center; gap: 12px; }

.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, .12);
  margin: 48px 0 24px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s24);
  flex-wrap: wrap;
}
.footer__copy {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(239, 239, 239, .6);
}
.footer__copy a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease-out);
}
.footer__copy a:hover { color: var(--blue-1); }
.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.footer__credit-logo {
  width: 18px;
  height: 14px;
  object-fit: contain;
  border-radius: 2px;
}
.footer__legal {
  display: flex;
  gap: var(--s24);
  flex-wrap: wrap;
}
.footer__legal a,
.footer__legal button {
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(239, 239, 239, .6);
  cursor: pointer;
  transition: color .2s var(--ease-out);
}
.footer__legal a:hover,
.footer__legal button:hover { color: var(--blue-1); }


/* ══════════════════════════════════════════════════════════════════
   LEGALES
══════════════════════════════════════════════════════════════════ */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.legal-modal.is-open { display: flex; }
.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 9, .76);
  backdrop-filter: blur(10px);
}
.legal-modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, 86svh);
  overflow: auto;
  border-radius: 24px;
  background: var(--white);
  color: var(--blue-5);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}
.legal-modal__close {
  position: sticky;
  top: 16px;
  left: calc(100% - 58px);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(7, 78, 82, .2);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.legal-modal__close svg { width: 20px; height: 20px; }
.legal-modal__body {
  padding: 48px;
}
.legal-modal__body h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.legal-modal__body h3 {
  font-size: 18px;
  margin: 28px 0 10px;
}
.legal-modal__body p,
.legal-modal__body li {
  color: var(--gray-4);
  font-size: 16px;
  line-height: 1.55;
}
.legal-modal__body ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}


/* ══════════════════════════════════════════════════════════════════
   BANNER DE COOKIES
══════════════════════════════════════════════════════════════════ */
.cookie-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 650;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(2, 8, 9, .45));
}
.cookie-consent[hidden] { display: none; }
.cookie-consent__panel {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px 32px;
  border: 10px solid #ff9700;
  border-radius: 10px;
  background: var(--white);
  color: var(--blue-5);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}
.cookie-consent__intro,
.cookie-consent__options {
  display: grid;
  gap: 16px;
}
.cookie-consent__eyebrow {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-5);
}
.cookie-consent__intro p:not(.cookie-consent__eyebrow),
.cookie-toggle small {
  color: var(--gray-4);
  line-height: 1.45;
}
.cookie-consent__link {
  width: fit-content;
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue-5);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-toggle span {
  display: grid;
  gap: 4px;
}
.cookie-toggle input {
  appearance: none;
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: #cfd5d5;
  cursor: pointer;
  transition: background .2s var(--ease-out);
}
.cookie-toggle input::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  transition: transform .2s var(--ease-out);
}
.cookie-toggle input:checked { background: #35bf33; }
.cookie-toggle input:checked::after { transform: translateX(26px); }
.cookie-toggle input:disabled { opacity: .7; cursor: not-allowed; }
.cookie-consent__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(7, 78, 82, .12);
}
.cookie-consent__actions button {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  border: 1px solid rgba(7, 78, 82, .28);
  background: var(--white);
  color: var(--blue-5);
  font-weight: 700;
  cursor: pointer;
}
.cookie-consent__actions .is-primary {
  background: #050505;
  color: var(--white);
  border-color: #050505;
}


/* ══════════════════════════════════════════════════════════════════
   MODAL DE VIDEO (Vimeo)
══════════════════════════════════════════════════════════════════ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.video-modal.is-open { display: flex; }

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 9, .88);
  backdrop-filter: blur(4px);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
}

.video-modal__close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--blue-1);
  background: none;
  color: var(--blue-1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.video-modal__close svg { width: 18px; height: 18px; }
.video-modal__close:hover { background: var(--blue-1); color: var(--bg); }
.video-modal__close:focus-visible { outline: 2px solid var(--blue-1); outline-offset: 3px; }

.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .5);
}
.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .nav { padding-inline: 40px; }
  .hero__cta-row { left: 50%; gap: 48px; }

  .nosotros { padding: 90px 40px; }
  .nosotros__content { width: 100%; }

  .proyectos { padding: 100px 40px 64px; }
  .proyectos__inner { gap: 72px; }
  .proyecto-card, .proyecto-card--sm, .proyecto-card--md { max-width: 280px; }

  .crecimiento { padding: 90px 40px; }
  .crecimiento__inner { flex-direction: column; }
  .crecimiento__image { width: 100%; max-width: 380px; }

  .servicios, .testimonios, .marcas { padding: 90px 40px; }
  .servicio__left { gap: 24px; }
  .servicio { align-items: flex-start; }

  .testimonios__cards { flex-direction: column; }
  .rating-card, .testimonial-card { height: auto; min-height: 220px; }

  .marcas__inner { flex-direction: column; }
  .marcas__grid { max-width: 100%; }

  .contacto { padding: 90px 40px; }
  .contacto__form { padding: var(--s32); }

  .footer { padding: 64px 40px 32px; }
}

@media (max-width: 768px) {
  .nav { padding-inline: 20px; height: 80px; }
  .nav.scrolled { height: 64px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }

  .word-inner {
    font-size: clamp(30px, 9vw, 56px);
  }

  .hero__title { top: 22%; width: 92vw; }
  .hero__subtitle { top: 46%; width: 88vw; font-size: 15px; }

  .hero__cta-row {
    left: 5%; top: auto; bottom: 8%;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 90%;
  }

  .hero__tagline { width: 100%; font-size: 16px; }

  .deco--pill-a, .deco--pill-b { display: none; }

  .nosotros { padding: 64px 20px; }
  .nosotros__inner { flex-direction: column; gap: 32px; }
  .nosotros__deco { width: 100%; max-width: 100%; }
  .nosotros__content { gap: var(--s32); }
  .nosotros__title { font-size: clamp(36px, 12vw, 48px); }

  .proyectos { padding: 64px 20px 48px; }
  .proyectos__inner { gap: 48px; }
  .proyectos__top { flex-direction: column; gap: 32px; }
  .proyectos__title { font-size: clamp(30px, 9vw, 40px); }
  .proyectos__subtitle { font-size: 18px; }
  .proyectos__cards { flex-direction: column; align-items: center; }
  .proyecto-card, .proyecto-card--sm, .proyecto-card--md { max-width: 320px; width: 100%; }
  .proyecto-card__play { width: 60px; height: 60px; }
  .proyecto-card__play svg { width: 20px; height: 20px; }

  .video-modal { padding: 20px; }
  .video-modal__close { top: -46px; right: 0; width: 34px; height: 34px; }
  .video-modal__frame { border-radius: 16px; }

  .crecimiento { padding: 64px 20px; }
  .crecimiento__title { font-size: clamp(28px, 9vw, 36px); }
  .crecimiento__cols { flex-direction: column; gap: 24px; }
  .crecimiento__cols p { max-width: 100%; }
  .crecimiento__btn { white-space: normal; text-align: left; }

  .servicios, .testimonios, .marcas { padding: 64px 20px; }
  .servicios__title, .testimonios__title, .marcas__title { font-size: clamp(28px, 9vw, 40px); }
  .servicio__left { flex-direction: column; align-items: flex-start; gap: 20px; }

  .testimonios__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .rating-card__score { font-size: 96px; }

  .marca-card { flex: 1 1 45%; height: 200px; }

  .contacto { padding: 64px 20px; }
  .contacto__title { font-size: clamp(28px, 9vw, 36px); }
  .contacto__form { padding: var(--s24); border-radius: var(--s24); }
  .contacto__form .hs-button { width: 100%; justify-content: center; }

  .footer { padding: 56px 20px 28px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer__links { gap: 20px; row-gap: 12px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .legal-modal { padding: 16px; }
  .legal-modal__dialog {
    max-height: 88svh;
    border-radius: 18px;
  }
  .legal-modal__body { padding: 28px 24px 32px; }

  .cookie-consent { padding: 12px; }
  .cookie-consent__panel {
    grid-template-columns: 1fr;
    padding: 18px;
    border-width: 6px;
    max-height: 88svh;
    overflow: auto;
  }
  .cookie-consent__actions {
    justify-content: stretch;
  }
  .cookie-consent__actions button {
    flex: 1 1 100%;
  }
}
