/* =========================================================================
   MIXX 2026 · Catálogo de casos
   Hoja de estilos única. Sin dependencias, sin build.
   Orden: tokens → base → cabecera → filtros → tarjetas → pie → ficha → util.
   ========================================================================= */

/* --------------------------------------------------------------- tokens -- */
:root {
  /* tipografía */
  --font: "Outfit", "Outfit Variable", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;

  /* color — muestreado de HOME-80.jpg e ITEM-80.jpg */
  --ink: #000000;
  --ink-2: #333333;
  --ink-3: #6b6b6b;
  --paper: #ffffff;
  --page: #f2f2f2;
  --band: #e2e2e2;
  --line: #dedcd6;
  --dark: #212121;
  --dark-2: #2b2b2b;

  /* tonos de premio y acentos */
  --bis: #000000;
  --oro: #f7df01;
  --plata: #939393;
  --bronce: #a07300;
  --mencion: #e7e5de;
  --lila: #b3b7ff;
  --verde: #c0ff88;
  --rosa: #f7a9a9;

  /* bordes de las cápsulas de vista: grises suaves en vez de tinta */
  --ring: #b9b9b9;
  --ring-soft: #dedede;

  /* retícula */
  --wrap: 1320px;
  --gutter: 40px;
  --gap: clamp(12px, 1.5vw, 20px);
  --radius: 0px;
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }
}

/* ----------------------------------------------------------------- base -- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
  color: inherit;
}

/* Todos los titulares van en versales, según el ajuste de diseño. */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
}

p {
  margin: 0 0 0.85em;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Etiquetas pequeñas en versalitas: el recurso tipográfico del diseño.
   En el diseño ("ORDENAR POR:") van en tinta plena y algo más grandes que
   el texto de las píldoras, no como texto secundario gris. */
.label {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--ink);
}

/* -------------------------------------------------------------- cabecera -- */
.masthead {
  background: var(--band);
}

.masthead__row {
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 72px);
  padding-top: clamp(20px, 2.4vw, 34px);
  padding-bottom: clamp(14px, 1.8vw, 22px);
}

.masthead--slim .masthead__row {
  padding-bottom: clamp(20px, 2.4vw, 32px);
}

/* logotipo oficial: lockup miXX / IAB Chile / 2026 incrustado en la página.
   Va en línea (no <img>) porque el lockup se compone con texto en Outfit y
   una imagen externa no cargaría la webfont: el nombre perdería el interletrado. */
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.logo__wordmark {
  display: block;
  width: clamp(148px, 15.6vw, 224px);
}

.logo__wordmark svg {
  display: block;
  width: 100%;
  height: auto;
}

.masthead__section {
  font-size: clamp(18px, 2.3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

/* bajada en dos columnas */
.masthead__intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 6vw, 84px);
  padding-bottom: clamp(30px, 4vw, 52px);
}

.masthead__intro p {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0 0 0.95em;
  max-width: 56ch;
}

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

/* --------------------------------------------------------------- filtros -- */
.catalog {
  padding-block: clamp(26px, 3.4vw, 46px) clamp(30px, 4vw, 60px);
}

.catalog__title {
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -0.03em;
  margin-bottom: clamp(18px, 2.2vw, 28px);
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: clamp(14px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(14px, 2vw, 20px);
}

.filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 30px;
}

.filters__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.filters__group--end {
  margin-left: auto;
}

