/* =====================================================================
   Visible · somosvisible.es — hoja de estilos
   Orden: tipografía · base · 1. franja fija · 2. hero · 3. presentación ·
   4. dónde te hacemos visible · 5. servicios · 6. casos y vista de caso ·
   7. pie · puntero · tablet · móvil · animaciones de entrada.
   ===================================================================== */

/* ============ TIPOGRAFÍA: Switzer, autoalojada en /fonts ============ */
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/switzer-300.woff2') format('woff2'); }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/switzer-400.woff2') format('woff2'); }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/switzer-500.woff2') format('woff2'); }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/switzer-600.woff2') format('woff2'); }
@font-face { font-family: 'Switzer'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/switzer-700.woff2') format('woff2'); }

/* Logotipo e isotipo como máscara (letras luminosas del hero, índice de servicios y casos).
   Van incrustados para que se vean igual en local, en un CDN o en otro dominio: las máscaras
   CSS no cargan SVG externos sin CORS. Son los mismos dibujos que img/logo-visible.svg
   e img/iso-visible.svg (si cambia el logo, actualizad también estas dos líneas). */
:root {
  --mask-logo: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjYwOCA0NjguNjQgNzA0IDE0My43MiI+PGcgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTSA3NDQuMDUgNDY4LjY0IEwgNzg3LjM5IDQ2OC42NCBMIDc4Ny4zOSA2MTIuMzUgTCA3NDQuMDUgNjEyLjM1IFpNIDc0NC4wNSA0NjguNjQgIi8+PHBhdGggZD0iTSA5MTYuMzcgNTY1LjYwIEMgOTEyLjM3IDUwNS45MyA4MzMuNDMgNTI5LjE2IDgzMy40MyA1MDIuNDggQyA4MzMuNDMgNDk2LjE3IDgzOC44NyA0OTIuMTYgODQ2Ljg3IDQ5Mi4xNiBDIDg1OC4wMyA0OTIuMTYgODY0LjAzIDQ5OC40NyA4NjUuNzUgNTExLjA5IEwgOTEyLjM3IDUxMS4wOSBDIDkxMC4zNyA0OTEuNTggOTAyLjM2IDQ3Ny41MyA4OTAuOTIgNDY4LjY0IEwgODA2LjU1IDQ2OC42NCBDIDc5NC44MiA0NzguMTAgNzg4LjgyIDQ5MS44NyA3ODguODIgNTA3Ljk0IEMgNzg4LjgyIDU3MC40NyA4NzIuMDQgNTQ4Ljk2IDg3Mi4wNCA1NzYuNzggQyA4NzIuMDQgNTg0LjUzIDg2Ni4zMiA1ODkuMTIgODU0Ljg4IDU4OS4xMiBDIDg0Mi44NyA1ODkuMTIgODM0LjU4IDU4MS42NiA4MzMuMTUgNTY3Ljg5IEwgNzg3LjM5IDU2Ny44OSBDIDc4OS42NyA1ODcuOTcgNzk3LjY4IDYwMi42MCA4MDkuNjkgNjEyLjM1IEwgODk4LjA3IDYxMi4zNSBDIDkwOC42NiA2MDMuNzUgOTE1LjUyIDU5MS40MSA5MTYuMzcgNTc1LjY0IEMgOTE2LjM3IDU3NC4yMCA5MTYuNjYgNTcyLjc3IDkxNi42NiA1NzEuMDUgQyA5MTYuMzcgNTY4Ljc1IDkxNi4zNyA1NjcuMDMgOTE2LjM3IDU2NS42MCBaTSA5MTYuMzcgNTY1LjYwICIvPjxwYXRoIGQ9Ik0gOTE0LjUgNDY4LjY0IEwgOTU3LjgzIDQ2OC42NCBMIDk1Ny44MyA2MTIuMzUgTCA5MTQuNSA2MTIuMzUgWk0gOTE0LjUgNDY4LjY0ICIvPjxwYXRoIGQ9Ik0gOTY0LjMzIDQ2OC42NCBMIDEwMjcuNjAgNDY4LjY0IEMgMTA2Mi4wOCA0NjguNjQgMTA4Mi44OSA0ODUuMTQgMTA4Mi44OSA1MTEuMDQgQyAxMDgyLjg5IDUyMi4xNCAxMDc3Ljc2IDUzMC4zOSAxMDY5Ljc4IDUzNi4wOCBDIDEwODMuNDYgNTQyLjA2IDEwOTEuNDQgNTUyLjg3IDEwOTEuNDQgNTY4LjUzIEMgMTA5MS40NCA1OTYuNzAgMTA3MS40OSA2MTIuMzUgMTAzNS4wMSA2MTIuMzUgTCA5NjQuNjEgNjEyLjM1IEwgOTY0LjYxIDQ2OC42NCBaTSAxMDA3LjM2IDUwMi41MCBMIDEwMDcuMzYgNTI0LjQyIEwgMTAyNS42MCA1MjQuNDIgQyAxMDM1LjAxIDUyNC40MiAxMDM4LjQzIDUxOS44NiAxMDM4LjQzIDUxMy42MCBDIDEwMzguNDMgNTA2Ljc3IDEwMzQuNzMgNTAyLjUwIDEwMjYuNDYgNTAyLjUwIFpNIDEwMDcuMzYgNTU0LjU4IEwgMTAwNy4zNiA1NzguNDkgTCAxMDMzLjU4IDU3OC40OSBDIDEwNDIuNzEgNTc4LjQ5IDEwNDYuOTggNTczLjY1IDEwNDYuOTggNTY2LjUzIEMgMTA0Ni45OCA1NTkuOTkgMTA0My4yNyA1NTQuNTggMTAzMy44NyA1NTQuNTggWk0gMTAwNy4zNiA1NTQuNTggIi8+PHBhdGggZD0iTSAxMDkxLjczIDQ2OC42NCBMIDExMzQuNjcgNDY4LjY0IEwgMTEzNC42NyA1NzcuNDIgTCAxMTkxLjgzIDU3Ny40MiBMIDExOTEuODMgNjEyLjM1IEwgMTA5MS40NCA2MTIuMzUgTCAxMDkxLjQ0IDQ2OC42NCBaTSAxMDkxLjczIDQ2OC42NCAiLz48cGF0aCBkPSJNIDExOTEuMTAgNDY4LjY0IEwgMTI5Ny43MSA0NjguNjQgTCAxMjk3LjcxIDUwMi41MCBMIDEyMzQuMzIgNTAyLjUwIEwgMTIzNC4zMiA1MjIuOTkgTCAxMjg5LjQ3IDUyMi45OSBMIDEyODkuNDcgNTU1LjcyIEwgMTIzNC4zMiA1NTUuNzIgTCAxMjM0LjMyIDU3OC40OSBMIDEyOTggNTc4LjQ5IEwgMTI5OCA2MTIuMzUgTCAxMTkxLjM5IDYxMi4zNSBMIDExOTEuMzkgNDY4LjY0IFpNIDExOTEuMTAgNDY4LjY0ICIvPjxwYXRoIGQ9Ik0gNzAxLjA5IDQ2OC42NCBMIDY2Ny44MCA1NzcuOTIgTCA2NjQuOTYgNDY4LjY0IEwgNjIyIDQ2OC42NCBMIDYyMiA2MTIuMzUgTCA3MDUuNjQgNjEyLjM1IEwgNzQ0LjA1IDQ2OC42NCBaTSA3MDEuMDkgNDY4LjY0ICIvPjwvZz48L3N2Zz4=");
  --mask-iso: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ijg5OSA0NjkgMTIzIDE0MyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTk3OC42IDQ2OUw5NDUuMDQgNTc3Ljg1TDk0Mi40IDQ2OUw4OTkgNDY5TDg5OSA2MTJMOTgzLjQgNjEyTDEwMjIgNDY5WiIvPjwvc3ZnPg==");
}

/* Layout: franja fija, hero en vídeo a sangre del que sale el logotipo gigante al hacer scroll,
   bloques de servicio en dos columnas con columna izquierda sticky, carrusel arrastrable y
   footer con el logotipo a todo el ancho. Mundo cromático: blanco y negro de la marca Visible. */
:root {
  --black:      #070707;
  --white:      #FFFFFF;
  --paper:      #F6F6F6;
  --grey:       #797979;
  --ink-2:      #161616;
  --card:       #111111;
  --row:        #E7E7E7;
  --muted:      #9A9A9A;
  --line-dark:  rgba(255, 255, 255, 0.22);
  --line-light: rgba(7, 7, 7, 0.14);
  --tint-dark:  7, 7, 7;
  --tint-light: 255, 255, 255;

  --f-sans: 'Switzer', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max-width: 1280px;
  --px: 32px;
  --gl: max(var(--px), env(safe-area-inset-left, 0px));
  --gr: max(var(--px), env(safe-area-inset-right, 0px));
  --sat: env(safe-area-inset-top, 0px);

  color-scheme: dark;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--black); -webkit-tap-highlight-color: transparent; }
