/* Press kit de “Casa” (ladro.casa/prensa).
 * Marca: LADRO Titular Medium (títulos, logotipo), LADRO Cuerpo (texto), rojo #d63b33, portada de Lili.
 *
 * Retícula: la de 58 unidades de Karl Gerstner (Designing Programmes, 1964, revista Capital).
 * 58 = 2·28 + 2 = 3·18 + 2·2 = 4·13 + 3·2: con un medianil de 2 unidades salen 1, 2, 3 y 4 columnas
 * exactas de la misma retícula, así que los cuadros de distinto ancho siempre caen en las mismas líneas
 * (el principio de Müller-Brockmann en Grid Systems: pocos módulos, medianil constante, márgenes que son
 * múltiplos del módulo). Todo espacio horizontal sale de --u; el vertical va en múltiplos de --b (4 px).
 * Métricas de las fuentes: mayúsculas 700 de 1000 → ascent 85 %, descent 15 % (playbook 50 §2). */
@font-face { font-family: "LADRO Titular"; src: url("/fuentes/ladro-titular.woff2?v=1.2") format("woff2"); font-weight: 300 700; font-display: swap; ascent-override: 85%; descent-override: 15%; line-gap-override: 0%; }
/* LADRO Cuerpo: centrado óptico para texto con minúsculas (Roberto, 30 nov). Mayúsculas 700 y x 481 de 1000:
 * el ojo centra entre el centro de las mayúsculas (350) y el de la x (240), ~300 → ascent 80 %, descent 20 %.
 * Para botones solo en mayúsculas (PRE-SAVE) va «LADRO Cuerpo Mayúsculas», centrado en las mayúsculas (85/15). */
@font-face { font-family: "LADRO Cuerpo"; src: url("/fuentes/ladro-cuerpo.woff2?v=1.2") format("woff2"); font-weight: 300 700; font-display: swap; ascent-override: 80%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: "LADRO Cuerpo Mayúsculas"; src: url("/fuentes/ladro-cuerpo.woff2?v=1.2") format("woff2"); font-weight: 300 700; font-display: swap; ascent-override: 85%; descent-override: 15%; line-gap-override: 0%; }

:root {
  --papel: #f8f0e8;
  --gris: #f0e4d9;
  --suave: #ead9cb;
  --rojo: #d63b33;
  --rojo-hondo: #a8261f;
  --sobre-rojo: #fdf1dc;
  --tinta: #33231f;
  --tenue: rgba(51, 35, 31, 0.62);
  --linea: rgba(51, 35, 31, 0.16);
  --b: 4px;
  --radio: 28px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--papel); font-variant-numeric: tabular-nums; }
html, body { margin: 0; }
body {
  color: var(--tinta);
  background: var(--papel);
  font: 400 17px/1.5 "LADRO Cuerpo", system-ui, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; -webkit-tap-highlight-color: transparent; }
::selection { background: #e5c464; color: var(--tinta); }
h1, h2, h3, .titular { font-family: "LADRO Titular", sans-serif; font-weight: 500; margin: 0; line-height: 1.04; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.8lh; }
.ret > p, .cancion .num { margin: 0; }
img { display: block; max-width: 100%; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Barra: la misma de la landing */
.barra {
  position: sticky; top: max(12px, env(safe-area-inset-top)); z-index: 10;
  --py: 11px; --px: 16px; --pill: calc(var(--py) + 10px);
  margin: max(12px, env(safe-area-inset-top)) 12px 0;
  padding: var(--py) var(--px);
  border-radius: var(--pill);
  background: var(--gris);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 15px;
}
.barra a { text-decoration: none; display: flex; margin-inline-start: calc(var(--pill) * (1 - 3.14159 / 4)); }
.barra .seccion { margin-inline-end: calc(var(--pill) * (1 - 3.14159 / 4)); line-height: 20px; }
.logo { display: inline-block; height: 0.72em; aspect-ratio: 3208 / 705; background: currentColor; -webkit-mask: url("/logotipo-tinta.svg") center / contain no-repeat; mask: url("/logotipo-tinta.svg") center / contain no-repeat; }
.barra .logo { font-size: 22px; display: block; }
.barra .seccion { color: var(--tenue); }

/* ---------- Retícula ---------- */
.hoja {
  container-type: inline-size;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--b) * 6) max(16px, env(safe-area-inset-right)) calc(var(--b) * 12) max(16px, env(safe-area-inset-left));
}
.ret {
  --u: calc(100cqi / 58);
  --medianil: calc(var(--u) * 2);
  display: grid;
  grid-template-columns: repeat(58, minmax(0, 1fr));
  row-gap: max(12px, var(--medianil));
}
.ret > * { grid-column: 1 / -1; min-width: 0; }
.ret + .ret { margin-top: max(12px, var(--medianil)); }