/* En el diseño las píldoras de premio van encadenadas, sin separación. */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.pill {
  appearance: none;
  border: 0;
  border-radius: var(--radius);
  background: var(--mencion);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  padding: 9px 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.pill:hover {
  filter: brightness(0.95);
}

.pill[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-weight: 600;
}

.pill__n {
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
}

.pill--bis {
  background: var(--bis);
  color: #fff;
}

.pill--oro {
  background: var(--oro);
}

.pill--plata {
  background: var(--plata);
}

.pill--bronce {
  background: var(--bronce);
}

.pill--mencion {
  background: var(--mencion);
}

.pill--lila {
  background: var(--lila);
}

.pill--verde {
  background: var(--verde);
}

.pill--rosa {
  background: var(--rosa);
}

.pill--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.pill--inline {
  display: inline-block;
  padding: 8px 12px;
}

/* vista del catálogo: píldora activa lila, inactiva con borde fino */
.filters .pill--ghost {
  color: var(--ink);
}

.filters .pill--ghost:hover {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* Cápsulas de vista (SHORTLIST / METALES): el borde separa los estados con
   grises suaves, porque la tinta junto al relleno lila resultaba muy dura.
   El relleno lila de la activa se mantiene. */
#modo-pills .pill {
  box-shadow: inset 0 0 0 1px var(--ring-soft);
}

#modo-pills .pill:hover {
  box-shadow: inset 0 0 0 1px var(--ring);
}

#modo-pills .pill[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px var(--ring);
}

.btn-reset {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 2px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-reset:hover {
  color: var(--ink);
}

/* barra de resultados / filtros activos */
.results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 22px;
  margin-bottom: clamp(10px, 1.4vw, 16px);
}

.results__count {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* -------------------------------------------------------------- tarjetas -- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

/*
  Entrada de las tarjetas al filtrar: fade + escala escalonada, el mismo recurso
  del ejemplo de MixItUp pero sin dependencias. El retardo se calcula por tarjeta
  con --card-n; las que ya estaban en pantalla se mueven con FLIP desde app.js.
  Estas duraciones están replicadas en app.js (MOVER_MS / SALIR_MS).
*/
.cards .card {
  animation: card-in 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--card-n, 0) * 40ms);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.card {
  display: flex;
  background: var(--paper);
  min-width: 0;
}

.card__link {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e7e2;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card__link:hover .card__media img {
  transform: scale(1.025);
}

/* marcador tipográfico cuando el caso aún no tiene imagen */
.card__media--ph {
  display: grid;
  place-items: center;
  background: #eae9e4;
  border-bottom: 1px solid var(--line);
}

.ph-mark {
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #adaca1;
  text-align: center;
  padding: 0 18px;
  line-height: 1.35;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 20px 18px;
  flex: 1;
}

.card__eyebrow {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.card__title {
  font-size: clamp(17px, 1.8vw, 26px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.card__entity {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
}

.card__entity b {
  font-weight: 500;
}

.card__entity span {
  color: var(--ink-3);
  font-weight: 300;
}

.card__arrow {
  margin-top: auto;
  align-self: flex-end;
  padding-top: 16px;
  color: var(--ink);
}

.card__arrow svg {
  width: 25px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: square;
  transition: transform 0.25s ease;
}

.card__link:hover .card__arrow svg {
  transform: translateX(3px);
}

/* tarjeta destacada (Best in Show): bloque invertido */
.card--feature {
  background: var(--dark);
  color: #fff;
}

.card--feature .card__eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.card--feature .card__entity span {
  color: rgba(255, 255, 255, 0.62);
}

.card--feature .card__media--ph {
  background: var(--dark-2);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.card--feature .ph-mark {
  color: rgba(255, 255, 255, 0.5);
}

.card--feature .card__arrow {
  color: #fff;
}

.card--feature .card__link:focus-visible,
.card__link:focus-visible {
  outline-offset: -2px;
}

/* estado vacío */
.empty {
  padding: clamp(30px, 6vw, 70px) 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}

.empty strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* cargar más */
.loadmore {
  display: flex;
  justify-content: center;
  padding-top: clamp(22px, 3vw, 34px);
}

.btn-more {
  appearance: none;
  background: transparent;
  border: 1px solid var(--ink);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-more:hover {
  background: var(--ink);
  color: #fff;
}

/* ------------------------------------------------------------------- pie -- */
.site-footer {
  margin-top: clamp(30px, 5vw, 70px);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 40px);
  border-top: 1px solid var(--ink);
  padding: 22px 0 clamp(30px, 4vw, 46px);
}

.site-footer__text {
  font-size: 12.5px;
  line-height: 1.55;
  text-align: right;
  color: var(--ink-2);
  margin: 0;
  max-width: 46ch;
}

.site-footer__text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* sello IAB Chile del pie: el SVG oficial ya trae el marco y la tipografía */
.iab-mark {
  flex: none;
  display: block;
  width: clamp(64px, 7.6vw, 108px);
  height: auto;
}

/* ------------------------------------------------------------ ficha caso -- */
.case-hero {
  background: var(--dark);
  color: #fff;
  padding: clamp(18px, 2.4vw, 30px) 0 clamp(28px, 3.6vw, 48px);
}

.case-hero :focus-visible {
  outline-color: #fff;
}

.case-hero__award {
  font-size: clamp(27px, 4.4vw, 54px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: clamp(14px, 2vw, 22px);
}

.case-hero__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: clamp(16px, 2.2vw, 26px);
}

/* barra continua, como en la referencia: un solo fondo rosa con divisor */
.case-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--rosa);
}

.case-nav__sep {
  width: 1px;
  height: 13px;
  align-self: center;
  background: rgba(20, 20, 15, 0.45);
}

.case-nav .pill {
  padding: 6px 16px;
  background: transparent;
}

.case-nav .pill:hover {
  background: rgba(20, 20, 15, 0.08);
}

.case-nav .pill[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

/* slider del caso: hasta 4 capturas y el video al final */
.case-slider {
  margin: 0;
}

.case-slider__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f0f0d;
}

.case-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.case-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  background: #0f0f0d;
}

.case-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* marcador mientras no existe la captura */
.case-slide--vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--dark-2);
}