.ht-short { display: none; }
.carousel-progress { display: none; }

body {
  font-family: var(--f-sans);
  font-size: 16px;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }
.products-section :focus-visible, .where-section :focus-visible, .carousel-section :focus-visible { outline-color: var(--black); }

/* ============ 1. HEADER: franja fija, translúcida y con fundido ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 100;
}
/* Fondo de la franja: desenfoque + tinte que se desvanecen hacia abajo, sin bordes.
   Sobre las secciones claras el tinte pasa a claro y el texto a negro. */
.header-fade {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(100% + 64px);
  pointer-events: none;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 42%, transparent 100%);
}
.header-fade i { position: absolute; inset: 0; transition: opacity 0.35s ease; }
.fade-dark {
  background: linear-gradient(to bottom,
    rgba(var(--tint-dark), 0.62) 0%,
    rgba(var(--tint-dark), 0.42) 38%,
    rgba(var(--tint-dark), 0.14) 70%,
    rgba(var(--tint-dark), 0) 100%);
}
.fade-light {
  opacity: 0;
  background: linear-gradient(to bottom,
    rgba(var(--tint-light), 0.93) 0%,
    rgba(var(--tint-light), 0.7) 38%,
    rgba(var(--tint-light), 0.2) 70%,
    rgba(var(--tint-light), 0) 100%);
}
.site-header.on-light .fade-dark { opacity: 0; }
.site-header.on-light .fade-light { opacity: 1; }
.site-header .ht-title { transition: color 0.35s ease; }
.site-header .header-logo { transition: filter 0.35s ease; }
.site-header.on-light .ht-title { color: var(--black); }
.site-header.on-light .header-logo { filter: invert(1); }
.site-header.on-light .btn-cta { color: var(--black); border-color: rgba(7, 7, 7, 0.85); }
.site-header.on-light .btn-cta:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.site-header.on-light .lang-select { color: rgba(7, 7, 7, 0.85); border-color: rgba(7, 7, 7, 0.4); }
.site-header.on-light :focus-visible { outline-color: var(--black); }

