/* ==========================================================
   Alejandra Artiel
   Dos tintas, como un cartel de concierto: noche y latón.
   ========================================================== */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fuentes/big-shoulders-display-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fuentes/big-shoulders-display-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fuentes/literata-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fuentes/literata-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fuentes/literata-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;

  /* Las dos tintas: no cambian con el modo oscuro */
  --noche: #1c2147;
  --laton: #d6a842;
  --laton-claro: #ecc977;
  --papel-noche: #ebe6da;   /* texto sobre las bandas de noche */
  --suave-noche: #b9b8d3;   /* texto secundario sobre noche */

  /* Página (modo claro) */
  --fondo: #ecebf3;
  --fondo-alterno: #e2e1ec;
  --tinta: #1c2147;
  --tinta-suave: #4a4e6e;
  --acento: #7a5710;        /* latón oscurecido, legible sobre fondo claro */

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --texto: "Literata", Georgia, "Times New Roman", serif;

  --marco: 72rem;
  --margen: clamp(1.25rem, 4vw, 2.5rem);
  --alto-barra: 3.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --fondo: #151936;
    --fondo-alterno: #191e40;
    --tinta: #ebe6da;
    --tinta-suave: #a9a9c4;
    --acento: #e2b85a;
  }
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--laton); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}
h2, h3, h4 { font-style: normal; }

[id] { scroll-margin-top: calc(var(--alto-barra) + 1rem); }

.marco {
  width: min(100% - 2 * var(--margen), var(--marco));
  margin-inline: auto;
}

.saltar {
  position: absolute; left: 1rem; top: -10rem; z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--laton); color: var(--noche);
  font-family: var(--display); font-weight: 600; font-size: 1.2rem;
  text-decoration: none;
}
.saltar:focus { top: 1rem; }

/* ---------- Barra fija ---------- */

.barra {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--noche);
  color: var(--papel-noche);
  border-bottom: 1px solid #2c3263;
}
.barra-dentro {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  min-height: var(--alto-barra);
}
.barra-nombre {
  flex: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--laton);
}
.menu {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  min-width: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu::-webkit-scrollbar { display: none; }
.menu a { flex: none; padding-block: 0.6rem; text-decoration: none; }
.menu a:hover { color: var(--laton-claro); }
.menu a[hidden] { display: none; }

.idioma {
  flex: none;
  padding: 0.1rem 0.45rem;
  border: 1.5px solid var(--laton);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--laton);
  text-decoration: none;
}
.idioma:hover { background: var(--laton); color: var(--noche); }

@media (max-width: 44rem) {
  .barra-nombre { display: none; }
  .menu { flex: 1; margin-left: 0; gap: 1.25rem; mask-image: linear-gradient(90deg, #000 85%, transparent); }
}

/* ---------- Portada ---------- */

.portada {
  background: var(--noche);
  color: var(--papel-noche);
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3.5rem, 8vw, 6rem);
}

.nombre {
  color: var(--laton);
  text-transform: uppercase;
  font-size: clamp(4.25rem, 21vw, 17.5rem);
  line-height: 0.84;
  letter-spacing: -0.005em;
  margin-left: -0.04em;
}
.nombre span { display: block; }

.oficio {
  margin: 1.1rem 0 0;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--laton-claro);
}