.case-slide__mark {
  font-size: clamp(17px, 2.3vw, 28px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  padding: 0 24px;
  line-height: 1.35;
}

.case-slide__n {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.case-slide--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Pieza que no permite inserción: su póster con el enlace a YouTube encima. */
.case-slide--poster {
  display: grid;
  place-items: center;
  background-color: #0f0f0d;
  background-size: cover;
  background-position: center;
}

.case-slide--poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 13, 0.42);
}

.case-slide--poster .case-slide__link {
  position: relative;
}

.case-slide--enlace {
  display: grid;
  place-items: center;
}

.case-slide__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 11px 16px;
}

.case-slide__play,
.case-thumbs__play {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
}

.case-slide__play::after,
.case-thumbs__play::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid var(--dark);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-left: 2px;
}

.case-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(15, 15, 13, 0.5);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  backdrop-filter: blur(3px);
}

.case-slider__nav svg {
  width: 10px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: round;
}

.case-slider__nav:hover {
  background: #fff;
  color: var(--dark);
}

.case-slider__nav[hidden] {
  display: none;
}

.case-slider__nav--prev {
  left: 14px;
}

.case-slider__nav--next {
  right: 14px;
}

/* contador arriba a la derecha: abajo choca con los controles del
   reproductor de YouTube cuando la diapositiva activa es el video */
.case-slider__count {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  margin: 0;
  padding: 5px 9px;
  background: rgba(15, 15, 13, 0.62);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.case-slider__count[hidden] {
  display: none;
}

.case-thumbs {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
}

.case-thumbs[hidden] {
  display: none;
}

/* alternativa al reproductor: visible solo en la diapositiva de video */
.case-video-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-video-link:hover {
  color: #fff;
}

.case-video-link[hidden] {
  display: none;
}

/* enlaces a las piezas de los otros premios del caso */
.case-video-links {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.case-video-links[hidden] {
  display: none;
}

.case-video-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-video-links a:hover {
  color: #fff;
}

.case-thumbs button {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid transparent;
  background: #0f0f0d;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.5);
}

.case-thumbs button[aria-current="true"] {
  border-color: #fff;
}

.case-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.case-thumbs button:hover img,
.case-thumbs button[aria-current="true"] img {
  opacity: 1;
}

.case-thumbs__label {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0 6px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.case-thumbs__shot {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.72;
  transition: opacity 0.2s ease;
}

.case-thumbs button:hover .case-thumbs__shot,
.case-thumbs button[aria-current="true"] .case-thumbs__shot {
  opacity: 1;
}

.case-thumbs__play {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 20px;
  height: 20px;
}

.case-hero__meta {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr) minmax(0, 210px);
  gap: clamp(12px, 2vw, 28px);
  align-items: end;
  margin-top: clamp(20px, 3vw, 38px);
}

/* Premios del caso, con el mismo formato de las tarjetas:
   un renglón por premio, "CATEGORÍA · PREMIO · AÑO", por importancia
   (BIS → Oro → Plata → Bronce → Mención). */
.case-awards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.5vw, 7px);
}