/* Teléfono: una columna, salvo los datos y las canciones en dos */
.c4 { grid-column: span 28; }
.c4:nth-child(odd of .c4) { grid-column: 1 / 29; }
.c4:nth-child(even of .c4) { grid-column: 31 / 59; }

@container (min-width: 600px) {
  .ret { --u: calc(100cqi / 58); }
  .c2a, .c3-1 { grid-column: 1 / 29; }
  .c2b, .c3-23 { grid-column: 31 / 59; }
}
@container (min-width: 900px) {
  .c4:nth-child(4n + 1 of .c4) { grid-column: 1 / 14; }
  .c4:nth-child(4n + 2 of .c4) { grid-column: 16 / 29; }
  .c4:nth-child(4n + 3 of .c4) { grid-column: 31 / 44; }
  .c4:nth-child(4n + 4 of .c4) { grid-column: 46 / 59; }
  .c3-1 { grid-column: 1 / 19; }
  .c3-23 { grid-column: 21 / 59; }
}

/* ---------- Cuadros ---------- */
.cuadro {
  container-type: inline-size;
  position: relative;
  border-radius: var(--radio);
  background: var(--gris);
  padding: max(20px, calc(var(--u) * 1.5));
  display: flex; flex-direction: column;
}
.cuadro.rojo { background: var(--rojo); color: var(--sobre-rojo); }
.cuadro.claro { background: transparent; box-shadow: inset 0 0 0 1.5px var(--linea); }
.cuadro.rojo ::selection { background: var(--sobre-rojo); color: var(--rojo); }

/* Ceja: el índice de cada cuadro (sin punto: Roberto, 30 nov) */
.ceja { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tenue); margin-bottom: calc(var(--b) * 5); }
.rojo .ceja { color: rgba(253, 241, 220, 0.78); }

/* ---------- Portada y titular ---------- */
.portada-cuadro { padding: 0; background: var(--suave); aspect-ratio: 1; overflow: hidden; }
.portada-cuadro img { width: 100%; height: 100%; object-fit: cover; }
.titulo { justify-content: space-between; min-height: 100%; }
.titulo h1 { font-size: 26cqi; line-height: 0.9; letter-spacing: -0.03em; margin: calc(var(--b) * 4) 0 calc(var(--b) * 8) -0.04em; text-wrap: nowrap; }
.titulo .datos { font-size: clamp(17px, 4cqi, 24px); line-height: 1.3; }
.titulo .datos b { font-family: "LADRO Titular", sans-serif; font-weight: 500; }

.titulo .pie-titulo { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: calc(var(--b) * 6); border-top: 1.5px solid rgba(253, 241, 220, 0.5); padding-top: calc(var(--b) * 4); font-size: 15px; }
.isotipo { width: 30px; aspect-ratio: 726 / 705; background: currentColor; -webkit-mask: url("/prensa/img/isotipo.svg") center / contain no-repeat; mask: url("/prensa/img/isotipo.svg") center / contain no-repeat; flex: none; }

/* ---------- Cifras (raya arriba, número grande, nota) ---------- */
.cifra { border-top: 1.5px solid var(--tinta); padding-top: calc(var(--b) * 3); }
.cifra b { display: block; font-family: "LADRO Titular", sans-serif; font-weight: 500; font-size: clamp(44px, 9cqi, 112px); line-height: 0.95; letter-spacing: -0.03em; }
@container (min-width: 900px) { .cifra b { font-size: clamp(52px, 6.4cqi, 100px); } }
.cifra span { display: block; margin-top: calc(var(--b) * 2); color: var(--tenue); font-size: 15px; line-height: 1.35; text-wrap: pretty; }