.destacado { margin-top: clamp(2.5rem, 6vw, 4rem); }
.destacado .pie {
  display: grid;
  gap: 0.4rem 2.5rem;
  margin-top: 1.25rem;
}
@media (min-width: 52rem) {
  .destacado .pie { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
}
.destacado .video-titulo { margin: 0; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; }
.destacado .meta { color: var(--suave-noche); }
.destacado .video-texto { margin: 0; color: var(--papel-noche); max-width: 38em; }

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

.seccion { padding-block: clamp(4rem, 10vw, 7.5rem); }
.seccion-alterna { background: var(--fondo-alterno); }

.banda {
  background: var(--noche);
  color: var(--papel-noche);
  --tinta-suave: var(--suave-noche);
  --acento: var(--laton);
}
.banda h2 { color: var(--laton); }

.seccion h2,
.contacto h2 {
  text-transform: uppercase;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.bloque { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.bloque-primero { margin-top: 0; }
.bloque h3 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 1.25rem;
}
.bloque-intro {
  margin: -0.5rem 0 1.5rem;
  font-style: italic;
  color: var(--tinta-suave);
}

.texto p { max-width: 36em; margin: 0 0 1.1em; }
.ancho-texto { max-width: 40em; }
.entradilla {
  font-size: clamp(1.2rem, 1.9vw, 1.35rem);
  line-height: 1.55;
}
p.entradilla { margin: 0 0 1.1em; }

.dos-col {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (min-width: 52rem) {
  .dos-col { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .dos-col-medios { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .medios { position: sticky; top: calc(var(--alto-barra) + 1.5rem); }
}

.medios { display: grid; gap: 1.5rem; }
/* En móvil, el vídeo del trío antes que el texto largo */
@media (max-width: 51.99rem) {
  .dos-col-medios .medios { order: -1; }
}

.desplegable {
  margin-top: 1.75rem;
  max-width: 36em;
}
.desplegable summary {
  display: inline-block;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: underline;
  text-decoration-color: var(--acento);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  list-style: none;
}
.desplegable summary::-webkit-details-marker { display: none; }
.desplegable[open] summary { margin-bottom: 1.25rem; }
.desplegable[open] summary { color: var(--tinta-suave); }
.desplegable p { margin: 0 0 1.1em; }

/* ---------- Trío ---------- */

.miembros {
  list-style: none;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  font-style: italic;
  color: var(--suave-noche);
}
.miembro-nombre {
  display: block;
  font-family: var(--display);
  font-style: normal;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--papel-noche);
}
a.miembro-nombre { text-decoration-color: var(--laton); }

/* ---------- Fotos (duotono) ---------- */

/*
  Fotos y miniaturas se imprimen a dos tintas: sombras en noche, luces en latón.
  Así imágenes muy distintas entre sí parecen de la misma serie.
  Los vídeos, al reproducirse, salen a todo color. Carteles y portadas de disco, siempre a color.
*/
.duotono,
.pantalla {
  position: relative;
  background: var(--noche);   /* mientras carga */
  overflow: hidden;
  isolation: isolate;
  margin: 0;
}
.duotono.lista,
.pantalla.lista { background: var(--laton); }
.duotono img,
.pantalla img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(1.04);
  mix-blend-mode: multiply;
}
.duotono::after,
.pantalla .tinta {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--noche);
  mix-blend-mode: lighten;
  pointer-events: none;
}

.foto { aspect-ratio: 3 / 2; }
.foto-retrato { aspect-ratio: 4 / 5; }
.foto figcaption {
  position: absolute;
  right: 0.6rem;
  bottom: 0.45rem;
  z-index: 1;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--papel-noche);
  text-shadow: 0 0 6px var(--noche);
}

.fotos-par { display: grid; gap: 1.25rem; }

/* Imagen que falta: anillos de campana de trompeta */
.sin-imagen,
.pantalla.sin-miniatura {
  background:
    repeating-radial-gradient(circle at 72% 58%,
      rgba(214, 168, 66, 0.5) 0 1.5px, transparent 2px 17px),
    var(--noche);
}
.sin-imagen::after { display: none; }
.sin-imagen figcaption { display: none; }

/* ---------- Pantallas de vídeo ---------- */

.pantalla { aspect-ratio: 16 / 9; }

.pantalla .play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.pantalla .play:focus-visible { outline-offset: -5px; outline-color: var(--papel-noche); }

.pantalla .icono {
  position: absolute;
  left: clamp(0.75rem, 2vw, 1.25rem);
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  display: grid;
  place-items: center;
  width: 3.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--laton);
  box-shadow: 0 0 0 4px var(--noche);
  transition: background-color 0.15s ease;
}
.pantalla .icono svg { width: 38%; margin-left: 9%; fill: var(--noche); }
.pantalla .play:hover .icono { background: var(--laton-claro); }
.pantalla-grande .icono { width: clamp(3.5rem, 8vw, 6.25rem); }