.case-awards li {
  font-size: clamp(11.5px, 1.2vw, 14px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-wrap: pretty;
}

/* el premio y el año no se separan: si el renglón no cabe, lo hace antes */
.case-awards__premio {
  white-space: nowrap;
}

.case-hero__title {
  font-size: clamp(22px, 3.2vw, 42px);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.case-hero__brand {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: right;
  font-weight: 300;
}

/* cuerpo de la ficha: columna desplazada respecto de la retícula */
.case-body {
  padding-block: clamp(32px, 4.4vw, 58px);
}

.case-prose {
  max-width: 600px;
  margin-left: min(28%, 300px);
}

.case-prose h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  margin: clamp(20px, 2.4vw, 28px) 0 4px;
}

.case-prose h2:first-child {
  margin-top: 0;
}

.case-prose p,
.case-prose li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

.case-prose p {
  margin: 0 0 4px;
}

.case-prose ul {
  margin: 6px 0 0;
  padding-left: 16px;
}

.case-prose li {
  margin-bottom: 3px;
}

/* nota al pie de los resultados: cifras declaradas, no auditadas */
.case-nota {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

.case-credits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 20px;
  margin: clamp(26px, 3vw, 38px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.case-credits div {
  min-width: 0;
}

.case-credits dt {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.case-credits dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
}

/* caso no encontrado */
.notice {
  padding: clamp(40px, 6vw, 90px) 0;
  max-width: 52ch;
}

.notice h1 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 10px;
}

.notice p {
  color: var(--ink-2);
  font-size: 14.5px;
}

.notice .pill {
  margin-top: 12px;
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .case-hero__meta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .case-hero__brand {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-prose {
    margin-left: 0;
  }

  .filters__group--end {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .masthead__row {
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 16px;
  }

  .masthead__section {
    order: 3;
    width: 100%;
    padding-top: 4px;
  }

  .masthead__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .masthead__intro p {
    font-size: 13px;
  }

  /* píldoras en carrusel horizontal: no se apilan en pantallas chicas */
  .filters__row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filters__group {
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

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

  .filters__group .label {
    flex: none;
  }

  .pills {
    flex-wrap: nowrap;
  }

  .case-slider__nav {
    width: 32px;
    height: 32px;
    margin-top: -16px;
  }

  .case-slider__nav--prev {
    left: 8px;
  }

  .case-slider__nav--next {
    right: 8px;
  }

  .case-slider__count {
    right: 8px;
    top: 8px;
  }

  .case-slide__mark {
    font-size: 15px;
  }

  .case-hero__meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .case-hero__title {
    order: -1;
  }

  .case-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
  }

  .case-thumbs::-webkit-scrollbar {
    display: none;
  }

  .case-thumbs li {
    flex: 0 0 96px;
  }

  .case-thumbs[hidden] {
    display: none;
  }

  .case-hero__nav {
    gap: 8px;
  }

  .case-nav {
    width: 100%;
    gap: 0;
  }

  .case-nav .pill {
    flex: 1;
    text-align: center;
  }

  .case-nav__sep {
    height: 26px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .card__body {
    padding: 14px 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
}
