/* Tipografia corporativa Lexend (recurso oficial del cliente, licencia OFL en /fonts) */
@font-face {
  font-family: "Lexend";
  src: url("/fonts/Lexend-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --amarillo: #FFE533; /* amarillo oficial del guidelines (#ffe533, R255 G229 B51) */
  --negro: #000000; /* negro oficial del guidelines */
  --gris: #d9d9d9;
  --gris-claro: #ebebeb;
  --font: "Lexend", Tahoma, "Segoe UI", system-ui, sans-serif;
}

* { cursor: none !important; margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: #fff;
  color: var(--negro);
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

/* ---------- cursor custom ---------- */
#cursor {
  position: fixed;
  width: 32px;
  height: 35px;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
#cursor img { width: 100%; height: 100%; display: block; }
/* en pantallas tactiles no hay raton: el follower no debe verse nunca */
@media (hover: none) and (pointer: coarse) {
  #cursor { display: none; }
}
/* dentro del embed de Spotify los eventos los captura el iframe (cross-origin):
   el follower se esconde y gobierna el cursor nativo; al salir se restaura */
#cursor.hidden { opacity: 0; }

/* ---------- intro (logo animado del cliente sobre fondo blanco) ---------- */
/* El blanco es SOLO el fondo de la capa; el logo animado es transparente, asi
   que al encoger y fundirse no arrastra un recuadro blanco por encima del hero. */
#intro {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#intro img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#intro.settle { pointer-events: none; }

/* ---------- nav ---------- */
/* la topbar se queda arriba del documento y se va con el scroll (r6) */
#nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: color 0.3s ease, background 0.3s ease;
  /* la franja vacia del nav no debe bloquear el contenido de debajo */
  pointer-events: none;
}
#nav a,
#nav button {
  pointer-events: auto;
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.4rem 2.5rem;
}
.nav-spacer { justify-self: start; }
/* Logotipo oficial (guidelines): oficial sobre fondos claros, blanco sobre hero/video */
.logo {
  display: inline-flex;
  text-decoration: none;
  justify-self: center;
  z-index: 1;
}
.logo img { height: 5.5rem; width: auto; display: block; } /* logo mas grande (feedback r5) */
.logo img.blanco { display: none; }
#nav.on-hero .logo img.oficial { display: none; }
#nav.on-hero .logo img.blanco { display: block; }
/* r8: menu desplazado a la izquierda para dejar sitio al logo de theGarage */
.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 3.5rem;
  margin-right: 4.5rem; /* hueco del burger */
}
.nav-links {
  display: flex;
  gap: 4.5rem;
}
.tg-link { display: inline-flex; transition: opacity 0.2s; }
.tg-link:hover { opacity: 0.7; }
.tg-link img { height: 1.9rem; width: auto; display: block; }
#nav:not(.on-hero) .tg-link { visibility: hidden; }
#menu-overlay .tg-link img { height: 2.2rem; }
@media (max-width: 1200px) {
  .nav-right { gap: 2.2rem; }
  .nav-links { gap: 2.2rem; }
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.7; }

.burger {
  position: absolute;
  top: 1.35rem;
  right: 2.5rem;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  z-index: 110;
}
.burger span {
  width: 30px;
  height: 3px;
  background: var(--negro);
  border-radius: 2px;
  display: block;
}
#nav.on-hero .burger span { background: #fff; }
#nav.on-hero .nav-links a { color: #fff; }
#nav:not(.on-hero) .nav-links { visibility: hidden; }
/* fuera del hero (p.ej. en el case) la barra va sobre blanco */
#nav:not(.on-hero) { background: #fff; }

/* ---------- menu overlay ---------- */
#menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--negro);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#menu-overlay.open { opacity: 1; pointer-events: auto; }
#menu-overlay { flex-direction: column; gap: 3.5rem; }