/* ---------- Comunicado ---------- */
.comunicado h2 { font-size: clamp(30px, 7.4cqi, 56px); }
.comunicado .lugar { margin-top: auto; padding-top: calc(var(--b) * 8); color: var(--tenue); font-size: 15px; }
.texto { font-size: 18px; line-height: 1.55; padding: max(4px, calc(var(--u) * 0.5)) 0; }
@container (min-width: 900px) { .texto { font-size: 19px; } }
.texto .cierre { margin-top: 1lh; padding-top: calc(var(--b) * 4); border-top: 1px solid var(--linea); color: var(--tenue); font-size: 16px; }

/* ---------- Canciones ---------- */
.cancion { min-height: clamp(220px, 34cqi, 360px); }
.cancion .num { font-family: "LADRO Titular", sans-serif; font-weight: 500; font-size: 15px; color: var(--tenue); display: flex; justify-content: space-between; }
.cancion h3 { font-size: clamp(28px, 15cqi, 44px); margin-top: calc(var(--b) * 3); }
.cancion p:last-child { margin-top: auto; padding-top: calc(var(--b) * 6); font-size: 15px; line-height: 1.45; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid var(--tinta); padding-top: calc(var(--b) * 3); font-size: 15px; color: var(--tenue); }
.total b { font-family: "LADRO Titular", sans-serif; font-weight: 500; color: var(--tinta); font-size: 20px; }

/* ---------- Cita ---------- */
.cita { margin: 0; padding-block: max(32px, calc(var(--u) * 3)); }
.cita blockquote { margin: 0; font-family: "LADRO Titular", sans-serif; font-weight: 500; font-size: clamp(30px, 6.4cqi, 84px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; max-width: 20em; }
.cita .firma { margin-top: calc(var(--b) * 8); font-size: 16px; color: rgba(253, 241, 220, 0.78); }

/* ---------- Bio ---------- */
.bio h2 { font-size: 15px; font-family: "LADRO Cuerpo", sans-serif; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tenue); }
.bio.corta p { font-size: clamp(21px, 4.6cqi, 28px); line-height: 1.38; }
.simbolo { font-family: system-ui, sans-serif; }
.bio.larga p { font-size: 18px; line-height: 1.55; }

/* ---------- Fotos ---------- */
.foto { margin: 0; display: flex; flex-direction: column; gap: calc(var(--b) * 3); }
.foto .marco { position: relative; flex: 1; border-radius: var(--radio); overflow: hidden; background: var(--suave); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto.vertical .marco { aspect-ratio: 2 / 3; }
.foto.horizontal .marco { aspect-ratio: 3 / 2; }
@container (min-width: 900px) { .foto.horizontal .marco { aspect-ratio: auto; } }
.foto figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--tenue); }
.foto figcaption a { color: var(--tinta); text-decoration: none; border-bottom: 1px solid var(--linea); }

/* ---------- Créditos ---------- */
.creditos dl { margin: 0; }
.creditos .fila { display: grid; grid-template-columns: 1fr; gap: 2px; padding: calc(var(--b) * 3) 0; border-top: 1px solid var(--linea); }
.creditos .fila:last-child { padding-bottom: 0; }
@container (min-width: 520px) { .creditos .fila { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 20px; } }
.creditos dt { color: var(--tenue); font-size: 15px; }
.creditos dd { margin: 0; font-size: 16px; text-wrap: pretty; }

/* ---------- Listas de iOS (pre-save y descargas) ---------- */
.grupo { background: var(--papel); border-radius: 18px; overflow: hidden; }
.renglon { position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 12px 18px; text-decoration: none; font-size: 16px; }
.renglon + .renglon::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; border-top: 1px solid var(--linea); }
.renglon .plataforma { flex: none; width: 24px; height: 24px; fill: currentColor; }
.renglon .t { flex: 1; min-width: 0; }
.renglon .t small { display: block; font-size: 13px; color: var(--tenue); }
.renglon .chevron { flex: none; color: var(--tenue); }
.renglon:focus-visible { outline: 2px solid var(--rojo); outline-offset: -4px; border-radius: 14px; }
.renglon:active { background: var(--suave); }
@media (hover: hover) and (pointer: fine) { .renglon:hover { background: var(--suave); } }

