/* =========================================================
   ProWideWeb 2 — la idea del reel de seanaiux, con lo nuestro
   ---------------------------------------------------------
   Una portada en claro con tipografía enorme, una cinta de capturas
   que serpentea en 3D, el muro curvo, la rejilla donde aterrizan las
   tarjetas y la esfera en la sección oscura.
   La identidad (noviembre de 2026, explicada en /marca/): la P de cinta
   métrica y el clic, el blau elèctric violeta, el groc solo en los
   botones, papel y tinta. Una sola letra, Bricolage Grotesque.
   ========================================================= */

/* ---------- Fuente: Bricolage Grotesque variable, autoalojada ----------
   Una sola familia con tres ejes: peso (200–800), ancho (75–100 %) y
   tamaño óptico, que el navegador ajusta solo según el cuerpo. Es la del
   logo. Ni Google Fonts ni CDN. Licencia: assets/fonts/OFL-Bricolage-Grotesque.txt */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url("../fonts/bricolage-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  src: url("../fonts/bricolage-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; }

/* ---------- Tema ----------
   La paleta de la marca: el blau elèctric lidera, el groc solo sale donde
   queremos que alguien haga clic, el papel deja respirar y la tinta pone el
   contraste. Los nombres de antes (--azul, --oscuro...) siguen apuntando a
   los nuevos para no reescribir toda la hoja. */
:root {
  --blau:    #4B2CF5;          /* el blau elèctric: lidera */
  --groc:    #FFD23F;          /* solo en los botones */
  --tinta-m: #0B0C12;          /* la tinta */
  --paper:   #F3F1EA;          /* el papel */
  --neo:     #A597FF;          /* el blau sobre negro, para leer (el violeta no da contraste) */
  /* Texto sobre los dos colores fuertes, y el acento cuando va sobre negro.
     Un estilo con el primario claro o el acento oscuro los cambia. */
  --sobre-blau: var(--paper);
  --sobre-groc: var(--tinta-m);
  --groc-viu:   var(--groc);
  --blau-viu:   var(--blau);   /* el primario cuando va sobre negro (si es muy oscuro, uno más claro) */

  /* Els fons: el clar i el fosc de les seccions. Les propostes de fons de color els canvien. */
  --fons-clar:  var(--paper);
  --fons-fosc:  var(--tinta-m);
  --oscuro:     var(--fons-fosc);
  --oscuro-2:   color-mix(in srgb, var(--paper) 5%, var(--fons-fosc));
  --claro-tinta:var(--paper);
  --claro-tenue:color-mix(in srgb, var(--paper) 66%, var(--tinta-m));
  --azul:       var(--neo);    /* el acento sobre oscuro */
  --azul-medio: var(--blau);   /* el acento sobre claro */
  --azul-hondo: color-mix(in srgb, var(--blau) 45%, var(--tinta-m));

  --sans: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --mono: var(--sans);         /* las etiquetas: la misma letra, estrecha */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --ancho: 1360px;
}

/* Portada y trabajos en papel, el final en oscuro. */
html[data-tema="claro"] {
  --fondo: var(--fons-clar);
  --fondo-2: color-mix(in srgb, var(--tinta-m) 6%, var(--fons-clar));
  --tinta: var(--tinta-m);
  --tenue: color-mix(in srgb, var(--tinta-m) 66%, var(--paper));
  --linea: color-mix(in srgb, var(--tinta-m) 12%, transparent);
  --acento: var(--blau);
}
/* Todo oscuro. */
html[data-tema="oscuro"] {
  --fondo: var(--oscuro);
  --fondo-2: var(--oscuro-2);
  --tinta: var(--claro-tinta);
  --tenue: var(--claro-tenue);
  --linea: color-mix(in srgb, var(--paper) 12%, transparent);
  --acento: var(--neo);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(.95rem, .9rem + .2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--groc); color: var(--tinta-m); }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--pad); }

.saltar {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  padding: .6rem 1rem; border-radius: 8px; background: var(--tinta); color: var(--fondo);
}
.saltar:focus { top: 1rem; }

/* =========================================================
   EL APILADO — lo único delicado de esta hoja
   ---------------------------------------------------------
   La escena es un único lienzo FIJO, con z-index 1. Las secciones
   NO llevan z-index ni nada que cree contexto de apilamiento propio
   (transform, opacity, filter): así su fondo se pinta por debajo del
   lienzo, y cada hijo decide si va por encima o por debajo de él.
     · título de portada .......... z 0  -> la cinta le pasa POR DELANTE
     · rejilla, textos, botones ... z 2  -> se leen y se pulsan
   Si alguien le pone transform a una sección, este reparto se rompe.
   ========================================================= */
.escena {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}
html:not(.escena-viva) .escena { display: none; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(.8rem, 2vh, 1.25rem) var(--pad);
  pointer-events: none;
}
.cabecera > * { pointer-events: auto; }
/* Fondo de la cabecera, solo de los trabajos para abajo: sin él, los
   textos que suben se cruzan con la marca. Es del color de lo que tiene
   debajo —el JS le pasa cuánto del fundido a oscuro de "Cómo trabajamos"
   hay ya detrás (--oscurece)—, así que no se ve como una franja: tapa. */
.cabecera::before {
  content: ""; position: absolute; inset: 0 0 -1.5rem; z-index: -1;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--oscuro) var(--oscurece, 0%), var(--fondo)) 60%, transparent);
  opacity: 0; transition: opacity .3s var(--ease);
  pointer-events: none;
}
.cabecera.con-fondo::before { opacity: 1; }
.cabecera.sobre-color::before { background: linear-gradient(to bottom, var(--blau) 60%, transparent); }
/* El logo: la P de cinta métrica. Tres versiones apiladas que se funden
   según lo que tenga detrás: papel, negro o el blau (Contacto y el menú). */
.marca { display: grid; }
.marca img { grid-area: 1 / 1; width: auto; height: 38px; transition: opacity .35s var(--ease); }
/* En la web va en línea (SVG) y los colores los pone el contexto: así
   cambia con la paleta. En la 404 sigue siendo una imagen. */
.logo { display: block; width: auto; height: 38px; overflow: visible; }
.logo .l-cinta { fill: none; stroke: var(--l-cinta); stroke-width: 15; }
.logo .l-marques { fill: none; stroke: var(--l-marques); stroke-width: 1.6; }
.logo .l-pestanya { fill: var(--groc); }
.logo .l-pro { fill: var(--l-pro); }
.logo .l-web { fill: var(--l-web); }
.logo path { transition: fill .35s var(--ease), stroke .35s var(--ease); }
.marca { --l-cinta: var(--blau); --l-marques: var(--paper); --l-pro: var(--tinta-m); --l-web: var(--blau); }
html[data-tema="oscuro"] .marca, .cabecera.sobre-oscuro .marca { --l-cinta: var(--blau-viu); --l-pro: var(--paper); --l-web: var(--groc-viu); }
.cabecera.sobre-color .marca, body.menu-abierto .marca, .contacto-logo { --l-cinta: var(--sobre-blau); --l-marques: var(--blau); --l-pro: var(--sobre-blau); --l-web: var(--groc-viu); }
.contacto-logo.logo { height: auto; }
.cabecera-acciones { display: none; }

/* ---------- Barra: las piezas de prowideweb.com ----------
   Allí la barra va siempre sobre negro; aquí la portada es clara, así que
   los colores salen de variables que cambian sobre lo oscuro (la sección
   "Cómo trabajamos" y lo de abajo) y con el menú abierto. */
.cabecera {
  --nav-tinta: var(--tinta); --nav-tenue: var(--tenue); --nav-acento: var(--azul-medio);
  --nav-borde: color-mix(in srgb, var(--tinta) 18%, transparent);
  --nav-borde-fuerte: color-mix(in srgb, var(--tinta) 50%, transparent);
  --nav-fondo-x: var(--fondo);
  justify-content: flex-start; gap: clamp(1rem, 2.5vw, 2rem);
}
.cabecera .marca { margin-right: auto; }
.cabecera.sobre-oscuro, .cabecera.sobre-color, body.menu-abierto .cabecera {
  --nav-tinta: var(--claro-tinta); --nav-tenue: var(--claro-tenue); --nav-acento: var(--azul);
  --nav-borde: color-mix(in srgb, var(--paper) 18%, transparent); --nav-borde-fuerte: color-mix(in srgb, var(--paper) 50%, transparent);
  --nav-fondo-x: var(--tinta-m);
}
body.menu-abierto .cabecera::before { opacity: 0; }

.email-us { font-size: .8125rem; color: var(--nav-tenue); }
.email-us a { color: var(--nav-tinta); text-decoration: underline; text-underline-offset: 3px; transition: color .25s; }
.email-us a:hover { color: var(--nav-acento); }

.lang-switch { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .8125rem; letter-spacing: .08em; }
.lang-switch a { color: var(--nav-tenue); transition: color .25s; }
.lang-switch a:hover { color: var(--nav-acento); }
.lang-switch a[aria-current="page"] { color: var(--nav-tinta); cursor: default; }
.lang-switch a + a { border-left: 1px solid var(--nav-borde); padding-left: 8px; }
.overlay .lang-switch { display: none; margin-top: 1.5rem; font-size: .9375rem; }

/* ---------- Claro / oscuro: el eclipse ----------
   Sol con rayos en claro; en oscuro la luna (un disco del color del botón)
   se le pone delante, los rayos se recogen y todo gira media vuelta. */
.cabecera { --nav-boton-fondo: var(--fondo); }
.cabecera.sobre-oscuro, body.menu-abierto .cabecera { --nav-boton-fondo: var(--tinta-m); }
.cabecera.sobre-color, body.menu-abierto .cabecera {
  --nav-boton-fondo: var(--blau); --nav-fondo-x: var(--blau); --nav-acento: var(--groc-viu);
  --nav-tinta: var(--sobre-blau); --nav-tenue: color-mix(in srgb, var(--sobre-blau) 70%, transparent);
  --nav-borde: color-mix(in srgb, var(--sobre-blau) 22%, transparent); --nav-borde-fuerte: color-mix(in srgb, var(--sobre-blau) 50%, transparent);
}
.tema-btn {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--nav-borde); background: var(--nav-boton-fondo);
  display: grid; place-items: center; color: var(--nav-tinta);
  transition: border-color .25s, background-color .5s, color .25s;
}
.tema-btn:hover { border-color: var(--nav-acento); color: var(--nav-acento); }
.astro { position: relative; width: 12px; height: 12px; display: block; transition: transform .7s var(--ease); }
.astro i { position: absolute; inset: 0; border-radius: 50%; }
.disco { background: currentColor; }
.rayos {
  transition: box-shadow .5s var(--ease);
  box-shadow: 0 -9px 0 -4px currentColor, 0 9px 0 -4px currentColor, 9px 0 0 -4px currentColor, -9px 0 0 -4px currentColor,
              6.4px 6.4px 0 -4px currentColor, -6.4px -6.4px 0 -4px currentColor, 6.4px -6.4px 0 -4px currentColor, -6.4px 6.4px 0 -4px currentColor;
}
.luna { background: var(--nav-boton-fondo); transform: translate(13px, -13px) scale(.9); transition: transform .6s var(--ease), background-color .5s; }
.tema-btn[aria-pressed="true"] .astro { transform: rotate(-180deg); }
.tema-btn[aria-pressed="true"] .rayos { box-shadow: 0 0 0 -6px currentColor, 0 0 0 -6px currentColor, 0 0 0 -6px currentColor, 0 0 0 -6px currentColor,
              0 0 0 -6px currentColor, 0 0 0 -6px currentColor, 0 0 0 -6px currentColor, 0 0 0 -6px currentColor; }
.tema-btn[aria-pressed="true"] .luna { transform: translate(4px, -4px) scale(.95); }
.tema-btn[aria-pressed="true"] .disco { box-shadow: 0 0 10px var(--nav-acento); }

/* La onda de neón que sale del botón al cambiar de tema. */
.onda-tema {
  position: fixed; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 2px solid var(--azul); box-shadow: 0 0 24px var(--azul), inset 0 0 24px var(--azul);
  pointer-events: none; z-index: 70;
}
/* El tema nuevo se abre en círculo (View Transitions); la animación la pone main.js. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* El sonar: los anillos solo emiten con el sonido activo. */
.sound-btn {
  flex: none; width: 40px; height: 40px;
  border: 2px solid var(--nav-borde); border-radius: 50%;
  display: grid; place-items: center; transition: border-color .25s;
}
.sound-btn:hover { border-color: var(--nav-acento); }
.sonar { position: relative; width: 8px; height: 8px; display: block; }
.sonar i { position: absolute; inset: 0; border-radius: 50%; background: var(--nav-tinta); transition: background-color .25s; }
.sonar::before, .sonar::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid var(--nav-acento); opacity: 0;
}
.sound-btn[aria-pressed="true"] .sonar::before { animation: sonar 2.2s ease-out infinite; }
.sound-btn[aria-pressed="true"] .sonar::after { animation: sonar 2.2s ease-out 1.1s infinite; }
.sound-btn[aria-pressed="true"] .sonar i { background: var(--nav-acento); }
.sound-btn[aria-pressed="false"] .sonar i { background: var(--nav-tenue); }
@keyframes sonar { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }

.menu-group { display: flex; align-items: center; gap: 12px; }
.menu-group b { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; color: var(--nav-tinta); }
.burger {
  flex: none; width: 44px; height: 44px; position: relative;
  border: 2px solid var(--nav-borde); border-radius: 50%;
  will-change: transform; transition: border-color .25s, background-color .25s;
}
.burger span { position: absolute; left: 11px; width: 18px; height: 2px; background: var(--nav-tinta); transition: .3s ease-in-out; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.burger.magnet { border-color: var(--nav-borde-fuerte); }
.burger[aria-expanded="true"] { background: var(--nav-tinta); border-color: var(--nav-tinta); }
.burger[aria-expanded="true"] span { background: var(--nav-fondo-x); }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(135deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-135deg); }

