/* kUERDISIMA · estilos compartidos (portfolio + Brand Decision Files) */

:root {
  --bg: #1a1a1a;
  --black: #000000;
  --bg-2: #111111;
  --panel: #333333;
  --line: #3a3a3a;
  --text: #f2f2f2;
  --muted: #8a8a8a;
  --red: #b72527;
  --red-dark: #7a0d11;
  --font-display: "Radio Canada", system-ui, sans-serif;
  --font-body: "Radio Canada", system-ui, sans-serif;
  --wrap: 72rem;
  /* Altura de los degradados entre secciones: 398 px en el boceto de 1920 */
  --fade: 17.8rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

/* Todo está medido en rem: en pantallas grandes la página crece con el ancho
   para que en 1920 × 1080 tenga las proporciones del boceto (contenido de ~1570 px) */
@media (min-width: 1200px) {
  html { font-size: max(16px, 1.1667vw); }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
}

strong, b { font-weight: 600; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.red { color: var(--red); }

/* ---------- Logo ---------- */

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-decoration: none;
  white-space: nowrap;
}

.logo .q, .talk__big .q { color: var(--red); display: inline-block; transform: translateY(-0.16em); }

.topbar .logo { text-transform: none; letter-spacing: -0.04em; }

.logo--hero { display: block; }

.logo img { display: block; width: 100%; height: auto; }

.logo--hero img { width: 100%; }

.logo--small img { height: 1.375rem; width: auto; }

.q-img { display: inline-block; height: 0.78em; width: auto; vertical-align: baseline; }

.logo--small { font-size: 1.375rem; }

/* ---------- Cabecera ---------- */

.hero-head {
  /* Banner a pantalla completa: 1920 × 1080 en escritorio */
  min-height: 100vh;
  min-height: 100svh;
  padding: 3.7vw 3.6vw 0;
  background:
    /* Como en el boceto: velo #1a1a1a al 50 % y fundido a negro en los últimos 398 px */
    linear-gradient(180deg, rgba(0, 0, 0, 0) calc(100% - var(--fade)), var(--black) 100%),
    linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.5)),
    /* Encuadre del boceto: la foto mide 2348 px de ancho y empieza en x −132, y −730 */
    url("img/paula-desenfocada.jpg") -6.875vw -38.02vw / 122.3% auto no-repeat,
    var(--black);
}

.hero-head .wrap { max-width: none; padding: 0; }

.hero-head .wrap { container-type: inline-size; }

.hero-head__meta {
  /* Medido sobre el logo: "VISUAL THINKING" termina donde termina la I antes del ¿,
     y "by PAULA PUEBLA" empieza donde empieza la I de después */
  position: relative;
  height: 1em;
  font-weight: 400;
  font-size: 1.7835cqi;
  line-height: 1;
  letter-spacing: 0;
  margin-top: -2.2cqi;
  white-space: nowrap;
}

.hero-head__meta > span:first-child { position: absolute; right: 43.31%; top: 0; }

.hero-head__by { position: absolute; left: 69.56%; top: 0; }

.hero-head__meta .sep { color: var(--red); margin: 0 0.3em; }

/* ---------- Navegación en píldora ---------- */

.pill-nav {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 1.5rem;
}

/* En el portfolio, el menú se apoya en la parte baja del banner */
.hero-head + .pill-nav { margin: -7.4rem 0 4.625rem; }

.hero-head + .pill-nav a { padding: 0.45rem 0.9rem; font-size: 0.65rem; }

.pill-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid var(--line);
  border-radius: 62.4375rem;
  backdrop-filter: blur(0.375rem);
  overflow-x: auto;
  max-width: 100%;
}