/* Botón píldora (playbook 50 §1): el ícono queda concéntrico a la punta y el texto recupera r·(1 − π/4) */
.pastilla {
  --py: 0.85em; --px: 1.3em;
  --pill: calc(var(--py) + 0.5lh);
  display: flex; align-items: center; justify-content: center;
  gap: max(var(--py), var(--px) - (1lh - 1cap) / 2);
  padding: var(--py) var(--px);
  border-radius: var(--pill);
  background: var(--rojo); color: #fff;
  font-size: 17px; line-height: 1.25;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.pastilla svg { width: 1lh; height: 1lh; flex: none; margin-inline-start: calc(var(--py) - var(--px)); }
.pastilla span { margin-inline-end: calc(var(--pill) * (1 - 3.14159 / 4)); }
.pastilla small { opacity: 0.78; font-size: 15px; }
.pastilla:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .pastilla:hover { background: var(--rojo-hondo); } }
.pastilla:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; }
.descargas .pastilla { margin-bottom: calc(var(--b) * 4); }

/* ---------- Contacto ---------- */
.contacto { padding-block: max(32px, calc(var(--u) * 3)); }
.contacto a.correo { font-family: "LADRO Titular", sans-serif; font-weight: 500; font-size: clamp(34px, 9.6cqi, 132px); line-height: 1; letter-spacing: -0.03em; text-decoration: none; overflow-wrap: anywhere; }
.contacto a.correo:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.contacto .redes { margin-top: calc(var(--b) * 6); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; }
.contacto .redes a { text-decoration: none; border-bottom: 1px solid rgba(253, 241, 220, 0.5); }

/* ---------- Borrador ---------- */
.borrador { display: flex; gap: 10px; align-items: baseline; padding: 12px 18px; border-radius: 16px; background: var(--tinta); color: var(--papel); font-size: 15px; }
.borrador b { font-family: "LADRO Titular", sans-serif; font-weight: 500; }
.pend { text-decoration: underline dashed var(--rojo) 1.5px; text-underline-offset: 0.22em; }
.rojo .pend { text-decoration-color: var(--sobre-rojo); }
.pend-tag { display: inline-block; vertical-align: 0.1em; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; font-family: "LADRO Cuerpo", sans-serif; font-weight: 400; font-size: 12px; letter-spacing: 0.04em; line-height: 1.5; color: var(--rojo); }
.rojo .pend-tag { color: var(--sobre-rojo); }

/* Pie: el mismo de la landing */

@media (prefers-reduced-motion: reduce) { .pastilla { transition: none; } }

/* Pie descubierto (30 nov, idea de Roberto): el pie, en marrón, se queda fijo detrás del sitio; el contenido
 * lo tapa y termina con dos esquinas squircle (.capa-fin). Al llegar abajo, el contenido se va y el pie aparece.
 * El pie sube 64 px bajo .capa-fin para que en las esquinas siempre se vea marrón. */
.capa { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: linear-gradient(var(--papel), var(--papel)) no-repeat top / 100% calc(100% - 64px); }
.capa-fin { flex: none; height: 64px; margin-top: auto; background: var(--papel); border-radius: 0 0 32px 32px; }

.capa > .hoja { width: 100%; }

/* Sin huérfanas: pretty en texto, balance en títulos, y &nbsp; entre las dos últimas palabras en el HTML */
p, dd, dt, li, figcaption, small, .t, .cifra span { text-wrap: pretty; }
h1, h2, h3, blockquote, .titular { text-wrap: balance; }

/* Contacto: aviso para medios y curadores (el link privado lo manda DISTRIBUCIÓN a mano) */
.contacto .adelanto { font-size: clamp(18px, 2.4cqi, 24px); line-height: 1.35; max-width: 34em; margin-bottom: calc(var(--b) * 5); }

/* Nada se sale de lado: la capa del contenido recorta en x (clip no rompe la barra fija) */
.capa { overflow-x: clip; }