.header-inner {
  position: relative;
  padding-top: calc(16px + var(--sat));
  padding-bottom: 16px;
  padding-left: var(--gl);
  padding-right: var(--gr);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.header-right { justify-self: end; display: flex; align-items: center; gap: 12px; }

.header-tagline {
  font-size: 16px; font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 460px;
}
.header-logo-link { display: block; }
.header-logo {
  width: 140px; height: auto; display: block;
}

.lang-switcher { display: flex; align-items: center; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--f-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  width: 37px; height: 37px; padding: 0;
  text-align: center; text-align-last: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-select:hover { border-color: rgba(255, 255, 255, 0.85); color: var(--white); }
.lang-select option { background: var(--black); color: var(--white); }

.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 5px;
  font-family: var(--f-sans);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  height: 37px; min-width: 145px;
}
.btn-cta:hover { background: var(--white); border-color: var(--white); color: var(--black); }

.header-tagline .ht-title {
  display: block;
  font-size: 15px; font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
}
.header-tagline-mobile {
  display: none;
  position: absolute;
  top: calc(118px + var(--sat)); left: 0; right: 0;
  z-index: 2;
  padding-left: var(--gl); padding-right: var(--gr);
  font-size: 28px; font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: var(--white);
  pointer-events: none;
  text-wrap: balance;
}

/* ============ 2. HERO EN VÍDEO ============
   1. El vídeo ocupa toda la pantalla.
   2. Al bajar, el vídeo se desenfoca y se funde a negro.
   3. Sobre el negro aparece el manifiesto («Hoy tu cliente pregunta…»), se queda un momento
      y después todo sube con el scroll y entra la siguiente sección. */
.vh { position: relative; --vh-h: 100vh; }
@supports (height: 100svh) { .vh { --vh-h: 100svh; } }

/* Escenario fijo mientras dura el hero */
.vh-stage {
  position: sticky; top: 0;
  height: var(--vh-h);
  overflow: hidden;
  background: var(--black);
  z-index: 0;
}
.vh-media {
  position: absolute; inset: 0;
  transform-origin: 50% 50%;
  will-change: transform;
  /* Primer fotograma del vídeo mientras carga: el navegador solo descarga el que toca */
  background: var(--black) url(../video/visible-hero-1920x1080-poster.jpg) 50% 50% / cover no-repeat;
}
@media (max-aspect-ratio: 7/5) { .vh-media { background-image: url(../video/visible-hero-1080x1920-poster.jpg); } }
@media (max-aspect-ratio: 1/2) { .vh-media { background-image: url(../video/visible-hero-886x1920-poster.jpg); } }
@media (prefers-reduced-motion: reduce) { .vh-media { background-image: none; } }
.vh-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Velo negro sobre el vídeo: sube mientras se desenfoca hasta taparlo del todo */
.vh-dim {
  position: absolute; inset: 0;
  background: var(--black);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* El manifiesto, centrado sobre el negro */
.vh-copy {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex; align-items: center;
  padding-left: var(--gl); padding-right: var(--gr);
  pointer-events: none;
}
.vh-copy-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  opacity: 0;
  will-change: opacity, transform, filter;
}
.vh-copy .about-heading { pointer-events: auto; }

/* Aviso de scroll: solo arriba del todo */
.vh-cue {
  position: absolute;
  left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.vh-cue i {
  display: block;
  width: 1px; height: 34px;
  background: var(--white);
  animation: vh-cue 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes vh-cue {
  0%   { transform: scaleY(0); transform-origin: 50% 0; }
  45%  { transform: scaleY(1); transform-origin: 50% 0; }
  55%  { transform: scaleY(1); transform-origin: 50% 100%; }
  100% { transform: scaleY(0); transform-origin: 50% 100%; }
}
.vh-cue:focus-visible { outline: 1px solid var(--white); outline-offset: 6px; }

/* Recorrido de scroll: una pantalla con el escenario fijo (fundido, texto y pausa) y después sube */
.vh-hero { position: relative; z-index: 1; height: var(--vh-h); pointer-events: none; }
/* Destino del aviso «Desliza»: el punto en el que el manifiesto ya está entero */
.vh-anchor { position: absolute; left: 0; top: calc(var(--vh-h) * 0.8 + 84px); width: 1px; height: 1px; }

/* Sin JavaScript: el manifiesto sobre negro, y debajo el resto */
html:not(.js) .vh-stage { position: relative; }
html:not(.js) .vh-hero { height: 0; }
html:not(.js) .vh-cue, html:not(.js) .vh-media { display: none; }
html:not(.js) .vh-copy-inner { opacity: 1; }

/* Movimiento reducido: sin vídeo ni recorrido, el manifiesto fijo sobre negro */
.vh-static .vh-stage { position: relative; }
.vh-static .vh-hero { height: 0; }
.vh-static .vh-media { visibility: hidden; }
.vh-static .vh-cue { display: none; }
.vh-static .vh-copy-inner { opacity: 1; }

/* ============ 3. PRESENTACIÓN ============ */
.about-section { background: var(--black); padding-block: 100px; }
.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gl); padding-right: var(--gr);
  padding-top: 80px;
}
.about-label {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.about-label { margin-bottom: 40px; }
.about-heading {
  font-size: 48px; font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.05em;
  max-width: 900px;
  color: var(--white);
  text-wrap: balance;
}
.about-heading em { font-style: normal; color: var(--grey); }

/* ============ 4. DONDE TE HACEMOS VISIBLE ============
   Lista de superficies de búsqueda: apagadas por defecto, se "encienden" de una en una
   mientras se teclea la búsqueda. Invisible → visible. */
.where-section { background: var(--white); padding-block: 120px; overflow: hidden; }
.where-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gl); padding-right: var(--gr);
}
.where-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-bottom: 28px;
}
.where-head .about-label { margin-bottom: 0; }
.where-intro {
  font-size: 16px; line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--grey);
  max-width: 400px;
}
.where-list { list-style: none; border-bottom: 0.5px solid var(--line-light); }
.where-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 200px minmax(0, 1.35fr) 78px;
  align-items: center;
  gap: 24px;
  padding-block: 16px;
  border-top: 0.5px solid var(--line-light);
  outline-offset: -2px;
}
.where-name {
  font-size: 52px; font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #D6D6D6;
  transition: color 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.where-type {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ABABAB;
  transition: color 0.45s ease;
}
.where-query {
  min-width: 0;
  font-size: 18px; font-weight: 300;
  letter-spacing: -0.02em;
  color: #C4C4C4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.where-query .typed { color: var(--black); }
.where-query .caret {
  display: inline-block;
  width: 1.5px; height: 1.05em;
  margin: 0 1px;
  vertical-align: -0.17em;
  background: var(--black);
  opacity: 0;
}
.where-state {
  justify-self: end;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--black);
  color: var(--white);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.where-row::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -0.5px;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left center;
}
.where-row.active .where-name { color: var(--black); transform: translateX(14px); }
.where-row.active .where-type { color: var(--grey); }
.where-row.active .where-state { opacity: 1; transform: none; }
.where-row.active .caret { opacity: 1; animation: caret-blink 1s steps(1) infinite; }
.where-row.active.auto::after { animation: where-progress var(--dwell, 2800ms) linear forwards; }
@keyframes where-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes caret-blink { 50% { opacity: 0; } }

/* ============ 5. SERVICIOS ============ */
.products-section { background: var(--white); color: var(--black); padding-block: 130px 120px; }
.products-intro {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gl); padding-right: var(--gr);
  padding-bottom: 96px;
}
.products-intro .about-label { margin-bottom: 40px; }
.products-intro-text {
  font-size: 48px; font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.05em;
  max-width: 860px;
  color: var(--black);
  text-wrap: balance;
}
.products-intro-text em { font-style: normal; color: var(--grey); }