.pill-nav a {
  display: block;
  font-weight: 400;
  padding: 0.5rem 1rem;
  border-radius: 62.4375rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.pill-nav a:hover { background: var(--panel); }

.pill-nav a.is-active { background: var(--red); }

/* ---------- Cambio de idioma ---------- */

.lang-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: flex;
  gap: 0.125rem;
  padding: 0.2rem;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.lang-switch a {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
}

.lang-switch a:hover { color: var(--text); }

.lang-switch a[aria-current="page"] { background: var(--red); color: var(--text); }

/* Que el botón de idioma no tape el enlace de la guía ni el logo */
@media (max-width: 1400px) { .wrap > .topbar { padding-right: 6rem; } }

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  font-weight: 400;
  padding: 0.75rem 1.75rem;
  border-radius: 62.4375rem;
  border: 1px solid var(--text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
}

.btn:hover { background: var(--text); color: var(--bg); }

.btn--red { background: var(--red); border-color: var(--red); }

.btn--red:hover { background: #e01f26; color: var(--text); }

.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Secciones ---------- */

section { padding: 4rem 0; }

.section--black { background: var(--black); }

/* Degradados entre secciones, sacados del boceto */
.fade-from-black { background: linear-gradient(180deg, var(--black) 0, var(--bg) 100%); padding-top: 0.5rem; }

.fade-to-black { background: linear-gradient(180deg, var(--bg) calc(100% - var(--fade)), var(--black) 100%); padding-bottom: 10rem; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.125rem);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.section-title small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  margin-left: 0.75rem;
  vertical-align: middle;
}

.tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 3vw, 2.375rem);
  line-height: 1.25;
  max-width: 42rem;
  margin: 0 0 2rem;
}

.eyebrow {
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Huecos para imágenes: sustituir por <img> */
.ph {
  background: var(--panel);
  border-radius: 0.375rem;
  min-height: 7.5rem;
}

/* ---------- Intro (portfolio) ---------- */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.intro__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; filter: grayscale(1); }

.intro__text p { margin: 0 0 0.875rem; font-size: 0.875rem; }

.timeline { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; }

.timeline div { margin-bottom: 1rem; font-size: 0.8125rem; }

.timeline strong { display: block; font-weight: 500; }

.clients {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Los logos van en una sola pieza, con las posiciones y tamaños del boceto */
.clients__strip { position: relative; width: 100%; }

.clients__strip img { width: 100%; height: auto; }


/* ---------- Case studies ---------- */

.case {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}


.case h3 {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0;
}

.case h3 span { text-transform: none; }

.case .tags { color: var(--red); font-size: 0.75rem; margin: 0 0 0.625rem; }

.case p { font-size: 0.8125rem; margin: 0; }

.case__media { display: flex; gap: 0.75rem; justify-content: flex-end; }

.case__media .ph { flex: 1 1 0; min-width: 0; max-width: 10rem; aspect-ratio: 1; min-height: 0; }

.case__media .ph--wide { max-width: 13.75rem; aspect-ratio: 16 / 9; }

/* ---------- Quick pieces ---------- */

.piece { padding: 2rem 0; border-bottom: 1px solid var(--line); }

.piece__text { max-width: 35rem; margin-bottom: 2rem; font-size: 0.8125rem; }

.piece__text p { margin: 0 0 0.75rem; }

.piece__media {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.75rem;
}

.piece__media .ph:first-child { min-height: 15rem; }

.piece__media .ph:not(:first-child) { min-height: 6.875rem; align-self: start; }

/* ---------- Tools / Brand Decision Files (portfolio) ---------- */

.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--bg-2);
}

.tool-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.625rem, 4vw, 2.5rem);
  line-height: 1;
  margin: 0.5rem 0 1rem;
  text-transform: uppercase;
}

.tool-card__text p { margin: 0 0 1rem; }

.tool-card__text .btn-row { margin-top: 1.5rem; }

.tool-card .badge + h3 { margin-bottom: 0; }

.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 62.4375rem;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Current work ---------- */

.current {
  background: linear-gradient(180deg, var(--black) 0, #31090a calc(var(--fade) * 0.2), #781819 calc(var(--fade) * 0.6), #a52123 calc(var(--fade) * 0.9), var(--red) var(--fade));
  padding-top: calc(var(--fade) * 0.6);
  padding-bottom: 5rem;
}

.current__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 1rem;
}

.current__grid .ph { background: rgba(0, 0, 0, 0.18); min-height: 9.375rem; }

.current__grid p { margin: 0.75rem 0 0; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em; }

.current__grid p strong { display: block; text-transform: none; letter-spacing: 0; font-size: 0.8125rem; }

