:root {
  --papel: #fcfbf8;
  --tinta: #1c1424;
  --tinta-suave: #574a5f;
  --filete: #ddd6df;
  --sobre-tinta: #f3efe6;
  --sobre-tinta-suave: #c4b9cb;
  --filete-tinta: #3a2e44;
  --acento: #6b5a73;
  --acento-claro: #c4b9cb;
  --sobre-acento: #1c1424;
  --dorado: #f2b705;

  --familia: "Fira Sans", system-ui, sans-serif;
  --radio: 2px;
  --margen: clamp(16px, 4.5vw, 40px);
  --sale: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--papel); color: var(--tinta);
  font-family: var(--familia); font-size: 1.0625rem; line-height: 1.5;
  font-variant-numeric: tabular-nums; text-rendering: optimizeLegibility;
}
::selection { background: var(--acento); color: var(--sobre-acento); }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.icono {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.icono-ir { width: 18px; height: 18px; stroke-width: 2; }

.placa {
  --mostaza: #d9a91e; --mostaza-claro: #f0cf6a;
  position: fixed; z-index: 2; top: 24px; left: 24px; max-width: calc(100% - 48px);
  display: flex; align-items: stretch;
  background: var(--papel); border: 2px solid var(--tinta); border-radius: 0;
  box-shadow: 0 0 0 6px #fff, 4px 5px 0 6px rgb(28 20 36 / .32);
  color: var(--tinta); line-height: 1.15;
  transform: rotate(-1.5deg); transform-origin: 0 0;
  transition: transform .3s var(--sale);
}
.placa.abierta { transform: rotate(0); }
.placa-estampa { display: block; width: 96px; height: auto; min-height: 124px; object-fit: cover; flex: none; background: var(--mostaza); cursor: pointer; }
.placa-panel { display: grid; grid-template-columns: minmax(0, 0fr); overflow: hidden; transition: grid-template-columns .3s var(--sale); }
.placa.abierta .placa-panel { grid-template-columns: minmax(0, 1fr); }
.placa-texto {
  min-width: 0; overflow: hidden; border-left: 2px solid var(--tinta);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
  padding: 10px 16px 11px 14px; width: 260px;
}
.placa-texto p { margin: 0; }
.placa .marca { font-family: "Host Grotesk", var(--familia); font-size: 1.75rem; font-weight: 700; color: #8f690a; letter-spacing: -.035em; line-height: .9; }
.placa .marca img { height: .74em; margin-left: .04em; }
.placa-exposicion { font-size: .8125rem; font-weight: 500; line-height: 1.25; }
.placa-boton {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-end; margin-top: 4px; padding: 9px 16px;
  background: var(--tinta); color: var(--papel); border-radius: var(--radio);
  font-size: .9375rem; font-weight: 600; line-height: 1.25; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--sale), color .2s var(--sale);
}
.placa-texto .placa-legal { margin-top: 0; font-size: .75rem; line-height: 1.3; opacity: .85; }
.placa-boton:hover, .placa-boton:focus-visible { background: var(--mostaza); color: var(--tinta); }
.placa-flecha {
  flex: none; width: 34px; padding: 0; display: grid; place-items: center;
  background: transparent; border: 0; border-left: 2px solid var(--tinta); border-radius: 0; color: var(--tinta);
  transition: background-color .2s var(--sale);
}
.placa-flecha:hover, .placa-flecha:focus-visible { background: var(--mostaza-claro); }
.placa-flecha:focus-visible { outline-offset: -5px; }
.placa-flecha .icono { stroke-width: 2.4; transition: transform .3s var(--sale); }
.placa.abierta .placa-flecha .icono { transform: rotate(180deg); }
@media (max-width: 559px) {
  .placa { top: 18px; left: 18px; }
  .placa-estampa { width: 74px; height: auto; min-height: 106px; }
  .placa-texto { padding: 7px 12px 8px 11px; gap: 4px; width: 210px; }
  .placa .marca { font-size: 1.375rem; }
  .placa-exposicion { font-size: .71875rem; }
  .placa-boton { padding: 7px 12px; font-size: .8125rem; }
  .placa-texto .placa-legal { font-size: .6875rem; }
  .placa-flecha { width: 30px; }
}
@media (prefers-reduced-motion: reduce) { .placa, .placa-panel, .placa-flecha .icono { transition: none; } }
.marca { color: var(--tinta); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.marca { display: inline-flex; align-items: baseline; }
.marca img { height: .74em; width: auto; margin-left: 2px; }

.mapa {
  --pasto: #d5e6b8; --parcela: #bcd89a; --arbol: #7aa85a;
  --camino: #b9532f; --canal: #8cc4dd; --asfalto: #3d3446;
  position: fixed; inset: 0; overflow: hidden; background: var(--pasto);
  touch-action: none; cursor: grab; user-select: none;
}
.mapa.arrastrando { cursor: grabbing; }
.croquis { width: 100%; height: 100%; display: block; }
.croquis .pasto { fill: var(--pasto); }
.croquis .parcela { fill: var(--parcela); }
.croquis .avenida { fill: none; stroke: var(--asfalto); stroke-width: 420; }
.croquis .banqueta { fill: none; stroke: #e6dfcf; stroke-width: 500; }
.croquis .carril { fill: none; stroke: #8f8796; stroke-width: 5; stroke-dasharray: 40 50; }
.croquis .camellon { fill: none; stroke: #cfc8bd; stroke-width: 22; }
.croquis .muro { fill: none; stroke: #f7f4ee; stroke-width: 36; stroke-linejoin: round; filter: drop-shadow(0 0 0 #b5532f) drop-shadow(3px 0 0 #b5532f) drop-shadow(-3px 0 0 #b5532f) drop-shadow(0 3px 0 #b5532f) drop-shadow(0 -3px 0 #b5532f); }
.croquis .canal { fill: none; stroke: var(--canal); stroke-width: 30; }
.croquis .matas { fill: none; stroke: #9cc27a; stroke-width: 2.4; stroke-linecap: round; }
.croquis .bordillo { fill: none; stroke: #f1ecdf; stroke-width: 272; stroke-linejoin: round; stroke-dasharray: 54 5; }
.croquis .seto { fill: #2f5a24; }
.croquis .mece { transform-box: fill-box; transform-origin: center; animation: mecer var(--d, 7s) ease-in-out var(--r, 0s) infinite alternate; }
.croquis .pajaro { animation: aletear .5s linear infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes aletear { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
@keyframes mecer { from { transform: rotate(-2deg) scale(1); } to { transform: rotate(2deg) scale(1.03); } }
.croquis .camino { fill: none; stroke: var(--camino); stroke-width: 240; stroke-linejoin: round; }
.croquis .camino-eje { fill: none; stroke: var(--papel); stroke-width: 6; stroke-dasharray: 22 40; opacity: .6; }
.croquis text { font-family: var(--familia); }
.croquis .nombre-via { font-size: 44px; font-weight: 500; fill: var(--sobre-tinta-suave); }
.croquis .nombre-camino { font-size: 52px; font-weight: 600; fill: var(--papel); dominant-baseline: middle; }
.croquis .rotulo { font-size: 34px; font-weight: 600; fill: var(--tinta); }
.croquis .puerta-arco { fill: var(--tinta); }
.croquis .asta-contorno { stroke: var(--tinta); stroke-width: 13; stroke-linecap: round; }
.croquis .asta { stroke: #2e6b3f; stroke-width: 7; stroke-linecap: round; }
.croquis .asta-remate { fill: #d8d4cc; stroke: var(--tinta); stroke-width: 3; }
.croquis .asta-base { fill: #d8d4cc; stroke: var(--tinta); stroke-width: 3; }
.croquis .bandera-sombra { fill: #173012; opacity: .22; }
.croquis .tela-blanca { fill: #f4f1ea; }
.croquis .tela-orilla { fill: none; stroke: var(--tinta); stroke-width: 3; }
.croquis .tela-verde { fill: #2e7d4f; }
.croquis .tela-roja { fill: #c8372d; }
.croquis .tela-escudo { fill: #8a5a36; }
.croquis .tela-laurel { fill: none; stroke: #2e7d4f; stroke-width: 3; stroke-linecap: round; }
.croquis .bandera-tela { transform-box: fill-box; transform-origin: left center; animation: ondear 2.6s ease-in-out infinite alternate; }
@keyframes ondear { from { transform: skewY(-4deg) scaleX(.96); } to { transform: skewY(4deg) scaleX(1); } }
.croquis .medianos, .croquis .altos, .croquis .pajaros, .croquis .viento { pointer-events: none; }
.croquis .ardilla { cursor: pointer; }
.croquis .ardilla-halo { fill: var(--papel); opacity: 0; transition: opacity .2s var(--sale); }
.croquis .ardilla:hover .ardilla-halo { opacity: .55; }
.croquis .nuez { transform-box: fill-box; transform-origin: center; animation: caer .25s var(--sale) backwards; }
.croquis .nuez.se-va { opacity: 0; transition: opacity .6s linear; }
@keyframes caer { from { transform: translateY(-40px) scale(1.5); opacity: 0; } }
.croquis .poste { fill: #2e6b3f; stroke: var(--tinta); stroke-width: 3; }
.croquis .bote { fill: #2f6fb5; stroke: var(--tinta); stroke-width: 4; stroke-linejoin: round; }
.croquis .bote-tapa { fill: #1f4f8a; stroke: var(--tinta); stroke-width: 3; }
.croquis .bote-letrero { fill: #f4f1ea; }
.croquis .est-piedra { fill: #d9ccb0; stroke: var(--tinta); stroke-width: 3; stroke-linejoin: round; }
.croquis .est-placa { fill: #2a2430; stroke: var(--tinta); stroke-width: 2.5; }
.croquis .est-placa-texto { fill: none; stroke: #d8d4cc; stroke-width: 2; stroke-linecap: round; }
.croquis .est-busto { fill: #b9b5ab; stroke: var(--tinta); stroke-width: 3; stroke-linejoin: round; }
.croquis .est-rasgo { fill: none; stroke: var(--tinta); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.croquis .est-bigote { fill: var(--tinta); }
.croquis .est-maceta { fill: #d8d4cc; stroke: var(--tinta); stroke-width: 2.5; }
.croquis .est-hoja { fill: #3f7d2c; stroke: var(--tinta); stroke-width: 2; }
.croquis .punto-objeto:hover .cuerpo, .croquis .punto-objeto:focus-visible .cuerpo, .croquis .punto-objeto.elegido .cuerpo {
  filter: drop-shadow(4px 0 0 var(--dorado)) drop-shadow(-4px 0 0 var(--dorado)) drop-shadow(0 4px 0 var(--dorado)) drop-shadow(0 -4px 0 var(--dorado)) drop-shadow(0 0 5px var(--dorado)); }

.mapa-pista {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0;
  padding: 8px 14px; background: var(--tinta); color: var(--sobre-tinta); border-radius: var(--radio);
  font-size: .9375rem; font-weight: 500; white-space: nowrap; pointer-events: none;
  transition: opacity .4s var(--sale);
}
.mapa-pista.vista { opacity: 0; }
@media (max-width: 559px) { .mapa-pista { left: 16px; transform: none; white-space: normal; width: max-content; max-width: calc(100% - 144px); } }
.esquina { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.firma {
  margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1; pointer-events: none;
}
.firma-por { font-family: "Host Grotesk", var(--familia); font-size: .6875rem; font-weight: 400; letter-spacing: .02em; color: var(--tinta); }
.firma-marca { display: flex; align-items: center; gap: 6px; }
.firma-marca img { width: 26px; height: 26px; display: block; }
.firma-nombre { font-family: "Host Grotesk", var(--familia); font-size: 1rem; font-weight: 600; color: var(--tinta); }
.firma a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; text-decoration: none; pointer-events: auto; }
.zoom { display: flex; flex-direction: column; border: 1px solid var(--tinta); background: var(--papel); }
.zoom .boton-icono { width: 44px; height: 44px; border-radius: 0; }
.zoom .boton-icono + .boton-icono { border-top: 1px solid var(--filete); }
.zoom .boton-icono:hover { background: #fff; }
.zoom .boton-icono:disabled { color: var(--filete); cursor: default; background: var(--papel); }
.croquis .panel .fondo { fill: var(--c); }
.croquis .panel .marco { fill: none; stroke: var(--tinta); stroke-width: 1.5; }
.croquis .panel .halo { fill: var(--dorado); opacity: 0; transition: opacity .25s var(--sale); }
.croquis .panel svg .t { fill: var(--tinta); }
.croquis .panel svg .a { fill: var(--a); }
.croquis .panel svg .p { fill: var(--papel); }
.croquis .panel svg .ts { fill: none; stroke: var(--tinta); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.croquis .panel svg .ps { fill: none; stroke: var(--papel); stroke-width: 1.4; stroke-linecap: round; }
.croquis .punto { cursor: pointer; }
.croquis .cuerpo { transition: transform .3s var(--sale); }
.croquis .punto:hover .halo, .croquis .punto:focus-visible .halo { opacity: .75; }
.croquis .punto.elegido .halo { opacity: 1; }
.croquis .punto.elegido .cuerpo { transform: scale(1.3); }
.croquis .punto:focus-visible { outline: none; }

.previa { position: fixed; left: 0; top: 0; z-index: 30; margin: 0; width: 280px; pointer-events: none;
  background: var(--papel); border: 1.5px solid var(--tinta); border-radius: var(--radio); overflow: hidden; }
.previa[hidden] { display: none; }
.previa-marco { background: var(--tinta); }
.previa img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; }
.previa-banda { padding: 10px 14px 10px; background: var(--acento); color: var(--sobre-acento); }
.previa-original { margin: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; text-wrap: balance; }
.previa-lengua { margin: 5px 0 0; color: #fff; font-size: .75rem; font-weight: 300; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.previa figcaption { padding: 10px 14px 12px; color: var(--tinta); }
.previa b { display: block; font-size: 1rem; font-weight: 400; line-height: 1.2; color: var(--tinta-suave); }
.previa-lengua strong { font-weight: 700; }
.previa-autor { margin: 8px 0 0; font-size: .9375rem; font-weight: 600; color: color-mix(in srgb, var(--acento) 60%, var(--tinta)); }

.ficha {
  position: fixed; z-index: 2;
  background: var(--papel); border: 1px solid var(--tinta);
  container-type: inline-size;
  view-transition-name: ficha;
  display: flex; flex-direction: column;
}
.ficha[hidden] { display: none; }
.ficha-rollo { overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--filete) transparent; flex: 1; }
.ficha-mandos { position: absolute; top: 10px; right: 10px; z-index: 1; display: flex; gap: 6px; }
.ficha-mandos .boton-icono { width: 40px; height: 40px; background: var(--papel); }
.ficha-mandos .boton-icono:hover { background: #fff; }

@media (min-width: 900px) {
  .ficha[data-estado="mini"] { top: 24px; right: 24px; width: 384px; max-height: calc(100dvh - 48px); }
  body:has(.ficha[data-estado="mini"]:not([hidden])) .mapa { right: 432px; }
}
@media (max-width: 899px) {
  .ficha { left: 0; right: 0; bottom: 0; border-width: 1px 0 0; }
  .ficha[data-estado="mini"] { max-height: 74dvh; }
  .ficha[data-estado="mini"] .estampa-lienzo { aspect-ratio: 2 / 1; }
  body:has(.ficha[data-estado="mini"]:not([hidden])) .mapa { bottom: 54dvh; }
}

.estampa-marco { margin: 0; background: var(--tinta); }
.estampa-lienzo { aspect-ratio: 400 / 280; }
.estampa-lienzo svg { display: block; width: 100%; height: 100%; }
.ficha.sin-estampa .estampa-marco { display: none; }
.ficha.sin-estampa .lengua { padding-right: 112px; }

.lengua {
  background: var(--acento); color: var(--sobre-acento);
  padding: 14px 20px 12px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.lengua { display: block; padding: 14px 20px 14px; }
.lengua .titulo { font-size: clamp(1.75rem, 7cqi, 2.25rem); }
.lengua-sub {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  color: #fff; font-size: .8125rem; font-weight: 300; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; text-decoration: none;
}
.lengua-sub strong { font-weight: 700; }
.lengua-sub .anios { margin-left: 10px; }
.lengua-sub .icono-ir { transition: transform .3s var(--sale); }
.lengua-sub:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lengua-sub:hover .icono-ir { transform: translate(2px, -2px); }

.hoja-cuerpo { padding: 22px 20px 26px; }

.titulo { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1; font-size: clamp(2rem, 9cqi, 2.5rem); text-wrap: balance; }
.titulo-es { margin: 0; font-size: 1.25rem; line-height: 1.2; color: var(--tinta-suave); }
.titulo-fila { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.titulo-textos { min-width: 0; }
.escuchalo {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 72px; padding: 10px 8px 8px; margin-top: -4px;
  background: var(--tinta); color: var(--papel); border: 0; border-radius: var(--radio);
  font-size: .8125rem; font-weight: 600; transition: background-color .25s var(--sale);
}
.escuchalo .icono { width: 30px; height: 30px; stroke-width: 1.6; }
.escuchalo:hover { background: #33263d; }
.escuchalo:hover .icono path { stroke: var(--acento-claro); }
.autor { margin: 6px 0 0; font-size: 1.0625rem; font-weight: 600; color: color-mix(in srgb, var(--acento) 60%, var(--tinta)); }
.autor a { display: inline-flex; align-items: center; gap: 5px; margin: -2px -4px; padding: 2px 4px; color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: background-color .25s var(--sale); }
.autor a:hover, .autor a:focus-visible { background: color-mix(in srgb, var(--acento) 16%, transparent); }
.autor a .icono-ir { width: .8em; height: .8em; flex: none; transition: transform .3s var(--sale); }
.autor a:hover .icono-ir { transform: translate(2px, -2px); }

.quien { display: none; }
.ficha[data-tipo="estatua"] .quien { display: block; padding-top: 22px; }
.ficha[data-tipo="estatua"] .escuchalo, .ficha[data-tipo="estatua"] .versiones, .ficha[data-tipo="estatua"] .acciones { display: none; }
.ficha[data-tipo="estatua"] .colofon { border-top: 0; padding-top: 0; }
.quien p { margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.55; max-width: 60ch; text-wrap: pretty; }
.quien #quien-texto p:first-child { margin-bottom: 20px; font-size: 1.375rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.vida { margin: 28px -20px 0; padding: 24px 20px 26px; background: color-mix(in srgb, var(--acento) 58%, var(--tinta)); color: #fff; }
.vida h2 { margin: 0 0 18px; font-size: 1.125rem; font-weight: 700; }
.vida dl { margin: 0; display: grid; gap: 20px; }
.vida dl div { display: grid; grid-template-columns: 4.75rem 1fr; gap: 0 14px; align-items: baseline; }
.vida dt { font-size: 1.875rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--acento-claro); }
.vida dd { margin: 0; font-size: 1.0625rem; line-height: 1.4; }
.vida dd small { display: block; margin-top: 6px; font-size: .8125rem; line-height: 1.4; color: rgb(255 255 255 / .82); }
@media (max-width: 379px) { .vida dl div { grid-template-columns: 1fr; gap: 4px; } }
.fuentes { margin: 22px 0 6px; color: var(--tinta-suave); }
.fuentes h2 { margin: 0 0 6px; font-size: .8125rem; font-weight: 600; }
.fuentes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.fuentes li { font-size: .8125rem; line-height: 1.4; }
.fuentes a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fuentes a:hover { background: color-mix(in srgb, var(--acento) 16%, transparent); }

.acciones { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; margin: 18px 0 0; padding-top: 6px; border-top: 1px solid var(--filete); }
.con-icono { display: inline-flex; align-items: center; gap: 8px; }
.con-icono .icono { width: 20px; height: 20px; }
.boton {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 20px 10px 16px;
  border-radius: var(--radio); border: 0; font-size: 1rem; font-weight: 500;
  transition: background-color .3s var(--sale), color .3s var(--sale);
}
.boton-tinta { background: var(--tinta); color: var(--papel); }
.boton-tinta:hover { background: #33263d; }
.boton-acento { background: var(--acento); color: var(--sobre-acento); }
.boton-acento:hover { background: var(--acento-claro); }
.boton-llano {
  background: none; border: 0; padding: 10px 2px; min-height: 44px; font-size: 1rem; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--acento);
}
.boton-llano:hover { text-decoration-thickness: 2px; }

.versiones { margin-top: 22px; scroll-margin-top: 16px; }
.versiones.recortado .versos span:nth-child(n+5) { display: none; }
.versiones.recortado .versos span:nth-child(4) { color: var(--tinta-suave); opacity: .55; }
.ver-completo { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.ver-completo[hidden] { display: none; }
.ver-completo .icono { width: 18px; height: 18px; transition: transform .25s var(--sale); }
.ver-completo[aria-expanded="true"] .icono { transform: rotate(180deg); }
.selector { display: flex; gap: 24px; border-bottom: 1px solid var(--filete); }
.selector button {
  background: none; border: 0; padding: 10px 0 12px; min-height: 44px; font-size: 1rem; font-weight: 500; color: var(--tinta-suave);
  box-shadow: inset 0 -3px 0 transparent; transition: color .25s var(--sale), box-shadow .25s var(--sale);
}
.selector button[aria-selected="true"] { color: var(--tinta); box-shadow: inset 0 -3px 0 var(--acento); }
.poema { padding-top: 22px; }
.poema[hidden] { display: none; }
.poema-cabeza { display: none; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--filete); font-size: .9375rem; font-weight: 500; color: var(--tinta-suave); }
.versos { margin: 0; font-size: 1.1875rem; line-height: 1.6; }
.versos span { display: block; padding-left: 1.2em; text-indent: -1.2em; }
@container (min-width: 560px) {
  .selector { display: none; }
  .poemas-par { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .poema[hidden] { display: block; }
  .poema-cabeza { display: block; }
}

.colofon { margin: 0 20px; padding: 4px 0 0; color: var(--tinta-suave); border-top: 1px solid var(--filete); }
.datos { margin: 0; padding-top: 12px; display: grid; }
.datos div { display: grid; grid-template-columns: 1fr; gap: 2px; }
.datos dt { font-size: .8125rem; }
.datos dd { margin: 0; font-size: .875rem; line-height: 1.45; }
.legal { margin: 16px -20px 0; padding: 14px 24px 16px; background: var(--tinta); color: var(--sobre-tinta-suave); font-size: .6875rem; line-height: 1.5; text-align: center; text-wrap: balance; }
.legal a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal a:hover { text-decoration-thickness: 2px; }
.legal a:focus-visible { outline-color: var(--sobre-tinta); }

::view-transition-group(ficha) { animation-duration: .42s; animation-timing-function: var(--sale); }
::view-transition-old(ficha), ::view-transition-new(ficha) { height: 100%; object-fit: cover; object-position: top; }

dialog { border: 0; padding: 0; color: var(--tinta); background: var(--papel); }
dialog::backdrop { background: rgb(28 20 36 / .72); }
.boton-icono { display: inline-grid; place-items: center; width: 48px; height: 48px; background: none; border: 0; border-radius: var(--radio); }
.boton-icono:hover { background: rgb(28 20 36 / .07); }

.lectura-escena [data-tocable] { pointer-events: none; }
.lectura { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: var(--tinta); color: var(--sobre-tinta); }
.lectura[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lectura::backdrop { background: var(--tinta); }
.lectura-escena { height: clamp(260px, 52vh, 640px); }
.lectura.sin-escena .lectura-escena { height: 72px; }
.lectura-escena svg { display: block; width: 100%; height: 100%; }
.cerrar-escena { position: absolute; top: 12px; right: 12px; background: var(--papel); color: var(--tinta); }
.cerrar-escena:hover { background: #fff; }
.lectura-cuerpo { overflow-y: auto; padding: 8px var(--margen) 40px; scrollbar-color: var(--filete-tinta) transparent; }
.lectura-cuerpo > * { max-width: 36rem; margin-left: auto; margin-right: auto; }
.lectura-lengua { margin-top: 0; margin-bottom: 8px; font-size: 1rem; font-weight: 500; color: var(--sobre-tinta-suave); }
.lectura-titulo { margin-top: 0; margin-bottom: 28px; font-size: clamp(2rem, 7vw, 3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.lectura-poema .versos { font-size: clamp(1.5rem, 4.6vw, 2rem); line-height: 1.5; }
.lectura-poema .versos span { transition: color .5s var(--sale); }
.lectura-poema.narrando .versos span { color: var(--sobre-tinta-suave); }
.lectura-poema.narrando .versos span.dicho { color: var(--acento-claro); }
.lectura-autor { margin-top: 32px; font-size: 1.0625rem; font-weight: 500; color: var(--sobre-tinta-suave); }
.lectura-mando {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 24px;
  padding: 12px var(--margen) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--filete-tinta);
}
.lectura-mando .boton-llano { color: var(--sobre-tinta); }
#escuchar { min-width: 13rem; justify-content: center; }
#escuchar .icono-play { fill: currentColor; }
#escuchar .icono-pausa { display: none; stroke-width: 2.6; }
#escuchar[aria-pressed="true"] .icono-play { display: none; }
#escuchar[aria-pressed="true"] .icono-pausa { display: block; }
.lectura :focus-visible { outline-color: var(--sobre-tinta); }
.interruptor { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; background: none; border: 0; padding: 0; font-size: 1rem; font-weight: 500; color: var(--sobre-tinta); }
.interruptor-pista { width: 40px; height: 22px; border-radius: var(--radio); background: var(--filete-tinta); position: relative; transition: background-color .3s var(--sale); }
.interruptor-pista span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 1px; background: var(--sobre-tinta-suave); transition: transform .3s var(--sale), background-color .3s var(--sale); }
.interruptor[aria-checked="true"] .interruptor-pista { background: var(--acento); }
.interruptor[aria-checked="true"] .interruptor-pista span { transform: translateX(18px); background: var(--tinta); }
@media (max-width: 559px) {
  .lectura-escena { height: 38vh; }
  .lectura-mando { gap: 4px 18px; }
  #escuchar { width: 100%; }
}

.original { width: min(94vw, 720px); max-height: 94dvh; overflow-y: auto; }
.original[open] { display: grid; grid-template-rows: auto 1fr; }
.original-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 16px; border-bottom: 1px solid var(--filete); }
.original-barra p { margin: 0; font-size: .9375rem; color: var(--tinta-suave); }
.original img { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

.aviso {
  position: fixed; z-index: 20; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  margin: 0; padding: 12px 18px; border-radius: var(--radio);
  background: var(--tinta); color: var(--sobre-tinta); font-size: .9375rem; font-weight: 500;
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  transition: opacity .25s ease-out, transform .25s var(--sale);
}
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .aviso { transition: none; transform: translate(-50%, 0); } }

.ficha.seleccionando .versos span { cursor: pointer; border-radius: var(--radio); margin: 0 -8px; padding-right: 8px; padding-left: calc(1.2em + 8px); transition: background-color .2s ease-out; }
.ficha.seleccionando .versos span:hover { background: rgb(28 20 36 / .06); }
.ficha.seleccionando .versos span[aria-checked="true"] { font-weight: 700; color: var(--acento); }
.seleccion-barra {
  display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap;
  padding: 12px clamp(20px, 6cqi, 48px) max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--tinta); background: var(--papel);
}
.seleccion-barra[hidden] { display: none; }
.seleccion-barra p { margin: 0; flex: 1 1 15rem; font-size: .9375rem; color: var(--tinta-suave); }