/* Guía de servicios: una lista limpia con los ocho servicios. Cada fila se despliega al
   pulsarla y enseña sus entregables; los recuadros solo aparecen al pasar el ratón. */
.svc-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gl); padding-right: var(--gr);
}
.svc-list-title {
  padding-bottom: 22px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.svc-list { min-width: 0; border-bottom: 0.5px solid var(--line-light); }
.svc {
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  border-top: 0.5px solid var(--line-light);
  scroll-margin-top: calc(var(--strip-h, 69px) + 12px);
}
.svc-head { font: inherit; }
.svc-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 0.8fr) 28px;
  align-items: center;
  gap: 24px;
  padding-block: 30px;
  text-align: left;
  color: var(--black);
}
.svc-num { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; color: var(--grey); }
.svc-name {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 44px; font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  transition: transform 0.5s var(--ease-out);
}
.svc-sum {
  max-width: 440px;
  font-size: 15px; line-height: 1.45;
  color: var(--grey);
  transition: color 0.3s ease;
}
.svc-icon { position: relative; justify-self: end; width: 22px; height: 22px; }
.svc-icon::before, .svc-icon::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease-out);
}
.svc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc.open .svc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.svc-toggle:hover .svc-name { transform: translateX(8px); }
.svc-toggle:hover .svc-sum, .svc.open .svc-sum { color: var(--black); }
.svc-toggle:focus-visible { outline-offset: -2px; }