/* ---------- Menú: dos cortinas que caen desde arriba ---------- */
.overlay { position: fixed; inset: 0; z-index: 35; visibility: hidden; overflow: hidden; transition: visibility 0s .9s; color: var(--sobre-blau); }
.overlay.open { visibility: visible; transition-delay: 0s; }
.curtain { position: absolute; inset: 0; transform: translateY(-101%); transition: transform .55s var(--ease); }
.c1 { background: var(--groc); z-index: 1; transition-delay: .12s; }
.c2 { background: var(--blau); z-index: 2; transition-delay: 0s; }
.overlay.open .c1 { transform: translateY(0); transition-delay: 0s; }
.overlay.open .c2 { transform: translateY(0); transition-delay: .12s; }
.overlay-inner {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: clamp(2rem, 6vh, 3.5rem);
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.overlay.open .overlay-inner { opacity: 1; transform: none; transition-delay: .42s; }
.overlay-menu { text-align: center; }
.overlay-menu li + li { margin-top: .4rem; }
.overlay-menu a {
  display: inline-flex; align-items: baseline; gap: 1rem; position: relative; padding: 0 .35em;
  font-size: clamp(2rem, 6vw, 3.75rem); font-weight: 800; letter-spacing: -.02em;
}
.overlay-menu a em { font-family: var(--mono); font-style: normal; font-size: .75rem; font-weight: 400; color: var(--groc); transition: color .3s; }
.overlay-menu a::before {
  content: ""; position: absolute; left: 0; right: 0; top: .16em; bottom: .02em;
  background: var(--groc); z-index: -1; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.overlay-menu a:hover::before, .overlay-menu a:focus-visible::before { transform: scaleX(1); }
/* Al pasar por encima, el groc hace de rotulador y la letra se vuelve tinta. */
.overlay-menu a { transition: color .3s var(--ease); }
.overlay-menu a:hover, .overlay-menu a:focus-visible { color: var(--sobre-groc); }
.overlay-menu a:hover em, .overlay-menu a:focus-visible em { color: var(--blau); }
.overlay-mail a {
  font-weight: 400; font-size: 1.0625rem; color: color-mix(in srgb, var(--sobre-blau) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--sobre-blau) 25%, transparent); padding-bottom: 2px; transition: color .25s, border-color .25s;
}
.overlay-mail a:hover { color: var(--groc-viu); border-color: var(--groc-viu); }
.overlay .lang-switch a { color: color-mix(in srgb, var(--sobre-blau) 70%, transparent); }
.overlay .lang-switch a[aria-current="page"] { color: var(--sobre-blau); }
body.menu-abierto { overflow: hidden; }

/* =========================================================
   PORTADA
   ========================================================= */
.portada { position: relative; height: 280vh; }
html:not(.escena-viva) .portada { height: 100vh; height: 100svh; }
/* Por ENCIMA del lienzo (z 2): las tarjetas de la cinta pasan por detrás
   del título y de los textos, nunca los tapan. Los clics no se pierden: el
   lienzo no los recibe, y el efecto al pasar el ratón lee el puntero de la
   ventana, no del lienzo. */
.portada-fija {
  position: sticky; top: 0; z-index: 2; pointer-events: none;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
  overflow: hidden;
}
.portada-etiqueta, .seccion-etiqueta {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--tenue);
}
.portada-arriba { position: absolute; top: 19vh; left: var(--pad); z-index: 0; display: grid; gap: 1rem; }
.punto { width: 7px; height: 7px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 22%, transparent); }

/* El título va por encima de la cinta (ver .portada-fija). El halo del
   color del fondo lo despega de una tarjeta oscura que pase justo detrás. */
.portada-titulo, .portada-arriba { text-shadow: 0 0 18px var(--fondo), 0 0 3px var(--fondo); }
.portada-titulo {
  position: relative; z-index: 0;
  font-weight: 800;
  font-size: clamp(3rem, 7.6vw, 8.8rem);
  line-height: .94;
  letter-spacing: -.045em;
}
.linea { display: block; white-space: nowrap; }
.linea-1 { padding-left: 16vw; }
/* Como en el logo: lo primero en negra, lo segundo fino y de color. */
.linea-2 { padding-left: 4vw; margin-top: .1em; font-weight: 300; letter-spacing: -.035em; color: var(--acento); }
/* "a mida" va subrayado con la cinta métrica de la P, que se desenrolla
   al entrar y acaba en su pestaña amarilla. */
.cinta-mida { position: relative; display: inline-block; }
.cinta-mida::after, .cinta-mida::before { content: ""; position: absolute; }
.cinta-mida::after {
  left: .04em; right: 0; bottom: -.03em; height: .15em;
  background-color: var(--cm-cinta, var(--blau));
  background-image: repeating-linear-gradient(90deg, var(--cm-marques, var(--paper)) 0 2px, transparent 2px .5em), repeating-linear-gradient(90deg, var(--cm-marques, var(--paper)) 0 1.5px, transparent 1.5px .125em);
  background-size: 100% 70%, 100% 36%; background-repeat: no-repeat; background-position: .25em 0, .06em 0;
  transform-origin: left;
}
.cinta-mida::before { right: -.07em; bottom: -.07em; width: .07em; height: .23em; border-radius: 2px; background: var(--groc); }
.js .cinta-mida::after { transform: scaleX(0); transition: transform 1s cubic-bezier(.65, 0, .35, 1) .6s; }
.js .cinta-mida::before { transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1) 1.5s; }
.js.listo .cinta-mida::after, .js.listo .cinta-mida::before { transform: none; }

.portada-pie { font-size: .8125rem; line-height: 1.5; color: var(--tenue); }
.portada-pie--der { position: absolute; bottom: clamp(1.25rem, 5vh, 2.75rem); right: var(--pad); z-index: 0; text-align: right; }

/* Entrada: las dos líneas suben por turnos. Se dispara al cargar. */
.js .portada-titulo .linea, .js .portada-etiqueta, .js .portada-pie {
  /* ,01 y no 0: bajo la cortina de la entrada no se ve igual, pero así el navegador ya los cuenta en el
     primer pintado. A 0, el título era el LCP cuando se abría la entrada, segundos después (skill /pagespeed). */
  opacity: .01; transform: translateY(.35em);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.js.listo .portada-titulo .linea, .js.listo .portada-etiqueta, .js.listo .portada-pie { opacity: 1; transform: none; }
.js.listo .linea-2 { transition-delay: .12s; }
.js.listo .portada-pie { transition-delay: .35s; }

/* =========================================================
   TRABAJOS
   ========================================================= */
.trabajos { position: relative; padding: clamp(5rem, 14vh, 9rem) 0 clamp(5rem, 12vh, 8rem); }
.seccion-cabeza { position: relative; z-index: 2; max-width: 46rem; margin-bottom: clamp(2.5rem, 7vh, 4.5rem); }
.seccion-cabeza h2 {
  margin-top: .9rem;
  font-size: clamp(2.2rem, 5.2vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1;
}
.seccion-entrada { margin-top: 1.1rem; color: var(--tenue); max-width: 36rem; }

.rejilla {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.25rem, 2.6vw, 2.25rem) clamp(1rem, 2vw, 1.75rem);
}
.tarjeta { display: block; }
.tarjeta img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 10px;
  background: var(--fondo-2);
  box-shadow: 0 1px 0 var(--linea), 0 18px 40px -26px rgba(0, 0, 0, .55);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tarjeta:hover img { transform: translateY(-5px); box-shadow: 0 1px 0 var(--linea), 0 30px 50px -28px rgba(0, 0, 0, .6); }
/* Las capturas llevan data-src: main.js les pone el src después de pintar. Hasta entonces, ocultas
   (la caja se queda): sin src, el navegador pinta el icono de imagen rota con el alt encima. Sin
   JavaScript no lo reciben nunca, y se ve su gemela del <noscript>. */
html.js .rejilla img[data-src] { visibility: hidden; }
html:not(.js) .rejilla img[data-src] { display: none; }
.tarjeta-texto { display: flex; justify-content: space-between; gap: 1rem; margin-top: .8rem; font-size: .875rem; }
.tarjeta-texto b { font-weight: 600; }
.tarjeta-texto span { color: var(--tenue); text-align: right; }

/* Con la escena viva, las imágenes de la rejilla empiezan invisibles:
   son las tarjetas 3D las que vuelan hasta su sitio, y cuando aterrizan
   exactamente encima, la escena le pasa el relevo a la imagen de verdad.
   --relevo lo pone el JS (0 = 3D, 1 = HTML). El texto de debajo aparece
   con el relevo, para no quedarse huérfano mientras vuelan. */
html.escena-viva .tarjeta img,
html.escena-viva .tarjeta-texto { opacity: var(--relevo, 0); }
html.escena-viva .tarjeta-texto { transition: opacity .3s linear; }

/* =========================================================
   PARA QUIÉN — webs para cualquier negocio
   Ocho sectores en una rejilla con las líneas de «Qué hacemos». Arriba de
   cada ficha, las marcas de la cinta métrica de la marca, que corren al
   pasar el ratón; el nombre se ensancha, como en «Qué hacemos». Donde ya
   hay webs en línea, el mismo «En línia» de Trabajos.
   ========================================================= */
.sectors { position: relative; padding: clamp(1.5rem, 5vh, 3.5rem) 0 clamp(5rem, 12vh, 8rem); }
.sectors .seccion-cabeza { max-width: 52rem; }
.sectors .seccion-cabeza h2 { text-wrap: balance; }
.sectors-llista {
  position: relative; z-index: 2; margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--linea); border-left: 1px solid var(--linea);
}
.sector {
  position: relative; display: flex; flex-direction: column; gap: .75rem;
  min-height: 14rem; padding: 2.1rem clamp(1.1rem, 1.6vw, 1.6rem) 1.6rem;
  border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea);
}
.sector::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 9px; pointer-events: none;
  background:
    linear-gradient(90deg, var(--tenue) 1px, transparent 1px) 0 0 / 40px 9px repeat-x,
    linear-gradient(90deg, var(--tenue) 1px, transparent 1px) 0 0 / 8px 4px repeat-x;
  opacity: .4;
  transition: background-position 1.1s var(--ease), opacity .3s;
}
.sector-num { font-size: .8rem; letter-spacing: .14em; color: var(--acento); }
.sector h3 { font-size: clamp(1.5rem, 2.2vw, 2.15rem); font-weight: 800; font-stretch: 82%; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; transition: font-stretch .55s var(--ease); }
/* Las líneas de un nombre que se ensancha, fijas: las decide efectes.js (§10) con el
   nombre ya ensanchado, así que al pasar el ratón ninguna palabra salta a la de abajo.
   Vale también para «Qué hacemos» (.servei h3). */
.linia-fixa { display: block; white-space: nowrap; }
.sector p { max-width: 26rem; color: var(--tenue); font-size: .95rem; line-height: 1.5; }
.sector .sector-webs { margin-top: auto; padding-top: .4rem; color: var(--tinta); font-size: .875rem; line-height: 1.75; }
.sector-webs b {
  display: inline-block; margin-right: .35rem; padding: .2rem .55rem; border-radius: 99px;
  background: var(--groc); color: var(--tinta-m); vertical-align: .1em;
  font-size: .66rem; font-weight: 700; font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase;
}
.sector-webs a { white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, var(--acento) 50%, transparent); transition: text-decoration-color .25s; }
.sectors-peu { position: relative; z-index: 2; margin-top: clamp(1.8rem, 4vh, 2.6rem); max-width: 42rem; color: var(--tenue); }
@media (hover: hover) {
  .sector:hover h3 { font-stretch: 100%; }
  .sector:hover::before { background-position: 40px 0, 40px 0; opacity: .85; }
  .sector-webs a:hover, .sector-webs a:focus-visible { text-decoration-color: var(--acento); }
}
@media (max-width: 1100px) {
  .sectors-llista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector { min-height: 13rem; }
}
/* En el móvil, una columna: más ajustada, y el número en la esquina en vez de en una línea para él solo. */
@media (max-width: 560px) {
  .sectors-llista { grid-template-columns: 1fr; }
  .sector { min-height: 0; gap: .55rem; padding: 1.55rem 1.1rem 1.35rem; }
  .sector-num { position: absolute; top: 1.7rem; right: 1.1rem; }
  .sector h3 { padding-right: 2.5rem; }
}

/* =========================================================
   CÓMO TRABAJAMOS — siempre oscura, como en el reel
   ========================================================= */
.como {
  position: relative;
  background: var(--oscuro);
  color: var(--claro-tinta);
  padding: 30vh 0 clamp(5rem, 14vh, 9rem);
  --tenue: var(--claro-tenue);
}
/* Fundido desde el claro de los trabajos: la costura no se ve. En el
   tema oscuro el degradado va de negro a negro y no hace nada. */
.como::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24vh;
  background: linear-gradient(to bottom, var(--fondo), var(--oscuro));
}
.como-dentro { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 1.5rem; }
.como .seccion-etiqueta { color: var(--azul); }
.como .punto { background: var(--azul); }
.como-texto {
  max-width: 17em;
  font-size: clamp(1.9rem, 4.4vw, 4.1rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.08;
  text-shadow: 0 2px 30px color-mix(in srgb, var(--tinta-m) 85%, transparent);     /* se lee aunque le pase por detrás una tarjeta camino del globo */
}
.atenuado { color: var(--neo); font-weight: 300; }
/* El hueco de la esfera. No pinta nada: reserva el sitio, y la escena
   lee dónde ha quedado y dibuja ahí el globo. Sin escena no ocupa. */
.como-globo { align-self: center; width: min(100%, 24rem); aspect-ratio: 1; }
html:not(.escena-viva) .como-globo { display: none; }
.como-datos {
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.5rem 2rem;
  max-width: 54rem;
}
.como-datos li { display: grid; gap: .35rem; padding-top: 1.1rem; border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); }
.como-datos b { font-weight: 700; font-size: 1.05rem; }
.como-datos span { color: var(--claro-tenue); font-size: .9375rem; }

/* Escritorio: el texto a la izquierda y el globo a la derecha, como en el
   reel. Antes iba detrás del texto y tapaba media frase. */