.pantalla.sonando { background: #000; }
.pantalla iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pantalla.sin-miniatura .tinta { display: none; }
.pantalla.sin-miniatura .play:disabled { cursor: default; }
.pantalla.sin-miniatura .play:disabled .icono { display: none; }
.pantalla .falta {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--papel-noche);
}

/* ---------- Listas de vídeos ---------- */

.rejilla {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* auto-fit: 2, 3 o 4 vídeos llenan la fila sin dejar huecos */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(2.25rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 2rem);
}

.video-titulo {
  font-family: var(--display);
  margin: 0.9rem 0 0;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.02;
}

/* Vídeo con texto: en fila, vídeo a la izquierda */
.fila { display: grid; gap: 1.25rem 2.5rem; }
.fila + .fila { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 52rem) {
  .fila { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
  .fila .video-titulo { margin-top: 0; font-size: 2rem; }
}
.fila .video-titulo { margin-top: 0; }
.video-texto { margin: 0.9rem 0 0; max-width: 34em; }

.meta {
  margin: 0.35rem 0 0;
  font-style: italic;
  font-size: 0.975rem;
  line-height: 1.45;
  color: var(--tinta-suave);
}

/* ---------- Cine y discos ---------- */

.carteles,
.discos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2.25rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 2rem);
}
.carteles {
  margin-top: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 16rem));
}
.discos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
/* En móvil, carteles y portadas de dos en dos */
@media (max-width: 44rem) {
  .carteles,
  .discos { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .carteles h4,
  .discos h3 { font-size: 1.3rem; }
}

.cartel,
.cuadrada {
  margin: 0;
  overflow: hidden;
  background: var(--noche);
}
.cartel { aspect-ratio: 7 / 10; }
.cuadrada { aspect-ratio: 1; }
.cartel img,
.cuadrada img { width: 100%; height: 100%; object-fit: cover; }

.carteles h4,
.discos h3 {
  margin-top: 0.9rem;
  font-size: 1.5rem;
  line-height: 1.05;
}
.carteles h4 em,
.discos h3 em,
.bloque h3 em { font-style: normal; }

.escuchar {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration-color: var(--acento);
  text-decoration-thickness: 2px;
}

/* ---------- Agenda ---------- */

.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--tinta) 18%, transparent);
}
.agenda li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--tinta) 18%, transparent); }
.agenda-fecha {
  grid-row: span 3;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.9;
}
.agenda-dia { display: block; font-size: 3rem; }
.agenda-mes { display: block; font-size: 1.2rem; font-weight: 600; color: var(--tinta-suave); }
.agenda-lugar { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.05; }
.agenda .meta { margin: 0; }
.agenda .escuchar { margin-top: 0.25rem; }
@media (min-width: 44rem) {
  .agenda li { grid-template-columns: 7rem minmax(0, 1fr) auto; align-items: center; }
  .agenda-fecha { grid-row: auto; }
  .agenda .escuchar { grid-column: 3; grid-row: 1; margin: 0; }
}

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

.contacto {
  background: var(--noche);
  color: var(--papel-noche);
  padding-block: clamp(4rem, 10vw, 7rem) 2rem;
}
.contacto h2 { color: var(--laton); margin-bottom: 0; }

.contacto-intro {
  margin: 1.75rem 0 0.4rem;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--suave-noche);
}

.correo {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 7.5vw, 5rem);
  line-height: 1;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--laton);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}
.correo:hover { color: var(--laton-claro); }

.redes {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
}
.redes a { text-decoration-color: var(--laton); }
.redes a:hover { color: var(--laton-claro); }

.firma {
  margin: clamp(4rem, 10vw, 6rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #343a6e;
  font-size: 0.9rem;
  color: #9d9cbb;
}
