/* Las muestras de «Cómo se ve» en el brief (src/components/MuestraBrief.jsx y
 * PreguntaBrief.jsx): las direcciones de estilo con sus bocetos y el visor que
 * los muestra, las tipografías, los tipos de logo y el logo que se sube, y la
 * portada de muestra que siguen las escalas, que encajan de a una.
 *
 * Va aparte del CSS del sitio, que entra en cada página: esto solo lo usa
 * /brief-web. Sus fuentes están recortadas a las letras del español (pocos KB
 * cada una) y el navegador las baja recién cuando la parte se muestra.
 *
 * Al pasar el cursor (o con el foco) cada muestra se mueve; al marcarla (al
 * estilo, con «Me gusta»), el nombre se viste con la letra y los colores de su
 * estilo y aparece su marca de elegido, como el chip de WhatsApp del
 * contacto. Con el movimiento reducido no se mueve nada.
 *
 * Al final, las pastillas de una empresa (Google, Instagram…). */

/* ---- Las fuentes de las muestras (OFL, Google Fonts) ---- */
@font-face { font-family: 'Muestra Hanken'; src: url('/fonts/brief/hanken-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Muestra Instrument'; src: url('/fonts/brief/instrument-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Muestra Shippori'; src: url('/fonts/brief/shippori-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Muestra Plex Mono'; src: url('/fonts/brief/plex-mono-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Muestra Manrope'; src: url('/fonts/brief/manrope-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Muestra Newsreader'; src: url('/fonts/brief/newsreader-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Muestra Newsreader'; src: url('/fonts/brief/newsreader-500-italica.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Muestra Fraunces'; src: url('/fonts/brief/fraunces-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Muestra Bodoni'; src: url('/fonts/brief/bodoni-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Muestra Anton'; src: url('/fonts/brief/anton.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Muestra Fredoka'; src: url('/fonts/brief/fredoka-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Muestra Shrikhand'; src: url('/fonts/brief/shrikhand.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Muestra Archivo'; src: url('/fonts/brief/archivo-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Muestra Young Serif'; src: url('/fonts/brief/young-serif.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Muestra Unbounded'; src: url('/fonts/brief/unbounded-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Muestra Caveat'; src: url('/fonts/brief/caveat-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Muestra Cormorant'; src: url('/fonts/brief/cormorant-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Muestra Stencil'; src: url('/fonts/brief/stencil-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Muestra Big Shoulders'; src: url('/fonts/brief/big-shoulders-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Muestra Poiret'; src: url('/fonts/brief/poiret-one.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Muestra Jost'; src: url('/fonts/brief/jost-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Muestra Jost'; src: url('/fonts/brief/jost-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Muestra Rubik'; src: url('/fonts/brief/rubik-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Muestra Syne'; src: url('/fonts/brief/syne-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Muestra Alegreya'; src: url('/fonts/brief/alegreya-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Muestra Instrument Serif'; src: url('/fonts/brief/instrument-serif.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Muestra Abril'; src: url('/fonts/brief/abril-fatface.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Muestra Special Elite'; src: url('/fonts/brief/special-elite.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Muestra Archivo Black'; src: url('/fonts/brief/archivo-black.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Muestra Jakarta'; src: url('/fonts/brief/jakarta-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Muestra Bricolage'; src: url('/fonts/brief/bricolage-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Muestra Zilla'; src: url('/fonts/brief/zilla-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Muestra Yellowtail'; src: url('/fonts/brief/yellowtail.woff2') format('woff2'); font-display: swap; }

/* La letra de cada estilo: la de su boceto. La usa su nombre cuando gusta. */
.estilo-minimalista { --letra: 300 1em 'Muestra Hanken', sans-serif; }
.estilo-tecnologico { --letra: 600 1em 'Muestra Instrument', sans-serif; }
.estilo-corporativo { --letra: 800 1em 'Muestra Manrope', sans-serif; }
.estilo-editorial { --letra: italic 500 1em 'Muestra Newsreader', Georgia, serif; }
.estilo-calido { --letra: 700 1em 'Muestra Fraunces', Georgia, serif; }
.estilo-premium { --letra: 500 1em 'Muestra Bodoni', Didot, serif; }
.estilo-audaz { --letra: 400 1em 'Muestra Anton', Impact, sans-serif; }
.estilo-ludico { --letra: 700 1em 'Muestra Fredoka', sans-serif; }
.estilo-brutalista { --letra: 700 1em 'Times New Roman', Times, serif; }
.estilo-retro { --letra: 400 1em 'Muestra Shrikhand', serif; }
.estilo-suizo { --letra: 700 1em 'Muestra Archivo', Helvetica, Arial, sans-serif; }
.estilo-natural { --letra: 400 1em 'Muestra Young Serif', Georgia, serif; }
.estilo-futurista { --letra: 700 1em 'Muestra Unbounded', sans-serif; }
.estilo-artesanal { --letra: 400 1.1em 'Muestra Instrument Serif', Georgia, serif; }
.estilo-zen { --letra: 400 1em 'Muestra Shippori', Georgia, serif; }
.estilo-industrial { --letra: 800 1em 'Muestra Stencil', Impact, sans-serif; }
.estilo-artdeco { --letra: 400 1em 'Muestra Poiret', sans-serif; }
.estilo-bauhaus { --letra: 400 1.1em 'Muestra Instrument Serif', Georgia, serif; }
.estilo-memphis { --letra: 800 1em 'Muestra Rubik', sans-serif; }
.estilo-y2k { --letra: 800 1em 'Muestra Syne', sans-serif; }
.estilo-andino { --letra: 700 1em 'Muestra Alegreya', Georgia, serif; }
.estilo-letterpress { --letra: 400 1em 'Muestra Abril', Georgia, serif; }
.estilo-collage { --letra: 400 1em 'Muestra Special Elite', 'Courier New', monospace; }
.estilo-clinico { --letra: 700 1em 'Muestra Jakarta', sans-serif; }

/* ==================== Las tarjetas ==================== */
.brief-muestras {
  display: grid;
  gap: var(--e-3);
}

.brief-muestras-tipografia,
.brief-muestras-logo {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
}

/* En S, de a dos. La palabra de cada tipografía y cada logo se achican con
   el ancho de su tarjeta (ver abajo), y entran enteros aun a 320 px. */
@media (max-width: 559px) {
  .brief-muestras-tipografia,
  .brief-muestras-logo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--e-2);
  }

  .brief-muestras .brief-muestra {
    grid-template-rows: auto auto;
  }

  .brief-tipo .brief-muestra-arte,
  .brief-logo .brief-muestra-arte {
    height: 116px;
  }


  .brief-muestra-pie {
    padding: var(--e-2) 36px var(--e-2) var(--e-3);
  }

  .brief-sello {
    right: var(--e-2);
    scale: 0.8;
  }
}

.brief-muestra,
.brief-estilo {
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --masa: cubic-bezier(0.34, 1.4, 0.64, 1);
  --calma: cubic-bezier(0.45, 0, 0.55, 1);
}

.brief-muestra {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 116px auto;
  min-width: 0;
  border: 1px solid var(--linea);
  border-radius: var(--radio-tarjeta);
  overflow: hidden;
  background: var(--superficie);
  cursor: pointer;
  transition:
    transform 260ms var(--masa),
    box-shadow 260ms var(--ease),
    border-color 200ms var(--ease);
}

/* La casilla nativa cubre la tarjeta, transparente. */
.brief .brief-muestra > input {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brief-muestra:hover,
  .brief-estilo:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -22px rgb(10 26 42 / 0.5);
  }
}

.brief-muestra:has(input:focus-visible) {
  outline: 2px solid var(--foco);
  outline-offset: 3px;
}

.brief-muestra:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.brief-muestra:has(input:checked) {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--marcado, var(--area));
}

.brief-muestra-arte {
  position: relative;
  display: block;
  overflow: hidden;
}

.brief-muestra-pie {
  position: relative;
  display: grid;
  gap: 2px;
  padding: var(--e-3) 52px var(--e-3) var(--e-4);
  transition:
    background-color 260ms var(--ease),
    color 260ms var(--ease);
}

.brief-muestra-nombre {
  font-size: var(--texto-sm);
  font-weight: 800;
  line-height: 1.25;
}

.brief-muestra-detalle {
  font-size: var(--texto-xs);
  line-height: 1.35;
  color: var(--texto-suave);
  overflow-wrap: break-word;
}

.brief-muestra:has(input:checked) .brief-muestra-detalle,
.brief-estilo:has([value='si']:checked) .brief-muestra-detalle {
  color: inherit;
  opacity: 0.8;
}


.brief-sello {
  position: absolute;
  right: var(--e-3);
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}

.brief-sello > * {
  opacity: 0;
  transition:
    opacity 200ms,
    transform 320ms var(--masa);
}

.brief-muestra:has(input:checked) .brief-sello > *,
.brief-estilo:has([value='si']:checked) .brief-sello > * {
  opacity: 1;
}

/* ---- Cada estilo: su portada, lo que hace al pasar y lo que hace marcado ----
 * Las marcas que se eligen viéndolas (un espacio, comida, joyas, un
 * gimnasio, perros, un lugar) llevan la foto de su boceto y, encima, su
 * logotipo en una placa de su color (`--placa`, `--tinta`), abajo a la
 * izquierda: el texto nunca va directo sobre la foto. Las demás se dibujan
 * enteras con su logo, su paleta y un gesto de su página. */
.brief-estilo .placa {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  background: var(--placa);
  color: var(--tinta);
  white-space: nowrap;
}

.brief-estilo .placa svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Minimalista · Alba Interiores: el nombre espaciado, en una placa de papel. */
.estilo-minimalista { --marcado: #141414; --placa: #fafaf8; --tinta: #141414; }
.estilo-minimalista .placa { padding: 11px 14px; }
.estilo-minimalista .rot { margin-right: -0.34em; font: 300 11px/1 'Muestra Hanken', sans-serif; letter-spacing: 0.34em; text-transform: uppercase; }
.estilo-minimalista:has([value='si']:checked) .brief-muestra-pie { background: #fafaf8; color: #141414; }
.estilo-minimalista:has([value='si']:checked) .brief-muestra-nombre { letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; }
.estilo-minimalista .brief-sello svg { width: 22px; fill: none; stroke: #141414; stroke-width: 1.4; stroke-dasharray: 30; stroke-dashoffset: 30; }
.estilo-minimalista:has([value='si']:checked) .brief-sello svg { stroke-dashoffset: 0; transition: stroke-dashoffset 600ms var(--ease), opacity 100ms; }

/* Tecnológico: Cauce. Curvas de nivel en tinta sobre papel, un sensor que
   late despacio y su lectura; al pasar, el relieve se corre apenas. */
.estilo-tecnologico { --marcado: #ff5b1f; --precisa: cubic-bezier(0.65, 0, 0.35, 1); }
.estilo-tecnologico .brief-muestra-arte { background: #f3f4f1; }
.estilo-tecnologico .curvas { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); fill: none; stroke: #101412; stroke-width: 1; opacity: 0.45; }
.estilo-tecnologico .logo { position: absolute; left: 18px; top: 16px; display: flex; align-items: center; gap: 7px; font: 600 18px/1 'Muestra Instrument', sans-serif; letter-spacing: -0.04em; color: #101412; }
.estilo-tecnologico .logo svg { width: 20px; height: 20px; fill: none; stroke: #101412; stroke-width: 1.8; }
.estilo-tecnologico .logo circle { fill: #ff5b1f; stroke: none; }
.estilo-tecnologico .sensor { position: absolute; left: 38%; top: 64%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #ff5b1f; }
.estilo-tecnologico .sensor::after { content: ''; position: absolute; inset: -7px; border: 1px solid #ff5b1f; border-radius: 50%; opacity: 0.6; }
.estilo-tecnologico .lectura { position: absolute; left: calc(38% + 14px); top: calc(64% - 10px); padding: 3px 7px; border-left: 1px solid #101412; background: rgb(251 251 249 / 0.92); font: 600 11px/1.3 'Muestra Plex Mono', monospace; color: #101412; }
.estilo-tecnologico:has([value='si']:checked) .brief-muestra-pie { background: #f3f4f1; color: #101412; }
.estilo-tecnologico:has([value='si']:checked) .brief-muestra-nombre { font-size: 15px; letter-spacing: -0.02em; }
.estilo-tecnologico .brief-sello span { width: 14px; height: 14px; border-radius: 50%; background: #ff5b1f; box-shadow: 0 0 0 5px rgb(255 91 31 / 0.18); transform: scale(0.3); transition: opacity 400ms, transform 900ms var(--precisa); }
.estilo-tecnologico:has([value='si']:checked) .brief-sello span { transform: none; }

/* Corporativo · Basal: su banda y el corte del edificio sobre sus aisladores.
   Al pasar, el suelo se mece y se calma; el edificio casi no se mueve. */
.estilo-corporativo { --marcado: #0f2a44; }
.estilo-corporativo .brief-muestra-arte { display: grid; grid-template-rows: 30px minmax(0, 1fr); background: #eef2f6; }
.estilo-corporativo .banda { display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #0f2a44; color: #ffffff; font: 800 10.5px/1 'Muestra Manrope', sans-serif; letter-spacing: 0.08em; }
.estilo-corporativo .banda svg { width: 17px; height: 13px; fill: #ffffff; }
.estilo-corporativo .banda .hueco { fill: none; stroke: #ffffff; stroke-width: 1.8; }
.estilo-corporativo .corte { position: absolute; left: 0; bottom: 0; display: block; width: 100%; height: calc(100% - 30px); overflow: visible; }
.estilo-corporativo .tierra { fill: #c3cdd8; }
.estilo-corporativo .raya { fill: none; stroke: #0f2a44; stroke-width: 2; }
.estilo-corporativo .edificio rect { fill: #ffffff; stroke: #0f2a44; stroke-width: 1.6; }
.estilo-corporativo .edificio path { fill: none; stroke: #0f2a44; stroke-width: 1.2; }
.estilo-corporativo .edificio .losa { fill: #0f2a44; stroke: none; }
.estilo-corporativo .edificio .ais { fill: #1f5fbf; stroke: none; transform-box: fill-box; transform-origin: 50% 0; }
.estilo-corporativo:has([value='si']:checked) .brief-muestra-pie { background: #0f2a44; color: #ffffff; }
.estilo-corporativo .brief-sello svg { width: 26px; fill: #ffffff; transform: scale(0.4); transition: opacity 300ms, transform 500ms var(--calma); }
.estilo-corporativo .brief-sello .goma { fill: #6fa0e6; }
.estilo-corporativo:has([value='si']:checked) .brief-sello svg { transform: none; }

/* Editorial · Ladera: la tapa del número 12 y su sumario. Al pasar, la tapa
   se levanta apenas, como una página que se da vuelta. */
.estilo-editorial { --marcado: #6b1f2a; }
.estilo-editorial .brief-muestra-arte { display: flex; align-items: center; gap: 16px; padding: 0 18px; background: #e6dfd0; perspective: 600px; }
.estilo-editorial .tapa { position: relative; flex: none; display: grid; align-content: start; width: 92px; height: 118px; padding: 7px 7px 0; overflow: hidden; background: #f2ede3; color: #1d1a16; box-shadow: 0 10px 16px -10px rgb(29 26 22 / 0.55); transform-origin: left center; transition: transform 800ms var(--calma), box-shadow 800ms var(--calma); }
.estilo-editorial .tapa b { font: 500 21px/0.9 'Muestra Newsreader', Georgia, serif; letter-spacing: 0.02em; text-align: center; }
.estilo-editorial .numero { display: flex; justify-content: space-between; margin-top: 3px; padding-top: 3px; border-top: 1px solid currentColor; font: 500 6.5px/1 'Muestra Newsreader', Georgia, serif; letter-spacing: 0.08em; text-transform: uppercase; }
.estilo-editorial .cerros { position: absolute; left: 0; bottom: 0; width: 100%; height: 64px; }
.estilo-editorial .tapa i { position: absolute; left: 7px; right: 7px; bottom: 7px; font: italic 500 11px/1.05 'Muestra Newsreader', Georgia, serif; color: #f2ede3; }
.estilo-editorial .sumario { display: grid; flex: 1; gap: 7px; min-width: 0; font: italic 500 13px/1.1 'Muestra Newsreader', Georgia, serif; color: #1d1a16; }
.estilo-editorial .sumario span { display: flex; gap: 8px; align-items: baseline; padding-bottom: 6px; border-bottom: 1px solid #c9bfab; }
.estilo-editorial .sumario small { flex: none; width: 2.6em; font: normal 500 9px/1 'Muestra Newsreader', Georgia, serif; color: #5d574d; }
.estilo-editorial:is(:hover, :focus-within, :has([value='si']:checked)) .tapa { transform: rotateY(-20deg); box-shadow: 14px 12px 18px -12px rgb(29 26 22 / 0.5); }
.estilo-editorial:has([value='si']:checked) .brief-muestra-pie { background: #f2ede3; color: #1d1a16; }
.estilo-editorial:has([value='si']:checked) .brief-muestra-nombre { font-size: 20px; }
.estilo-editorial .brief-sello span { padding: 3px 0; border-block: 1px solid #6b1f2a; font: 500 10px/1.1 'Muestra Newsreader', Georgia, serif; letter-spacing: 0.08em; color: #6b1f2a; transition: opacity 300ms; }

/* Cálido · La Mesa de Rosa: la olla humeando y el nombre en Fraunces, en una
   placa redonda. Al pasar, el vapor sube. */
.estilo-calido { --marcado: #c4542c; --placa: #fdf6ec; --tinta: #3b2418; }
.estilo-calido .placa { padding: 7px 16px 7px 10px; border-radius: 999px; font: 700 17px/1 'Muestra Fraunces', Georgia, serif; }
.estilo-calido .placa svg { width: 26px; height: 26px; fill: none; stroke: #c4542c; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: translate 700ms var(--calma); }
.estilo-calido:is(:hover, :focus-within, :has([value='si']:checked)) .placa svg { translate: 0 -2px; }
.estilo-calido:has([value='si']:checked) .brief-muestra-pie { background: #f6e4d0; color: #4f2614; }
.estilo-calido .brief-sello span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #c4542c; color: #ffffff; font-size: 13px; transform: scale(0.4); }
.estilo-calido:has([value='si']:checked) .brief-sello span { transform: none; }

/* Premium · Ónix: el nombre en Bodoni, dorado entre dos filetes. Al pasar,
   le cruza un destello. */
.estilo-premium { --marcado: #c9a24a; --placa: #0b0a09; --tinta: #efe9de; }
.estilo-premium .placa { padding: 11px 16px; box-shadow: inset 0 1px 0 rgb(201 162 74 / 0.6), inset 0 -1px 0 rgb(201 162 74 / 0.6); }
.estilo-premium .rot { margin-right: -0.56em; font: 500 20px/1 'Muestra Bodoni', Didot, serif; letter-spacing: 0.56em; color: transparent; background: linear-gradient(100deg, #8a6a2c 20%, #f3dc9a 45%, #8a6a2c 70%) 100% 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; transition: background-position 1.4s var(--ease); }
.estilo-premium:is(:hover, :focus-within, :has([value='si']:checked)) .rot { background-position: 0 0; }
.estilo-premium:has([value='si']:checked) .brief-muestra-pie { background: #0b0a09; color: #efe3c2; }
.estilo-premium:has([value='si']:checked) .brief-muestra-nombre { letter-spacing: 0.1em; text-transform: uppercase; }
.estilo-premium .brief-sello span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #c9a24a; border-radius: 50%; color: #c9a24a; transform: rotate(-90deg); }
.estilo-premium:has([value='si']:checked) .brief-sello span { transform: none; }

/* Audaz · Golpe: el nombre enorme, amarillo sobre negro. Al pasar, crece. */
.estilo-audaz { --marcado: #111111; --placa: #0d0d0d; --tinta: #ffe14d; }
.estilo-audaz .placa { padding: 7px 12px 5px; }
.estilo-audaz .rot { font: 400 38px/1 'Muestra Anton', Impact, sans-serif; letter-spacing: 0.02em; transform-origin: left bottom; transition: transform 400ms var(--masa); }
.estilo-audaz:is(:hover, :focus-within, :has([value='si']:checked)) .rot { transform: scale(1.06); }
.estilo-audaz:has([value='si']:checked) .brief-muestra-pie { background: #111111; color: #ffe14d; }
.estilo-audaz:has([value='si']:checked) .brief-muestra-nombre { font-size: 21px; letter-spacing: 0.02em; text-transform: uppercase; }
.estilo-audaz .brief-sello span { font: 400 24px/1 'Muestra Anton', Impact, sans-serif; color: #ffe14d; transform: scale(2); }
.estilo-audaz:has([value='si']:checked) .brief-sello span { transform: none; }

/* Lúdico · Pelusa: el nombre redondo y su huella. Al pasar, la huella da un
   paso. */
.estilo-ludico { --marcado: #ff7a59; --placa: #fff6e6; --tinta: #2a1f1a; }
.estilo-ludico .placa { gap: 6px; padding: 5px 14px 8px; border-radius: 18px; }
.estilo-ludico .rot { font: 700 28px/1 'Muestra Fredoka', sans-serif; letter-spacing: -0.02em; }
.estilo-ludico .placa svg { width: 22px; height: 22px; fill: #ff7a59; rotate: -14deg; transition: rotate 700ms var(--calma), translate 700ms var(--calma); }
.estilo-ludico:is(:hover, :focus-within, :has([value='si']:checked)) .placa svg { rotate: 4deg; translate: 0 -3px; }
.estilo-ludico:has([value='si']:checked) .brief-muestra-pie { background: #ffd34d; color: #2a1f1a; }
.estilo-ludico .brief-sello svg { width: 26px; fill: #ff7a59; transform: rotate(-30deg) scale(0.4); transition: opacity 300ms, transform 600ms var(--calma); }
.estilo-ludico:has([value='si']:checked) .brief-sello svg { transform: rotate(-10deg); }

/* Brutalista · Sótano: la cartelera cruda en Times, con bordes negros y el
   enlace azul. Al pasar, la fila de la función se invierte. */
.estilo-brutalista { --marcado: #000000; }
.estilo-brutalista .brief-muestra-arte { padding: 14px; background: #ffffff; color: #000000; }
.estilo-brutalista .cartel { display: grid; border: 2px solid #000000; }
.estilo-brutalista .cartel b { padding: 7px 8px 4px; font: 700 34px/0.9 'Times New Roman', Times, serif; letter-spacing: -0.03em; }
.estilo-brutalista .fila { display: flex; justify-content: space-between; padding: 6px 8px; border-block: 2px solid #000000; font: 600 12px/1 'Muestra Plex Mono', monospace; transition: background-color 300ms var(--calma), color 300ms var(--calma); }
.estilo-brutalista .cartel u { padding: 6px 8px; font: 400 15px/1.2 'Times New Roman', Times, serif; color: #0000ee; }
.estilo-brutalista:is(:hover, :focus-within, :has([value='si']:checked)) .fila { background: #000000; color: #ffffff; }
.estilo-brutalista:has([value='si']:checked) .brief-muestra-pie { background: #000000; color: #ffffff; }
.estilo-brutalista:has([value='si']:checked) .brief-muestra-nombre { text-transform: uppercase; }
.estilo-brutalista .brief-sello span { color: #ffffff; font: 700 18px/1 'Times New Roman', serif; transform: translateY(6px); transition: opacity 300ms, transform 300ms var(--calma); }
.estilo-brutalista:has([value='si']:checked) .brief-sello span { transform: none; }

/* Retro · Pista Lucero: la pista de noche, la cinta de franjas y el patín en
   su anillo. Al pasar, la cinta se mece y el anillo gira un poco. */
.estilo-retro { --marcado: #e0a526; }
.estilo-retro .brief-muestra-arte { background: #24140c; }
.estilo-retro .cinta { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-linecap: round; transition: translate 900ms var(--calma); }
.estilo-retro .cinta path:nth-child(1) { stroke: #d9677a; stroke-width: 30; }
.estilo-retro .cinta path:nth-child(2) { stroke: #e8742a; stroke-width: 21; }
.estilo-retro .cinta path:nth-child(3) { stroke: #e0a526; stroke-width: 12; }
.estilo-retro .cinta path:nth-child(4) { stroke: #f3e1bf; stroke-width: 4; }
.estilo-retro .rot { position: absolute; left: 16px; top: 22px; font: 400 36px/1 'Muestra Shrikhand', serif; color: #f3e1bf; text-shadow: 2px 2px 0 #e8742a, 4px 4px 0 #d9677a; rotate: -4deg; }
.estilo-retro .disco { position: absolute; right: 24px; top: 20px; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #fbf0da; box-shadow: 0 0 0 6px #e0a526, 0 0 0 12px #e8742a, 0 0 0 18px #d9677a; transition: rotate 900ms var(--calma); }
.estilo-retro .disco svg { width: 38px; }
.estilo-retro .bota { fill: #ffffff; stroke: #5a3520; stroke-width: 2; stroke-linejoin: round; }
.estilo-retro .cordon { fill: none; stroke: #d9677a; stroke-width: 2; stroke-linecap: round; }
.estilo-retro .disco circle { fill: #e8742a; stroke: #5a3520; stroke-width: 2; }
.estilo-retro:is(:hover, :focus-within, :has([value='si']:checked)) .cinta { translate: 0 -8px; }
.estilo-retro:is(:hover, :focus-within, :has([value='si']:checked)) .disco { rotate: 14deg; }
.estilo-retro:has([value='si']:checked) .brief-muestra-pie { background: #24140c; color: #f3e1bf; }
.estilo-retro .brief-sello svg { width: 26px; fill: #e0a526; transform: rotate(-45deg) scale(0.4); transition: opacity 300ms, transform 600ms var(--calma); }
.estilo-retro:has([value='si']:checked) .brief-sello svg { transform: none; }

/* Suizo · Rumbo: la grilla a la vista, un bloque rojo, la flecha y su nombre.
   Al pasar, la flecha gira un cuarto de vuelta. */
.estilo-suizo { --marcado: #e3001b; }
.estilo-suizo .brief-muestra-arte { background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgb(227 0 27 / 0.2) calc(25% - 1px) 25%), #ffffff; }
.estilo-suizo .cua { position: absolute; left: 0; top: 0; width: 25%; height: 36%; background: #e3001b; }
.estilo-suizo .flecha { position: absolute; right: 14px; top: 16px; width: 76px; height: 76px; fill: #111111; transition: rotate 700ms var(--calma); }
.estilo-suizo:is(:hover, :focus-within, :has([value='si']:checked)) .flecha { rotate: 90deg; }
.estilo-suizo .rot { position: absolute; left: 12px; bottom: 28px; font: 700 34px/1 'Muestra Archivo', Helvetica, sans-serif; letter-spacing: -0.04em; color: #111111; }
.estilo-suizo .reg { position: absolute; left: 12px; bottom: 13px; font: 700 10px/1 'Muestra Archivo', Helvetica, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: #111111; }
.estilo-suizo:has([value='si']:checked) .brief-muestra-pie { background: #111111; color: #ffffff; }
.estilo-suizo .brief-sello svg { width: 22px; fill: #e3001b; transform: rotate(-90deg) scale(0.5); transition: opacity 300ms, transform 600ms var(--calma); }
.estilo-suizo:has([value='si']:checked) .brief-sello svg { transform: none; }

/* Natural · Quillay: una forma de tierra, una rama de quillay dibujada a
   línea, el jabón con su sello hundido y su nombre. Al pasar, la rama se
   mece y el jabón se levanta, como en la vitrina de su portada. */
.estilo-natural { --marcado: #5f6f45; }
.estilo-natural .brief-muestra-arte { background: #f0eadb; }
.estilo-natural .tierra { position: absolute; right: -24px; bottom: -36px; width: 160px; height: 140px; border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%; background: #d7b89a; }
.estilo-natural .rama { position: absolute; right: 96px; top: 2px; width: 96px; height: 104px; fill: none; stroke: #5f6f45; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform-origin: 15% 95%; rotate: -5deg; transition: rotate 1100ms var(--calma); }
.estilo-natural .jabon { position: absolute; right: 26px; bottom: 30px; display: grid; place-items: center; width: 104px; height: 60px; border-radius: 20px; background: linear-gradient(160deg, #f7eed9, #e2d1ae); box-shadow: inset -4px -6px 10px rgb(120 90 50 / 0.25), inset 3px 3px 6px rgb(255 255 255 / 0.6), 0 12px 14px -8px rgb(43 42 34 / 0.5); rotate: -8deg; transition: translate 900ms var(--calma); }
.estilo-natural .jabon b { padding: 3px 10px 4px; border: 1.5px solid #cdb68b; border-radius: 50%; font: 400 13px/1 'Muestra Young Serif', Georgia, serif; color: #cdb68b; text-shadow: 1px 1px 0 rgb(255 255 255 / 0.7), -1px -1px 0 rgb(120 90 50 / 0.3); }
.estilo-natural:is(:hover, :focus-within, :has([value='si']:checked)) .jabon { translate: 0 -6px; }
.estilo-natural .rot { position: absolute; left: 18px; bottom: 18px; font: 400 30px/1 'Muestra Young Serif', Georgia, serif; color: #2b2a22; }
.estilo-natural:is(:hover, :focus-within, :has([value='si']:checked)) .rama { rotate: 5deg; }
.estilo-natural:has([value='si']:checked) .brief-muestra-pie { background: #5f6f45; color: #f7f3ea; }
.estilo-natural .brief-sello svg { width: 24px; fill: #f0eadb; transform: rotate(-40deg) scale(0.3); transform-origin: 15% 85%; transition: opacity 300ms, transform 700ms var(--calma); }
.estilo-natural:has([value='si']:checked) .brief-sello svg { transform: none; }

/* Futurista · Cénit: la noche en exposición larga, con las estelas
   alrededor del polo, los cerros y su nombre. Al pasar, las estelas giran un
   poco. */
.estilo-futurista { --marcado: #8d90b8; }
.estilo-futurista .brief-muestra-arte { background: radial-gradient(120% 90% at 50% 100%, #2a2f6a, #1b1f4a 34%, #0b0c1e 74%); }
.estilo-futurista .estelas { position: absolute; left: 50%; top: 16%; width: 440px; height: 440px; margin: -220px 0 0 -220px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 9px, rgb(233 232 255 / 0.42) 9px 10px, transparent 10px 19px), repeating-radial-gradient(circle, transparent 0 14px, rgb(206 212 255 / 0.26) 14px 15px, transparent 15px 31px); -webkit-mask: conic-gradient(from 210deg, transparent 0 250deg, rgb(0 0 0 / 0.4) 320deg, #000000 360deg); mask: conic-gradient(from 210deg, transparent 0 250deg, rgb(0 0 0 / 0.4) 320deg, #000000 360deg); transition: rotate 1400ms var(--calma); }
.estilo-futurista:is(:hover, :focus-within, :has([value='si']:checked)) .estelas { rotate: 24deg; }
.estilo-futurista .cerros { position: absolute; left: 0; bottom: 0; width: 100%; height: 34px; fill: #05060f; }
.estilo-futurista .rot { position: absolute; left: 0; right: 0; top: 52%; padding-left: 0.24em; text-align: center; font: 700 26px/1 'Muestra Unbounded', sans-serif; letter-spacing: 0.24em; color: #e9e8ff; }
.estilo-futurista:has([value='si']:checked) .brief-muestra-pie { background: #0b0c1e; color: #e9e8ff; }
.estilo-futurista:has([value='si']:checked) .brief-muestra-nombre { font-size: 13px; }
.estilo-futurista .brief-sello svg { width: 24px; fill: #e9e8ff; transform: rotate(-45deg) scale(0.4); transition: opacity 300ms, transform 900ms var(--calma); }
.estilo-futurista:has([value='si']:checked) .brief-sello svg { transform: none; }

/* Artesanal · Libar: miel oscura, un borde que gotea y la marca en una
   serif fina. Al pasar, las gotas se estiran despacio, sin caer. */
.estilo-artesanal { --marcado: #e0a12a; }
.estilo-artesanal .brief-muestra-arte { display: grid; place-items: center; background: radial-gradient(ellipse 80% 70% at 70% 90%, #3a2510, #1c1308 70%); }
.estilo-artesanal .gotas { position: absolute; inset: 0 0 auto; width: 100%; height: 64px; fill: #e0a12a; }
.estilo-artesanal .gota { transform-box: fill-box; transform-origin: 50% 0; transition: scale 1400ms var(--calma); }
.estilo-artesanal:is(:hover, :focus-within, :has([value='si']:checked)) .gota { scale: 1 1.3; }
.estilo-artesanal:is(:hover, :focus-within, :has([value='si']:checked)) .gota:nth-child(odd) { scale: 1 1.15; }
.estilo-artesanal .libar { display: grid; justify-items: center; gap: 8px; margin-top: 22px; color: #f7eedb; font: 400 58px/0.85 'Muestra Instrument Serif', Georgia, serif; letter-spacing: -0.02em; }
.estilo-artesanal .libar small { font: 600 9px/1 system-ui, sans-serif; letter-spacing: 0.2em; text-transform: uppercase; color: #e0a12a; }
.estilo-artesanal:has([value='si']:checked) .brief-muestra-pie { background: #1c1308; color: #f7eedb; }
.estilo-artesanal .brief-sello svg { width: 22px; fill: #e0a12a; transform-origin: 50% 0; transform: scale(1, 0.4); transition: opacity 300ms, transform 900ms var(--calma); }
.estilo-artesanal:has([value='si']:checked) .brief-sello svg { transform: none; }

/* Zen · Kiri: el ensō, 霧 y el nombre, en papel washi. Al pasar, el ensō
   gira despacio. */
.estilo-zen { --marcado: #1c1b19; --calma: cubic-bezier(0.45, 0, 0.55, 1); --placa: #efeae0; --tinta: #1c1b19; }
.estilo-zen .placa { padding: 8px 14px 8px 10px; }
.estilo-zen .placa .enso { width: 26px; height: 26px; transition: rotate 1600ms var(--calma); }
.estilo-zen .placa svg { width: 17px; height: 17px; }
.estilo-zen .placa b { margin-right: -0.3em; font: 400 16px/1 'Muestra Shippori', Georgia, serif; letter-spacing: 0.3em; }
.estilo-zen:is(:hover, :focus-within, :has([value='si']:checked)) .placa .enso { rotate: 40deg; }
.estilo-zen:has([value='si']:checked) .brief-muestra-pie { background: #efeae0; color: #1c1b19; }
.estilo-zen:has([value='si']:checked) .brief-muestra-nombre { font-size: 18px; letter-spacing: 0.12em; }
.estilo-zen .brief-sello svg { width: 28px; height: 28px; fill: #1c1b19; transform: rotate(-50deg) scale(0.6); transition: opacity 600ms, transform 1200ms var(--calma); }
.estilo-zen:has([value='si']:checked) .brief-sello svg { transform: none; }

/* Industrial · Remache: la cortina del taller, con el nombre pintado en sus
   últimas lamas. Al pasar, la cortina sube un poco y deja ver adentro. */
.estilo-industrial { --marcado: #f2c230; }
.estilo-industrial .brief-muestra-arte { background: #26292c; }
.estilo-industrial .adentro { position: absolute; inset: 0 10px 0; background: linear-gradient(transparent 76%, rgb(242 194 48 / 0.5) 76% 78%, transparent 78%), radial-gradient(70% 60% at 50% 100%, #4a4f53, #0e0f10); }
.estilo-industrial .cortina { position: absolute; inset: 0 10px 22px; display: grid; align-items: end; justify-items: center; padding-bottom: 12px; background: repeating-linear-gradient(180deg, #2b2f32 0 2px, #7d8389 2px 3px, #666c71 3px 9px, #50555a 9px 13px, #33373a 13px 15px); box-shadow: 0 7px 0 #1b1d1f; transition: translate 900ms var(--calma); }
.estilo-industrial .cortina b { font: 800 36px/1 'Muestra Stencil', Impact, sans-serif; letter-spacing: 0.06em; color: #f2c230; text-shadow: 0 1px 0 rgb(0 0 0 / 0.4); }
.estilo-industrial:is(:hover, :focus-within, :has([value='si']:checked)) .cortina { translate: 0 -44px; }
.estilo-industrial .remache { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9aa0a5, #4b5054); }
.estilo-industrial .r1 { left: 2px; top: 6px; }
.estilo-industrial .r2 { right: 2px; top: 6px; }
.estilo-industrial .r3 { left: 2px; bottom: 6px; }
.estilo-industrial .r4 { right: 2px; bottom: 6px; }
.estilo-industrial:has([value='si']:checked) .brief-muestra-pie { background: #1b1d1f; color: #f2c230; }
.estilo-industrial:has([value='si']:checked) .brief-muestra-nombre { font-size: 21px; letter-spacing: 0.04em; text-transform: uppercase; }
.estilo-industrial .brief-sello span { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, #f2c230 55%, #8a6a10); transform: scale(0.3); transition: opacity 300ms, transform 600ms var(--calma); }
.estilo-industrial:has([value='si']:checked) .brief-sello span { transform: none; }

/* Art déco · Bar Marfil: el abanico sobre el nombre entre filetes dorados.
   Al pasar, el abanico se abre. */
.estilo-artdeco { --marcado: #c9a24a; --placa: #0f1f1c; --tinta: #f1e9d6; }
.estilo-artdeco .placa { flex-direction: column; gap: 5px; padding: 8px 12px; }
.estilo-artdeco .placa svg { width: 30px; height: 17px; fill: #c9a24a; transform-origin: 50% 100%; scale: 0.85; transition: scale 700ms var(--calma); }
.estilo-artdeco:is(:hover, :focus-within, :has([value='si']:checked)) .placa svg { scale: 1.1; }
.estilo-artdeco .rot { padding: 5px 0 4px 0.34em; border-block: 1px solid #c9a24a; font: 400 19px/1 'Muestra Poiret', sans-serif; letter-spacing: 0.34em; }
.estilo-artdeco:has([value='si']:checked) .brief-muestra-pie { background: #0f1f1c; color: #f1e9d6; }
.estilo-artdeco:has([value='si']:checked) .brief-muestra-nombre { letter-spacing: 0.14em; text-transform: uppercase; }
.estilo-artdeco .brief-sello svg { width: 30px; fill: #c9a24a; transform: scale(0.3); transform-origin: 50% 100%; transition: opacity 300ms, transform 700ms var(--calma); }
.estilo-artdeco:has([value='si']:checked) .brief-sello svg { transform: none; }

/* Bauhaus · Bisagra: la «B» hecha con una bisagra y el nombre en serif,
   de día. Al pasar, se hace de noche: el fondo se apaga, las hojas de la
   bisagra se encienden y la luz cálida se reparte. Sello: la bisagra. */
.estilo-bauhaus { --marcado: #9c4a2c; }
.estilo-bauhaus .brief-muestra-arte { background: #f2eee7; transition: background-color 900ms var(--calma); }
.estilo-bauhaus .brief-muestra-arte::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 56px 58px, rgb(255 196 128 / 0.5), rgb(255 196 128 / 0) 150px); opacity: 0; transition: opacity 900ms var(--calma); pointer-events: none; }
.estilo-bauhaus .bisagra { position: absolute; left: 26px; top: 24px; width: 56px; height: 70px; fill: #1d1a16; transition: fill 900ms var(--calma); }
.estilo-bauhaus .bisagra .hoja { transform-origin: 9.6px 0; transition: fill 900ms var(--calma), transform 700ms var(--calma); }
.estilo-bauhaus .rot { position: absolute; left: 24px; bottom: 12px; font: 400 44px/1 'Muestra Instrument Serif', Georgia, serif; letter-spacing: -0.01em; color: #1d1a16; transition: color 900ms var(--calma); }
.estilo-bauhaus:is(:hover, :focus-within, :has([value='si']:checked)) .brief-muestra-arte { background: #13110e; }
.estilo-bauhaus:is(:hover, :focus-within, :has([value='si']:checked)) .brief-muestra-arte::after { opacity: 1; }
.estilo-bauhaus:is(:hover, :focus-within, :has([value='si']:checked)) .bisagra { fill: #f1e8da; }
.estilo-bauhaus:is(:hover, :focus-within, :has([value='si']:checked)) .bisagra .hoja { fill: #ffc480; }
.estilo-bauhaus:is(:hover, :focus-within, :has([value='si']:checked)) .rot { color: #f1e8da; }
.estilo-bauhaus:has([value='si']:checked) .brief-muestra-pie { background: #13110e; color: #f1e8da; }
.estilo-bauhaus .brief-sello svg { width: 18px; fill: #9c4a2c; transform: scale(0.3); transition: opacity 300ms, transform 600ms var(--calma); }
.estilo-bauhaus:has([value='si']:checked) .brief-sello svg { transform: none; }

/* Memphis · Tablero: el patrón de puntos, figuras sueltas, el dado y su
   nombre. Al pasar, el garabato y las figuras se desplazan. */
.estilo-memphis { --marcado: #ff6fa8; }
.estilo-memphis .brief-muestra-arte { background: #ffffff radial-gradient(#111111 1.2px, transparent 1.6px) 0 0 / 14px 14px; }
.estilo-memphis .brief-muestra-arte > * { position: absolute; transition: transform 700ms var(--calma); }
.estilo-memphis .garabato { left: 14px; top: 14px; width: 92px; height: 46px; overflow: visible; fill: none; stroke: #7b5cff; stroke-width: 9; stroke-linecap: round; }
.estilo-memphis .pi { right: 18px; top: 18px; width: 66px; height: 24px; border: 3px solid #111111; border-radius: 999px; background: #ff6fa8; transform: rotate(-16deg); }
.estilo-memphis .tr { right: 72px; bottom: 50px; width: 44px; height: 40px; background: #2ec4b6; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.estilo-memphis .ci { right: 18px; bottom: 22px; width: 44px; height: 44px; border: 3px solid #111111; border-radius: 50%; background: #ffd23f; }
.estilo-memphis .dado { left: 118px; top: 22px; width: 38px; height: 38px; transform: rotate(-12deg); }
.estilo-memphis .rot { left: 14px; bottom: 12px; padding: 2px 8px; background: #ffffff; font: 800 30px/1 'Muestra Rubik', sans-serif; letter-spacing: -0.04em; color: #111111; }
.estilo-memphis:is(:hover, :focus-within, :has([value='si']:checked)) .garabato { transform: translate(12px, 4px); }
.estilo-memphis:is(:hover, :focus-within, :has([value='si']:checked)) .pi { transform: rotate(8deg) translateX(-8px); }
.estilo-memphis:is(:hover, :focus-within, :has([value='si']:checked)) .tr { transform: rotate(-18deg) translateY(-6px); }
.estilo-memphis:is(:hover, :focus-within, :has([value='si']:checked)) .ci { transform: translate(-8px, -8px); }
.estilo-memphis:is(:hover, :focus-within, :has([value='si']:checked)) .dado { transform: rotate(14deg); }
.estilo-memphis:has([value='si']:checked) .brief-muestra-pie { background: #ffd23f; color: #111111; }
.estilo-memphis .brief-sello svg { width: 26px; height: 26px; transform: rotate(-30deg) scale(0.4); transition: opacity 300ms, transform 600ms var(--calma); }
.estilo-memphis:has([value='si']:checked) .brief-sello svg { transform: rotate(-8deg); }

/* Y2K · Destello: «destello» en cromo, sus destellos y la fecha naranja
   estampada como en las fotos de esas cámaras. Al pasar, el cromo se corre
   y los destellos crecen y se apagan, despacio. */
.estilo-y2k { --marcado: #9b7bff; }
.estilo-y2k .brief-muestra-arte { display: grid; place-items: center; background: #e9dcff; }
.estilo-y2k .rot { font: 800 38px/1 'Muestra Syne', sans-serif; letter-spacing: -0.04em; color: transparent; background: linear-gradient(180deg, #ffffff 0%, #e2e5ec 20%, #979eb0 42%, #2c3140 50%, #687083 60%, #d0d5df 80%, #ffffff 100%) 0 0 / 100% 200%; -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1px #15131c; transition: background-position 900ms var(--calma); }
.estilo-y2k:is(:hover, :focus-within, :has([value='si']:checked)) .rot { background-position: 0 100%; }
.estilo-y2k .chispa { position: absolute; width: 22px; height: 22px; fill: #ffffff; stroke: #15131c; stroke-width: 1; opacity: 0.7; }
.estilo-y2k .ch1 { left: 20px; top: 18px; width: 28px; height: 28px; }
.estilo-y2k .ch2 { right: 26px; top: 24px; width: 18px; height: 18px; }
.estilo-y2k .ch3 { left: 40px; bottom: 20px; width: 20px; height: 20px; }
.estilo-y2k .fecha { position: absolute; right: 14px; bottom: 12px; width: 72px; height: auto; fill: #ff8a1f; }
.estilo-y2k:has([value='si']:checked) .brief-muestra-pie { background: #15131c; color: #e9dcff; }
.estilo-y2k .brief-sello svg { width: 22px; fill: #ff9ad5; transform: scale(0.2) rotate(-90deg); transition: opacity 300ms, transform 600ms var(--calma); }
.estilo-y2k:has([value='si']:checked) .brief-sello svg { transform: none; }

/* Andino · Parina: su franja tejida arriba de la placa, el flamenco hecho de
   rombos y el nombre. */
.estilo-andino { --marcado: #b5442b; --placa: #f3e7d3; --tinta: #1a1512; }
.estilo-andino .placa { padding: 18px 14px 8px 10px; font: 700 28px/1 'Muestra Alegreya', Georgia, serif; }
.estilo-andino .franja { position: absolute; left: 0; right: 0; top: 0; display: grid; }
.estilo-andino .franja i { height: 2px; background: #2f5d8a; }
.estilo-andino .franja i:nth-child(2) { height: 8px; background: linear-gradient(45deg, #e9d8bb 25%, transparent 25% 75%, #e9d8bb 75%) 0 0 / 8px 8px, linear-gradient(-45deg, #e9d8bb 25%, transparent 25% 75%, #e9d8bb 75%) 0 0 / 8px 8px, #b5442b; }
.estilo-andino .placa svg { width: 20px; height: 28px; fill: #d9677a; }
.estilo-andino .placa .ala { fill: #b9475d; }
.estilo-andino .placa .pico { fill: #1a1512; }
.estilo-andino .placa :is(.cuello, .pata) { fill: none; stroke: #d9677a; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.estilo-andino .placa .pata { stroke: #1a1512; stroke-width: 1.5; }
.estilo-andino:has([value='si']:checked) .brief-muestra-pie { background: #1a1512; color: #f3e7d3; }
.estilo-andino .brief-sello span { width: 18px; height: 18px; background: #d99b3c; box-shadow: inset 0 0 0 4px #b5442b; transform: rotate(45deg) scale(0.2); transition: opacity 300ms, transform 600ms var(--calma); }
.estilo-andino:has([value='si']:checked) .brief-sello span { transform: rotate(45deg); }

/* Letterpress · Prensa Tilde: el nombre hundido en el papel de algodón, con
   su acento y las marcas de corte. Al pasar, la prensa lo hunde más. */
.estilo-letterpress { --marcado: #c0392b; }
.estilo-letterpress .brief-muestra-arte { display: grid; place-content: center; justify-items: center; gap: 8px; background: #f4efe6; }
.estilo-letterpress .rot { position: relative; font: 400 48px/1 'Muestra Abril', Georgia, serif; color: #1f2a44; text-shadow: 0 1px 0 rgb(255 255 255 / 0.85), 0 -1px 0 rgb(31 42 68 / 0.25); transition: text-shadow 600ms var(--calma), translate 600ms var(--calma); }
.estilo-letterpress .rot svg { position: absolute; left: 100%; top: 2px; width: 15px; margin-left: 2px; fill: #c0392b; }
.estilo-letterpress:is(:hover, :focus-within, :has([value='si']:checked)) .rot { translate: 0 1px; text-shadow: 0 2px 0 #ffffff, 0 -2px 1px rgb(31 42 68 / 0.45); }
.estilo-letterpress .brief-muestra-arte small { font: 500 10px/1 'Muestra Newsreader', serif; letter-spacing: 0.22em; text-transform: uppercase; color: #6b665d; }
.estilo-letterpress .corte { position: absolute; width: 14px; height: 14px; border: 0 solid #8a857c; }
.estilo-letterpress .c1 { left: 10px; top: 10px; border-right-width: 1px; border-bottom-width: 1px; }
.estilo-letterpress .c2 { right: 10px; top: 10px; border-left-width: 1px; border-bottom-width: 1px; }
.estilo-letterpress .c3 { left: 10px; bottom: 10px; border-right-width: 1px; border-top-width: 1px; }
.estilo-letterpress .c4 { right: 10px; bottom: 10px; border-left-width: 1px; border-top-width: 1px; }
.estilo-letterpress:has([value='si']:checked) .brief-muestra-pie { background: #f4efe6; color: #1f2a44; }
.estilo-letterpress:has([value='si']:checked) .brief-muestra-nombre { font-size: 19px; }
.estilo-letterpress .brief-sello svg { width: 16px; fill: #c0392b; transform: translate(4px, -12px) scale(0.4); transition: opacity 300ms, transform 600ms var(--calma); }
.estilo-letterpress:has([value='si']:checked) .brief-sello svg { transform: none; }

/* Collage · Rampa: el nombre en letras de rescate, su cinta y una línea a
   máquina. Al pasar, dos recortes se ladean. */
.estilo-collage { --marcado: #e63228; }
.estilo-collage .brief-muestra-arte { display: grid; align-content: center; justify-items: start; gap: 14px; padding-left: 16px; background: #e6e3dc radial-gradient(rgb(17 17 17 / 0.1) 1px, transparent 1.4px) 0 0 / 5px 5px; }
.estilo-collage .rescate { display: flex; gap: 2px; }
.estilo-collage .rescate b { display: grid; place-items: center; min-width: 30px; padding: 6px 5px 3px; font: 400 32px/1 'Muestra Archivo Black', sans-serif; box-shadow: 1px 2px 0 rgb(0 0 0 / 0.18); transition: rotate 500ms var(--calma); }
.estilo-collage .v0 { background: #111111; color: #f7f5ef; rotate: -4deg; }
.estilo-collage .v1 { background: #ffe14d; color: #111111; font-size: 28px; rotate: 3deg; }
.estilo-collage .v2 { background: #f7f5ef; color: #111111; font-family: 'Muestra Special Elite', monospace; rotate: -2deg; }
.estilo-collage .v3 { background: #e63228; color: #f7f5ef; font-size: 28px; rotate: 5deg; }
.estilo-collage .v4 { background: #f7f5ef; color: #111111; outline: 2px solid #111111; outline-offset: -2px; rotate: -3deg; }
.estilo-collage:is(:hover, :focus-within, :has([value='si']:checked)) .v2 { rotate: 9deg; }
.estilo-collage:is(:hover, :focus-within, :has([value='si']:checked)) .v4 { rotate: -9deg; }
.estilo-collage .cinta { position: absolute; left: 132px; top: 26px; width: 62px; height: 20px; background: rgb(255 248 215 / 0.8); rotate: 16deg; clip-path: polygon(0 10%, 8% 0, 16% 12%, 24% 0, 76% 0, 84% 12%, 92% 0, 100% 10%, 100% 90%, 92% 100%, 84% 88%, 76% 100%, 24% 100%, 16% 88%, 8% 100%, 0 90%); }
.estilo-collage .lema { padding: 4px 8px 2px; background: #f7f5ef; font: 400 13px/1.2 'Muestra Special Elite', monospace; rotate: -1deg; }
.estilo-collage:has([value='si']:checked) .brief-muestra-pie { background: #111111; color: #ffe14d; }
.estilo-collage .brief-sello span { width: 26px; height: 26px; background: #ffe14d; clip-path: polygon(50% 0, 61% 30%, 95% 25%, 70% 50%, 95% 75%, 61% 70%, 50% 100%, 39% 70%, 5% 75%, 30% 50%, 5% 25%, 39% 30%); transform: scale(0.3) rotate(-40deg); transition: opacity 300ms, transform 600ms var(--calma); }
.estilo-collage:has([value='si']:checked) .brief-sello span { transform: rotate(-8deg); }

/* Clínico · Iris: su anillo y una tabla de Snellen que se lee cada vez peor
   hacia abajo. Al pasar, las filas se enfocan una tras otra. */
.estilo-clinico { --marcado: #1e6fd9; }
.estilo-clinico .brief-muestra-arte { display: grid; place-items: center; background: #ffffff; }
.estilo-clinico .marca { position: absolute; left: 14px; top: 12px; display: flex; align-items: center; gap: 6px; font: 700 13px/1 'Muestra Jakarta', sans-serif; color: #0f1c2b; }
.estilo-clinico .marca i { width: 14px; height: 14px; border: 3.5px solid #1e6fd9; border-radius: 50%; }
.estilo-clinico .tabla { display: grid; justify-items: center; gap: 7px; padding-top: 6px; color: #0f1c2b; }
.estilo-clinico .tabla b { margin-right: -0.24em; font-family: 'Muestra Jakarta', sans-serif; font-weight: 700; line-height: 1; letter-spacing: 0.24em; transition: filter 700ms var(--calma); }
.estilo-clinico .f1 { font-size: 44px; filter: blur(0.8px); }
.estilo-clinico .f2 { font-size: 27px; filter: blur(2px); }
.estilo-clinico .f3 { font-size: 17px; filter: blur(3.2px); }
.estilo-clinico:is(:hover, :focus-within, :has([value='si']:checked)) .tabla b { filter: blur(0); }
.estilo-clinico:is(:hover, :focus-within, :has([value='si']:checked)) .f2 { transition-delay: 140ms; }
.estilo-clinico:is(:hover, :focus-within, :has([value='si']:checked)) .f3 { transition-delay: 280ms; }
.estilo-clinico:has([value='si']:checked) .brief-muestra-pie { background: #1e6fd9; color: #ffffff; }
.estilo-clinico .brief-sello span { width: 24px; height: 24px; border: 4px solid #ffffff; border-radius: 50%; transform: scale(0.4); transition: opacity 300ms, transform 600ms var(--calma); }
.estilo-clinico:has([value='si']:checked) .brief-sello span { transform: none; }

/* Lo que se mueve en bucle o al pasar: solo sin el movimiento reducido. La
   foto se acerca apenas. */
@media (prefers-reduced-motion: no-preference) {
  .brief-estilo-foto { transition: scale 1200ms var(--calma); }
  .brief-estilo:is(:hover, :focus-within, :has([value='si']:checked)) .brief-estilo-foto { scale: 1.05; }
   reducido. */
  .estilo-tecnologico .curvas { transition: transform 1200ms var(--precisa); }
  .estilo-tecnologico:is(:hover, :focus-within, :has([value='si']:checked)) .curvas { transform: translate(-6px, 4px); }
  .estilo-tecnologico .sensor::after { animation: muestra-late 6s var(--precisa) infinite alternate; }
  .estilo-y2k:is(:hover, :focus-within, :has([value='si']:checked)) .chispa { animation: muestra-titila 6s var(--calma) infinite alternate; }
  .estilo-y2k:is(:hover, :focus-within, :has([value='si']:checked)) .ch2 { animation-delay: -2s; }
  .estilo-y2k:is(:hover, :focus-within, :has([value='si']:checked)) .ch3 { animation-delay: -4s; }
  .estilo-corporativo .suelo { animation: muestra-sismo 6s var(--calma) infinite paused; }
  .estilo-corporativo .ais { animation: muestra-aislador 6s var(--calma) infinite paused; }
  .estilo-corporativo:is(:hover, :focus-within) :is(.suelo, .ais) { animation-play-state: running; }
}

@keyframes muestra-late { from { transform: scale(0.7); opacity: 0.7; } to { transform: scale(1.5); opacity: 0; } }
@keyframes muestra-titila { to { opacity: 1; transform: scale(1.4) rotate(20deg); } }
/* El suelo de Basal se mece y se amortigua; los aisladores se inclinan lo
   que el suelo se corre. Cada tramo frena en su extremo. Si el cursor se va a
   mitad, se detiene donde está, sin saltar. */
@keyframes muestra-sismo { 0% { transform: translateX(0); } 4% { transform: translateX(9px); } 10% { transform: translateX(-6.5px); } 16% { transform: translateX(4.5px); } 22% { transform: translateX(-3px); } 28% { transform: translateX(1.6px); } 34%, 100% { transform: translateX(0); } }
@keyframes muestra-aislador { 0% { transform: skewX(0deg); } 4% { transform: skewX(34.7deg); } 10% { transform: skewX(-26.6deg); } 16% { transform: skewX(19.1deg); } 22% { transform: skewX(-13deg); } 28% { transform: skewX(7deg); } 34%, 100% { transform: skewX(0deg); } }

/* ==================== Las tipografías ==================== */
.brief-tipo .brief-muestra-arte {
  container-type: inline-size;
  display: grid;
  place-items: center;
  white-space: nowrap;
  background: color-mix(in srgb, var(--texto) 3%, var(--superficie));
  color: var(--texto);
}

/* La palabra mide su tamaño de diseño (`--tam`) o, si la tarjeta es más
   angosta, el que la deja en el 82 % de su ancho: `--em` es su ancho en `em`,
   medido en cada letra. */
.brief-tipo .brief-muestra-arte > span {
  font-size: min(var(--tam, 40px), calc(82cqi / var(--em, 4.5)));
  display: inline-block;
  transition:
    transform 500ms var(--masa),
    clip-path 900ms var(--ease);
}

.brief-tipo .brief-sello span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--area);
  color: #ffffff;
  font-size: 12px;
}

.brief-tipo:has(input:checked) .brief-muestra-nombre {
  font: var(--letra);
  font-size: 17px;
}

.tipo-moderna { --letra: 800 1em 'Muestra Manrope', sans-serif; }
.tipo-geometrica { --letra: 500 1em 'Muestra Jost', sans-serif; }
.tipo-serif { --letra: 500 1em 'Muestra Newsreader', Georgia, serif; }
.tipo-redondeada { --letra: 700 1em 'Muestra Fredoka', sans-serif; }
.tipo-display { --letra: 800 1em 'Muestra Bricolage', sans-serif; }
.tipo-tecnica { --letra: 600 1em 'Muestra Plex Mono', monospace; }
.tipo-didona { --letra: 500 1em 'Muestra Bodoni', Didot, serif; }
.tipo-clasica-fina { --letra: 300 1em 'Muestra Cormorant', Georgia, serif; }
.tipo-slab { --letra: 700 1em 'Muestra Zilla', Rockwell, serif; }
.tipo-condensada { --letra: 800 1em 'Muestra Big Shoulders', 'Arial Narrow', sans-serif; }
.tipo-manuscrita { --letra: 700 1em 'Muestra Caveat', cursive; }
.tipo-script { --letra: 400 1em 'Muestra Yellowtail', cursive; }
.tipo-expresiva { --letra: 800 1em 'Muestra Syne', sans-serif; }
.tipo-ancha { --letra: 700 1em 'Muestra Unbounded', sans-serif; }

.brief-tipo .brief-muestra-arte { font: var(--letra); line-height: 1; }
.tipo-moderna { --em: 4.45; }
.tipo-geometrica { --em: 3.91; }
.tipo-serif { --em: 4.04; }
.tipo-redondeada { --em: 4.12; }
.tipo-display { --tam: 48px; --em: 4.28; }
.tipo-display .brief-muestra-arte { letter-spacing: -0.04em; }
.tipo-tecnica { --tam: 28px; --em: 4.8; }
.tipo-didona { --tam: 44px; --em: 4.4; }
.tipo-clasica-fina { --tam: 44px; --em: 3.62; }
.tipo-slab { --em: 4.22; }
.tipo-condensada { --tam: 52px; --em: 3.53; }
.tipo-condensada .brief-muestra-arte { text-transform: uppercase; }
.tipo-manuscrita { --tam: 50px; --em: 3.15; }
.tipo-script { --tam: 46px; --em: 3.31; }
.tipo-expresiva { --tam: 34px; --em: 7.75; }
.tipo-ancha { --tam: 28px; --em: 5.95; }
.tipo-expresiva .brief-muestra-arte i { display: inline-block; font-style: normal; white-space: pre; transition: transform 400ms var(--masa); }

/* Lo que hace cada una al pasar o al marcarse. */
.tipo-moderna:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte > span { transform: scaleX(0.92); }
.tipo-geometrica .brief-muestra-arte::before { content: ''; position: absolute; width: 84px; height: 84px; border: 2px solid color-mix(in srgb, var(--area) 50%, transparent); border-radius: 50%; transform: scale(0); transition: transform 600ms var(--masa); }
.tipo-geometrica:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte::before { transform: scale(1); }
.tipo-serif .brief-muestra-arte > span { padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 700ms var(--ease); }
.tipo-serif:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte > span { background-size: 100% 1.5px; }
.tipo-display:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte > span { transform: scale(1.18); }
.tipo-didona .brief-muestra-arte::before,
.tipo-didona .brief-muestra-arte::after { content: ''; position: absolute; left: 20%; right: 20%; border-top: 1px solid currentColor; transform: scaleX(0); transition: transform 700ms var(--ease); }
.tipo-didona .brief-muestra-arte::before { top: 24px; }
.tipo-didona .brief-muestra-arte::after { bottom: 24px; }
.tipo-didona:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte::before,
.tipo-didona:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte::after { transform: scaleX(1); }
.tipo-clasica-fina .brief-muestra-arte > span { transition: transform 900ms var(--ease); }
.tipo-clasica-fina:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte > span { transform: scaleX(1.12); }
.tipo-condensada:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte > span { transform: scaleX(0.78) scaleY(1.12); }
.tipo-script .brief-muestra-arte > span { transition: text-shadow 400ms var(--masa); }
.tipo-script:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte > span { text-shadow: 3px 3px 0 #ff7a1a, 6px 6px 0 #ff4d40; }
.tipo-expresiva:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte i:nth-child(odd) { transform: translateY(-6px) rotate(-8deg); }
.tipo-expresiva:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte i:nth-child(even) { transform: translateY(4px) rotate(6deg); }
.tipo-ancha:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte > span { transform: scaleX(1.16); }

@media (prefers-reduced-motion: no-preference) {
  .tipo-redondeada:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte > span { animation: muestra-rebote 700ms var(--masa); }
  .tipo-tecnica:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte > span { animation: muestra-teclea 1s steps(8) both; }
  .tipo-slab:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte > span { animation: muestra-sella 500ms var(--masa); }
  .tipo-manuscrita:is(:hover, :focus-within, :has(input:checked)) .brief-muestra-arte > span { animation: muestra-escribe 1.1s var(--ease) both; }
}

@keyframes muestra-rebote { 30% { transform: scale(1.12, 0.88); } 60% { transform: scale(0.95, 1.06); } }
@keyframes muestra-teclea { from { clip-path: inset(0 100% 0 0); } }
@keyframes muestra-sella { from { transform: translateY(-18px) scale(1.15); opacity: 0.4; } }
@keyframes muestra-escribe { from { clip-path: inset(0 100% 0 0); } }

/* ==================== La portada de muestra ====================
 * Las escalas encajan de a una, como los socios de /nosotros (Nosotros.css) y
 * las fases de la tienda (Tienda.css): cada gesto, cada flecha, cae en una
 * escala y ninguna se salta, con la portada de muestra siempre a la vista. Se
 * ve una sola escala a la vez: cada parada mide lo que queda libre.
 *
 * En XL la portada va al lado, centrada en la pantalla, y cada escala se
 * centra junto a ella. Más angosto, la portada va arriba, fija bajo la barra
 * del sitio, y cada escala se centra en lo que queda entre ella y la guía de
 * abajo (`--pie-brief`, Brief.css). Para saber cuánto queda, la portada tiene su
 * ancho fijo, y de él sale su alto (`.mk` va en 16:10,5, más su barra): en un
 * teléfono bajo se angosta, para que siempre quepa una escala entera.
 *
 * El encaje vale mientras se ve esta parte: arriba encajan el comienzo de la
 * página y el de la parte; abajo, la pregunta que sigue, y desde ella se baja
 * libre (su zona de encaje llega al final de la página, y
 * src/comportamiento/encaje.js lo apaga ahí por la rueda del ratón). Con
 * movimiento reducido no encaja. */
@media (prefers-reduced-motion: no-preference) {
  :root:has(.brief-pantalla-escalas:target):not(.libre) {
    scroll-snap-type: y mandatory;
  }

  /* Chrome mide la parada con el desplazamiento del momento y no la vuelve a
     medir: la parte entra sin subir, solo con la opacidad (Brief.css). */
  .brief-pantalla-escalas:target {
    animation-name: brief-asoma;
  }
}

@keyframes brief-asoma {
  from {
    opacity: 0;
  }
}

/* Las paradas de arriba son la portada del brief y la cabecera de la parte,
   no la parte entera: una parada más alta que la pantalla deja parar en
   cualquier punto de ella, y con la flecha Chrome saltaba al final de la
   página. */
.brief-pantalla-escalas > .brief-pantalla-cabeza {
  scroll-snap-align: start;
}

.brief-escalas + * {
  scroll-snap-align: start;
  scroll-margin-bottom: 100000px;
}

.brief-escalas {
  container-type: inline-size;
  display: grid;
  gap: var(--e-4);
  align-items: start;
}

.brief-escalas-lista {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brief-escala-parada {
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-stop: always;
}

@media (min-width: 1200px) {
  .brief-escalas {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--e-8);
  }

  .brief-escala-parada {
    min-height: calc(100svh - var(--bajo-barra) - var(--pie-brief));
    scroll-snap-align: center;
  }

  .brief-mockup-columna {
    position: sticky;
    top: var(--bajo-barra);
    height: calc(100svh - var(--bajo-barra) - var(--pie-brief));
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 1199px) {
  .brief-escalas > * {
    --mockup-ancho: min(100cqw, 30rem, (100svh - var(--barra-alto) - var(--pie-brief) - 17rem) * 1.52);
    --mockup-alto: calc(var(--mockup-ancho) / 1.524 + 43px + var(--e-4));
  }

  .brief-mockup-columna {
    position: sticky;
    top: var(--barra-alto);
    z-index: 1;
    order: -1;
    width: var(--mockup-ancho);
    justify-self: center;
    padding-bottom: var(--e-4);
    background: var(--fondo);
  }

  /* La parada mide lo que encaja (la pantalla sin la barra ni la guía), ni
     un píxel más: más alta, la flecha la recorrería por dentro en vez de
     pasar a la siguiente. Arriba, bajo la portada, su relleno; la escala va
     centrada en lo que queda, y la anterior queda entera fuera de la
     pantalla: nada asoma detrás de la barra. */
  .brief-escala-parada {
    min-height: calc(100svh - var(--bajo-barra) - var(--pie-brief));
    padding-top: calc(var(--mockup-alto) - var(--e-4));
    scroll-snap-align: end;
  }

  /* La primera sube su relleno sobre el lugar de la portada: al llegar a la
     parte, «Luz» sigue a la portada sin un hueco de una pantalla. */
  .brief-escala-parada:first-child {
    margin-top: calc(-1 * var(--mockup-alto) - var(--e-4));
  }

  .brief-mockup-nota {
    display: none;
  }

  /* El foco con teclado deja la escala bajo la portada, no detrás: cuenta
     también sin encaje (movimiento reducido). */
  .brief-escala-parada input {
    scroll-margin-top: calc(var(--mockup-alto) + var(--e-8));
  }
}

.brief-mockup-nota {
  margin-top: var(--e-2);
  font-size: var(--texto-xs);
  color: var(--texto-suave);
}

.brief-mockup {
  overflow: hidden;
  border: 1px solid var(--linea);
  border-radius: var(--radio-tarjeta);
  background: #ffffff;
  box-shadow: 0 30px 60px -36px rgb(10 26 42 / 0.45);
}

.brief-mockup-barra {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #e9eef3;
}

.brief-mockup-barra i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c3ccd5;
}

.brief-mockup-barra span {
  flex: 1;
  margin-left: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #ffffff;
  color: #5a6d80;
  font: 400 11px/1 var(--fuente-datos);
}

/* Todo sale de unas pocas variables que fijan los puntos marcados. Sin
   ninguno marcado, el punto medio. */
.mk {
  --m-fondo: #f5f2ec;
  --m-tinta: #16212b;
  --m-suave: #56616c;
  --m-c1: #2f6f8f;
  --m-c2: #c9a27a;
  --m-c3: #8aa5b3;
  --m-bloque: #d9e2e7;
  --m-r: 8px;
  --m-rb: 8px;
  --m-pad: 38px;
  --m-h1: 34px;
  --m-fuente: var(--fuente-texto);
  --m-peso: 600;
  --m-estilo: normal;
  --m-alinear: left;
  --m-justificar: start;
  --m-giro: 0deg;
  --m-ls: -0.01em;
  container-type: inline-size;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  padding: calc(var(--m-pad) * 0.55) var(--m-pad);
  background: var(--m-fondo);
  color: var(--m-tinta);
  font-family: var(--fuente-texto);
  transition:
    background-color 300ms ease,
    color 300ms ease,
    padding 300ms ease;
}

.mk * {
  transition:
    border-radius 300ms ease,
    background-color 300ms ease,
    color 300ms ease;
}

.mk-nav { display: flex; align-items: center; gap: 14px; font-size: 11px; }
.mk-logo { display: flex; align-items: center; gap: 6px; font: var(--m-estilo) var(--m-peso) 13px/1 var(--m-fuente); }
.mk-logo i { width: 14px; height: 14px; border-radius: calc(var(--m-r) * 0.6); background: var(--m-c1); }
.mk-links { display: flex; gap: 12px; margin-left: auto; color: var(--m-suave); }
.mk-nav .mk-btn { padding: 6px 10px; font-size: 10px; }
.mk-heroe { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: center; text-align: var(--m-alinear); }
.mk-texto { display: grid; justify-items: var(--m-justificar); gap: 10px; }
.mk-sello { color: var(--m-c1); font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.mk-h { font: var(--m-estilo) var(--m-peso) var(--m-h1)/1.02 var(--m-fuente); letter-spacing: var(--m-ls); transform: rotate(var(--m-giro)); transform-origin: left; }
.mk-h span { display: none; }
.mk-h .t3 { display: inline; }
.mk-p { max-width: 34ch; color: var(--m-suave); font-size: 11.5px; line-height: 1.45; }
.mk-acciones { display: flex; flex-wrap: wrap; justify-content: var(--m-justificar); gap: 8px; }
.mk-btn { display: inline-block; padding: 9px 14px; border-radius: var(--m-rb); background: var(--m-c1); color: #ffffff; font-size: 11px; font-weight: 600; }
.mk-sec { background: transparent; color: var(--m-tinta); box-shadow: inset 0 0 0 1px currentColor; }
.mk-img { position: relative; display: block; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: var(--m-r); background: var(--m-bloque); transition: transform 300ms ease; }
.mk-img::before { content: ''; position: absolute; right: 12%; top: 16%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--m-c2); opacity: 0.9; }
.mk-img::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: var(--m-c3); opacity: 0.85; }
.mk-tarjetas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mk-tarjetas > span { display: grid; gap: 4px; padding: 8px; border-radius: var(--m-r); background: color-mix(in srgb, var(--m-tinta) 6%, transparent); }
.mk-tarjetas b { font-size: 10px; }
.mk-tarjetas i { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--m-tinta) 18%, transparent); }
.mk-tarjetas i + i { width: 60%; }
.mk-cifras { display: flex; gap: 16px; color: var(--m-suave); font-size: 9.5px; }
.mk-cifras b { display: block; color: var(--m-tinta); font: var(--m-estilo) var(--m-peso) 16px/1 var(--m-fuente); }
.mk-cinta { position: absolute; left: 0; right: 0; bottom: 0; display: none; align-items: center; height: 22px; overflow: hidden; background: var(--m-c1); color: #ffffff; font-size: 10px; font-weight: 600; white-space: nowrap; }
.mk-cinta span { display: inline-block; padding-left: 100%; }
.mk-sticker { position: absolute; right: 46%; top: 22%; display: none; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--m-c2); color: var(--m-tinta); font-size: 10px; font-weight: 800; line-height: 1.05; text-align: center; transform: rotate(-14deg); }
.mk-forma { position: absolute; display: none; width: 18px; height: 18px; border-radius: var(--m-r); background: var(--m-c3); }
.mk-forma.f1 { left: 52%; top: 18%; }
.mk-forma.f2 { right: 8%; bottom: 30%; border-radius: 50%; background: var(--m-c2); }
.mk-forma.f3 { left: 8%; bottom: 14%; background: var(--m-c1); }

@container (max-width: 420px) {
  .mk-links,
  .mk-tarjetas,
  .mk-img { display: none; }

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

/* Luz */
.brief-escalas:has([name='luz'][value='1']:checked) .mk { --m-fondo: #ffffff; --m-tinta: #121a20; --m-suave: #5b6670; --m-bloque: #e9eef1; }
.brief-escalas:has([name='luz'][value='2']:checked) .mk { --m-fondo: #f5f2ec; --m-tinta: #16212b; --m-suave: #56616c; --m-bloque: #dfe5e8; }
.brief-escalas:has([name='luz'][value='3']:checked) .mk { --m-fondo: #dde5ea; --m-tinta: #121c25; --m-suave: #4a5866; --m-bloque: #c5d1d9; }
.brief-escalas:has([name='luz'][value='4']:checked) .mk { --m-fondo: #1c2a34; --m-tinta: #eef3f6; --m-suave: #a9b8c3; --m-bloque: #2b3d4a; }
.brief-escalas:has([name='luz'][value='5']:checked) .mk { --m-fondo: #0a0f13; --m-tinta: #f4f7f9; --m-suave: #9aa8b2; --m-bloque: #162129; }

/* Densidad: cuánto aparece y cuánto aire hay */
.brief-escalas:has([name='densidad'][value='1']:checked) .mk { --m-pad: 56px; --m-h1: 44px; }
.brief-escalas:has([name='densidad'][value='2']:checked) .mk { --m-pad: 46px; --m-h1: 40px; }
.brief-escalas:has([name='densidad'][value='4']:checked) .mk { --m-pad: 28px; --m-h1: 30px; }
.brief-escalas:has([name='densidad'][value='5']:checked) .mk { --m-pad: 20px; --m-h1: 26px; }
.brief-escalas:has([name='densidad'][value='1']:checked) .mk [data-d]:not([data-d='1']),
.brief-escalas:has([name='densidad'][value='2']:checked) .mk :is([data-d='3'], [data-d='4'], [data-d='5']),
.brief-escalas:not(:has([name='densidad'][value='5']:checked, [name='densidad'][value='4']:checked)) .mk [data-d='4'],
.brief-escalas:not(:has([name='densidad'][value='5']:checked)) .mk [data-d='5'] { display: none; }
.brief-escalas:has([name='densidad'][value='1']:checked) .mk .mk-heroe { grid-template-columns: minmax(0, 1fr); }

/* Color */
.brief-escalas:has([name='color'][value='1']:checked) .mk { --m-c1: var(--m-tinta); --m-c2: color-mix(in srgb, var(--m-tinta) 22%, var(--m-fondo)); --m-c3: color-mix(in srgb, var(--m-tinta) 12%, var(--m-fondo)); }
.brief-escalas:has([name='color'][value='2']:checked) .mk { --m-c1: #2f5d6e; --m-c2: color-mix(in srgb, #2f5d6e 35%, var(--m-fondo)); --m-c3: color-mix(in srgb, #2f5d6e 18%, var(--m-fondo)); }
.brief-escalas:has([name='color'][value='4']:checked) .mk { --m-c1: #d9462b; --m-c2: #f2b33d; --m-c3: #2b7bb9; }
.brief-escalas:has([name='color'][value='5']:checked) .mk { --m-c1: #ff3d7f; --m-c2: #ffd23f; --m-c3: #12c4a8; --m-bloque: #5b3cf0; }

/* Formas */
.brief-escalas:has([name='formas'][value='1']:checked) .mk { --m-r: 0px; --m-rb: 0px; }
.brief-escalas:has([name='formas'][value='2']:checked) .mk { --m-r: 3px; --m-rb: 3px; }
.brief-escalas:has([name='formas'][value='4']:checked) .mk { --m-r: 16px; --m-rb: 999px; }
.brief-escalas:has([name='formas'][value='5']:checked) .mk { --m-r: 30px; --m-rb: 999px; }

/* Época */
.brief-escalas:has([name='epoca'][value='1']:checked) .mk { --m-fuente: 'Muestra Cormorant', Georgia, serif; --m-peso: 300; --m-h1: 40px; --m-alinear: center; --m-justificar: center; --m-ls: 0; }
.brief-escalas:has([name='epoca'][value='1']:checked) .mk .mk-heroe { grid-template-columns: minmax(0, 1fr); }
.brief-escalas:has([name='epoca'][value='1']:checked) .mk .mk-img { display: none; }
.brief-escalas:has([name='epoca'][value='2']:checked) .mk { --m-fuente: 'Muestra Newsreader', Georgia, serif; --m-peso: 500; }
.brief-escalas:has([name='epoca'][value='4']:checked) .mk { --m-fuente: 'Archivo', 'Archivo respaldo', sans-serif; --m-peso: 800; --m-estilo: italic; --m-ls: -0.02em; }
.brief-escalas:has([name='epoca'][value='5']:checked) .mk { --m-fuente: 'Muestra Unbounded', sans-serif; --m-peso: 700; --m-ls: -0.03em; --m-giro: -2deg; }
.brief-escalas:has([name='epoca'][value='5']:checked) .mk .mk-heroe { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); }
.brief-escalas:has([name='epoca'][value='5']:checked) .mk .mk-img { transform: translateY(18px) rotate(4deg); }

/* Actitud: el texto cambia de tono */
.brief-escalas:has([name='actitud']:checked) .mk-h .t3 { display: none; }
.brief-escalas:has([name='actitud'][value='1']:checked) .mk-h .t1,
.brief-escalas:has([name='actitud'][value='2']:checked) .mk-h .t2,
.brief-escalas:has([name='actitud'][value='3']:checked) .mk-h .t3,
.brief-escalas:has([name='actitud'][value='4']:checked) .mk-h .t4,
.brief-escalas:has([name='actitud'][value='5']:checked) .mk-h .t5 { display: inline; }
.brief-escalas:has([name='actitud'][value='4']:checked, [name='actitud'][value='5']:checked) .mk-forma { display: block; }
.brief-escalas:has([name='actitud'][value='5']:checked) .mk-sticker { display: grid; }

/* Movimiento */
.brief-escalas:has([name='movimiento_escala'][value='5']:checked) .mk-cinta { display: flex; }

@media (prefers-reduced-motion: no-preference) {
  .brief-escalas:has([name='movimiento_escala'][value='2']:checked) .mk-btn:not(.mk-sec) { animation: mk-pulso 2.6s ease-in-out infinite; }
  .brief-escalas:has([name='movimiento_escala'][value='3']:checked, [name='movimiento_escala'][value='4']:checked, [name='movimiento_escala'][value='5']:checked) .mk-img::before { animation: mk-flota 5s ease-in-out infinite alternate; }
  .brief-escalas:has([name='movimiento_escala'][value='4']:checked, [name='movimiento_escala'][value='5']:checked) .mk-forma { animation: mk-flota 3.2s ease-in-out infinite alternate; }
  .brief-escalas:has([name='movimiento_escala'][value='4']:checked, [name='movimiento_escala'][value='5']:checked) .mk-forma.f2 { animation-duration: 2.4s; }
  .brief-escalas:has([name='movimiento_escala'][value='5']:checked) .mk-sticker { animation: mk-late 1.6s ease-in-out infinite; }
  .brief-escalas:has([name='movimiento_escala'][value='5']:checked) .mk-cinta span { animation: mk-cinta 9s linear infinite; }
}

@keyframes mk-flota { to { transform: translateY(-10px) rotate(8deg); } }
@keyframes mk-late { 50% { transform: rotate(-4deg) scale(1.08); } }
@keyframes mk-cinta { to { transform: translateX(-100%); } }
@keyframes mk-pulso { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--m-c1) 25%, transparent); } }

/* ==================== Los estilos y sus bocetos ====================
 * Una tarjeta por estilo (PreguntaBrief.jsx): arriba su arte, que lleva a su
 * boceto; debajo su nombre, lo que es y la marca del boceto; y la reacción,
 * que es la elección. «Me gusta» la viste con los colores y la letra de su
 * estilo, como marcar una muestra; las otras dos solo tiñen el borde. En S,
 * de a una y apaisada: el arte al lado del nombre y la reacción a todo el
 * ancho, con sus palabras enteras. */
/* La invitación a recorrerlos: un abanico de tres bocetos que se abre al
   pasar, lo que es, cuántos van y el botón que empieza o retoma donde se
   quedó. La cuenta y el botón cambian de texto con su espacio reservado. */
.brief-recorrer {
  --masa: cubic-bezier(0.34, 1.4, 0.64, 1);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--e-4) var(--e-8);
  margin-bottom: var(--e-6);
  padding: var(--e-4) var(--e-8) var(--e-4) var(--e-6);
  border: 1px solid color-mix(in srgb, var(--area) 30%, var(--linea));
  border-radius: var(--radio-tarjeta);
  background: color-mix(in srgb, var(--area) 5%, var(--superficie));
}

.brief-recorrer[hidden] {
  display: none;
}

.brief-recorrer-abanico {
  position: relative;
  width: 172px;
  height: 100px;
}

.brief-recorrer-abanico span {
  position: absolute;
  left: 52px;
  top: 4px;
  display: grid;
  align-content: start;
  width: 68px;
  height: 90px;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 10px 20px -12px rgb(10 26 42 / 0.55);
  font: var(--letra);
  font-size: 15px;
  line-height: 1;
  transform-origin: 50% 120%;
  transition: transform 520ms var(--masa);
}

.brief-recorrer-abanico .estilo-zen {
  background: #efeae0;
  color: #1c1b19;
  transform: translateX(-30px) rotate(-16deg);
}

.brief-recorrer-abanico .estilo-audaz {
  z-index: 1;
  align-content: end;
  background: #ffe14d;
  color: #111111;
  font-size: 22px;
  transform: translateY(-4px);
}

.brief-recorrer-abanico .estilo-tecnologico {
  justify-items: end;
  background: #f3f4f1;
  color: #101412;
  font-size: 16px;
  transform: translateX(30px) rotate(16deg);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brief-recorrer:hover .estilo-zen {
    transform: translateX(-36px) rotate(-24deg);
  }

  .brief-recorrer:hover .estilo-audaz {
    transform: translateY(-10px);
  }

  .brief-recorrer:hover .estilo-tecnologico {
    transform: translateX(36px) rotate(24deg);
  }
}

.brief-recorrer-texto {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: var(--texto-sm);
  color: var(--texto-suave);
}

.brief-recorrer-texto b {
  font-size: var(--texto-lg);
  line-height: 1.25;
  color: var(--texto);
}

.brief-recorrer-cuenta {
  margin-top: 2px;
  font-family: var(--fuente-datos);
  font-size: var(--texto-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--area);
  white-space: nowrap;
}

.brief-recorrer .boton {
  min-width: 16rem;
  justify-content: center;
  gap: var(--e-2);
}

/* Según el ancho que le deja la página (con o sin el índice al lado), no el
   de la pantalla: el botón baja a su propia fila, y en lo más angosto todo se
   apila. */
.brief-pantallas {
  container: pantallas / inline-size;
}

@container pantallas (max-width: 820px) {
  .brief-recorrer {
    grid-template-columns: auto minmax(0, 1fr);
    padding-right: var(--e-6);
  }

  .brief-recorrer .boton {
    grid-column: 1 / -1;
  }
}

@container pantallas (max-width: 520px) {
  .brief-recorrer {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: var(--e-6) var(--e-4) var(--e-4);
    text-align: center;
  }

  .brief-recorrer .boton {
    width: 100%;
    min-width: 0;
  }
}

.brief-estilos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--e-3);
}

.brief-estilo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  min-width: 0;
  margin: 0;
  padding: 0 0 var(--e-3);
  border: 1px solid var(--linea);
  border-radius: var(--radio-tarjeta);
  overflow: hidden;
  background: var(--superficie);
  transition:
    transform 260ms var(--masa),
    box-shadow 260ms var(--ease),
    border-color 200ms var(--ease);
}

.brief-estilo:has([value='si']:checked) {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--marcado, var(--area));
}

.brief-estilo:has([value='medio']:checked) {
  border-color: color-mix(in srgb, var(--medio) 55%, var(--linea));
}

.brief-estilo:has([value='no']:checked) {
  border-color: color-mix(in srgb, var(--nogusta) 55%, var(--linea));
}

/* La parte de arriba de la tarjeta es el enlace al boceto: la portada, en
   16:9, el nombre y, al final, justo sobre las reacciones, «Ver el boceto». */
.brief-estilo-enlace {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brief-estilo-enlace,
.brief-estilo-enlace:hover {
  color: inherit;
}

.brief-estilo-cuadro {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--placa);
}

.brief-estilo-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brief-estilo .brief-muestra-arte {
  position: absolute;
  inset: 0;
}

.brief-estilo-enlace:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: -3px;
}

.brief-estilo-ver {
  display: block;
  padding: 9px var(--e-4);
  border-block: 1px solid var(--linea);
  background: color-mix(in srgb, var(--accion) 5%, var(--superficie));
  color: var(--accion);
  font: 600 12.5px/1.2 var(--fuente-texto);
}

.brief-estilo-ver::after {
  content: '→';
  display: inline-block;
  margin-left: 6px;
  transition: transform 260ms var(--masa);
}

.brief-estilo-enlace:hover .brief-estilo-ver {
  background: color-mix(in srgb, var(--accion) 10%, var(--superficie));
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brief-estilo-enlace:hover .brief-estilo-ver::after {
    transform: translateX(3px);
  }
}

.brief-estilo-boceto {
  margin-top: 2px;
  font-family: var(--fuente-datos);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  opacity: 0.75;
}

/* Gusta: el nombre toma la letra del estilo. */
.brief-estilo:has([value='si']:checked) .brief-muestra-nombre {
  font: var(--letra);
  font-size: 17px;
}

/* Me gusta, más o menos o no: tres círculos con su dibujo y su nombre. Al
   pasar, el círculo toma el color de su reacción; al marcarse, se llena con
   él y salta, y el corazón se rellena. Los tres colores dan 5:1 o más con el
   blanco. */
.brief-estilos {
  --gusta: #c2364f;
  --medio: #905500;
  --nogusta: #47607a;
}

.brief-boceto-reacciones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--e-1);
  margin: var(--e-3) var(--e-2) 0;
}

.brief-reaccion {
  --color: var(--gusta);
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding: 4px 2px;
  border-radius: var(--radio);
  color: var(--texto-suave);
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: color 160ms ease;
}

.brief-reaccion-medio {
  --color: var(--medio);
}

.brief-reaccion-no {
  --color: var(--nogusta);
}

.brief-reaccion input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.brief-reaccion-icono {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--linea);
  border-radius: 50%;
  background: var(--superficie);
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    transform 160ms ease;
}

.brief-reaccion-icono svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .brief-reaccion:hover {
    color: var(--color);
  }

  .brief-reaccion:hover .brief-reaccion-icono {
    border-color: var(--color);
    background: color-mix(in srgb, var(--color) 8%, var(--superficie));
  }
}

.brief-reaccion:active .brief-reaccion-icono {
  transform: scale(0.94);
}

.brief-reaccion:has(input:focus-visible) .brief-reaccion-icono {
  outline: 2px solid var(--foco);
  outline-offset: 2px;
}

.brief-reaccion:has(input:checked) {
  color: var(--color);
  font-weight: 600;
}

.brief-reaccion:has(input:checked) .brief-reaccion-icono {
  border-color: var(--color);
  background: var(--color);
  color: #ffffff;
}

.brief-reaccion-si:has(input:checked) .brief-reaccion-icono svg {
  fill: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .brief-reaccion:has(input:checked) .brief-reaccion-icono {
    animation: reaccion-salta 460ms cubic-bezier(0.34, 1.4, 0.64, 1);
  }
}

@keyframes reaccion-salta {
  40% {
    transform: scale(1.16);
  }
}

/* La nota aparece al calificar: antes no hay de qué escribir. */
.brief .brief-boceto-nota {
  width: auto;
  margin: var(--e-2) var(--e-3) 0;
}

.brief-estilo:not(:has(input[type='radio']:checked)) .brief-boceto-nota:placeholder-shown {
  display: none;
}

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

  /* La portada, en su 16:9, al lado del nombre, y «Ver el boceto» debajo de
     los dos. */
  .brief-estilo-enlace {
    display: grid;
    grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr);
    align-items: center;
  }

  .brief-estilo-cuadro {
    margin: var(--e-3) 0 var(--e-3) var(--e-3);
    border-radius: 6px;
  }

  .brief-estilo-ver {
    grid-column: 1 / -1;
    padding-inline: var(--e-3);
    font-size: 12px;
  }

  /* El arte se dibuja igual, a la mitad, y llena su cuadro. */
  .brief-estilo .brief-muestra-arte {
    inset: 0 auto auto 0;
    width: 200%;
    height: 200%;
    transform: scale(0.5);
    transform-origin: 0 0;
  }

  .brief-estilo .brief-muestra-pie {
    align-content: center;
    padding: var(--e-3) 40px var(--e-3) var(--e-4);
  }
}

/* ==================== El visor de los bocetos ====================
 * Un mazo de cartas (src/comportamiento/brief/brief-visor.js). Cada boceto es
 * una carta casi a pantalla completa, sobre la tinta del sitio, con el
 * siguiente esperando debajo, un poco más chico. Arriba va una franja fina con
 * salir, el estilo y cuánto va; sobre la carta flotan cuatro botones redondos
 * que no tapan más que su círculo: atrás, no, comentar y me gusta. Al
 * arrastrar, la carta se corre y gira, aparece su sello y el botón de ese lado
 * crece (`--avance`, de -1 a 1 en el umbral). El comentario sube en una hoja.
 * Mientras carga, la carta tiene el color del boceto. Todo respeta las zonas
 * seguras del teléfono. En teléfonos y tabletas verticales no hay marco: el
 * boceto ocupa la pantalla entera y la franja baja a los botones (al final de
 * esta sección).
 *
 * Mientras el visor está abierto, el fondo del documento es el color del
 * boceto (brief-visor.js): es lo que Safari muestra sobre el comienzo de la
 * página, bajo la hora, y el fondo del visor no lo oscurece. */
html:has(.brief-visor[open]) {
  overflow: hidden;
  background-color: var(--fondo-boceto);
}

.brief-visor {
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --margen: 8px;
  --vidrio-visor: rgb(10 26 42 / 0.66);
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--fondo);
  color: var(--texto);
}

.brief-visor[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.brief-visor::backdrop {
  background: none;
}

@media (prefers-reduced-motion: no-preference) {
  .brief-visor[open] {
    animation: visor-entra 320ms var(--ease);
  }
}

@keyframes visor-entra {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
}

@media (min-width: 768px) {
  .brief-visor {
    --margen: 14px;
  }
}

.brief-visor-cabeza {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
  align-items: center;
  gap: var(--e-3);
  padding: calc(6px + env(safe-area-inset-top, 0px)) max(var(--margen), env(safe-area-inset-right, 0px)) 6px max(var(--margen), env(safe-area-inset-left, 0px));
}

.brief-visor-salir {
  justify-self: start;
  min-height: 40px;
  padding: 0 var(--e-3);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--texto);
  font: 600 var(--texto-sm) / 1 var(--fuente-texto);
  cursor: pointer;
  transition: background-color 160ms ease;
}

.brief-visor-salir:hover {
  background: color-mix(in srgb, var(--texto) 10%, transparent);
}

.brief-visor-salir:focus-visible {
  outline: 2px solid var(--foco);
  outline-offset: 2px;
}

.brief-visor-titulo {
  display: grid;
  min-width: 0;
  margin: 0;
  text-align: center;
  font-size: var(--texto-sm);
  line-height: 1.25;
}

.brief-visor-titulo b,
.brief-visor-titulo span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-visor-titulo span {
  font-size: var(--texto-xs);
  color: var(--texto-suave);
}

/* Cuánto va, con el ancho de «24 de 24» reservado: no mueve el título. */
.brief-visor-cuenta {
  justify-self: end;
  min-width: 5.5em;
  margin: 0;
  padding-right: var(--e-2);
  font-family: var(--fuente-datos);
  font-size: var(--texto-xs);
  text-align: right;
  color: var(--texto-suave);
}

.brief-visor-mazo {
  position: relative;
  margin: 0 max(var(--margen), env(safe-area-inset-right, 0px)) max(var(--margen), env(safe-area-inset-bottom, 0px))
    max(var(--margen), env(safe-area-inset-left, 0px));
}

/* La carta gira alrededor de un punto bajo (brief-visor.js lo repite para
   leer el dedo). Sin boceto (`data-i`), no se ve: bajo la última no hay
   nada. */
.brief-visor-carta {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--fondo-carta, #ffffff);
  box-shadow: 0 10px 36px rgb(0 0 0 / 0.35);
  transform: scale(0.95);
  transform-origin: 50% 90%;
}

.brief-visor-carta.arriba {
  z-index: 1;
  transform: none;
}

.brief-visor-carta:not([data-i]) {
  visibility: hidden;
}

.brief-visor-carta iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  transition: opacity 300ms var(--ease);
}

.brief-visor-carta.cargando iframe {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .brief-visor-carta {
    transform: none;
  }
}

/* Los sellos: «Me gusta» a la izquierda al ir a la derecha y «No» a la
   derecha al ir a la izquierda, como un timbre sobre la página. Blanco sobre
   sus colores: 5:1 o más. Solo los lleva la carta de arriba. */
.brief-visor-sello {
  position: absolute;
  top: clamp(24px, 7vh, 64px);
  padding: 6px 14px;
  border: 2px solid #ffffff;
  border-radius: 8px;
  color: #ffffff;
  font: 800 clamp(20px, 2.6vw, 28px) / 1.1 var(--fuente-texto);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.25);
  pointer-events: none;
  transition: opacity 120ms linear;
}

.brief-visor-sello-si {
  left: 20px;
  background: #c2364f;
  opacity: clamp(0, var(--avance, 0), 1);
  transform: rotate(-10deg);
}

.brief-visor-sello-no {
  right: 20px;
  background: #47607a;
  opacity: clamp(0, calc(var(--avance, 0) * -1), 1);
  transform: rotate(10deg);
}

.brief-visor-carta:not(.arriba) {
  --avance: 0;
}

/* Los botones flotan sobre la carta, en vidrio neutro. El del lado al que va
   la carta crece con el arrastre. */
.brief-visor-botones {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  touch-action: none;
  transition:
    opacity 240ms ease,
    transform 320ms var(--ease);
}

.brief-visor-boton {
  --color: var(--texto);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 50%;
  background: var(--vidrio-visor);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--texto);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.28);
  cursor: pointer;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    transform 160ms ease,
    scale 120ms linear;
}

.brief-visor-boton svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brief-visor-boton[data-elegir] {
  width: 60px;
  height: 60px;
}

.brief-visor-boton[data-elegir] svg {
  width: 28px;
  height: 28px;
}

.brief-visor-boton[data-atras] {
  width: 44px;
  height: 44px;
}

.brief-visor-boton[data-atras] svg {
  width: 20px;
  height: 20px;
}

.brief-visor-boton[data-elegir='si'] {
  --color: #ff7a93;
  scale: calc(1 + 0.14 * clamp(0, var(--avance, 0), 1));
}

.brief-visor-boton[data-elegir='no'] {
  --color: #b8c8d8;
  scale: calc(1 + 0.14 * clamp(0, calc(var(--avance, 0) * -1), 1));
}

.brief-visor-boton[data-comentar] {
  --color: var(--accion);
}

@media (hover: hover) {
  .brief-visor-boton:not(:disabled):hover {
    border-color: var(--color);
    color: var(--color);
  }
}

.brief-visor-boton:not(:disabled):active {
  transform: scale(0.92);
}

.brief-visor-boton:focus-visible {
  outline: 2px solid var(--foco);
  outline-offset: 3px;
}

.brief-visor-boton[aria-pressed='true'] {
  border-color: var(--color);
  background: var(--color);
  color: var(--fondo);
}

.brief-visor-boton:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Cómo se usa, sobre los botones, hasta la primera decisión. */
.brief-visor-ayuda {
  position: absolute;
  z-index: 2;
  bottom: 88px;
  left: 50%;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--vidrio-visor);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: var(--texto-xs);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition:
    opacity 300ms ease,
    visibility 0s 300ms;
}

.con-ayuda .brief-visor-ayuda {
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms ease;
}

.brief-visor-ayuda-tactil {
  display: none;
}

@media (pointer: coarse) {
  .brief-visor-ayuda-tactil {
    display: inline;
  }

  .brief-visor-ayuda-teclado {
    display: none;
  }
}

/* Mientras se arrastra o se comenta, la ayuda no estorba; con la hoja
   abierta, los botones bajan. */
.arrastrando .brief-visor-ayuda,
.con-hoja .brief-visor-ayuda {
  opacity: 0;
}

.con-hoja .brief-visor-botones {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 24px);
}

/* La hoja del comentario sube desde abajo, sobre la carta: el boceto se
   sigue viendo mientras se escribe. A 16 px: iOS no hace zoom. */
.brief-visor-hoja {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--e-2) var(--e-3);
  width: min(100%, 36rem);
  margin-inline: auto;
  padding: var(--e-4) max(var(--e-4), env(safe-area-inset-right, 0px)) calc(var(--e-4) + env(safe-area-inset-bottom, 0px))
    max(var(--e-4), env(safe-area-inset-left, 0px));
  border-radius: 18px 18px 0 0;
  background: var(--superficie);
  box-shadow: 0 -10px 40px rgb(0 0 0 / 0.35);
  visibility: hidden;
  transform: translateY(105%);
  transition:
    transform 360ms var(--ease),
    visibility 0s 360ms;
}

.con-hoja .brief-visor-hoja {
  visibility: visible;
  transform: none;
  transition: transform 360ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .brief-visor-hoja,
  .con-hoja .brief-visor-hoja {
    transform: none;
  }
}

.brief-visor-hoja label {
  grid-column: 1 / -1;
  font-weight: 700;
}

.brief-visor-nota {
  min-width: 0;
  min-height: 48px;
  padding: 0 var(--e-4);
  border: 1px solid color-mix(in srgb, var(--texto) 30%, transparent);
  border-radius: var(--radio);
  background: color-mix(in srgb, var(--texto) 6%, transparent);
  color: var(--texto);
  font: 400 16px/1.2 var(--fuente-texto);
}

.brief-visor-nota::placeholder {
  color: var(--texto-suave);
}

.brief-visor-nota:focus {
  border-color: var(--accion);
  outline: none;
  background: color-mix(in srgb, var(--texto) 10%, transparent);
}

/* En teléfonos y tabletas verticales el boceto va de bajo el reloj al borde
   de abajo, sin marco ni esquinas. Salir se suma a los botones, y el estilo y
   la cuenta van en una píldora encima de ellos. Lo que tapan estos controles
   lo suma el pie del boceto (`--reserva-abajo`, bocetos/barra.css).

   El boceto sigue detrás de la hora y de la barra de Safari, como el resto
   del sitio. Por eso aquí el visor no es fijo: Safari deja lo fijo entre la
   hora y su barra. Va absoluto donde está la página (`--visor-y`,
   brief-visor.js), y las cartas se extienden 80 px bajo la hora y 110 bajo
   la barra; el boceto sabe que eso queda tapado (bocetos/barra.css). Detrás,
   una sombra del color del boceto cubre lo que las cartas dejan al
   moverse. */
@media (max-width: 1023px) {
  .brief-visor {
    position: absolute;
    inset: auto 0;
    top: var(--visor-y, 0px);
    height: 100%;
    overflow: visible;
    background: var(--fondo-boceto, var(--fondo));
    box-shadow: 0 0 0 200px var(--fondo-boceto, var(--fondo));
  }

  .brief-visor::backdrop {
    display: none;
  }

  .brief-visor[open] {
    grid-template-rows: minmax(0, 1fr);
  }

  .brief-visor-mazo {
    margin: env(safe-area-inset-top, 0px) 0 0;
  }

  .brief-visor-carta {
    inset: -80px 0 -110px;
    border-radius: 0;
  }

  .brief-visor-sello {
    top: calc(80px + clamp(24px, 7vh, 64px));
  }

  .brief-visor-cabeza {
    position: absolute;
    z-index: 2;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    display: flex;
    align-items: baseline;
    gap: var(--e-2);
    max-width: calc(100% - 32px);
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--vidrio-visor);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    white-space: nowrap;
    translate: -50% 0;
    transition: opacity 240ms ease;
  }

  .brief-visor-salir,
  .brief-visor-titulo span {
    display: none;
  }

  .brief-visor-titulo {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brief-visor-cuenta {
    min-width: 0;
    padding: 0;
  }

  .brief-visor-botones {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .brief-visor-ayuda {
    bottom: calc(122px + env(safe-area-inset-bottom, 0px));
  }

  .con-hoja .brief-visor-cabeza {
    opacity: 0;
  }
}

@media (max-width: 360px) {
  .brief-visor-botones {
    gap: 8px;
  }
}

@media (min-width: 1024px) {
  .brief-visor-boton[data-cerrar] {
    display: none;
  }
}

/* ==================== Los tipos de logo ====================
 * Cada tipo dibujado con el nombre del negocio (MuestraBrief.jsx y
 * src/comportamiento/brief/brief-logo.js), en tinta y un acento, sin la voz de
 * Volutus: son muestras de su marca, no de la nuestra. El nombre se achica con
 * su largo (`--largo`) para entrar en su cuadro. Al pasar o marcarse, cada uno
 * hace lo suyo: el aro se dibuja, el sol sale, el personaje guiña. */
.brief-muestras-logo {
  --largo: 8;
  --tinta-logo: #1d2430;
  --acento-logo: #c8553d;
  --suave-logo: #7a8594;
}

.brief-logo {
  grid-template-rows: 140px auto;
}

.brief-logo .brief-muestra-arte {
  container-type: inline-size;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  padding: 12px;
  background: #f7f5f1;
  color: var(--tinta-logo);
  text-align: center;
}

.brief-logo .brief-sello span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--area);
  color: #ffffff;
  font-size: 12px;
}

/* El nombre se achica con su largo y, si es muy largo, baja a una segunda
   línea pareja; más allá, se corta con puntos suspensivos. */
.brief-logo .nombre {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(13px, calc(150cqi / var(--largo)), 26px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.brief-logo .picto {
  width: min(46px, 30cqi);
  height: min(46px, 30cqi);
  overflow: visible;
}

.brief-logo .picto .sol {
  fill: var(--acento-logo);
  transition: transform 700ms var(--masa);
}

.brief-logo .picto .cerro {
  fill: var(--tinta-logo);
}

.brief-logo:is(:hover, :focus-within, :has(input:checked)) .picto .sol {
  transform: translateY(-5px);
}

/* Logotipo: el nombre solo, con su letra, que se ajusta al pasar. */
.logo-nombre .nombre {
  font: 700 clamp(15px, calc(160cqi / var(--largo)), 30px) / 1.1 'Muestra Jakarta', sans-serif;
  letter-spacing: -0.02em;
  transition: letter-spacing 600ms var(--ease);
}

.logo-nombre:is(:hover, :focus-within, :has(input:checked)) .nombre {
  letter-spacing: -0.05em;
}

/* Monograma: las iniciales enlazadas dentro de un aro que se dibuja. */
.logo-monograma .brief-muestra-arte {
  position: relative;
}

.logo-monograma .aro {
  position: absolute;
  width: min(96px, 70cqi);
  height: min(96px, 70cqi);
  fill: none;
  stroke: var(--tinta-logo);
  stroke-width: 1.5;
  stroke-dasharray: 290;
  stroke-dashoffset: 90;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 900ms var(--ease);
}

.logo-monograma:is(:hover, :focus-within, :has(input:checked)) .aro {
  stroke-dashoffset: 0;
}

.logo-monograma .iniciales {
  font: 500 min(44px, 32cqi) / 1 'Muestra Bodoni', Didot, serif;
  letter-spacing: -0.12em;
  margin-left: -0.12em;
}

/* Símbolo: solo el dibujo, más grande. */
.logo-simbolo .picto {
  width: min(72px, 50cqi);
  height: min(72px, 50cqi);
}

/* Abstracto: tres formas que se reacomodan. */
.logo-abstracto .formas {
  position: relative;
  width: min(76px, 55cqi);
  aspect-ratio: 1;
}

.logo-abstracto .formas i {
  position: absolute;
  width: 60%;
  height: 60%;
  mix-blend-mode: multiply;
  transition: transform 700ms var(--masa);
}

.logo-abstracto .formas i:nth-child(1) {
  left: 0;
  top: 0;
  border-radius: 50%;
  background: var(--acento-logo);
}

.logo-abstracto .formas i:nth-child(2) {
  right: 0;
  top: 10%;
  border-radius: 0 50% 50% 50%;
  background: #e8b04a;
}

.logo-abstracto .formas i:nth-child(3) {
  left: 20%;
  bottom: 0;
  border-radius: 50% 50% 0 50%;
  background: #3d6f8f;
}

.logo-abstracto:is(:hover, :focus-within, :has(input:checked)) .formas i:nth-child(1) {
  transform: translate(6px, 4px);
}

.logo-abstracto:is(:hover, :focus-within, :has(input:checked)) .formas i:nth-child(2) {
  transform: translate(-6px, 2px) rotate(90deg);
}

.logo-abstracto:is(:hover, :focus-within, :has(input:checked)) .formas i:nth-child(3) {
  transform: translateY(-6px) rotate(-90deg);
}

/* Símbolo + nombre: el dibujo y la palabra, separados. */
.logo-simbolo-y-nombre .brief-muestra-arte {
  flex-wrap: nowrap;
  gap: 10px;
}

.logo-simbolo-y-nombre .picto {
  flex: none;
  width: 36px;
  height: 36px;
}

.logo-simbolo-y-nombre .nombre {
  font: 700 clamp(13px, calc(120cqi / var(--largo)), 22px) / 1.1 'Muestra Jakarta', sans-serif;
  text-align: left;
}

/* Fundidos: la inicial es el símbolo, y el nombre sigue desde ella. */
.logo-fundidos .fundido {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  font: 800 clamp(14px, calc(150cqi / var(--largo)), 26px) / 1 'Muestra Manrope', sans-serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-fundidos .fundido > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-fundidos .inicial {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.6em;
  height: 1.6em;
  margin-right: 0.08em;
  border-radius: 0.36em;
  background: var(--acento-logo);
  color: #ffffff;
  transition: border-radius 600ms var(--masa);
}

.logo-fundidos:is(:hover, :focus-within, :has(input:checked)) .inicial {
  border-radius: 50%;
}

/* Emblema: el nombre dentro de un sello con doble borde. */
.logo-emblema .insignia {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  width: min(112px, 84cqi);
  aspect-ratio: 1;
  padding: 10px;
  border: 2px solid var(--tinta-logo);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 3px #f7f5f1,
    inset 0 0 0 4px var(--tinta-logo);
  transition: transform 700ms var(--masa);
}

.logo-emblema .insignia small {
  font: 600 7.5px/1 var(--fuente-datos);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--suave-logo);
}

.logo-emblema .nombre {
  max-width: 76%;
  font: 400 clamp(10px, calc(70cqi / var(--largo)), 15px) / 1.1 'Muestra Alegreya', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
}

.logo-emblema:is(:hover, :focus-within, :has(input:checked)) .insignia {
  transform: rotate(-8deg);
}

/* Mascota: un personaje que da la cara y guiña. */
.logo-mascota .brief-muestra-arte {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
}

.logo-mascota .cara {
  width: min(60px, 40cqi);
  height: min(60px, 40cqi);
}

.logo-mascota .cabeza,
.logo-mascota .oreja {
  fill: #e8b04a;
}

.logo-mascota .ojo {
  fill: var(--tinta-logo);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 200ms ease;
}

.logo-mascota .boca {
  fill: none;
  stroke: var(--tinta-logo);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.logo-mascota:is(:hover, :focus-within, :has(input:checked)) .guino {
  transform: scaleY(0.15);
}

.logo-mascota .nombre {
  font: 700 clamp(12px, calc(120cqi / var(--largo)), 18px) / 1.1 'Muestra Fredoka', sans-serif;
}

/* Firma: el nombre escrito a mano y subrayado de un trazo. */
.logo-firma .brief-muestra-arte {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
}

.logo-firma .nombre {
  padding-inline: 4px;
  font: 400 clamp(18px, calc(190cqi / var(--largo)), 36px) / 1.2 'Muestra Yellowtail', cursive;
}

.logo-firma .subraya {
  width: 70%;
  height: 12px;
  fill: none;
  stroke: var(--acento-logo);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 900ms var(--ease);
}

.logo-firma:is(:hover, :focus-within, :has(input:checked)) .subraya {
  stroke-dashoffset: 0;
}

/* Variable: la misma marca en tres formas y colores, que se turnan. */
.logo-variable .variantes {
  display: flex;
  gap: min(8px, 4cqi);
}

.logo-variable .variantes span {
  display: grid;
  place-items: center;
  width: min(44px, 26cqi);
  aspect-ratio: 1;
  font: 800 min(22px, 13cqi) / 1 'Muestra Manrope', sans-serif;
  transition:
    border-radius 600ms var(--masa),
    transform 600ms var(--masa);
}

.logo-variable .v1 {
  border-radius: 50%;
  background: var(--acento-logo);
  color: #ffffff;
}

.logo-variable .v2 {
  border-radius: 10px;
  background: var(--tinta-logo);
  color: #ffffff;
}

.logo-variable .v3 {
  border: 2px solid var(--tinta-logo);
  border-radius: 0;
  color: var(--tinta-logo);
}

.logo-variable:is(:hover, :focus-within, :has(input:checked)) .v1 {
  border-radius: 10px;
  transform: rotate(-8deg);
}

.logo-variable:is(:hover, :focus-within, :has(input:checked)) .v2 {
  border-radius: 50%;
  transform: translateY(-4px);
}

.logo-variable:is(:hover, :focus-within, :has(input:checked)) .v3 {
  border-radius: 14px;
  transform: rotate(8deg);
}

/* ==================== El logo que se sube ====================
 * La casilla nativa cubre la zona, transparente: tocarla abre el selector y
 * soltar un archivo encima lo elige, sin JavaScript. Con él
 * (src/comportamiento/brief/brief-logo.js) se ve la vista previa y el estado
 * dice qué pasó. */
.brief-archivo {
  display: grid;
  gap: var(--e-2);
}

.brief-archivo-zona {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--e-4);
  min-height: 112px;
  padding: var(--e-4);
  border: 2px dashed color-mix(in srgb, var(--area) 45%, var(--linea));
  border-radius: var(--radio-tarjeta);
  background: color-mix(in srgb, var(--area) 4%, var(--superficie));
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.brief-archivo-zona:hover,
.brief-archivo-zona.encima {
  border-color: var(--area);
  background: color-mix(in srgb, var(--area) 9%, var(--superficie));
}

.brief-archivo-zona:has(input:focus-visible) {
  outline: 2px solid var(--foco);
  outline-offset: 3px;
}

.brief .brief-archivo-zona input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.brief-archivo-vista {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radio);
  background: var(--superficie);
  box-shadow: 0 0 0 1px var(--linea);
  overflow: hidden;
}

.brief-archivo-vista img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

/* Sin archivo, una flecha hacia arriba; con un PDF o un EPS, su formato. */
.brief-archivo-icono {
  font: 600 13px/1 var(--fuente-datos);
  letter-spacing: 0.06em;
  color: var(--area);
}

.brief-archivo:not(.con-archivo) .brief-archivo-icono::before {
  content: '↑';
  font-size: 26px;
}

.brief-archivo-vista:has(img:not([hidden])) .brief-archivo-icono {
  display: none;
}

.brief-archivo-texto {
  font-size: var(--texto-sm);
  color: var(--texto-suave);
}

.brief-archivo-texto b {
  display: block;
  color: var(--texto);
}

/* Dos líneas reservadas: el mensaje cambia sin mover lo de abajo. */
.brief-archivo-estado {
  min-height: calc(2 * 1.4em);
  margin: 0;
  font-size: var(--texto-xs);
  line-height: 1.4;
  color: var(--texto-suave);
}

.brief-archivo.con-archivo .brief-archivo-estado {
  color: var(--listo);
}

.brief-archivo.con-error .brief-archivo-estado {
  color: var(--obligatorio);
}

.brief-archivo-quitar {
  justify-self: start;
  min-height: 44px;
  padding: 0 var(--e-4);
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: var(--superficie);
  color: var(--texto);
  font: 600 var(--texto-sm) / 1 var(--fuente-texto);
  cursor: pointer;
}

.brief-archivo-quitar:hover {
  border-color: var(--obligatorio);
  color: var(--obligatorio);
}

.brief-archivo-quitar[hidden] {
  display: none;
}

/* ==================== Las pastillas de una empresa ====================
 * Como la de WhatsApp del contacto, que es la de «Whatsapp» tal
 * cual (Contacto.css): marcada, cada una toma los colores de su aplicación y
 * su letra —la del sistema que más se le parece, sin descargar nada— y, en
 * el lugar del ✓, su logotipo oficial (MuestraBrief.jsx), que como el ✓
 * aparece solo al marcarla. Al pasar el cursor, el borde toma el color de la
 * empresa. */
.chip-google { --marca: #4285f4; }
.chip-instagram { --marca: #d6249f; }
.chip-facebook { --marca: #0866ff; }
.chip-tiktok { --marca: #fe2c55; }
.chip-linkedin { --marca: #0a66c2; }
.chip-whatsapp { --marca: #25d366; }

.chip.brief-marca:hover {
  border-color: var(--marca);
}

.chip.brief-marca:has(input:checked)::before {
  content: none;
}

/* El logotipo va antes del nombre. */
.logo-marca {
  display: none;
  flex: none;
  order: -1;
}

.logo-marca svg {
  width: 18px;
  height: 18px;
  overflow: visible;
}

.brief-marca:has(input:checked) .logo-marca {
  display: inline-flex;
}

/* Google: blanca y con la sombra de su buscador. */
.chip.chip-google:has(input:checked) {
  border-color: #dfe1e5;
  background: #fff;
  color: #202124;
  font-family: 'Google Sans', 'Product Sans', Arial, sans-serif;
  font-weight: 500;
  box-shadow: 0 1px 6px rgb(32 33 36 / 28%);
}

/* Instagram: blanca, como su aplicación, con el borde de su degradado. */
.chip.chip-instagram:has(input:checked) {
  border-color: #d6249f;
  background: #fff;
  color: #262626;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
}

/* Facebook: su azul y su Helvetica. */
.chip.chip-facebook:has(input:checked) {
  border-color: #0866ff;
  background: #0866ff;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
}

/* TikTok: negra, como su aplicación. */
.chip.chip-tiktok:has(input:checked) {
  border-color: #000;
  background: #000;
  color: #fff;
  font-family: 'TikTok Sans', 'Proxima Nova', Arial, sans-serif;
  font-weight: 700;
}

/* LinkedIn: su azul y la letra del sistema. */
.chip.chip-linkedin:has(input:checked) {
  border-color: #0a66c2;
  background: #0a66c2;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
}

/* Al marcarse, el logotipo salta como el ✓ de las demás pastillas. */
@media (prefers-reduced-motion: no-preference) {
  .brief-marca:has(input:checked) .logo-marca {
    animation: brief-salta 280ms var(--ease-out);
  }
}

/* ==================== Movimiento reducido ==================== */
@media (prefers-reduced-motion: reduce) {
  .brief-muestra,
  .brief-muestra *,
  .brief-muestra *::before,
  .brief-muestra *::after,
  .mk,
  .mk *,
  .brief-estilo,
  .brief-estilo *,
  .brief-estilo *::before,
  .brief-estilo *::after {
    transition: none !important;
  }
}