@media (min-width: 1000px) {
  .como-dentro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;        /* si el globo es más alto, sobra abajo, no entre líneas */
    column-gap: clamp(2.5rem, 5vw, 6rem);
  }
  .como-dentro > * { grid-column: 1; }
  .como-globo { grid-column: 2; grid-row: 1 / span 3; width: 100%; }
  .como-texto { font-size: clamp(2rem, 3.2vw, 3.4rem); }
  .como-datos { align-self: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
}

/* =========================================================
   CONTACTO Y PIE — el final, en oscuro como el resto de la casa
   ========================================================= */
.contacto {
  position: relative;
  background: var(--blau); color: var(--sobre-blau);
  padding: clamp(5rem, 16vh, 10rem) 0;
  text-align: center;
}
.contacto .contenedor { position: relative; }
.contacto-logo { width: min(400px, 72vw); height: auto; margin: 0 auto 2.75rem; }
.contacto-titulo { font-size: clamp(3rem, 11vw, 9.5rem); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.contacto-entrada { margin: 1.4rem auto 0; max-width: 32rem; color: color-mix(in srgb, var(--sobre-blau) 82%, transparent); }
.contacto-botones { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1rem; }
.boton {
  position: relative;
  display: inline-flex; align-items: center; gap: .6rem;
  height: 58px; padding: 0 clamp(1.4rem, 3.5vw, 2.25rem);
  border-radius: 100px; font-weight: 700; font-size: .9375rem;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s;
}
.boton:active { transform: scale(.97); }
/* El groc solo sale donde queremos que alguien haga clic. */
.boton--lleno { background: var(--groc); color: var(--sobre-groc); }
.boton--lleno:hover { background: color-mix(in srgb, var(--groc) 72%, #fff); box-shadow: 0 16px 44px -16px color-mix(in srgb, var(--groc) 70%, transparent); }
.boton--hueco { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--paper) 40%, transparent); }
.boton--hueco:hover { box-shadow: inset 0 0 0 2px var(--groc-viu); color: var(--groc-viu); }

.pie { background: var(--oscuro); color: var(--claro-tenue); border-top: 1px solid color-mix(in srgb, var(--paper) 8%, transparent); font-size: .8125rem; }
.pie-dentro { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.pie a { color: var(--claro-tinta); text-decoration: underline; text-underline-offset: 3px; }

/* La demo gratis en la portada, abajo a la derecha (la cinta entra por
   la izquierda). */
.portada-demo-capa { position: sticky; top: 0; height: 0; z-index: 3; }
/* Sin escena 3D (sin WebGL o con menos movimiento) la portada mide una pantalla
   y la demo se va con ella. Pegada, seguía abajo a la derecha mientras la
   portada subía y se quedaba encima de Trabajos: quien la escondía era la escena. */
html:not(.escena-viva) .portada-demo-capa { position: absolute; inset: 0; height: auto; pointer-events: none; }
html:not(.escena-viva) .portada-demo { pointer-events: auto; }
.portada-demo {
  position: absolute; right: var(--pad); top: calc(100vh - clamp(1.5rem, 7vh, 4rem)); top: calc(100svh - clamp(1.5rem, 7vh, 4rem)); transform: translateY(-100%);
  display: grid; justify-items: end; gap: .7rem; text-align: right;
}
.boton--demo {
  background: var(--groc); color: var(--sobre-groc); height: 62px; font-size: 1.05rem;
  box-shadow: 0 0 0 1.5px var(--tinta-m), 0 18px 40px -16px color-mix(in srgb, var(--blau) 55%, transparent);
}
.boton--demo:hover { background: color-mix(in srgb, var(--groc) 72%, #fff); transform: translateY(-2px); }
/* El clic, el recurso de la marca: de vez en cuando un cursor llega al
   botón de la demo y hace clic. Solo decora (aria-hidden, sin eventos). */
.clic-recurs { position: absolute; right: -24px; bottom: -14px; width: 30px; height: auto; overflow: visible; pointer-events: none; transform-origin: 27.5% 20.4%; }
.cr-cursor { fill: var(--tinta-m); stroke: #fff; stroke-width: 5; stroke-linejoin: round; paint-order: stroke; }
.cr-rajos { fill: none; stroke: var(--blau); stroke-width: 6; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .clic-recurs { animation: recurs-mou 7s var(--ease) 4.5s infinite both; }
  .cr-rajos { transform-origin: 0 0; animation: recurs-rajos 7s ease 4.5s infinite both; }
}
@keyframes recurs-mou { 0%, 10% { transform: translate(22px, 26px); opacity: 0; } 20% { transform: none; opacity: 1; } 24% { transform: scale(.84); } 28%, 72% { transform: none; opacity: 1; } 86%, 100% { transform: translate(22px, 26px); opacity: 0; } }
@keyframes recurs-rajos { 0%, 24% { transform: scale(.3); opacity: 0; } 29%, 52% { transform: none; opacity: 1; } 64%, 100% { opacity: 0; } }
.portada-demo-nota { font-size: .9rem; color: var(--tenue); }
.portada-demo-nota b { color: var(--tinta); font-weight: 600; }
/* En los móviles estrechos (360) el texto no cabía en una línea y la flecha
   se quedaba colgando a la derecha de dos líneas. */
@media (max-width: 370px) { .boton--demo { font-size: .95rem; padding-inline: 1rem; } }

/* =========================================================
   404 — la página que sirve nginx para lo que no existe
   ========================================================= */
.no-encontrada {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.25rem;
}
.no-encontrada .marca { margin-bottom: 1.5rem; }
.no-encontrada h1 { font-size: clamp(2.4rem, 7vw, 5.5rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.no-encontrada-texto { color: var(--tenue); max-width: 30rem; }
.no-encontrada .boton { margin-top: .75rem; }

/* =========================================================
   MÓVIL
   ========================================================= */
@media (max-width: 760px) {
  .email-us, .menu-group b, .cabecera > .lang-switch { display: none; }
  .overlay .lang-switch { display: flex; }
  .cabecera { gap: .75rem; }
  .portada { height: 240vh; }
  .portada-arriba { top: 14vh; }
  /* 11vw y no más: "Diseñamos webs" en una línea no cabía en 390px y se
     cortaba por la derecha. Si aun así no cabe (pantallas de 320), parte. */
  .portada-titulo { font-size: clamp(2.3rem, 11vw, 4rem); }
  .linea { white-space: normal; }
  .linea-1 { padding-left: 0; }
  .linea-2 { padding-left: 7vw; }
  .portada-demo { left: var(--pad); right: var(--pad); justify-items: stretch; text-align: center; top: calc(100svh - 1.25rem); }
  .portada-demo-nota { background: color-mix(in srgb, var(--fondo) 85%, transparent); border-radius: 8px; padding: .3rem; }
  .boton--demo { justify-content: center; }
  .marca img, .marca .logo { height: 30px; }
  .clic-recurs { display: none; }   /* en móvil el botón ocupa todo el ancho: no hay sitio para el cursor */
  .rejilla { grid-template-columns: repeat(2, 1fr); gap: 1.25rem .85rem; }
  .tarjeta-texto { flex-direction: column; gap: .1rem; font-size: .8125rem; }
  .tarjeta-texto span { text-align: left; }
  .como { padding-top: 26vh; }
  .como-texto { max-width: none; }
}

/* =========================================================
   SIN MOVIMIENTO — todo quieto, la rejilla visible desde el principio
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .portada-titulo .linea, .js .portada-etiqueta, .js .portada-pie { opacity: 1; transform: none; transition: none; }
  .tarjeta img, .boton { transition: none; }
  .curtain, .overlay-inner { transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* =========================================================
   ENTRADA — la cinta métrica dibuja la P y el cursor le hace clic
   ---------------------------------------------------------
   Hace de pantalla de carga (unos 3 s), sobre la tinta con una
   cuadrícula de mesa de corte:
   1. La cinta se desenrolla y dibuja la P; las marcas de la regla salen
      con ella (van enmascaradas por la misma cinta).
   2. La pestaña amarilla encaja al final.
   3. Llega el cursor, hace clic y saltan las rayitas amarillas.
   4. Sale el nombre (la P se aparta para dejarle sitio) y el lema.
   5. Se va con las cortinas del menú al revés: la tinta y luego el blau.
   Solo CSS. main.js pone .cargado cuando todo está listo y el lema ha
   acabado de entrar; si el JS no llegara, sale sola a los 6,5 s. Un clic
   la salta.
   ========================================================= */
.logo-intro { position: fixed; inset: 0; z-index: 60; overflow: hidden; cursor: pointer; animation: intro-fin 0s linear 7.5s forwards; }
html.cargado .logo-intro { animation: intro-fin 0s linear 1s forwards; pointer-events: none; }
.intro-cortina, .intro-cortina-color, .intro-escena { position: absolute; inset: 0; }
.intro-cortina-color { background: var(--blau); animation: intro-sube .75s cubic-bezier(.76, 0, .24, 1) 6.62s forwards; }
.intro-cortina {
  background-color: var(--tinta-m);
  background-image: linear-gradient(color-mix(in srgb, var(--paper) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--paper) 5%, transparent) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center;
  animation: intro-sube .75s cubic-bezier(.76, 0, .24, 1) 6.5s forwards;
}
.intro-escena {
  display: grid; place-content: center; justify-items: center; gap: clamp(1.25rem, 3vh, 2rem);
  animation: intro-sube .75s cubic-bezier(.76, 0, .24, 1) 6.5s forwards;
}
html.cargado .intro-cortina, html.cargado .intro-escena { animation-delay: 0s; }
html.cargado .intro-cortina-color { animation-delay: .12s; }

/* El logo: la P mide 2em de alto y el nombre 1em de cuerpo, como en el SVG. */
.intro-logo { display: flex; align-items: center; font-size: clamp(1.75rem, 5.6vw, 5rem); color: var(--paper); }
.intro-p { flex: none; width: auto; height: 2em; overflow: visible; }
.ip-cinta { fill: none; stroke: var(--blau-viu); stroke-width: 15; stroke-dasharray: 1; animation: ip-cinta 1s cubic-bezier(.65, 0, .35, 1) .1s both; }
.ip-mascara { stroke: #fff; }
.ip-marques { fill: none; stroke: var(--paper); stroke-width: 1.6; }
.ip-pestanya { fill: var(--groc); transform-box: fill-box; transform-origin: center; animation: ip-pestanya .4s cubic-bezier(.34, 1.56, .64, 1) 1s both; }
.ip-clic { transform-origin: 0 0; animation: ip-clic-entra .45s var(--ease) 1.1s both, ip-clic-prem .2s ease-in-out 1.55s, ip-clic-surt .4s var(--ease) 2.35s forwards; }
.ip-cursor { fill: var(--paper); stroke: var(--tinta-m); stroke-width: 5; stroke-linejoin: round; paint-order: stroke; }
.ip-rajos { fill: none; stroke: var(--groc); stroke-width: 6; stroke-linecap: round; transform-origin: 0 0; animation: ip-rajos .45s var(--ease) 1.62s both; }

.intro-paraula { display: block; overflow: hidden; white-space: nowrap; max-width: 0; animation: intro-paraula .8s cubic-bezier(.65, 0, .35, 1) 1.7s forwards; }
.intro-text { display: block; font-weight: 800; line-height: 1; letter-spacing: -.018em; animation: intro-text .8s var(--ease) 1.7s both; }
.intro-text b { font-weight: 800; }
.intro-web { color: var(--groc-viu); }
.intro-lema { font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 55%, transparent); animation: intro-lema .45s var(--ease) 2.4s both; }

@keyframes ip-cinta { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ip-pestanya { from { transform: scale(0); } }
@keyframes ip-clic-entra { from { transform: translate(70px, 110px); opacity: 0; } }
@keyframes ip-clic-prem { 50% { transform: scale(.82); } }
@keyframes ip-clic-surt { to { transform: translate(30px, 50px); opacity: 0; } }
@keyframes ip-rajos { from { transform: scale(.3); opacity: 0; } }
@keyframes intro-paraula { to { max-width: 7em; margin-left: .4em; } }
@keyframes intro-text { from { transform: translateX(-1em); opacity: 0; } }
@keyframes intro-lema { from { opacity: 0; transform: translateY(8px); } }
@keyframes intro-sube { to { transform: translateY(-101%); } }
@keyframes intro-fin { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .logo-intro { display: none; } }

/* =========================================================
   QUÉ APORTAMOS — la baraja
   ---------------------------------------------------------
   La hoja inclinada con papel azul detrás, convertida en una baraja que
   se reparte con el scroll. Cada carta enseña lo que promete con su propia
   animación, que solo corre cuando la carta queda arriba (.activa). El
   estado de reposo de todo es el final: sin movimiento o sin JS se ve
   completo. Sigue la regla del apilado: la sección no lleva transform.
   ========================================================= */
.aporta { position: relative; background: var(--oscuro); color: var(--claro-tinta); --tenue: var(--claro-tenue); padding: clamp(4rem, 10vh, 7rem) 0; }
.aporta-escena { position: relative; z-index: 2; }
.aporta-dentro { display: grid; gap: clamp(2rem, 5vh, 3rem); }
.aporta .seccion-etiqueta { color: var(--azul); }
.aporta-cabeza h2 { margin-top: .9rem; font-size: clamp(2.3rem, 4.6vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.aporta-cabeza h2 span { display: block; color: var(--azul); font-weight: 300; }
.aporta-entrada { margin-top: 1.2rem; max-width: 27rem; color: var(--claro-tenue); }
.aporta-cta { margin-top: 1.8rem; }
.aporta-cuenta { display: none; }

.cartas { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.papel { display: none; }
.carta article {
  display: grid; gap: 1.1rem; height: 100%;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  background: var(--paper); color: var(--tinta-m);
  border: 1px solid var(--azul-medio);
}
.carta-cab {
  grid-column: 1 / -1; padding-bottom: .8rem; border-bottom: 1px solid var(--azul-medio);
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase; color: var(--azul-medio);
}
.carta h3 { font-size: clamp(1.7rem, 2.9vw, 2.75rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.04; color: var(--blau); }
.carta-texto > p { margin-top: .8rem; font-size: .9375rem; line-height: 1.55; color: color-mix(in srgb, var(--tinta-m) 76%, var(--paper)); }
.carta-texto ul { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid color-mix(in srgb, var(--blau) 30%, transparent); display: grid; gap: .35rem; font-size: .875rem; font-weight: 600; }
.carta-texto li { display: flex; gap: .7rem; }
.carta-texto li::before { content: "→"; color: var(--azul-medio); font-weight: 300; }

/* El dibujo de cada carta. Completo desde el primer fotograma: nada que
   parezca que carga (ni puntos de «escribiendo», ni barras grises, ni
   imágenes que se destapan tarde), en los colores de la marca y con datos
   de verdad. Cada uno es un contenedor y se recoloca según su forma: alto y
   estrecho en escritorio, bajo y ancho en el móvil (@container). */
.vis {
  position: relative; isolation: isolate; container-type: size; overflow: hidden;
  min-height: 190px; border-radius: 6px;
  background: var(--blau); color: var(--paper);
}
.vis::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(110% 75% at 100% 0%, color-mix(in srgb, var(--neo) 42%, transparent), transparent 62%); }
.vis img { display: block; }
/* Sin baraja (movimiento reducido o sin JS) el dibujo necesita un alto fijo:
   con solo min-height, Chrome mide el contenedor a 0 de alto y las unidades
   cqh se quedan en nada (el móvil de la demo desaparecía). */
.aporta:not(.viva) .vis { height: 210px; }
@media (min-width: 1000px) { .aporta:not(.viva) .vis { height: 340px; align-self: center; } }

/* 01 · Tracte: qui et contesta i quant triga */
.vis-in { height: 100%; }
.vis-equip > .vis-in { display: grid; grid-template-rows: auto 1fr auto auto auto; gap: 3.5cqh; padding: 8cqw; }
.ve-msg { align-self: center; justify-self: start; max-width: 92%; padding: .65rem .9rem; border-radius: 14px 14px 14px 4px; background: var(--paper); color: var(--tinta-m); font-size: .8125rem; line-height: 1.4; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .6); }
.ve-qui { display: flex; align-items: center; gap: .75rem; }
.ve-cares { display: flex; flex: none; }
.ve-cares img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; filter: grayscale(1) contrast(1.05); box-shadow: 0 0 0 2px var(--blau), 0 0 0 4px color-mix(in srgb, var(--paper) 80%, transparent); }
.ve-cares img + img { margin-left: -12px; }
.ve-noms { display: grid; font-size: .95rem; font-weight: 700; line-height: 1.2; }
.ve-noms small { font-size: .75rem; font-weight: 500; color: color-mix(in srgb, var(--paper) 72%, transparent); }
.ve-temps { align-self: end; display: flex; align-items: baseline; gap: .12em; font-size: min(36cqw, 25cqh); font-weight: 800; letter-spacing: -.055em; line-height: .8; }
.ve-temps span { font-size: .4em; font-weight: 700; letter-spacing: 0; color: var(--groc); }
.ve-peu { font-size: .875rem; color: color-mix(in srgb, var(--paper) 80%, transparent); }
.ve-canals { display: flex; flex-wrap: wrap; gap: .4rem; }
.ve-canals span { padding: .34rem .75rem; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); background: color-mix(in srgb, var(--paper) 12%, transparent); font-size: .75rem; font-weight: 600; }
@container (min-aspect-ratio: 6 / 5) {
  .vis-equip > .vis-in { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto auto; column-gap: 6cqw; row-gap: 2.5cqh; padding: 7cqh 6cqw; align-items: center; }
  .ve-msg { display: none; }
  .ve-temps { grid-column: 1; grid-row: 1; align-self: end; font-size: min(24cqw, 40cqh); }
  .ve-qui { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; flex-direction: column; align-items: flex-end; gap: .45rem; text-align: right; }
  .ve-peu { grid-column: 1 / -1; grid-row: 2; }
  .ve-canals { grid-column: 1 / -1; grid-row: 3; flex-wrap: nowrap; gap: .3rem; }
  .ve-canals span { padding: .25rem .55rem; font-size: .7rem; white-space: nowrap; }
}
@container (min-aspect-ratio: 6 / 5) and (max-width: 270px) { .ve-canals span:nth-child(3) { display: none; } }
/* Bajo y ancho (el móvil cuando la carta lleva mucho texto): los canales no caben
   enteros y se cortaban por abajo (iPhone a 393x780: el dibujo, 313x159; 2026-11-12).
   Fuera los canales: el texto de la carta ya dice «en persona o per videotrucada». */
@container (min-aspect-ratio: 6 / 5) and (max-height: 205px) {
  .vis-equip > .vis-in { grid-template-rows: 1fr auto; }
  .ve-canals { display: none; }
}
@container (max-aspect-ratio: 6 / 5) and (max-height: 420px) { .ve-msg { display: none; } }
@container (min-aspect-ratio: 6 / 5) and (max-height: 150px) {
  .vis-equip > .vis-in { grid-template-rows: 1fr; }
  .ve-peu, .ve-canals { display: none; }
  .ve-temps, .ve-qui { align-self: center; }
}
/* Más bajo aún (un móvil de 320 de ancho, o de 568 de alto): ni las caras caben y se
   cortaban. Solo queda el «<48 h», en medio. */
@container (min-aspect-ratio: 6 / 5) and (max-height: 112px) {
  .vis-equip > .vis-in { grid-template-columns: 1fr; }
  .ve-qui { display: none; }
  .ve-temps { justify-self: center; }
}
/* Lo mismo en un dibujo estrecho (240 de ancho, a 320): los nombres ocupan más alto. */
@container (min-aspect-ratio: 6 / 5) and (max-width: 260px) and (max-height: 135px) {
  .vis-equip > .vis-in { grid-template-columns: 1fr; }
  .ve-qui { display: none; }
  .ve-temps { justify-self: center; }
}

/* 02 · Demo: la teva web, a l'ordinador i al mòbil */
.vis-demo { background: var(--tinta-m); }
.vis-demo::before { background: radial-gradient(85% 65% at 25% 18%, color-mix(in srgb, var(--blau) 75%, transparent), transparent 68%); }
.vd-finestra { position: absolute; left: 7cqw; top: 8cqh; width: 84cqw; overflow: hidden; border-radius: 8px; background: var(--paper); rotate: -4deg; box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .75), 0 0 0 1px color-mix(in srgb, var(--paper) 16%, transparent); }
.vd-barra { display: flex; align-items: center; gap: 4px; padding: .45rem .55rem; color: color-mix(in srgb, var(--tinta-m) 72%, transparent); font-size: .625rem; font-weight: 600; white-space: nowrap; }
.vd-barra i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--tinta-m) 20%, transparent); }
.vd-barra span { min-width: 0; margin-left: .4rem; padding: .15rem .55rem; overflow: hidden; text-overflow: ellipsis; border-radius: 99px; background: color-mix(in srgb, var(--tinta-m) 7%, transparent); }
.vd-finestra img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.vd-mobil { position: absolute; right: 7cqw; bottom: 5cqh; width: 40cqw; aspect-ratio: 300 / 649; padding: 4px; border-radius: 18px; background: #0d0d10; rotate: 5deg; box-shadow: 0 30px 50px -18px rgba(0, 0, 0, .85), 0 0 0 1px color-mix(in srgb, var(--paper) 22%, transparent); }
.vd-mobil img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.vd-sello { position: absolute; left: 10cqw; bottom: 10cqh; display: grid; place-items: center; width: 24cqw; aspect-ratio: 1; border-radius: 50%; background: var(--groc); color: var(--sobre-groc); font-size: clamp(.75rem, 5.2cqw, 1.1rem); font-weight: 800; rotate: -12deg; box-shadow: 0 14px 26px -12px rgba(0, 0, 0, .7); }
@container (min-aspect-ratio: 6 / 5) {
  .vd-finestra { left: 6cqw; top: 13cqh; width: 60cqw; }
  .vd-mobil { right: 8cqw; bottom: auto; top: 7cqh; width: auto; height: 100cqh; }
  .vd-sello { left: auto; right: 30cqw; bottom: auto; top: 5cqh; width: 15cqw; font-size: clamp(.65rem, 3.2cqw, 1rem); }
}

@container (max-aspect-ratio: 6 / 5) and (max-height: 420px) { .vd-mobil { width: 30cqw; } .vd-sello { width: 20cqw; } }

/* 03 · Risc zero: 0 € fins que dius que sí */
.vis-zero > .vis-in { display: grid; place-content: center; justify-items: center; gap: 3cqh; padding: 8cqw; text-align: center; }
.vz-preu { display: flex; align-items: flex-start; font-size: min(64cqw, 38cqh); font-weight: 800; letter-spacing: -.06em; line-height: .78; }
.vz-preu span { margin: .1em 0 0 .03em; font-size: .36em; letter-spacing: 0; color: var(--groc); }
.vz-fins { font-size: .9375rem; font-weight: 600; color: color-mix(in srgb, var(--paper) 82%, transparent); }
.vz-tria { display: grid; gap: .45rem; width: min(100%, 15rem); margin-top: 2.5cqh; }
.vz-tria span { display: flex; justify-content: center; padding: .6rem 1rem; border-radius: 99px; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.vz-si { background: linear-gradient(105deg, var(--groc) 42%, color-mix(in srgb, var(--groc) 50%, #fff) 50%, var(--groc) 58%) 120% 0 / 260% 100% no-repeat, var(--groc); color: var(--sobre-groc); }
.vz-no { border: 1px solid color-mix(in srgb, var(--paper) 45%, transparent); }
.vz-sello { position: absolute; top: 7cqh; right: 6cqw; padding: .3rem .6rem; border: 2px solid currentColor; border-radius: 4px; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; rotate: 8deg; }
@container (min-aspect-ratio: 6 / 5) {
  .vis-zero > .vis-in { grid-template-columns: auto auto; justify-items: start; align-items: center; column-gap: 9cqw; row-gap: 2cqh; text-align: left; }
  .vz-preu { grid-row: 1; font-size: min(30cqw, 52cqh); }
  .vz-fins { grid-row: 2; grid-column: 1 / -1; }
  .vz-tria { grid-column: 2; grid-row: 1; width: auto; margin-top: 0; }
  .vz-sello { display: none; }
}

@container (max-height: 400px) { .vz-sello { display: none; } }

/* 04 · Suport: la web, vigilada i al dia */
.vis-suport { background: var(--tinta-m); }
.vis-suport > .vis-in { display: flex; flex-direction: column; justify-content: center; gap: 3cqh; padding: 8cqw; }
.vis-suport::before { background: radial-gradient(85% 60% at 100% 100%, color-mix(in srgb, var(--blau) 60%, transparent), transparent 70%); }
.vs-cap { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding-bottom: 2.6cqh; border-bottom: 1px solid color-mix(in srgb, var(--paper) 14%, transparent); font-size: .8125rem; font-weight: 700; }
.vs-cap b { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .65rem; border-radius: 99px; background: color-mix(in srgb, var(--groc) 15%, transparent); color: var(--groc); font-size: .6875rem; font-weight: 700; white-space: nowrap; }
.vs-cap i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vs-fila { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; font-size: .875rem; color: color-mix(in srgb, var(--paper) 68%, transparent); }
.vs-fila b { font-weight: 700; color: var(--paper); white-space: nowrap; }
.vs-fila--100 b { color: var(--neo); font-size: 1.2em; font-weight: 800; }
.vs-dies { display: grid; gap: .55rem; margin-top: 1.5cqh; font-size: .75rem; color: color-mix(in srgb, var(--paper) 60%, transparent); }
.vs-dies::after { content: ""; height: 26px; background: repeating-linear-gradient(90deg, var(--neo) 0 calc(100% / 30 - 3px), transparent 0 calc(100% / 30)); }
.vs-canvi { display: grid; justify-items: start; gap: .45rem; margin-top: auto; }
.vs-canvi span { padding: .5rem .75rem; border-radius: 12px 12px 12px 3px; background: color-mix(in srgb, var(--paper) 13%, transparent); font-size: .78rem; line-height: 1.35; }
.vs-canvi b { justify-self: end; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 99px; background: var(--groc); color: var(--sobre-groc); font-size: .75rem; font-weight: 800; }
.vs-canvi b::before { content: ""; width: .55em; height: .3em; margin-top: -.15em; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: -45deg; }
@container (max-height: 420px) { .vs-dies { display: none; } }
@container (max-height: 330px) { .vs-canvi { display: none; } .vis-suport > .vis-in { padding: 6cqh 7cqw; } }
@container (max-height: 200px) { .vs-fila:nth-of-type(4) { display: none; } }

/* ---------- Con scroll: la baraja ---------- */
.aporta.viva { height: 380vh; padding: 0; }
.aporta.viva .aporta-escena { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.aporta.viva .aporta-cuenta { display: flex; align-items: center; gap: .8rem; margin-top: 1.8rem; font-family: var(--mono); font-size: .875rem; letter-spacing: .1em; color: var(--claro-tenue); }
.aporta-cuenta b { font-weight: 400; color: var(--claro-tinta); }
.aporta-cuenta i { width: 8rem; height: 1px; background: color-mix(in srgb, var(--paper) 20%, transparent); }
.aporta-cuenta span { display: block; height: 1px; background: var(--azul); transform: scaleX(.25); transform-origin: left; }
.aporta.viva .baraja { position: relative; height: min(calc(100svh - 9rem), 600px); }
.aporta.viva .cartas { display: block; position: absolute; inset: 0; }
.aporta.viva .carta { position: absolute; inset: 0; will-change: transform; }
.aporta.viva .papel { display: block; position: absolute; inset: 0; will-change: transform; }
.papel-1 { background: var(--azul-medio); box-shadow: 0 0 70px -14px color-mix(in srgb, var(--blau) 60%, transparent); }
.papel-2 { border: 1px solid var(--azul); }
.aporta.viva .carta article { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }

@media (min-width: 1000px) {
  .aporta-dentro { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; column-gap: clamp(3rem, 6vw, 6rem); }
  .carta article { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 1.5rem; }
  .aporta.viva .carta article { grid-template-rows: auto minmax(0, 1fr); }
  .carta-texto { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; justify-content: center; }
  .carta .vis { grid-column: 2; grid-row: 2; }
}
@media (max-width: 999px) {
  .aporta.viva .aporta-dentro { height: 100%; grid-template-rows: auto minmax(0, 1fr); gap: 1.5rem; padding-top: 5.5rem; padding-bottom: 1.5rem; }
  .aporta.viva .aporta-cta, .aporta.viva .aporta-entrada { display: none; }
  .aporta.viva .aporta-cuenta { margin-top: .8rem; }
  .aporta.viva .baraja { height: auto; }
  .aporta.viva .carta article { grid-template-rows: auto minmax(0, 1fr) auto; gap: .8rem; }
  .aporta.viva .vis { min-height: 0; }
  .aporta.viva .carta-texto > p { font-size: .875rem; }
}
@media (max-height: 760px) and (max-width: 999px) { .aporta.viva .carta-texto ul { display: none; } }

/* ---------- Lo que se mueve: poco, y nunca para «cargar» ----------
   El dibujo ya está entero. Cuando la carta queda arriba (.activa), sus
   piezas se asientan —escala o desplazamiento, nunca aparecen de la nada—
   y después respiran. */
@media (prefers-reduced-motion: no-preference) {
  .activa .ve-temps, .activa .vz-preu { animation: asienta .6s var(--ease) both; }
  .activa .ve-msg { animation: flota 5s ease-in-out infinite; }
  .activa .vd-mobil { animation: sube .7s var(--ease) both, flota 5s ease-in-out .7s infinite; }
  .activa .vd-finestra img { animation: acerca 10s ease-in-out infinite alternate; }
  .activa .vd-sello, .activa .vz-sello { animation: asienta .5s var(--ease) .15s both; }
  .activa .vz-si { animation: brilla 3.4s ease-in-out .8s infinite; }
  .activa .vs-cap i { animation: late 1.8s ease-out infinite; }
  .activa .vs-canvi b { animation: asienta .5s var(--ease) .3s both; }
}
@keyframes asienta { from { scale: .86; } }
@keyframes sube { from { translate: 0 18px; } }
@keyframes flota { 50% { translate: 0 -5px; } }
@keyframes acerca { to { scale: 1.07; } }
@keyframes brilla { to { background-position: -120% 0, 0 0; } }
@keyframes late { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--groc) 60%, transparent); } to { box-shadow: 0 0 0 7px transparent; } }

/* =========================================================
   ETIQUETAS — la misma letra que todo, pero estrecha (eje de ancho)
   ========================================================= */
.lang-switch, .menu-group b, .overlay-menu a em, .portada-etiqueta, .seccion-etiqueta,
.carta-cab, .vz-sello, .aporta-cuenta, .intro-lema { font-stretch: 75%; font-weight: 650; }

/* =========================================================
   LES CINTES — dues cintes mètriques que es creuen i corren
   (efectes.js les mou; més de pressa quan baixes)
   ========================================================= */
.cintes { position: relative; display: grid; place-items: center; height: clamp(180px, 22vw, 270px); overflow: hidden; }
.cinta-m {
  position: absolute; left: -12%; right: -12%; z-index: 2;
  display: flex; align-items: center; overflow: hidden;
  height: clamp(48px, 5vw, 66px);
  background-image: repeating-linear-gradient(90deg, var(--marca-c) 0 1.5px, transparent 1.5px 12px), repeating-linear-gradient(90deg, var(--marca-c) 0 2px, transparent 2px 60px);
  background-size: 100% 20%, 100% 38%; background-repeat: no-repeat;
  box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--tinta-m) 55%, transparent);
}
.cinta-m--groc { --marca-c: color-mix(in srgb, var(--sobre-groc) 50%, transparent); background-color: var(--groc); color: var(--sobre-groc); transform: rotate(-3.5deg); }
.cinta-m--blau { --marca-c: color-mix(in srgb, var(--sobre-blau) 55%, transparent); background-color: var(--blau); color: var(--sobre-blau); transform: rotate(2.5deg); }
.cinta-pista { display: flex; flex: none; padding-top: .55em; white-space: nowrap; will-change: transform; }
.cinta-pista span { display: inline-flex; align-items: center; gap: 1.1em; padding-right: 1.1em; font-size: clamp(1.05rem, 1.9vw, 1.55rem); font-weight: 800; letter-spacing: -.005em; text-transform: uppercase; }
.cinta-sep { flex: none; width: .95em; height: .95em; overflow: visible; }
.cinta-sep path { fill: none; stroke-width: 6; stroke-linecap: round; }
.cinta-m--groc .cinta-sep path { stroke: var(--blau); }
.cinta-m--blau .cinta-sep path { stroke: var(--groc-viu); }

/* =========================================================
   QUÈ FEM — els sis fronts. Cada fila s'omple de blau en passar-hi
   i el títol s'eixampla (eix d'amplada de la lletra).
   ========================================================= */
.serveis { position: relative; padding: clamp(5rem, 14vh, 9rem) 0; }
.serveis .seccion-cabeza { max-width: 58rem; }
.serveis-llista { position: relative; z-index: 2; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linea); }
.servei {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 4rem minmax(0, 1.15fr) minmax(0, 1fr) 3rem; align-items: center; gap: .6rem 2rem;
  padding: clamp(1.3rem, 3vh, 2rem) .75rem; border-bottom: 1px solid var(--linea);
}
.servei::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blau); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.servei-num { font-size: .8rem; letter-spacing: .14em; color: var(--acento); transition: color .3s; }
.servei h3 { font-size: clamp(1.7rem, 3.5vw, 3.1rem); font-weight: 800; font-stretch: 82%; letter-spacing: -.035em; line-height: 1; transition: font-stretch .55s var(--ease), color .3s; }
.servei p { max-width: 30rem; color: var(--tenue); transition: color .3s; }
.servei-fletxa { justify-self: end; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--groc); color: var(--sobre-groc); font-weight: 700; transform: scale(0) rotate(-45deg); transition: transform .45s var(--ease); }
@media (hover: hover) {
  .servei:hover::before, .servei:focus-visible::before { transform: scaleY(1); }
  .servei:hover h3, .servei:focus-visible h3 { font-stretch: 100%; color: var(--sobre-blau); }
  .servei:hover p, .servei:hover .servei-num, .servei:focus-visible p, .servei:focus-visible .servei-num { color: color-mix(in srgb, var(--sobre-blau) 85%, transparent); }
  .servei:hover .servei-fletxa, .servei:focus-visible .servei-fletxa { transform: none; }
}

/* =========================================================
   GOOGLE — els quatre 100 de PageSpeed, en anells que s'omplen
   ========================================================= */
.google { position: relative; padding: clamp(5rem, 14vh, 9rem) 0; background: var(--oscuro); color: var(--paper); --tenue: var(--claro-tenue); }
.google::before { content: ""; position: absolute; left: 50%; top: 55%; width: min(900px, 90vw); aspect-ratio: 2; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--blau) 35%, transparent), transparent); pointer-events: none; }
.google .seccion-etiqueta { color: var(--azul); }
.google-notes { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.google-notes li { display: grid; justify-items: center; gap: .9rem; text-align: center; }
.nota { position: relative; width: min(100%, 176px); }
.anell { display: block; width: 100%; height: auto; transform: rotate(-90deg); }
.anell-fons { fill: none; stroke: color-mix(in srgb, var(--paper) 10%, transparent); stroke-width: 7; }
.anell-ple { fill: none; stroke: var(--groc); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--groc) 45%, transparent)); }
.nota b { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.google-notes li > span { font-weight: 600; color: color-mix(in srgb, var(--paper) 82%, transparent); }
.google-font { position: relative; z-index: 2; max-width: 40rem; margin: 2.8rem auto 0; text-align: center; font-size: .9rem; color: var(--claro-tenue); }
.google-font a { color: var(--groc-viu); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .js .anell-ple { stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s cubic-bezier(.3, .7, .2, 1); }
  .js .google-notes li:nth-child(2) .anell-ple { transition-delay: .12s; }
  .js .google-notes li:nth-child(3) .anell-ple { transition-delay: .24s; }
  .js .google-notes li:nth-child(4) .anell-ple { transition-delay: .36s; }
  .js .google-notes .dins .anell-ple { stroke-dashoffset: 0; }
}

/* =========================================================
   SOM DOS — l'equip. Les targetes s'inclinen cap al ratolí i la
   foto (el retall de cara de prowideweb.com) passa de gris a color.
   ========================================================= */
.equip { position: relative; padding: clamp(5rem, 14vh, 9rem) 0; }
.equip-persones { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.persona {
  --rx: 0deg; --ry: 0deg;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .35rem 1.6rem;
  padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: 16px; background: var(--fondo-2);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.persona:hover { box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--blau) 55%, transparent); }
.persona { grid-template-rows: 1fr auto auto auto auto 1fr; }
.persona-rol { grid-row: 2; } .persona h3 { grid-row: 3; } .persona-sobre { grid-row: 4; } .persona-in { grid-row: 5; }
.persona-sobre { max-width: 36ch; margin-top: .15rem; font-size: .95rem; line-height: 1.5; color: var(--tenue); }
.persona-foto { grid-row: 1 / -1; width: clamp(96px, 10vw, 132px); aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--blau); box-shadow: 0 0 0 4px var(--fondo-2), 0 0 0 6px var(--blau); }
.persona-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transform: scale(1.16); transform-origin: 50% 0; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease), transform .6s var(--ease); }
.persona:hover .persona-foto img { filter: none; transform: scale(1.22); }
.persona-rol { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--acento); }
.persona h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.persona-in { justify-self: start; margin-top: .5rem; padding-bottom: 1px; border-bottom: 2px solid var(--groc); font-weight: 700; font-size: .9rem; transition: color .25s; }
.persona-in:hover { color: var(--acento); }