/* Despliegue: la fila crece hasta el alto de su contenido y el contenido aparece después */
.svc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease-out); }
.svc.open .svc-panel { grid-template-rows: 1fr; }
.svc-panel-inner { min-height: 0; overflow: hidden; }
.svc-panel-body {
  padding: 0 0 40px 80px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.5s var(--ease-out);
}
.svc.open .svc-panel-body { opacity: 1; transform: none; transition-delay: 0.12s; }

.badge-new {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  flex-shrink: 0;
}
.product-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-inline: -18px; }   /* el texto de los entregables queda alineado con el nombre */

/* Entregables: solo texto y una línea fina en reposo; al pasar por encima se rellenan de
   negro, se redondean, se elevan un poco y llevan un foco de luz que sigue al ratón */
.svc-cell {
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex; flex-direction: column;
  gap: 10px;
  min-height: 150px;
  padding: 20px 18px 24px;
  border-radius: 10px;
  background: transparent;
  color: var(--black);
  transition: background 0.35s ease, color 0.35s ease, border-radius 0.5s var(--ease-out), translate 0.5s var(--ease-out);
}
.svc-cell::after {
  content: '';
  position: absolute; left: 18px; right: 18px; top: 0;
  height: 0.5px;
  background: var(--line-light);
  transition: opacity 0.3s ease;
}
.svc-cell::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.svc-cell h4 {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: inherit;
  padding-right: 34px;
}
.svc-cell p { font-size: 13px; line-height: 1.5; color: #555555; transition: color 0.35s ease; }
.svc-cell-k {
  position: absolute; top: 20px; right: 18px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--grey);
  transition: color 0.35s ease, transform 0.5s var(--ease-out);
}
.svc-cell:hover, .svc-cell.is-selected {
  background: rgba(7, 7, 7, 0.86);
  color: var(--white);
  border-radius: 26px;
  translate: 0 -4px;
}
.svc-cell:hover::after, .svc-cell.is-selected::after { opacity: 0; }
.svc-cell:hover::before, .svc-cell.is-selected::before { opacity: 1; }
.svc-cell:hover p, .svc-cell.is-selected p { color: rgba(255, 255, 255, 0.72); }
.svc-cell:hover .svc-cell-k, .svc-cell.is-selected .svc-cell-k { color: var(--white); transform: translateY(-2px); }

/* Cada fila entra suavemente al aparecer en pantalla */
.js .svc { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.7s var(--ease-out); }
.js .svc.in { opacity: 1; transform: none; }

.pill {
  display: inline-flex; align-items: center;
  padding: 0 8px;
  border: 0.5px solid currentColor;
  border-radius: 4px;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  height: 18px;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease,
              border-radius 0.45s cubic-bezier(0.2, 0.7, 0.1, 1), translate 0.3s ease;
}
.products-section .pill { border-color: var(--black); color: var(--black); }
.products-section .pill:hover {
  background: var(--black); color: var(--white);
  border-radius: 999px;
  translate: 0 -1px;
}
.badge-new { transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }
.badge-new:hover { background: transparent; color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }

/* Palabras que se encienden al pasar por encima */
.w { transition: color 0.25s ease; }
.about-heading .w:hover, .carousel-title .w:hover, .footer-cta-heading .w:hover { color: var(--grey); }
.about-heading em .w:hover, .footer-cta-heading em .w:hover { color: var(--white); }
.carousel-title em .w:hover { color: var(--black); }
.products-intro-text .w:hover { color: var(--grey); }
.products-intro-text em .w:hover { color: var(--black); }