/* ---------- selector de idioma (ES / EN / PT) ---------- */
.lang-switch {
  display: flex;
  gap: 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.lang-switch a { color: inherit; text-decoration: none; opacity: 0.5; transition: opacity 0.2s; }
.lang-switch a:hover, .lang-switch a[aria-current] { opacity: 1; }
.lang-switch a[aria-current] { text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 2px; }
#nav .lang-switch { justify-self: start; color: var(--negro); }
#nav.on-hero .lang-switch { color: #fff; }
#menu-overlay .lang-switch { color: #fff; font-size: 1.15rem; gap: 1.6rem; }
#menu-overlay nav { display: flex; flex-direction: column; gap: 2.5rem; text-align: center; }
#menu-overlay nav a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  transition: color 0.2s;
}
#menu-overlay nav a:hover { color: var(--amarillo); }
#menu-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font);
}

/* ---------- hero ---------- */
#hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* viewport real en movil (sin contar la barra del navegador) */
  overflow: hidden;
  padding: 0;
}
#hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 20, 0.25);
}
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  font-weight: 600;
}
.scroll-cue i {
  display: block;
  width: 2px;
  height: 56px;
  background: #fff;
  margin: 0.7rem auto 0;
  transform-origin: top;
  animation: cue 1.6s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); transform-origin: top; }
  46% { transform-origin: bottom; }
  90%, 100% { transform: scaleY(0); transform-origin: bottom; }
}

/* widget spotify (embed oficial) */
/* widget spotify (ronda 5): compacto, fijo abajo-derecha, se funde al hacer
   scroll (clase .spotify-hidden que gobierna app.js). El gate de CL-190 sigue
   siendo un overlay hijo y se mueve con el widget */
#spotify {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#spotify iframe { display: block; max-width: calc(100vw - 2.4rem); }
#spotify.spotify-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
/* gate transparente sobre el embed: hace que la zona sea "nuestra" y el cursor
   custom funcione encima de la playlist. En tactil sobra (y estorbaria) */
#spotify-gate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  z-index: 1;
}
@media (hover: none) {
  #spotify-gate { display: none; }
}
#spotify-gate[hidden] { display: none; } /* blindar hidden contra display de autor */

/* ---------- secciones base ---------- */
section { padding: 7rem 4rem; }
.label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 3.5rem 0 1rem;
}
.hl {
  /* subrayado (r8): banda amarilla RECTA y centrada detras de la palabra, como
     las imagenes de referencia del cliente (texto-1/2-web.png). Sustituye al
     trazo organico SVG de r5, que no quedaba recto ni centrado */
  background: linear-gradient(var(--amarillo), var(--amarillo)) no-repeat 0 72% / 100% 0.86em;
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- proyectos ---------- */
#proyectos { padding-bottom: 5rem; }
/* titulo PROYECTOS: recurso grafico del cliente (texto sobre garabato amarillo) */
.sec-title-img {
  width: min(430px, 72vw); /* mas pequeno (feedback r5) */
  margin: 0 auto;
}
.sec-title-img img { width: 100%; height: auto; display: block; }
/* EN/PT (r8): imagen propia del cliente con otro encuadre (1368x390 vs
   1920x470); ancho ajustado para que las letras midan lo mismo que en ES */
.sec-title-en, .sec-title-pt { width: min(361px, 60.5vw); }
.grid {
  display: grid;
  /* distribucion horizontal: 4 vinilos en una fila (feedback r5);
     en movil, 2x2 mas compacto (media query de abajo) */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3.5rem 1.8rem;
  max-width: 1500px;
  margin: 4.5rem auto 0;
}
.vinyl-card {
  position: relative;
  text-align: center;
  padding: 0.35rem;
}
.vinyl-video {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
.vinyl-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Caratula real del cliente: el giro en hover lo gobierna app.js con WAAPI
   (rota mientras el cursor esta encima y retrocede a la pose original al salir).
   El 104% recorta la linea fina que los covers del cliente traen en su borde
   inferior y que se asomaba por abajo del recorte circular (ronda 5). */
.vinyl-img {
  width: 104%;
  height: 104%;
  object-fit: cover;
  display: block;
}
.vinyl-video .brand {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.4vw, 1.3rem);
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.vinyl-video .dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.35);
}
.vinyl-card figcaption {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

/* ---------- case study ---------- */
#case { padding: 9.5rem 4rem 5rem; /* > alto del nav fijo (~133px) */ min-height: 100vh; position: relative; }
.case-head {
  display: flex;
  align-items: center;
  margin: 0 auto 3rem;
  max-width: 1100px; /* alineado con el bloque del case (r8) */
}
#case-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--negro);
  transition: color 0.2s;
}
#case-back svg { width: 26px; height: 26px; }
#case-back:hover { color: #666; }
.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  /* desktop: textos + apertura arriba; el video case ocupa toda la fila,
     centrado en la pagina (ronda 5). El orden DOM (apertura, textos, video)
     es el pedido por el cliente para movil */
  grid-template-areas:
    "info visual"
    "media media";
  gap: 3rem 4rem;
  /* r8: textos y apertura centrados entre si y el bloque centrado en la pagina
     con el ancho del video (antes texto a la izquierda, apertura a la derecha
     y mucho blanco en medio y hasta el video) */
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.case-info { grid-area: info; }
.cs-media { grid-area: media; }
.cs-visual { grid-area: visual; }
#cs-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.02;
}
#cs-client {
  color: #9a9a9a;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}