/* =========================================================
   CONTACTE — taques de color que es mouen i lletres que s'encenen
   ========================================================= */
.contacto { overflow: hidden; }
.contacto .contenedor { z-index: 2; }
.contacto::before, .contacto::after { content: ""; position: absolute; z-index: 1; width: 62vmax; height: 62vmax; border-radius: 50%; filter: blur(70px); opacity: .6; pointer-events: none; }
.contacto::before { left: -20vmax; top: -24vmax; background: radial-gradient(circle, color-mix(in srgb, var(--groc) 55%, transparent), transparent 62%); }
.contacto::after { right: -22vmax; bottom: -28vmax; background: radial-gradient(circle, color-mix(in srgb, var(--neo) 75%, transparent), transparent 62%); }
@media (prefers-reduced-motion: no-preference) {
  .contacto::before { animation: taca-a 18s ease-in-out infinite alternate; }
  .contacto::after { animation: taca-b 23s ease-in-out infinite alternate; }
}
@keyframes taca-a { to { transform: translate(20vmax, 12vmax) scale(1.15); } }
@keyframes taca-b { to { transform: translate(-18vmax, -10vmax) scale(.9); } }
.lletra { --k: 0; color: var(--sobre-blau); display: inline-block; font-weight: calc(800 - 500 * var(--k)); font-stretch: calc(100% - 25% * var(--k)); color: color-mix(in srgb, var(--groc-viu) calc(var(--k) * 100%), var(--sobre-blau)); transition: font-weight .35s var(--ease), font-stretch .35s var(--ease), color .35s; }