/* ============ 6. CARRUSEL DE CASOS ============ */
.carousel-section { background: var(--white); padding-block: 40px 120px; overflow: hidden; }
.carousel-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gl); padding-right: var(--gr);
  padding-bottom: 60px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px;
}
.carousel-title {
  font-size: 48px; font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.05em;
  max-width: 640px;
  color: var(--black);
}
.carousel-title em { font-style: normal; color: var(--grey); }
.carousel-nav { display: flex; gap: 12px; flex-shrink: 0; }
.carousel-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(7, 7, 7, 0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  font-size: 18px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.carousel-btn:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.carousel-track-wrap { padding-left: var(--gl); position: relative; }
.carousel-track {
  display: flex; gap: 16px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  cursor: grab;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.carousel-track.dragging { cursor: grabbing; transition: none; }

.client-card {
  flex-shrink: 0;
  width: 399px;
  max-width: 100%;
  background: transparent;
  display: flex; flex-direction: column;
  color: inherit;
}
.client-card-image-wrap {
  position: relative;
  width: 100%;
  height: 479px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #F6F6F6;
}
.client-card-img {
  width: 100%; height: 100%;
  display: block;
  transition: transform 0.5s ease;
}
@media (hover: hover) { .client-card:hover .client-card-img { transform: scale(1.04); } }
.client-card.cycling .client-card-img { transform: scale(1.04); }

.client-card-info {
  padding: 18px 2px 0;
  display: flex; flex-direction: column;
  gap: 8px;
  flex: 1;
  background: transparent;
}
.client-card-name {
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--grey);
  line-height: 1.2;
  text-transform: uppercase;
}
.client-card-tagline {
  font-size: 20px; font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1.2;
}
.client-card-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.client-card-pills .pill:hover { background: var(--black); color: var(--white); border-color: var(--black); border-radius: 999px; }
.client-card-pills .pill {
  border: 0.5px solid var(--black);
  color: var(--black);
  background: transparent;
  font-size: 11px;
  height: 19px;
}

/* Tarjetas pulsables */
.client-card { position: relative; }
.client-card-open {
  position: absolute; inset: 0;
  z-index: 2;
  width: 100%; height: 100%;
  border-radius: inherit;
  background: transparent;
}
.client-card-open:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
.client-card .client-card-pills { position: relative; z-index: 3; }
.client-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.client-card-cta {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.3s ease;
}
.client-card-cta .arr { display: inline-block; transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1); }
.client-card:hover .client-card-cta, .client-card:focus-within .client-card-cta { color: var(--black); }
.client-card:hover .client-card-cta .arr, .client-card:focus-within .client-card-cta .arr { transform: translateX(5px); }

/* ============ 6b. CASO A PANTALLA COMPLETA ============
   La tarjeta se expande hasta ocupar toda la pantalla (clip-path) y el caso cabe
   en una sola vista: sector, objetivo, lo que gana el cliente y cómo lo conseguimos. */
html.case-open { overflow: hidden; scrollbar-gutter: stable; }   /* bloquea el scroll sin que la página se mueva */
.case {
  position: fixed; inset: 0;
  z-index: 150;
  background: var(--black);
  color: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(var(--ct, 40%) var(--cr, 40%) var(--cb, 40%) var(--cl, 40%) round 10px);
  transition: clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 0.8s;
}
.case.is-open {
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0 0 round 0);
  transition: clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s;
}
.case-inner {
  max-width: 1360px;
  min-height: 100%;
  margin: 0 auto;
  padding-top: calc(20px + var(--sat));
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  padding-left: var(--gl); padding-right: var(--gr);
  display: flex; flex-direction: column;
}
.case-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid var(--line-dark);
}
.case-count { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.case-count b { color: var(--white); font-weight: 500; }
.case-nav { display: flex; gap: 10px; }
.case-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid; place-items: center;
  font-size: 17px; line-height: 1;
  color: var(--white);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.case-btn:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.case-close { font-size: 24px; font-weight: 300; }
.case-close:hover { transform: rotate(90deg); }
.case-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding-top: 32px;
}
.case-text { min-width: 0; }
.case-title {
  font-size: clamp(40px, 5.4vw, 80px); font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  text-wrap: balance;
}
.case-tag {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 18px;
  text-wrap: balance;
}
.case-pills { margin-top: 18px; }
.case-lead {
  font-size: 16px; line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  max-width: 600px;
  margin-top: 18px;
}
.case-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 30px; }
.case-h {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}
.case-list { list-style: none; }
.case-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding-block: 10px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.14);
  font-size: 14px; line-height: 1.4;
  transition: color 0.3s ease;
}
.case-list li > * { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.1, 1); }
.case-list li:hover > * { transform: translateX(6px); }
.case-gains li { color: var(--white); font-weight: 500; }
.case-steps li { color: rgba(255, 255, 255, 0.75); }
.case-steps li:hover { color: var(--white); }
.case-list .k { font-size: 11px; letter-spacing: 0.06em; color: var(--grey); }
.case-gains .k {
  width: 10px; height: 12px;
  align-self: center;
  background: var(--white);
  -webkit-mask: var(--mask-iso) center / contain no-repeat;
          mask: var(--mask-iso) center / contain no-repeat;
}
.case-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 30px; }
.case-visual {
  justify-self: center;
  height: min(560px, calc(100svh - 170px));
  aspect-ratio: 399 / 479;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-2);
}
.case-visual canvas { width: 100%; height: 100%; display: block; }