#cs-service {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 2.2rem 0 0.8rem;
}
#cs-text {
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 58ch;
  font-weight: 500;
  white-space: pre-line; /* la copy del cliente trae parrafos separados por saltos */
}
.cs-media {
  margin: 1rem auto 0;
  /* pieza 16:9 del cliente (1920x1080): mas grande y centrada, SIN recorte del
     video (contain) para que no se corte el texto (peticion ronda 5) */
  max-width: min(100%, 1100px);
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #000;
}
.cs-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* reproduccion al clicar con sonido (ronda 5). r8: el boton va en la esquina
   (en el centro tapaba el logo de la portada) y solo se ve en pausa */
.cs-play {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s, opacity 0.25s;
}
.cs-play svg { width: 26px; height: 26px; margin-left: 4px; }
.cs-play .ico-pause { margin-left: 0; }
.cs-play:hover { background: var(--amarillo); color: var(--negro); border-color: transparent; transform: scale(1.06); }
.cs-play .ico-pause { display: none; }
/* r8: mientras suena el video NO hay icono encima. Se pausa clicando/tocando el
   video y entonces vuelve el play. Con teclado el boton reaparece al enfocarlo */
#case.media-playing .cs-play { opacity: 0; pointer-events: none; }
#case.media-playing .cs-play:focus-visible { opacity: 1; pointer-events: auto; }
#case.media-playing .cs-play .ico-play { display: none; }
#case.media-playing .cs-play .ico-pause { display: block; }
/* Visual del case: el GIF de apertura del cliente convertido a MP4 (funda +
   disco con el clip dentro, rasterizado sobre blanco). Reproduce una vez al
   abrir el case y queda en el frame final (lo gobierna app.js en fillCase). */
.cs-visual { margin-top: 0.5rem; }
#cs-opening {
  width: 100%;
  max-width: 600px; /* feedback operador */
  height: auto;
  display: block;
  margin: 0 auto;
  /* r8: algunos navegadores pintan una linea fina en el borde inferior del
     frame (alto 750px no multiplo de 16 al escalar); el borde es blanco, se recorta */
  clip-path: inset(0 0 3px 0);
}

/* transicion grid -> case: crossfade directo (el fade lo maneja app.js con animate) */

/* ---------- servicios ---------- */
#servicios { padding-top: 4.5rem; } /* menos aire superior, feedback ronda 3 */
/* el titulo movil solo existe por debajo de 900px (media query de abajo);
   sin este default se pintaba en desktop debajo del titulo bueno */
.svc-title-mobile { display: none; }
#servicios h2 {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 700; /* Bold, no ExtraBold (feedback r5) */
  line-height: 1.08;
  max-width: 900px;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}