/* =========================================================
   EL PEU — la paraula gegant, que s'eixampla quan hi arribes
   ========================================================= */
.pie { position: relative; overflow: hidden; }
.pie-marca {
  --ample: 100%;
  display: flex; justify-content: center; align-items: baseline;
  padding: clamp(3rem, 9vh, 6rem) var(--pad) clamp(1rem, 3vh, 2rem);
  font-size: clamp(3.4rem, 15.5vw, 17rem); font-weight: 800; font-stretch: var(--ample); letter-spacing: -.05em; line-height: .8;
  color: var(--paper); white-space: nowrap; user-select: none;
}
.pie-web { color: var(--groc-viu); }

/* =========================================================
   MANTENIMIENTO Y AUTOGESTIÓN — antes y después de publicar, en oscuro
   Cuatro pasos en las líneas de «Para quién», con las marcas de la cinta
   métrica arriba de cada uno.
   ========================================================= */
.autogestio { position: relative; padding: clamp(5rem, 14vh, 9rem) 0; background: var(--oscuro); color: var(--paper); --tenue: var(--claro-tenue); }
.autogestio::before { content: ""; position: absolute; left: 50%; top: 60%; width: min(1000px, 92vw); aspect-ratio: 2.4; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--blau) 30%, transparent), transparent); pointer-events: none; }
.autogestio .seccion-etiqueta { color: var(--azul); }
.autogestio .seccion-cabeza { max-width: 50rem; }
.autogestio-passos {
  position: relative; z-index: 2; margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
}
.pas { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 2.2rem clamp(1.2rem, 2.4vw, 2.4rem) 1rem; }
.pas:first-child { padding-left: 0; }
.pas + .pas { border-left: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); }
.pas::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 9px; pointer-events: none; opacity: .45;
  background:
    linear-gradient(90deg, var(--claro-tenue) 1px, transparent 1px) 0 0 / 40px 9px repeat-x,
    linear-gradient(90deg, var(--claro-tenue) 1px, transparent 1px) 0 0 / 8px 4px repeat-x;
}
.pas-quan { display: flex; align-items: center; gap: .7rem; font-size: .8125rem; font-stretch: 75%; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--azul); }
.pas-quan span { color: var(--claro-tinta); }
.pas h3 { font-size: clamp(1.4rem, 1.65vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.pas-text { max-width: 28rem; color: color-mix(in srgb, var(--paper) 78%, transparent); line-height: 1.6; }
@media (max-width: 1180px) and (min-width: 701px) {
  .autogestio-passos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pas:nth-child(3) { padding-left: 0; border-left: 0; }
  .pas:nth-child(n + 3) { border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); }
}
@media (max-width: 700px) {
  .autogestio-passos { grid-template-columns: 1fr; }
  .pas, .pas:first-child { padding: 1.9rem 0 1.4rem; }
  .pas + .pas { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); }
}