.case-anim { opacity: 0; transform: translateY(24px); transition: opacity 0.25s ease, transform 0.25s ease; }
.case.is-open .case-anim {
  opacity: 1; transform: none;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1);
  transition-delay: calc(var(--d, 0) * 70ms + var(--base, 420ms));
}
.case.is-open.is-swapping .case-anim {
  opacity: 0; transform: translateY(12px);
  transition-duration: 0.18s; transition-delay: 0s;
}

@media (max-width: 1023px) {
  .case-body { grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
  .case-visual { height: auto; width: min(100%, 300px); justify-self: start; }
}
@media (max-width: 767px) {
  .case-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .case-btn { width: 40px; height: 40px; }
  .case-body { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .case, .case.is-open { transition: none; }
  .case-anim, .case.is-open .case-anim { transition: none; opacity: 1; transform: none; }
}

/* ============ 7. FOOTER ============ */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding-top: 80px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gl); padding-right: var(--gr);
}
.footer-cta-section { padding-bottom: 60px; }
.footer-cta-heading {
  font-size: 24px; font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  max-width: 800px;
  color: var(--white);
}
.footer-cta-heading em { font-style: normal; color: var(--grey); }
.footer-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.footer-mail {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.footer-mail-addr { user-select: all; -webkit-user-select: all; color: var(--white); }
.copy-btn {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 0 8px;
  height: 22px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.copy-btn:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.8); }

.footer-columns-section {
  padding-block: 60px 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}