.svc {
  position: relative;
  aspect-ratio: 16 / 10.5;
  /* el cartel escala con el ancho de la TARJETA, no de la ventana: con 3
     columnas en tablets/Surface (900-1500px) el texto con vw no cabia (r6) */
  container-type: inline-size;
}
.svc video, .svc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* clip para la banda del hover sin comerse la placa gris del ::before */
.svc-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.svc span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  letter-spacing: 0.06em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
  transition: opacity 0.25s ease;
}
/* texto del servicio. Hover elegido por el cliente (r5): "poster" (la opcion 3
   de la demo r4), barrido amarillo a pantalla completa ahora al 75% de opacidad
   para que la foto respire debajo, y SIN la placa gris de sombra (fuera el
   ::before anterior). Solo con :hover real; en tactil el texto se ve fijo.
   El texto vive en el DOM para lectores.
   Ronda 5: cuando aparece la descripcion, la etiqueta se recoloca ARRIBA de
   ella (no se oculta). El cartel reserva sitio arriba con el padding. */
.svc .svc-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5cqi;
  padding: 5cqi 6cqi;
  text-align: center;
  /* amarillo de marca al 75% (feedback r5) */
  background: rgba(255, 229, 51, 0.75);
  color: var(--negro);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.4s cubic-bezier(0.65, 0, 0.25, 1);
}
/* r6: el titulo del servicio va en el cartel, mismo color que el texto y
   justo encima de el (la etiqueta blanca se apaga) */
.svc-text-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(0.8rem, 4.6cqi, 1.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* r8: nunca extra bold. Titular bold (700), texto medium (500) */
.svc-text p {
  margin: 0;
  font-weight: 500;
  font-size: clamp(0.75rem, 4.4cqi, 1.45rem);
  line-height: 1.3;
}
.svc-text p strong { font-weight: 700; }
/* raton: hover o foco de teclado. Tactil: tap (clase .open de app.js) */
@media (hover: hover) {
  .svc-has-text:hover .svc-text,
  .svc-has-text:focus-visible .svc-text { clip-path: inset(0 0 0 0); }
  .svc-has-text:hover span,
  .svc-has-text:focus-visible span { opacity: 0; }
}
.svc-has-text.open .svc-text { clip-path: inset(0 0 0 0); }
.svc-has-text.open span { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .svc-text, .svc span { transition: none; }
}

/* ---------- equipo ---------- */
#equipo { padding-top: 4.5rem; } /* menos hueco blanco antes del WOW MUST GO ON */
#equipo h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; /* Bold, no ExtraBold (feedback r5) */
  text-align: right;
}
.team-row { position: relative; }
#team-track {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
#team-track::-webkit-scrollbar { display: none; }
.member {
  flex: 0 0 24vw;
  aspect-ratio: 3 / 3.6;
  display: flex;
  flex-direction: column;
  background: var(--amarillo);
}
.member img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  display: block;
}
/* banda amarilla con nombre y cargo, como el ejemplo de visualizacion del cliente */
.member-meta {
  background: var(--amarillo);
  color: var(--negro);
  text-align: center;
  padding: 0.55rem 0.5rem 0.7rem;
  line-height: 1.25;
}
.member-meta strong {
  display: block;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.1vw, 1.05rem);
}
.member-meta span {
  font-size: clamp(0.68rem, 0.9vw, 0.85rem);
}
#team-next,
#team-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#team-next { right: 2rem; }
#team-prev { left: 2rem; }
#team-next:hover,
#team-prev:hover { background: rgba(0,0,0,0.5); }
#team-next svg,
#team-prev svg { width: 30px; height: 30px; }

/* ---------- footer ---------- */
footer {
  background: var(--amarillo);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 4rem;
  font-weight: 700;
}
/* Logotipo negativo (recurso blanco) sobre el footer amarillo, segun guidelines */
.f-logo { height: 5.5rem; width: auto; display: block; } /* mismo tamano que el nav (ronda 5) */
.f-mail { display: flex; align-items: center; gap: 1.2rem; }
.f-mail a { color: var(--negro); text-decoration: none; font-size: 1.05rem; }
.f-mail a:hover { text-decoration: underline; }
.ico { width: 22px; height: 22px; }
.f-mail a.f-social { display: flex; } /* iconos de redes enlazados (r6) */
.f-mail a.f-social:hover { opacity: 0.6; text-decoration: none; }
.f-addr { text-align: right; font-size: 0.92rem; line-height: 1.35; }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(34px); }
.rv.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (max-width: 1200px) {
  /* rango intermedio (tablets): volver a 2 columnas, discos con tamano decente */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem 2rem; max-width: 900px; }
}