/* =========================================================
   PREGUNTAS FRECUENTES — <details>, que se abren sin JavaScript
   ========================================================= */
.faq { position: relative; padding: clamp(5rem, 14vh, 9rem) 0; }
.faq-dins { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.faq-llista { position: relative; z-index: 2; border-top: 1px solid var(--linea); }
.faq-item { border-bottom: 1px solid var(--linea); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; list-style: none; cursor: pointer;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.25;
  transition: color .25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
/* El + que gira y se vuelve azul al abrir (un aspa para cerrar). */
.faq-item summary::after {
  content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%; color: var(--tinta);
  background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat, var(--fondo-2);
  transition: transform .35s var(--ease), background-color .25s, color .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--paper); background-color: var(--blau); }
.faq-resposta { padding: 0 3.5rem 1.6rem 0; max-width: 46rem; color: var(--tenue); line-height: 1.65; }
.faq-resposta a, .faq .seccion-entrada a { color: var(--acento); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .faq-item summary:hover { color: var(--acento); } }
@media (min-width: 1000px) {
  .faq-dins { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; column-gap: clamp(3rem, 6vw, 6rem); }
  .faq .seccion-cabeza { position: sticky; top: 7rem; margin-bottom: 0; }
}
@media (max-width: 560px) { .faq-resposta { padding-right: 0; } }

/* =========================================================
   GRA — una mica de textura de pel·lícula a les seccions fosques
   ========================================================= */
.como::after, .aporta::after, .google::after, .autogestio::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   ELS TREBALLS — les que ja són en línia ho diuen
   ========================================================= */
.tarjeta { position: relative; }
[data-estado="produccion"] .tarjeta::before {
  content: "En línia"; position: absolute; top: .7rem; left: .7rem; z-index: 1;
  padding: .28rem .65rem; border-radius: 99px; background: var(--groc); color: var(--tinta-m);
  font-size: .7rem; font-weight: 700; font-stretch: 75%; letter-spacing: .1em; text-transform: uppercase; pointer-events: none;
}
[data-estado="produccion"] .tarjeta:lang(es)::before { content: "En línea"; }
html.escena-viva [data-estado="produccion"] .tarjeta::before { opacity: var(--relevo, 0); }

/* =========================================================
   TÍTOLS QUE PUGEN, PARAULES QUE S'ENCENEN, REVELAR
   ========================================================= */
.parteix-viu .pt { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.parteix-viu .pt > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.parteix-viu.dins .pt > span { transform: none; }
.encen-viu .mot { opacity: .2; transition: opacity .35s linear; }
.encen-viu .mot.on { opacity: 1; }
.revela-viu > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.revela-viu > :nth-child(2) { transition-delay: .08s; }
.revela-viu > :nth-child(3) { transition-delay: .16s; }
.revela-viu > :nth-child(4) { transition-delay: .24s; }
.revela-viu > :nth-child(5) { transition-delay: .32s; }
.revela-viu > :nth-child(6) { transition-delay: .4s; }
.revela-viu > :nth-child(7) { transition-delay: .48s; }
.revela-viu > :nth-child(8) { transition-delay: .56s; }
.revela-viu.dins > * { opacity: 1; transform: none; }

/* =========================================================
   EL CLIC DE LA MARCA: les quatre ratlletes grogues a cada clic
   ========================================================= */
.clic-esclat { position: fixed; z-index: 81; width: 46px; height: 46px; margin: -23px 0 0 -23px; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 1px color-mix(in srgb, var(--tinta-m) 55%, transparent)); animation: esclat .55s var(--ease) forwards; }
.clic-esclat path { fill: none; stroke: var(--groc); stroke-width: 3.6; stroke-linecap: round; }
@keyframes esclat { from { transform: scale(.4); opacity: 1; } 55% { opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* La cinta del scroll, al marge dret: mesura el que portes de web. */
.cinta-scroll { --p: 0; position: fixed; z-index: 30; right: 14px; top: 24vh; bottom: 24vh; width: 9px; pointer-events: none; }
.cs-cinta {
  position: absolute; inset: 0; border-radius: 1px;
  background-color: var(--blau);
  background-image: repeating-linear-gradient(to bottom, var(--paper) 0 1px, transparent 1px 7px), repeating-linear-gradient(to bottom, var(--paper) 0 1.5px, transparent 1.5px 35px);
  background-size: 40% 100%, 75% 100%; background-repeat: no-repeat;
  clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0);
}
.cs-pestanya { position: absolute; left: -3px; top: 0; width: 15px; height: 5px; margin-top: -2px; border-radius: 1.5px; background: var(--groc); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tinta-m) 30%, transparent); }
.cs-pestanya span { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: .7rem; font-weight: 700; font-stretch: 75%; letter-spacing: .08em; white-space: nowrap; color: var(--paper); transition: color .25s;
  text-shadow: 0 0 3px color-mix(in srgb, var(--tinta-m) 75%, transparent), 0 0 8px color-mix(in srgb, var(--tinta-m) 45%, transparent); }
.cs-pestanya span::after { content: attr(data-cm); }   /* el número, des d'efectes.js (data-cm) */
/* Sobre una secció clara, la tinta del tema (fosca; en el tema fosc, clara). efectes.js
   mira quina secció té al darrere, com la capçalera. El halo, del color contrari, el
   llegeix també quan hi passa per darrere una cosa d'un altre color (les cartes blanques
   de «Què t'aportem», una captura de Treballs); sobre el fons llis no es veu. */
.cinta-scroll.sobre-clar .cs-pestanya span { color: var(--tinta); text-shadow: 0 0 3px color-mix(in srgb, var(--fondo) 85%, transparent), 0 0 8px color-mix(in srgb, var(--fondo) 55%, transparent); }
.cinta-scroll { display: none; }
@media (min-width: 900px) { .cinta-scroll { display: block; } }

/* ---------- Móvil, para lo nuevo ---------- */
@media (max-width: 760px) {
  .servei { grid-template-columns: 2.6rem minmax(0, 1fr); padding: 1.2rem .25rem; }
  .servei p { grid-column: 2; }
  .servei-fletxa { display: none; }
  .servei h3 { font-stretch: 100%; }
  .google-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .equip-persones { grid-template-columns: 1fr; }
  .persona { grid-template-columns: 1fr; grid-template-rows: none; }
  .persona-foto { grid-row: auto; margin-bottom: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .servei::before, .servei h3, .servei-fletxa { transition: none; }
}

/* =========================================================
   ESTILS PER TRIAR — paletes tretes dels reels (proves)
   ---------------------------------------------------------
   ?estil=<nom> a l'adreça (main.js). Cada una canvia els cinc colors de
   la marca i, si cal, el text que va a sobre. La galeria és a /estils/.
   ========================================================= */
html[data-estil="mitjanit"] { --blau: #2B4BFF; --groc: #C6FF2E; --tinta-m: #06070B; --paper: #F1F2EE; --neo: #8FA2FF; --blau-viu: #4A66FF; }
html[data-estil="cel"]      { --blau: #1667F2; --groc: #FF2D8F; --tinta-m: #091530; --paper: #F4F8FF; --neo: #8DBBFF; --blau-viu: #3C86FF; }
html[data-estil="carmi"]    { --blau: #A30D1E; --groc: #FF4053; --tinta-m: #170507; --paper: #FBF1EC; --neo: #FF9AA6; --blau-viu: #E0283C; }
html[data-estil="lavanda"]  { --blau: #6E56F2; --groc: #33E6A6; --tinta-m: #0B0A14; --paper: #F2EFFB; --neo: #C4B6FF; --blau-viu: #8A76FF; }
html[data-estil="coral"]    { --blau: #1D3B85; --groc: #FF6B4E; --tinta-m: #0D1830; --paper: #F4ECE0; --neo: #9EB4F2; --blau-viu: #4C6FD6; }
html[data-estil="bosc"]     { --blau: #1D4A31; --groc: #8A3DFF; --tinta-m: #0C1A12; --paper: #ECE6D5; --neo: #9FD3B2; --blau-viu: #3E8A60; --sobre-groc: var(--paper); --groc-viu: #B98BFF; }
html[data-estil="orquidia"] { --blau: #4A1450; --groc: #F29BE0; --tinta-m: #1D0A1F; --paper: #F8EEF5; --neo: #F0B4E6; --blau-viu: #A247AE; }

/* El selector: només surt amb ?estil o ?estils. Neutre, per no influir. */
.triador {
  position: fixed; left: 16px; bottom: 16px; z-index: 90;
  display: flex; flex-wrap: wrap; gap: 6px; max-width: min(620px, calc(100vw - 32px));
  padding: 8px; border-radius: 18px;
  background: rgba(14, 14, 16, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  font-family: var(--sans);
}
.triador button { display: inline-flex; align-items: center; gap: .5rem; padding: .42rem .75rem .42rem .5rem; border-radius: 99px; background: rgba(255, 255, 255, .07); color: #fff; font-size: .78rem; font-weight: 600; transition: background-color .2s, color .2s; }
.triador button:hover { background: rgba(255, 255, 255, .16); }
.triador button[aria-pressed="true"] { background: #fff; color: #111; }
.triador i { display: inline-flex; }
.triador i b { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .35); }
.triador i b + b { margin-left: -4px; }
@media (max-width: 760px) { .triador { left: 8px; right: 8px; bottom: 8px; max-width: none; } .triador button { font-size: .72rem; } }

/* =========================================================
   LÍNIES — la seda de colors darrere de «Som dos» (linies.js).
   Esvaïda per dalt i per baix perquè no talli en sec; en fosc, brilla.
   ========================================================= */
.linies {
  position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}

/* =========================================================
   EL VÍDEO — l'embut cap a la videotrucada (video.js)
   ---------------------------------------------------------
   Un vídeo fet amb la web: escenes de tipografia en moviment, com una
   història d'Instagram (barres a dalt; toc a l'esquerra o a la dreta per
   canviar d'escena, al mig per aturar-lo), que acaba en la reserva d'una
   videotrucada. La pantalla és un contenidor: horitzontal a l'ordinador i
   vertical, a pantalla completa, al mòbil.
   ========================================================= */
/* L'entrada de la portada, sota la demo */
.boton-video { justify-self: end; display: inline-flex; align-items: center; gap: .6rem; padding: .25rem 0; font-size: .95rem; font-weight: 700; color: var(--tinta); }
.boton-video small { font-size: .85rem; font-weight: 500; color: var(--tenue); }
.bv-play, .vb-play { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blau); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blau) 20%, transparent); transition: transform .3s var(--ease); }
.bv-play::after, .vb-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -4px; border-left: 11px solid var(--paper); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.boton-video:hover .bv-play { transform: scale(1.1); }
@media (max-width: 760px) { .boton-video { justify-self: center; } }

/* La bombolla: per a qui ja ha baixat i no ha vist el botó */
.video-bombolla { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: .35rem; }
.video-bombolla[hidden], body.menu-abierto .video-bombolla { display: none; }
.vb-obre { display: flex; align-items: center; gap: .7rem; padding: .4rem 1.1rem .4rem .4rem; border-radius: 99px; background: var(--tinta-m); color: var(--paper); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .65), 0 0 0 1px color-mix(in srgb, var(--paper) 14%, transparent); }
.vb-play { width: 42px; height: 42px; }
.vb-play::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--groc); opacity: 0; }
.vb-text { display: grid; text-align: left; line-height: 1.2; }
.vb-text b { font-size: .875rem; font-weight: 700; }
.vb-text small { font-size: .72rem; color: color-mix(in srgb, var(--paper) 65%, transparent); }
.vb-tanca { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tinta-m); color: var(--paper); font-size: 1.05rem; line-height: 1; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); }
.vb-obre:hover .vb-play { transform: scale(1.08); }
@media (max-width: 760px) { .vb-text { display: none; } .vb-obre { padding: .35rem; } }

/* La secció del vídeo, abans del contacte: per a qui arriba al final i encara
   s'ho pensa. El cartell és l'escena 1 tal com surt al vídeo (el mateix fons,
   la mateixa lletra i les barres a dalt) i l'obre des del principi. És fill
   directe d'un [data-revela]: per això la transició du també l'opacitat. */
.video-sec { position: relative; overflow: hidden; padding: clamp(5rem, 14vh, 9rem) 0; background: var(--oscuro); color: var(--paper); --tenue: var(--claro-tenue); }
.video-sec::before { content: ""; position: absolute; left: 50%; top: 66%; width: min(1200px, 120vw); aspect-ratio: 2; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--blau) 42%, transparent), transparent); pointer-events: none; }
.video-sec .seccion-etiqueta { color: var(--azul); }
.video-sec-cartell { position: relative; z-index: 2; max-width: 1040px; margin: 0 auto; }
.video-cartell {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; container-type: size; overflow: hidden;
  border-radius: 18px; color: var(--paper); text-align: left;
  background: radial-gradient(90% 80% at 90% 0%, color-mix(in srgb, var(--neo) 45%, transparent), transparent 62%), var(--blau);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .85), 0 0 0 1px color-mix(in srgb, var(--paper) 10%, transparent);
  transition: opacity .8s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.video-cartell:hover { transform: translateY(-4px); box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--paper) 18%, transparent); }