.footer-col-group { display: flex; flex-direction: column; gap: 16px; }
.footer-col-title { font-size: 20px; font-weight: 400; letter-spacing: -0.03em; color: var(--white); }
.footer-col-links { display: flex; flex-direction: column; gap: 8px; }
.footer-col-links a {
  align-self: flex-start;
  font-size: 12px; font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color 0.2s ease, background-size 0.35s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.footer-col-links a:hover { color: var(--white); background-size: 100% 1px; }
.footer-offices { display: flex; flex-direction: column; gap: 14px; }
.footer-office {
  align-self: flex-start;
  display: flex; flex-direction: column;
  gap: 1px;
  font-size: 12px; line-height: 1.45;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer-office-city { color: var(--white); font-weight: 500; }
.footer-office:hover { color: var(--white); }
.footer-office span:last-child {
  align-self: flex-start;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.footer-office:hover span:last-child { background-size: 100% 1px; }

/* ============ PUNTERO PROPIO ============
   Punto pequeño, sin bordes, que invierte el color de lo que tiene debajo (siempre
   visible). Sobre lo que se puede tocar crece muy poco. Solo en ordenadores con ratón. */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor .cursor {
    display: block;
    position: fixed; left: 0; top: 0;
    z-index: 1000;
    pointer-events: none;
    mix-blend-mode: difference;
    will-change: transform;
  }
}
.cursor-dot {
  position: absolute; left: 0; top: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
  transform: translate(-50%, -50%) scale(calc(var(--grow, 1) * var(--press, 1)));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.1, 1), opacity 0.25s ease;
}
.cursor.is-text { --grow: 1.2; }
.cursor.is-link, .cursor.is-drag { --grow: 1.5; }
.cursor.is-down { --press: 0.8; }
.cursor.is-hidden .cursor-dot { opacity: 0; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-block: 12px;
  padding-left: var(--gl); padding-right: var(--gr);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 12px; font-weight: 400; color: var(--muted); }
.footer-logo-bg { display: block; width: 100%; margin-top: 20px; pointer-events: none; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  background: var(--white); color: var(--black);
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 5px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ RESPONSIVE: tablet ============ */
@media (max-width: 1023px) {
  :root { --px: 24px; }
  .header-tagline .ht-title { font-size: 13px; }
  .about-heading, .products-intro-text, .carousel-title { font-size: 36px; }
  /* Guía de servicios: el resumen pasa debajo del nombre y los entregables a dos columnas */
  .svc-toggle {
    grid-template-columns: 44px minmax(0, 1fr) 24px;
    grid-template-areas: "num name icon" ". sum sum";
    gap: 10px 16px;
    padding-block: 26px;
  }
  .svc-num { grid-area: num; }
  .svc-name { grid-area: name; font-size: 36px; }
  .svc-sum { grid-area: sum; max-width: 560px; }
  .svc-icon { grid-area: icon; }
  .svc-panel-body { padding-left: 60px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Sobre la parte clara, franja + fila de etiquetas forman una sola barra translúcida */
  .site-header.on-light .header-fade { height: 100%; -webkit-mask-image: none; mask-image: none; }
  .site-header.on-light .fade-light { background: rgba(var(--tint-light), 0.9); }

  .carousel-progress {
    display: block;
    position: relative;
    height: 2px;
    margin-top: 28px;
    margin-left: var(--gl); margin-right: var(--gr);
    background: rgba(7, 7, 7, 0.1);
    border-radius: 2px;
    overflow: hidden;
  }
  .carousel-progress i {
    position: absolute; inset: 0;
    background: var(--black);
    transform: scaleX(0.1);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .where-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name state" "type type" "query query";
    gap: 8px 16px;
  }
  .where-name { grid-area: name; font-size: 40px; }
  .where-type { grid-area: type; }
  .where-query { grid-area: query; }
  .where-state { grid-area: state; }
  .footer-cta-section { padding-bottom: 48px; }
  .footer-columns-section { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .carousel-header { flex-direction: column; align-items: flex-start; }
  .carousel-nav { display: none; }
  .client-card { width: 340px; }
  .client-card-image-wrap { height: 408px; }
}

/* ============ RESPONSIVE: móvil ============ */
@media (max-width: 767px) {
  :root { --px: 20px; }
  .header-inner { padding-top: calc(12px + var(--sat)); padding-bottom: 12px; gap: 10px; }
  .header-tagline { max-width: 120px; }
  .header-tagline .ht-title { font-size: 12px; line-height: 1.15; }
  .ht-long { display: none; }
  .ht-short { display: inline; }
  .header-logo { width: 84px; }
  .lang-switcher { display: none; }
  .site-header .btn-cta {
    white-space: normal;
    height: auto; min-height: 34px;
    max-width: 104px;
    padding: 6px 10px;
    font-size: 10.5px; line-height: 1.15;
    text-align: center;
  }
  .header-right { justify-self: end; }
  .btn-cta { padding: 8px 14px; font-size: 11px; height: 32px; min-width: auto; }
  .footer-cta-row .btn-cta, .case-cta-row .btn-cta { height: 44px; padding: 0 20px; font-size: 12px; }
  .copy-btn { height: 32px; padding: 0 12px; }
  .pill { font-size: 11px; height: 22px; padding: 0 9px; }
  .client-card-pills .pill { height: 22px; }
  .where-type { font-size: 12px; }
  .where-state { font-size: 11px; }
  .badge-new { font-size: 12px; }
  .footer-col-links { gap: 0; }
  .footer-col-links a { padding-block: 9px; font-size: 13px; }
  .footer-office { font-size: 13px; }
  .lang-select { width: 32px; height: 32px; font-size: 10px; }


  .where-section { padding-block: 72px; }
  .where-name { font-size: 30px; }
  .where-row.active .where-name { transform: translateX(8px); }
  .where-query { font-size: 16px; }

  .about-section { padding-block: 60px; }
  .about-inner { padding-top: 48px; }
  .about-heading, .products-intro-text, .carousel-title { font-size: 28px; letter-spacing: -0.045em; }
  .carousel-title br { display: none; }

  .products-section { padding-block: 72px; }
  .products-intro { padding-bottom: 56px; }
  .svc-toggle { grid-template-columns: 30px minmax(0, 1fr) 22px; gap: 6px 10px; padding-block: 22px; }
  .svc-name { font-size: 26px; letter-spacing: -0.045em; }
  .svc-sum { font-size: 14px; }
  .svc-toggle:hover .svc-name { transform: none; }
  .svc-panel-body { padding: 0 0 28px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-inline: -16px; }
  .svc-cell { min-height: 0; padding: 16px 16px 18px; }
  .svc-cell::after { left: 16px; right: 16px; }

  .carousel-section { padding-block: 72px; }
  .client-card { width: 85vw; }
  .client-card-image-wrap { height: calc(85vw * 1.2); }

  .site-footer { padding-top: 60px; }
  .footer-cta-section { padding-bottom: 40px; }
  .footer-columns-section { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ============ Scroll reveal ============ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .svc { transition: none; opacity: 1; transform: none; }
  .svc-panel, .svc-panel-body { transition: none; }
  .where-row.active.auto::after { animation: none; }
  .client-card-img, .carousel-track { transition: none; }
}