/* ---------- Contacto ---------- */

.talk { background: var(--bg); padding: 3rem 0 2rem; }

.talk .wrap { max-width: none; padding: 0 3.6vw; container-type: inline-size; }

.talk__big img { display: block; width: 100%; height: auto; }

.talk__big:has(> img:only-child) { padding-bottom: 0; }

/* La H tiene un poco de aire a la izquierda: la alineo con el borde, como LET'S TALK! */
.talk__big.talk__big--text { margin-left: -0.075em; }

.talk__big .q-img {
  /* Medido sobre Radio Canada (altura de mayúsculas 0,69 em): el cuerpo del ¿
     llega a la altura de las letras y el punto cuelga bajo la línea, como en el logo */
  display: inline-block;
  width: auto;
  height: 0.953em;
  vertical-align: -0.244em;
  margin-left: 0.02em;
}

.talk__big {
  font-family: var(--font-display);
  font-weight: 700;
  /* HABLEMO¿ ocupa todo el ancho, igual que LET'S TALK! en el portfolio */
  font-size: 19.55cqi;
  line-height: 0.9;
  padding-bottom: 0.22em;
  letter-spacing: -0.04em;
  margin: 0;
  white-space: nowrap;
}


.talk__text {
  max-width: 36rem;
  margin: 1.5rem 0 0 auto;
  font-size: 0.9rem;
}

.talk__text a { color: var(--red); }

.talk__text .btn { color: var(--text); }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding-top: 1rem;
  font-size: 0.6875rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a { text-decoration: none; }

.site-footer a:hover { color: var(--text); }

/* ---------- Guía ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar a { text-decoration: none; }

.topbar a:hover { color: var(--red); }

.guide-hero { padding: 2.5rem 0 0.5rem; }

.guide-hero .wrap { container-type: inline-size; }

/* Título en dos líneas con la misma altura: BRAND DECISION ocupa todo el ancho
   (medido sobre Radio Canada 700) y FILES va debajo, al mismo tamaño */
.guide-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 1rem 0 2rem;
}

.guide-title span { display: block; margin-left: -0.08em; white-space: nowrap; }

.guide-title span { font-size: 11.79cqi; }

.guide-hero .lead {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  text-align: justify;
  margin: 0 0 2rem;
}

/* El botón de imprimir va fuera del menú, a su derecha, en gris.
   El menú sigue centrado: la rejilla deja dos columnas iguales a los lados. */
.pill-nav:has(.pill-nav__print) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.pill-nav:has(.pill-nav__print) > ul { grid-column: 2; pointer-events: auto; }

.pill-nav__print {
  grid-column: 3;
  justify-self: start;
  pointer-events: auto;
  font: inherit;
  font-weight: 400;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 62.4375rem;
  background: rgba(77, 77, 77, 0.92);
  color: var(--text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(0.375rem);
}

.pill-nav__print:hover { background: var(--text); color: var(--bg); }

/* Si no cabe centrado con el botón al lado, van juntos y el menú se desplaza */
@media (max-width: 1100px) {
  .pill-nav:has(.pill-nav__print) { display: flex; justify-content: center; gap: 0.375rem; padding: 0 0.5rem; }
  .pill-nav:has(.pill-nav__print) > ul { min-width: 0; }
  .pill-nav__print { flex: none; padding: 0.5rem 0.75rem; }
}

/* En la guía el EN/ES no se queda fijo, para no chocar con Imprimir al bajar */
body:has(.pill-nav__print) .lang-switch { position: absolute; }

/* Llamada final de la guía: pedir el servicio */
.guide-cta {
  scroll-margin-top: 6rem;
  margin: 4rem 0 2rem;
  padding: 3rem;
  background: var(--red);
  border-radius: 0.75rem;
}

.guide-cta__label {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-cta h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  font-weight: 600;
}

.guide-cta__intro { max-width: 48rem; margin: 0 0 2rem; line-height: 1.5; }

.guide-cta__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.guide-cta__benefits li {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 0.5rem;
  line-height: 1.5;
}

.guide-cta__benefits strong { display: block; margin-bottom: 0.5rem; font-size: 1.25rem; line-height: 1.2; }

.guide-cta__includes { margin: 0 0 2rem; line-height: 1.5; }

.guide-cta .btn--red { background: var(--text); border-color: var(--text); color: var(--red); }

.guide-cta .btn--red:hover { background: var(--black); border-color: var(--black); color: var(--text); }

/* Pasos de la guía: el texto va de lado a lado, alineado a la izquierda */
.step { border-top: 1px solid var(--line); }

.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 1rem;
}