.video-cartell:focus-visible { outline: 3px solid var(--groc); outline-offset: 6px; border-radius: 18px; }
.vc-barres { position: absolute; left: 2.4cqw; right: 2.4cqw; top: max(12px, 3.2cqh); display: flex; gap: 6px; }
.vc-barres i { flex: 1; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--paper) 32%, transparent); }
.vc-barres i:first-child { background: linear-gradient(90deg, var(--paper) 45%, color-mix(in srgb, var(--paper) 32%, transparent) 45%); }
.vc-escena { position: absolute; inset: 0; display: grid; align-content: center; justify-items: start; gap: 2.5cqh; padding: 13cqh 7cqw 16cqh; }
.vc-et { font-size: max(.75rem, 1.5cqw); font-weight: 650; font-stretch: 75%; letter-spacing: .16em; text-transform: uppercase; color: var(--groc); }
.vc-tit { max-width: 14ch; font-size: min(8.4cqw, 15cqh); font-weight: 800; letter-spacing: -.04em; line-height: .98; text-wrap: balance; }
.vc-boto { position: absolute; right: 4.5cqw; bottom: 7cqh; display: inline-flex; align-items: center; gap: .7rem; padding: .5rem 1.3rem .5rem .5rem; border-radius: 99px; background: var(--groc); color: var(--sobre-groc); font-size: 1rem; font-weight: 700; transition: transform .4s var(--ease); }
.vc-boto small { font-size: .85rem; font-weight: 500; }
.vc-play { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sobre-groc); }
.vc-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -4px; border-left: 11px solid var(--groc); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.video-cartell:hover .vc-boto { transform: scale(1.05); }
@media (max-width: 760px) {
  .video-cartell { aspect-ratio: 4 / 5; border-radius: 14px; }
  .vc-escena { padding: 12cqh 7cqw 24cqh; }
  .vc-et { font-size: .75rem; }
  .vc-tit { font-size: min(14cqw, 11cqh); }
  .vc-boto { left: 6cqw; right: 6cqw; bottom: 6cqw; justify-content: center; }
}

/* El reproductor */
.vf { width: min(94vw, 1120px, calc((100vh - 8rem) * 16 / 9)); max-width: none; max-height: none; padding: 0; border: 0; overflow: visible; background: transparent; color: var(--paper); }
.vf::backdrop { background: color-mix(in srgb, var(--tinta-m) 84%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html.vf-obert, html.vf-obert body { overflow: hidden; }
.vf-marc { display: grid; gap: .9rem; }
.vf-pantalla { position: relative; isolation: isolate; container-type: size; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: var(--tinta-m); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .85); }
@media (max-width: 760px) {
  .vf { width: 100vw; height: 100vh; height: 100dvh; margin: 0; }
  .vf-marc { height: 100%; grid-template-rows: minmax(0, 1fr) auto; gap: 0; }
  .vf-pantalla { aspect-ratio: auto; border-radius: 0; }
}

/* Les escenes: una sola visible (.activa), amb el seu fons */
.vf-escena { position: absolute; inset: 0; display: grid; align-content: center; justify-items: start; gap: 2.5cqh; padding: 13cqh 7cqw 9cqh; visibility: hidden; }
.vf-escena.activa { visibility: visible; }
.vf-fosc { background: radial-gradient(90% 80% at 85% 10%, color-mix(in srgb, var(--blau) 45%, transparent), transparent 60%), var(--tinta-m); color: var(--paper); }
.vf-blau { background: radial-gradient(90% 80% at 90% 0%, color-mix(in srgb, var(--neo) 45%, transparent), transparent 62%), var(--blau); color: var(--paper); }
.vf-paper { background: var(--paper); color: var(--tinta-m); }
.vf-dues { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; align-content: stretch; column-gap: 5cqw; }
.vf-text { display: grid; gap: 2.5cqh; justify-items: start; }
.vf-vis { justify-self: center; }
.vf-et { font-size: max(.75rem, 1.5cqw); font-weight: 650; font-stretch: 75%; letter-spacing: .16em; text-transform: uppercase; color: var(--groc); }
.vf-paper .vf-et { color: var(--blau); }
.vf-tit { max-width: 18ch; font-size: min(5.4cqw, 9.5cqh); font-weight: 800; letter-spacing: -.04em; line-height: .98; text-wrap: balance; }
.vf-tit--gegant { max-width: 14ch; font-size: min(8.4cqw, 15cqh); }
.vf-tit em { display: inline-block; font-style: normal; color: var(--groc); }
.vf-paper .vf-tit em { color: var(--blau); }
.vf-tit .p { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.vf-tit .p > span { display: inline-block; }

/* 1 · El que fan els altres, ratllat */
.vf-ratllat { display: flex; flex-wrap: wrap; gap: 1.4cqh 1.2cqw; margin-top: 2cqh; }
.vf-ratllat li { position: relative; padding: .5em 1.1em; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); font-size: max(.8rem, 1.9cqw); font-weight: 600; color: color-mix(in srgb, var(--paper) 82%, transparent); }
.vf-ratllat li::after { content: ""; position: absolute; left: .7em; right: .7em; top: 50%; height: 2px; margin-top: -1px; background: var(--groc); transform: scaleX(0); transform-origin: left; }
/* 3 · La demo */
.vf-demo { position: relative; width: 100%; margin: 0; }
.vf-navegador { overflow: hidden; border-radius: 10px; background: #fff; rotate: -2deg; box-shadow: 0 30px 60px -26px rgba(11, 12, 18, .6), 0 0 0 1px rgba(11, 12, 18, .08); }
.vf-barra { display: flex; align-items: center; gap: 5px; padding: 1.2cqh 1.2cqw; color: color-mix(in srgb, var(--tinta-m) 70%, transparent); font-size: max(.6rem, 1.1cqw); font-weight: 600; white-space: nowrap; }
.vf-barra i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--tinta-m) 18%, transparent); }
.vf-barra span { min-width: 0; margin-left: .5rem; padding: .2em .8em; overflow: hidden; text-overflow: ellipsis; border-radius: 99px; background: color-mix(in srgb, var(--tinta-m) 7%, transparent); }
.vf-navegador img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.vf-sello { position: absolute; right: -2cqw; top: -4cqh; display: grid; place-items: center; width: max(64px, 11cqw); aspect-ratio: 1; border-radius: 50%; background: var(--groc); color: var(--sobre-groc); font-size: max(.85rem, 1.9cqw); font-weight: 800; rotate: -12deg; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .55); }
/* 4 · 0 € */
.vf-zero { display: flex; align-items: flex-start; font-size: min(28cqw, 56cqh); font-weight: 800; letter-spacing: -.06em; line-height: .8; }
.vf-zero span { margin: .1em 0 0 .03em; font-size: .38em; letter-spacing: 0; color: var(--groc); }
/* 5 · Les webs, una a una */
.vf-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2cqw; width: 100%; }
.vf-mosaic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8); }
/* 6 · L'anell de PageSpeed */
.vf-anell { position: relative; width: min(30cqw, 58cqh); aspect-ratio: 1; }
.vf-anell svg { display: block; width: 100%; height: 100%; rotate: -90deg; }
.vf-anell circle { fill: none; stroke-width: 9; }
.vf-anell-fons { stroke: color-mix(in srgb, var(--blau) 14%, transparent); }
.vf-anell-ple { stroke: var(--blau); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
/* El número el posa video.js, seguint l'anell: un comptador de CSS (@property dins de
   counter()) Safari no el redibuixava i es quedava al 0. */
.vf-comptador { position: absolute; inset: 0; display: grid; place-items: center; font-size: min(10cqw, 19cqh); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--blau); }
/* 7 · Les cares */
.vf-cares { position: relative; display: flex; justify-content: center; align-items: center; padding-bottom: 4cqh; }
.vf-cares img { display: block; width: min(19cqw, 36cqh); aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; object-position: 50% 12%; filter: grayscale(1) contrast(1.05); box-shadow: 0 0 0 4px var(--blau), 0 0 0 7px var(--paper); }
.vf-cares img + img { margin-left: -2.5cqw; }
.vf-xip { position: absolute; left: 50%; bottom: 0; translate: -50% 0; padding: .6em 1.1em; border-radius: 99px; background: var(--groc); color: var(--sobre-groc); font-size: max(.75rem, 1.6cqw); font-weight: 800; white-space: nowrap; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .6); }
/* Les xarxes socials: les tres icones i, a sota, les visites a la web que pugen (sense xifres:
   és un dibuix, no un resultat). Els cors surten del final de la línia, com els «m'agrada». */