/* ---------- responsive minimo ---------- */
@media (max-width: 900px) {
  section { padding: 4.5rem 1.5rem; }
  #proyectos { padding-top: 2.5rem; } /* menos espacio logo -> primer slogan (ronda 5 movil) */
  /* grid de proyectos: dos filas de 2 discos mas pequenos (feedback r5) */
  /* r8: minmax(0,1fr) -> las 2 columnas miden siempre lo mismo (con 1fr el
     pie mas largo, p.ej. ESTRENOS Y LANZAMIENTOS, ensanchaba su columna y los
     discos salian de tamanos distintos) */
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem 1.2rem;
    max-width: 480px;
  }
  .vinyl-card figcaption { font-size: 0.72rem; letter-spacing: 0.14em; overflow-wrap: anywhere; }
  /* r8: menos blanco entre bloques en movil */
  #proyectos { padding-bottom: 3rem; }
  #servicios { padding-top: 3rem; padding-bottom: 2rem; }
  #equipo { padding-top: 2rem; }
  /* r8: case en movil mas compacto y legible: menos margen lateral, textos mas
     anchos (mas palabras por linea), titulares mas pequenos y menos huecos */
  #case { padding: 6.5rem 1.1rem 3rem; }
  .case-head { margin-bottom: 1.6rem; }
  #case-back { font-size: 0.92rem; }
  #case-back svg { width: 22px; height: 22px; }
  .case-body { gap: 1.8rem; }
  #cs-opening { max-width: 82%; }
  #cs-title { font-size: clamp(1.9rem, 8.5vw, 2.4rem); line-height: 1.06; }
  #cs-client { font-size: 1.05rem; }
  #cs-service { font-size: 0.95rem; margin: 1.3rem 0 0.6rem; }
  #cs-text { max-width: none; font-size: 0.95rem; line-height: 1.55; }
  .cs-media { margin-top: 0.4rem; }
  .cs-play { width: 50px; height: 50px; right: 0.8rem; bottom: 0.8rem; }
  .cs-play svg { width: 20px; height: 20px; }
  .nav-inner { padding: 1rem 1.2rem; }
  .logo img { height: 4rem; }
  .nav-links { display: none; }
  #nav .lang-switch { display: none; } /* en movil el selector vive en el menu */
  /* sin el selector el grid recolocaba los items y theGarage quedaba pegado a
     Freddie. En movil: Freddie a la izquierda | theGarage a la derecha junto
     al burger, todos centrados en la misma linea vertical */
  .logo { grid-column: 1; grid-row: 1; justify-self: start; }
  .nav-right { grid-column: 3; grid-row: 1; justify-self: end; margin-right: 3.2rem; }
  .tg-link img { height: 1.5rem; }
  .burger { top: 50%; transform: translateY(-50%); right: calc(1.2rem - 6px); }
  /* case en movil: orden natural del DOM (apertura -> textos -> video, ronda 5) */
  .case-body { display: flex; flex-direction: column; }
  #case { padding-top: 7rem; } /* > alto del nav fijo en movil (~96px) */
  .svc-grid { grid-template-columns: 1fr; }
  .svc-title-desktop { display: none; }
  .svc-title-mobile { display: block; }
  #spotify { display: none; }
  /* equipo en movil: miembros mas grandes y con aire entre ellos (feedback r5) */
  #team-track { gap: 0.9rem; scroll-snap-type: x mandatory; }
  .member { flex: 0 0 58vw; scroll-snap-align: start; }
  #team-next, #team-prev { width: 52px; height: 52px; }
  #team-next svg, #team-prev svg { width: 22px; height: 22px; }
  footer { flex-direction: column; text-align: center; }
  .f-logo { height: 4rem; }
  .f-addr { text-align: center; }
}