.step__body { max-width: none; }

.step__body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.125rem);
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.step__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin: 2.25rem 0 0.75rem;
}

.step__body p { margin: 0 0 0.875rem; }

.step__body ul, .step__body ol { margin: 0 0 0.875rem; padding-left: 1.25rem; }

.step__body li { margin-bottom: 0.375rem; }

/* Lo que se escribe en el cuaderno */
.write {
  border-left: 3px solid var(--red);
  background: var(--bg-2);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

.write::before {
  content: "En tu cuaderno";
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.375rem;
}

:lang(en) .write::before { content: "In your notebook"; }

/* Notas de campo: dudas, contradicciones y cómo se resuelven */
.field-note {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--red);
  border-radius: 0.5rem;
  background: rgba(183, 37, 39, 0.06);
}

.field-note__label {
  margin: 0 0 0.5rem !important;
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}

.field-note p:last-child { margin-bottom: 0; }

.field-note strong { color: var(--text); }

.write p:last-child, .write ol:last-child, .write ul:last-child { margin-bottom: 0; }

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.4vw, 1.375rem);
  line-height: 1.4;
  margin: 1.5rem 0;
  padding: 0;
}

.example {
  font-style: italic;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  margin: 0.75rem 0 1.25rem;
}

.concept {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  margin: 1.25rem 0;
  background: var(--bg-2);
}

.concept h3 { margin-top: 0; }

.concept dl { margin: 0; }

.concept dt {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-top: 1rem;
}

.concept dd { margin: 0.25rem 0 0; }

.criteria { list-style: none; padding: 0 !important; }

.criteria li { padding: 0.625rem 0; border-bottom: 1px solid var(--line); margin: 0 !important; }

.criteria strong { display: inline-block; min-width: 6.875rem; }

/* Tabla de clasificación */
.sort-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; font-size: 0.875rem; }

.sort-table th, .sort-table td { border: 1px solid var(--line); padding: 0.75rem; text-align: left; }

.sort-table th { font-weight: 600; background: var(--bg-2); }

.sort-table td { height: 2.75rem; }

.sort-table th:not(:first-child), .sort-table td:not(:first-child) { width: 16%; text-align: center; }

.about-mini {
  display: grid;
  grid-template-columns: 11.25rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.about-mini__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; filter: grayscale(1); }

.changelog { font-size: 0.8125rem; color: var(--muted); }

.changelog dt { color: var(--text); font-weight: 600; }

.changelog dd { margin: 0 0 0.75rem; }

/* ---------- Móvil ---------- */