.vf-xarxes { position: relative; display: grid; justify-items: center; width: min(38cqw, 68cqh); }
.vf-xarxa-icones { position: relative; z-index: 2; display: flex; gap: 2.2cqw; margin: 0 0 -3.6cqh; padding: 0; list-style: none; }
.vf-xarxa-icones li { display: grid; place-items: center; width: min(7.4cqw, 13cqh); aspect-ratio: 1; border-radius: 28%; box-shadow: 0 1px 0 rgba(11, 12, 18, .08), 0 14px 26px -14px rgba(11, 12, 18, .55); }
.vf-xarxa-icones svg { width: 58%; height: 58%; }
.vf-ig { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.vf-ig svg { fill: none; stroke: #fff; stroke-width: 2; }
.vf-ig .vf-ig-punt { fill: #fff; stroke: none; }
.vf-fb { background: #1877F2; }
.vf-fb svg { width: 64%; height: 64%; fill: #fff; }
.vf-tt { background: #010101; }
.vf-tt svg { fill: #fff; overflow: visible; }
.vf-tt .vf-tt-c { fill: #25F4EE; translate: -.7px -.5px; }
.vf-tt .vf-tt-r { fill: #FE2C55; translate: .7px .5px; }
.vf-grafic { position: relative; width: 100%; padding: 5.2cqh 2.6cqw 2.4cqh; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 rgba(11, 12, 18, .06), 0 26px 50px -30px rgba(11, 12, 18, .45); }
.vf-grafic-cap { display: flex; justify-content: space-between; align-items: center; font-size: max(.62rem, 1.25cqw); font-weight: 650; font-stretch: 75%; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--tinta-m) 62%, transparent); }
.vf-grafic-cap b { font-size: 1.9em; line-height: 1; letter-spacing: 0; color: var(--blau); }
.vf-grafic-zona { position: relative; margin-top: 1.6cqh; background: repeating-linear-gradient(to bottom, transparent 0 calc(33.33% - 1px), color-mix(in srgb, var(--tinta-m) 8%, transparent) calc(33.33% - 1px) 33.33%); }
.vf-grafic-zona svg { display: block; width: 100%; height: auto; overflow: visible; }
.vf-grafic-linia { fill: none; stroke: var(--blau); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.vf-grafic-punt { fill: var(--blau); stroke: #fff; stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.vf-grafic-ona { fill: none; stroke: var(--blau); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.vf-cor { position: absolute; right: -1%; top: 2%; width: min(2.4cqw, 4.4cqh); opacity: 0; }
.vf-cor svg { display: block; width: 100%; fill: #FE2C55; }
.vf-cor:nth-of-type(2) { right: 7%; top: 8%; width: min(1.8cqw, 3.3cqh); }
.vf-cor:nth-of-type(3) { right: -7%; top: 12%; width: min(1.5cqw, 2.8cqh); }
/* 8 · La web, vigilada */
.vf-estat { display: grid; gap: 1.8cqh; width: 100%; }
.vf-estat li { display: flex; align-items: center; gap: 1.4cqw; padding: 2.2cqh 2.4cqw; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--paper) 14%, transparent); background: color-mix(in srgb, var(--paper) 7%, transparent); font-size: max(.85rem, 2cqw); font-weight: 700; }
.vf-estat li::before { content: ""; flex: none; width: .7em; height: .7em; border-radius: 50%; background: var(--groc); box-shadow: 0 0 0 .3em color-mix(in srgb, var(--groc) 22%, transparent); }
/* 9 · Els noms */
.vf-noms { display: flex; flex-wrap: wrap; align-content: center; gap: 1.4cqh 1.2cqw; }
.vf-noms li { padding: .5em 1em; border-radius: 99px; background: var(--blau); color: var(--paper); font-size: max(.85rem, 2.1cqw); font-weight: 700; }
.vf-noms li:nth-child(3n + 2) { background: var(--tinta-m); }
.vf-noms li:nth-child(3n) { background: var(--groc); color: var(--sobre-groc); }
/* La pantalla final: la reserva */
.vf-accions { display: flex; flex-wrap: wrap; align-items: center; gap: 2cqh 2.4cqw; margin-top: 2cqh; }
.vf-torna { padding: .3rem 0; font-weight: 700; color: var(--paper); text-decoration: underline; text-underline-offset: .25em; }

/* Vertical (mòbil): text a dalt, dibuix a sota */
@container (max-aspect-ratio: 1 / 1) {
  .vf-escena { padding: 12cqh 7cqw 6cqh; align-content: center; gap: 3cqh; }
  .vf-dues { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-content: center; row-gap: 5cqh; }
  .vf-tit { font-size: min(10cqw, 6.4cqh); }
  .vf-tit--gegant { font-size: min(14cqw, 9cqh); }
  .vf-et { font-size: .75rem; }
  .vf-ratllat li, .vf-estat li, .vf-noms li { font-size: .95rem; }
  .vf-sello { width: 72px; font-size: .9rem; right: -1cqw; top: -3cqh; }
  .vf-barra { font-size: .62rem; padding: .5rem .6rem; }
  .vf-zero { font-size: min(55cqw, 30cqh); }
  .vf-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4cqw; }
  .vf-anell { width: min(62cqw, 32cqh); }
  .vf-comptador { font-size: min(20cqw, 10cqh); }
  .vf-cares img { width: min(36cqw, 22cqh); }
  .vf-xip { font-size: .9rem; }
  .vf-estat li { padding: 1.6cqh 4cqw; gap: 3cqw; }
  .vf-noms li { font-size: 1rem; }
  .vf-xarxes { width: min(80cqw, 44cqh); }
  .vf-xarxa-icones { gap: 4cqw; margin-bottom: -2.4cqh; }
  .vf-xarxa-icones li { width: min(15cqw, 8cqh); }
  .vf-grafic { padding: 3.8cqh 5cqw 2cqh; }
  .vf-grafic-cap { font-size: .7rem; }
  .vf-cor { width: min(5cqw, 2.8cqh); } .vf-cor:nth-of-type(2) { width: min(3.8cqw, 2.1cqh); } .vf-cor:nth-of-type(3) { width: min(3.2cqw, 1.8cqh); }
}


/* El pas de reserva: què passarà, 3 preguntes d'un toc i l'enviament */
.vf-final { align-content: center; }
.vf-pas { display: grid; gap: 2.4cqh; justify-items: start; }
.vf-pas[hidden] { display: none; }
.vf-tit--final { max-width: 16ch; font-size: min(6cqw, 11cqh); }
.vf-passos, .vf-ratllat, .vf-estat, .vf-noms, .vf-barres { margin: 0; padding: 0; list-style: none; }
.vf-passos { display: flex; flex-wrap: wrap; gap: 1.2cqh 2.6cqw; }
.vf-passos li { display: flex; align-items: center; gap: .6em; font-size: max(.85rem, 1.65cqw); font-weight: 700; }
.vf-passos b { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--paper); color: var(--blau); font-size: .85em; font-weight: 800; }
.vf-nota { max-width: 54ch; font-size: max(.8rem, 1.4cqw); line-height: 1.45; color: color-mix(in srgb, var(--paper) 80%, transparent); }
.vf-pregunta { max-width: 18ch; font-size: min(5.4cqw, 10cqh); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.vf-opcions { display: flex; flex-wrap: wrap; gap: 1.4cqh 1.1cqw; max-width: 64ch; }
.vf-opcions button { padding: .8em 1.3em; border-radius: 99px; border: 1.5px solid color-mix(in srgb, var(--paper) 42%, transparent); background: color-mix(in srgb, var(--paper) 10%, transparent); color: var(--paper); font-size: max(.9rem, 1.65cqw); font-weight: 700; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.vf-opcions button:hover, .vf-opcions button:focus-visible { border-color: var(--paper); background: var(--paper); color: var(--blau); }
.vf-opcions button:active { transform: scale(.96); }
.vf-opcions button.triat { border-color: var(--groc); background: var(--groc); color: var(--sobre-groc); }
.vf-salta-q { padding: .3rem 0; font-size: .85rem; color: color-mix(in srgb, var(--paper) 70%, transparent); text-decoration: underline; text-underline-offset: .2em; }
.vf-resum { max-width: 46ch; padding: 1.6cqh 1.8cqw; border-radius: 14px 14px 14px 4px; background: color-mix(in srgb, var(--paper) 13%, transparent); font-size: max(.85rem, 1.45cqw); line-height: 1.5; white-space: pre-line; }
.vf-resum:empty, .vf.amb-cal .vf-resum { display: none; }
@container (max-aspect-ratio: 1 / 1) {
  .vf-tit--final { font-size: min(10.5cqw, 6.4cqh); }
  .vf-pregunta { font-size: min(10cqw, 6.4cqh); }
  .vf-passos { flex-direction: column; gap: 1.4cqh; }
  .vf-passos li, .vf-opcions button { font-size: .95rem; }
  .vf-opcions { gap: 1.4cqh 2.4cqw; }
  .vf-nota, .vf-resum { font-size: .875rem; }
  .vf-resum { padding: 1.4cqh 4cqw; }
}

/* Les barres de dalt, la creu i les zones de toc */
.vf-barres { position: absolute; z-index: 5; left: 2.4cqw; right: calc(2.4cqw + 52px); top: 1.6cqh; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vf-barres li { flex: 1; }
.vf-barres button { display: block; width: 100%; padding: 10px 0; }
.vf-barres i { display: block; height: 3px; overflow: hidden; border-radius: 3px; background: color-mix(in srgb, var(--paper) 32%, transparent); }
.vf-barres i::after { content: ""; display: block; height: 100%; background: var(--paper); transform: scaleX(var(--p, 0)); transform-origin: left; }
.vf-pantalla[data-to="clar"] .vf-barres i { background: color-mix(in srgb, var(--tinta-m) 16%, transparent); }
.vf-pantalla[data-to="clar"] .vf-barres i::after { background: var(--tinta-m); }
.vf-tanca { position: absolute; z-index: 6; right: 1.6cqw; top: 1cqh; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--tinta-m) 55%, transparent); color: var(--paper); font-size: 1.5rem; line-height: 1; }
.vf-toc { position: absolute; z-index: 4; top: 12cqh; bottom: 0; }
.vf-toc--enrere { left: 0; width: 28%; }
.vf-toc--pausa { left: 28%; right: 28%; }
.vf-toc--endavant { right: 0; width: 28%; }
.vf-toc:focus-visible { outline: 2px solid var(--groc); outline-offset: -6px; border-radius: 12px; }
.vf.final .vf-toc { display: none; }
/* Aturat: un play gran al mig */
.vf-toc--pausa::after { content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: color-mix(in srgb, var(--tinta-m) 60%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23F3F1EA'/%3E%3C/svg%3E") center / 36px no-repeat; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s var(--ease); pointer-events: none; }
.vf.pausat:not(.final) .vf-toc--pausa::after { opacity: 1; transform: none; }

/* La cortina entre escenes: groc i blau, com el menú */
.vf-cortina { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.vf-cortina i { position: absolute; inset: 0; transform: translateX(-101%); }
.vf-cortina i:first-child { background: var(--groc); }
.vf-cortina i:last-child { background: var(--blau); }

/* La barra de sota */
.vf-control { display: flex; align-items: center; gap: 1rem; color: var(--paper); }
.vf-play { position: relative; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--paper) 14%, transparent); }
.vf-play span::before, .vf-play span::after { content: ""; position: absolute; top: 15px; width: 4px; height: 14px; border-radius: 2px; background: var(--paper); }
.vf-play span::before { left: 16px; } .vf-play span::after { left: 24px; }
.vf.pausat .vf-play span::before { left: 18px; top: 14px; width: 0; height: 0; border-radius: 0; background: none; border-left: 12px solid var(--paper); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.vf.pausat .vf-play span::after { display: none; }
/* La música: l'altaveu amb ones quan sona, amb una creu quan està silenciada. */
.vf-so { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--paper) 14%, transparent); color: var(--paper); }
.vf-so svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vf-so .vf-so-altaveu { fill: currentColor; }
.vf-so[aria-pressed="false"] { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.vf-so[aria-pressed="false"] .vf-so-ones, .vf-so[aria-pressed="true"] .vf-so-creu { display: none; }
.vf-temps { font-size: .85rem; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.vf-salta { margin-left: auto; padding: .4rem 0; font-weight: 700; color: var(--groc); }
.vf.final .vf-salta, .vf.final .vf-play { visibility: hidden; }
.vf-play, .vf-so { flex: none; }
@media (max-width: 760px) { .vf-control { gap: .75rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--tinta-m); } }
/* Als mòbils més estrets no hi cap tot: el temps fora (les barres de dalt ja diuen per on va). */
@media (max-width: 380px) { .vf-temps { display: none; } }

/* El moviment de cada escena: corre quan l'escena és .activa, i s'atura
   amb el vídeo (.pausat). Amb moviment reduït, les escenes canvien igual,
   però sense moviment. */
@media (prefers-reduced-motion: no-preference) {
  .vb-play::before { animation: vb-pols 2.6s ease-out infinite; }
  .vf.passa .vf-cortina i { animation: vf-cortina .72s cubic-bezier(.7, 0, .3, 1) both; }
  .vf.passa .vf-cortina i:last-child { animation-delay: .06s; }
  .activa .vf-tit .p > span { animation: vf-puja .65s var(--ease) both; animation-delay: calc(var(--i) * 70ms + .15s); }
  .activa .vf-et { animation: vf-apareix .5s var(--ease) both; }
  .activa .vf-ratllat li { animation: vf-apareix .45s var(--ease) both; }
  .activa .vf-ratllat li:nth-child(1) { animation-delay: 1.3s; } .activa .vf-ratllat li:nth-child(2) { animation-delay: 1.5s; } .activa .vf-ratllat li:nth-child(3) { animation-delay: 1.7s; }
  .activa .vf-ratllat li::after { animation: vf-ratlla .35s var(--ease) both; }
  .activa .vf-ratllat li:nth-child(1)::after { animation-delay: 2.6s; } .activa .vf-ratllat li:nth-child(2)::after { animation-delay: 2.95s; } .activa .vf-ratllat li:nth-child(3)::after { animation-delay: 3.3s; }
  .activa.vf-e2 em { animation: vf-gira .9s var(--ease) 1.2s both; }
  .activa .vf-demo { animation: vf-entra .8s var(--ease) .45s both; }
  .activa .vf-sello { animation: vf-pop .55s cubic-bezier(.3, 1.6, .5, 1) 1.5s both; }
  .activa .vf-zero b { animation: vf-pop .8s cubic-bezier(.3, 1.5, .5, 1) .5s both; }
  .activa .vf-zero span { animation: vf-cau .55s var(--ease) 1.1s both; }
  .activa .vf-mosaic img { animation: vf-pop .5s var(--ease) both; }
  .activa .vf-mosaic img:nth-child(1) { animation-delay: .5s; } .activa .vf-mosaic img:nth-child(2) { animation-delay: .62s; } .activa .vf-mosaic img:nth-child(3) { animation-delay: .74s; }
  .activa .vf-mosaic img:nth-child(4) { animation-delay: .86s; } .activa .vf-mosaic img:nth-child(5) { animation-delay: .98s; } .activa .vf-mosaic img:nth-child(6) { animation-delay: 1.1s; }
  .activa .vf-anell-ple { animation: vf-omple 1.8s var(--ease) .6s both; }
  .activa .vf-cares img:first-child { animation: vf-esq .7s var(--ease) .5s both; }
  .activa .vf-cares img:nth-child(2) { animation: vf-dre .7s var(--ease) .65s both; }
  .activa .vf-xip { animation: vf-pop .5s cubic-bezier(.3, 1.6, .5, 1) 1.4s both; }
  .activa .vf-estat li { animation: vf-apareix .45s var(--ease) both; }
  .activa .vf-estat li:nth-child(1) { animation-delay: .6s; } .activa .vf-estat li:nth-child(2) { animation-delay: .85s; } .activa .vf-estat li:nth-child(3) { animation-delay: 1.1s; }
  .activa .vf-noms li { animation: vf-pop .45s var(--ease) both; }
  .activa .vf-noms li:nth-child(1) { animation-delay: .5s; } .activa .vf-noms li:nth-child(2) { animation-delay: .65s; } .activa .vf-noms li:nth-child(3) { animation-delay: .8s; }
  .activa .vf-noms li:nth-child(4) { animation-delay: .95s; } .activa .vf-noms li:nth-child(5) { animation-delay: 1.1s; } .activa .vf-noms li:nth-child(6) { animation-delay: 1.25s; }
  .activa .vf-grafic { animation: vf-entra .7s var(--ease) .3s both; }
  .activa .vf-xarxa-icones li { animation: vf-pop .5s cubic-bezier(.3, 1.6, .5, 1) both, flota 4s ease-in-out infinite; }
  .activa .vf-xarxa-icones li:nth-child(1) { animation-delay: .65s, 1.4s; } .activa .vf-xarxa-icones li:nth-child(2) { animation-delay: .8s, 1.9s; } .activa .vf-xarxa-icones li:nth-child(3) { animation-delay: .95s, 2.4s; }
  .activa .vf-grafic-linia { animation: vf-traca 1.7s cubic-bezier(.45, 0, .2, 1) 1s both; }
  .activa .vf-grafic-area { animation: vf-area 1s ease 1.9s both; }
  .activa .vf-grafic-punt { animation: vf-pop .4s cubic-bezier(.3, 1.6, .5, 1) 2.6s both; }
  .activa .vf-grafic-ona { animation: vf-ona 1.6s ease-out 2.9s infinite; }
  .activa .vf-cor { animation: vf-cor 1.8s ease-out both; }
  .activa .vf-cor:nth-of-type(1) { animation-delay: 2.9s; } .activa .vf-cor:nth-of-type(2) { animation-delay: 3.3s; } .activa .vf-cor:nth-of-type(3) { animation-delay: 3.7s; }
  .vf-final .vf-pas > * { animation: vf-apareix .45s var(--ease) both; }
  .vf-final .vf-pas > :nth-child(2) { animation-delay: .06s; } .vf-final .vf-pas > :nth-child(3) { animation-delay: .12s; }
  .vf-final .vf-pas > :nth-child(4) { animation-delay: .18s; } .vf-final .vf-pas > :nth-child(5) { animation-delay: .24s; }
  .vf-final .vf-pas[data-pas="0"] > :nth-child(3) { animation-delay: .7s; } .vf-final .vf-pas[data-pas="0"] > :nth-child(4) { animation-delay: .85s; } .vf-final .vf-pas[data-pas="0"] > :nth-child(5) { animation-delay: 1s; }
  .vf.pausat .vf-escena, .vf.pausat .vf-escena *, .vf.pausat .vf-escena *::after { animation-play-state: paused !important; }
}
@keyframes vb-pols { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes vf-cortina { 0% { transform: translateX(-101%); } 45%, 55% { transform: none; } 100% { transform: translateX(101%); } }
@keyframes vf-puja { from { transform: translateY(110%); } }
@keyframes vf-apareix { from { opacity: 0; translate: 0 18px; } }
@keyframes vf-ratlla { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes vf-gira { from { transform: rotate(180deg); } }
@keyframes vf-entra { from { opacity: 0; translate: 0 22%; } }
@keyframes vf-pop { from { opacity: 0; scale: .5; } }
@keyframes vf-cau { from { opacity: 0; translate: 0 -60%; } }
@keyframes vf-omple { from { stroke-dashoffset: 100; } }
@keyframes vf-esq { from { opacity: 0; translate: -45% 0; } }
@keyframes vf-dre { from { opacity: 0; translate: 45% 0; } }
@keyframes vf-traca { from { stroke-dashoffset: 1; } }
@keyframes vf-area { from { opacity: 0; } }
@keyframes vf-ona { from { opacity: .7; scale: 1; } to { opacity: 0; scale: 3.2; } }
@keyframes vf-cor { 0% { opacity: 0; translate: 0 0; scale: .6; } 20% { opacity: 1; scale: 1; } 100% { opacity: 0; translate: -.6em -2.6em; } }
@media (prefers-reduced-motion: reduce) { .vf-ratllat li::after { transform: none; } }