@media (max-width: 760px) {
  .hero-head__meta { position: static; height: auto; line-height: 1.4; font-size: 0.8rem; white-space: normal; margin-top: 0.5rem; padding-left: 0; display: flex; flex-direction: column; gap: 0.25rem; }
  .hero-head__meta > span:first-child, .hero-head__by { position: static; }
  .hero-head { background-position: 0 0, 0 0, center 20%; background-size: auto, auto, cover; padding-top: 3.5rem; }
  :root { --fade: 8rem; }
  .fade-from-black { padding-top: 0; }
  .fade-to-black { padding-bottom: 5rem; }
  .clients__strip { width: 100%; }
  .hero-head + .pill-nav { margin-top: -6.875rem; margin-bottom: 4rem; }
  section { padding: 3rem 0; }
  .intro, .case, .tool-card, .about-mini { grid-template-columns: minmax(0, 1fr); }
  .case__media { justify-content: flex-start; }
  .piece__media { grid-template-columns: 1fr 1fr; }
  .piece__media .ph:first-child { grid-column: 1 / -1; }
  .current__grid { grid-template-columns: 1fr 1fr; }
  .current__grid > div:last-child { grid-column: 1 / -1; }
  .step__num { font-size: 2.5rem; }
  .tool-card { padding: 1.5rem; }
  .talk__text { margin-left: 0; }
  .lang-switch { position: absolute; }
  .guide-cta { padding: 1.5rem; }
  .guide-cta__benefits { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}


/* ---------- Carrusel de imágenes de proyecto (4:3) ---------- */

.slides { position: relative; min-width: 0; }

.case__media.slides__track {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.slides__track::-webkit-scrollbar { display: none; }

.slides__track img {
  flex: 0 0 auto;
  width: auto;
  height: 16rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.375rem;
  scroll-snap-align: start;
  background: var(--panel);
}

.slides__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.85);
  color: var(--text);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.slides__btn:hover { background: var(--red); border-color: var(--red); }

.slides__btn--prev { left: 0.5rem; }

.slides__btn--next { right: 0.5rem; }

.slides__btn[disabled] { opacity: 0; pointer-events: none; }

@media (max-width: 760px) {
  .case__media.slides__track { margin: 0 -1rem; padding: 0 1rem 0.5rem; scroll-padding: 0 1rem; }
  .slides__track img { width: 82%; height: auto; }
  .slides__btn { display: none; }
}

/* Piezas rápidas: fotos (8 nov) */
.piece__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.375rem; }
.piece__media img:not(:first-child) { align-self: start; }
@media (max-width: 760px) {
  .piece__media img, .piece__media img:first-child { flex: 0 0 82%; width: 82%; scroll-snap-align: start; grid-column: auto; }
}

/* ---------- Móvil, segunda versión (8 nov): portada, menú, logos, títulos y carruseles ---------- */

.nav-toggle { display: none; }

@media (max-width: 760px) {
  /* Portada sin foto (prueba 8 nov): solo tipografía sobre negro.
     El retrato nítido de la intro llega justo debajo. La versión con foto está en la copia de seguridad. */
  .hero-head {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
    height: auto;
    padding: 5.5rem 1rem 1.5rem;
    background: var(--black);
  }
  .hero-head .wrap { display: flex; flex-direction: column; }
  .hero-head__meta { order: -1; font-size: 3.39cqi; line-height: 1.2; margin: 0 0 0.6rem; letter-spacing: 0.02em; }
  .hero-head__meta > span:first-child { white-space: nowrap; }
  .hero-head .wrap { position: relative; }
  /* "by PAULA PUEBLA" debajo del logo, a la derecha, sin bajar más que el punto del ¿ */
  .hero-head__by,
  .hero-head__meta .hero-head__by {
    position: absolute;
    right: 0;
    bottom: 0;
    left: auto;
    top: auto;
    font-size: 2.6cqi;
    line-height: 1;
    color: var(--text);
    white-space: nowrap;
  }

  /* Menú: un botón fijo abajo, en el centro; al tocarlo se abre la lista */
  .pill-nav,
  .hero-head + .pill-nav,
  .pill-nav:has(.pill-nav__print) {
    position: fixed;
    top: auto;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 30;
    pointer-events: none;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    pointer-events: auto;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    padding: 0.8rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(0.375rem);
    cursor: pointer;
  }
  .pill-nav ul { order: 1; }
  .pill-nav__print { order: 2; }
  .nav-toggle { order: 3; }
  .nav-toggle::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red); }
  .pill-nav.is-open .nav-toggle { background: var(--red); border-color: var(--red); }
  .pill-nav.is-open .nav-toggle::before { background: var(--text); }

  .pill-nav ul,
  .pill-nav:has(.pill-nav__print) > ul,
  .pill-nav__print { display: none; }

  .pill-nav.is-open ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
    padding: 0.5rem;
    border-radius: 1rem;
    pointer-events: auto;
    overflow: visible;
  }
  .pill-nav.is-open ul a,
  .hero-head + .pill-nav.is-open a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 0.6rem;
  }
  .pill-nav.is-open .pill-nav__print { display: block; width: 100%; padding: 0.85rem 1rem; font-size: 0.875rem; }

  /* Que el último contenido no quede debajo del botón */
  body { padding-bottom: 4.5rem; }

  /* Títulos: la palabra sola en una línea y el resto en la siguiente */
  .section-title { line-height: 1.1; margin-bottom: 2rem; }
  .section-title small { display: block; margin: 0.15rem 0 0; font-size: 0.875rem; line-height: 1.3; }

  /* Logos de clientes: más grandes y más claros, pasando despacio de lado a lado */
  .clients { padding: 2rem 0; }
  .clients__strip { overflow: hidden; container-type: inline-size; }
  .clients__strip img {
    width: 200%;
    max-width: none;
    filter: brightness(2.2);
    animation: clients-pan 16s ease-in-out infinite alternate;
  }

  /* Fotos de proyectos: carrusel que se desliza con el dedo */
  .case__media,
  .piece__media {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -1rem;
    padding: 0 1rem 0.5rem;
    scroll-padding: 0 1rem;
    scrollbar-width: none;
  }
  .case__media::-webkit-scrollbar,
  .piece__media::-webkit-scrollbar { display: none; }
  .case__media .ph,
  .case__media .ph--wide,
  .piece__media .ph,
  .piece__media .ph:first-child,
  .piece__media .ph:not(:first-child) {
    flex: 0 0 82%;
    max-width: none;
    min-height: 0;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
    grid-column: auto;
  }
}

@keyframes clients-pan {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% + 100cqi)); }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .clients__strip { overflow-x: auto; }
  .clients__strip img { animation: none; }
}

/* ---------- Impresión (la guía en papel, para trabajar con el cuaderno) ---------- */

@media print {
  :root { --bg: #fff; --bg-2: #fff; --text: #000; --muted: #444; --line: #bbb; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .pill-nav, .topbar, .btn, .btn-row, .no-print, .lang-switch { display: none !important; }
  section { padding: 16px 0; }
  .step { page-break-inside: avoid; }
  .step__num { font-size: 36px; }
  .concept, .field-note { page-break-inside: avoid; }
  .field-note { background: none; }
  .guide-cta { background: none; border: 1px solid #bbb; page-break-inside: avoid; }
  .guide-cta__benefits li { background: none; border: 1px solid #bbb; }
  .sort-table td { height: 36px; }
  .talk { background: #fff; }
  a { text-decoration: none; }
}

/* Proyectos: vídeo y dossier (9 nov) */
.case__more { margin-top: 1.5rem; }
.video-modal { padding: 0; border: 0; background: transparent; width: min(92vw, 90rem); max-width: none; overflow: visible; }
.video-modal::backdrop { background: rgba(0, 0, 0, 0.88); }
.video-modal video { display: block; width: 100%; height: auto; max-height: 86vh; background: #000; border-radius: 0.375rem; }
.video-modal__close { position: absolute; top: -2.75rem; right: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--text); background: transparent; color: var(--text); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.video-modal__close:hover { background: var(--red); border-color: var(--red); }
.video-modal--tall { width: auto; }
.video-modal--tall video { width: auto; max-width: 92vw; height: 86vh; }
/* Centrar siempre la ventana del vídeo (9 nov) */
.video-modal { position: fixed; inset: 0; margin: auto; height: fit-content; }
.video-modal--tall { width: fit-content; }

/* Trabajo actual: carruseles (9 nov) */
.current__grid > div { min-width: 0; }
.now__slides { background: rgba(0, 0, 0, 0.18); border-radius: 0.375rem; padding: 0.75rem; }
.now__track { display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.now__track::-webkit-scrollbar { display: none; }
.now__item { flex: 0 0 auto; height: 20rem; width: auto; display: block; border-radius: 0.25rem; scroll-snap-align: start; }
.now__item--video { position: relative; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 9 / 16; overflow: hidden; }
.now__item--video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.now__play { position: absolute; inset: 0; margin: auto; width: 3rem; height: 3rem; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; display: grid; place-items: center; font-size: 1rem; padding-left: 0.2rem; transition: background 0.2s; }
.now__item--video:hover .now__play { background: var(--red); }
.current__grid p.now__clients { text-transform: none; letter-spacing: 0; font-size: 0.8125rem; opacity: 0.85; margin-top: 0.5rem; max-width: 40rem; }
@media (max-width: 760px) { .now__item { height: 16rem; } }
/* Trabajo actual: tamaños uniformes (9 nov) */
.now__slides .now__track > .now__item { flex:0 0 auto; height:20rem; max-width:none; aspect-ratio:auto; object-fit:contain; background:transparent; }
.now__slides .now__track > img.now__item { width:auto; }
.now__slides .now__track > .now__item--video { width:auto; aspect-ratio:auto; background:#000; }
.now__slides .now__track > .now__item--video img { height:100%; width:auto; max-width:none; aspect-ratio:auto; border-radius:0; }
@media (max-width:760px) {
  .now__slides .now__track > .now__item { height:15rem; }
  .now__slides .now__track > img.now__item { width:auto; height:15rem; }
  .now__slides .slides__btn { display:grid; place-items:center; }
}
/* Trabajo actual v2: 1 fotograma, landings grandes (9 nov) */
.current__grid { grid-template-columns: 1fr 2fr 1.4fr; }
.now__slides .now__track > .now__item { height: 28rem; }
.now__slides .now__track > img.now__item[src*="video-01"] { margin: 0 auto; }
@media (max-width: 1100px) { .current__grid { grid-template-columns: 1fr 1fr; } .current__grid > div:last-child { grid-column: auto; } .current__grid > div:nth-child(2) { grid-column: 1 / -1; order: 3; } }
@media (max-width: 760px) {
  .current__grid { grid-template-columns: 1fr; }
  .current__grid > div:nth-child(2) { order: 0; }
  .now__slides .now__track > .now__item, .now__slides .now__track > img.now__item { height: 16rem; }
}
.current__grid > div:nth-child(2) .now__track > img.now__item { flex: 0 0 100%; width: 100%; height: auto; }
.current__grid > div:first-child .slides__btn { display: none; }
@media (min-width: 1101px) {
  .now__slides { height: calc(28rem + 1.5rem); display: flex; align-items: center; }
  .now__slides .now__track { width: 100%; }
  .current__grid > div:nth-child(2) .now__track { align-items: center; }
  .current__grid > div:nth-child(2) .now__track > img.now__item { height: auto; max-height: 28rem; object-fit: contain; }
}
/* Trabajo actual v3: solo imágenes, sin carruseles (9 nov) */
.now__media { background: rgba(0,0,0,0.18); border-radius: 0.375rem; padding: 0.75rem; height: calc(28rem + 1.5rem); }
.now__media img { width: 100%; height: 100%; object-fit: contain; border-radius: 0.25rem; display: block; }
@media (max-width: 760px) { .now__media { height: auto; } .now__media img { height: auto; } .now__media--tall img { height: 22rem; width: auto; margin: 0 auto; } }
/* v4: imágenes sueltas, sin cajas (9 nov) */
.now__media { background: none; padding: 0; height: 30rem; border-radius: 0; }
.now__media img { border-radius: 0.25rem; }
.now__media--tall img { width: auto; height: 100%; max-width: 100%; object-fit: cover; }
.now__media--landings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.now__media--landings img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.now__media--ads { display: grid; grid-template-columns: repeat(2, auto); grid-template-rows: repeat(3, 1fr); gap: 0.5rem; justify-content: start; }
.now__media--ads img { height: 100%; width: auto; aspect-ratio: 4 / 5; object-fit: cover; min-height: 0; }
@media (max-width: 1100px) { .now__media--ads { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; height: auto; } .now__media--ads img { width: 100%; height: auto; } }
@media (max-width: 760px) {
  .now__media { height: auto; }
  .now__media--tall img { height: 24rem; width: auto; margin: 0; }
  .now__media--landings { height: 22rem; }
}
.now__media--landings { grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.now__media--landings img { min-height: 0; }
/* v5: una imagen por tarjeta (9 nov) */
.current__grid { grid-template-columns: repeat(3, 1fr); }
.current__grid > div:nth-child(2) { grid-column: auto; order: 0; }
.now__media--one img, .now__media--tall img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 760px) { .now__media, .now__media--landings { height: 26rem; } .now__media--tall img { width: 100%; height: 100%; } }
@media (max-width: 760px) { .current__grid { grid-template-columns: 1fr; } }
/* Móvil: tamaño mínimo de letra = títulos de proyecto, 13px (11 nov) */
@media (max-width: 760px) {
  .lang-switch a, .pill-nav a, .pill-nav button, .topbar a,
  .btn, .eyebrow, .tags, .badge, .field-note__label, dl dt,
  .site-footer span, .current__grid p { font-size: 13px; }
  .hero-head + .pill-nav a, .pill-nav li a, .pill-nav.is-open ul a, .case .tags, .concept dt, .changelog dt, dl dt { font-size: 13px !important; }
}
/* Móvil: menú arriba a la izquierda, para que el banner de Netlify (abajo) no lo tape (11 nov) */
@media (max-width: 760px) {
  .pill-nav,
  .hero-head + .pill-nav,
  .pill-nav:has(.pill-nav__print) {
    top: 1rem;
    bottom: auto;
    left: 1rem;
    transform: none;
    width: calc(100% - 2rem);
    align-items: flex-start;
  }
  .nav-toggle { order: 0; }
  body { padding-bottom: 0; }
  .wrap > .topbar { margin-top: 3.5rem; }
}

/* ---------- 11 nov (2): ajustes de Paula ---------- */
/* Porsche concesionario: foto vertical entera */
.slides__track img.slide--tall { aspect-ratio: 7 / 10; }
@media (max-width: 760px) {
  .slides__track img.slide--tall { width: auto; height: calc((100vw - 2rem) * 0.615); }
}

/* Piezas rápidas: título y subtítulo igual que en Proyectos */
.piece__text h3 { font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; margin: 0; }
.piece__text .tags { font-size: 0.75rem; margin: 0 0 0.625rem; }

@media (max-width: 760px) {
  /* Botón MENÚ del mismo tamaño que EN/ES */
  .nav-toggle { padding: 7px 14px; gap: 0.5rem; font-size: 13px; letter-spacing: 0.1em; }
  .nav-toggle::before { width: 0.45rem; height: 0.45rem; }
  /* Guía: "← Portfolio" a la derecha, separado del logo */
  .wrap > .topbar { padding-right: 0; justify-content: space-between; }
  .piece__text h3, .piece__text .tags { font-size: 13px !important; }
}

/* Visor de imágenes en grande */
.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, 0.94); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__img { display: block; max-width: calc(100vw - 2rem); max-height: calc(100vh - 7rem); width: auto; height: auto; object-fit: contain; border-radius: 0.25rem; }
.lightbox__close, .lightbox__nav { position: fixed; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--text); background: rgba(20, 20, 20, 0.7); color: var(--text); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__nav[hidden] { display: none; }
.lightbox__count { position: fixed; bottom: 1.25rem; left: 0; right: 0; text-align: center; font-size: 13px; letter-spacing: 0.1em; color: var(--text); }
@media (max-width: 760px) {
  .lightbox__nav { top: auto; bottom: 1rem; transform: none; }
  .lightbox__count { bottom: 1.9rem; }
}
/* Fieles con 4 imágenes: una fila de cuatro en escritorio */
@media (min-width: 761px) {
  .piece__media:has(> img:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
}

/* Que el móvil no agrande ni encoja el texto por su cuenta */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ---------- Formulario de contacto (Netlify Forms) ---------- */
.contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  max-width: 36rem;
  margin: 2rem 0 0 auto;
  font-size: 0.8125rem;
}
.contact-form label { display: flex; flex-direction: column; gap: 0.4rem; color: var(--text); }
.contact-form label small { color: var(--muted); font-size: inherit; }
.contact-form__wide { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
  box-sizing: border-box;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); }
.contact-form__bot { position: absolute; left: -9999px; }
.contact-form .btn { color: var(--text); }
.talk__text + .talk__text .contact-form { margin-top: 0; }
@media (max-width: 760px) {
  .contact-form { grid-template-columns: minmax(0, 1fr); }
}
@media print { .contact-form { display: none !important; } }
