:root {
  --noche: #141412;
  --papel: #fdfdfc;
  --papel-hondo: #f2f2f0;
  --tinta: #000000;
  --texto: #2e3135;
  --suave: #8c8f94;
  --linea: #e5e4e1;
  --luz: #f2f1ee;
  --penumbra: #8f8f8c;
  --margen: 1.6rem;
  --medida: 34rem;
}

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

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

body {
  margin: 0;
  background: var(--papel);
  background-image: linear-gradient(180deg, #ffffff 0%, var(--papel) 35%, var(--papel-hondo) 100%);
  color: var(--texto);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-size: 19px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Grano de película sobre toda la página */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: .17;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a {
  color: var(--tinta);
  text-decoration: none;
  border-bottom: 1px solid var(--linea);
  padding-bottom: 2px;
  transition: border-color .3s ease, color .3s ease;
}
a:hover { border-bottom-color: currentColor; }
a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
  border-bottom-color: transparent;
}

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

.portada {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  min-height: 100svh;
  padding: 5rem var(--margen);
  background: var(--noche);
  overflow: hidden;
}

h1 {
  margin: 0;
  font-size: 3.4rem;
  font-size: clamp(3.2rem, 18vw, 6rem);
  font-weight: 200;
  line-height: .98;
  letter-spacing: .01em;
  color: var(--luz);
}

.lema {
  margin: 1.6rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(242, 241, 238, .16);
  max-width: 21rem;
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  color: var(--penumbra);
}

.hilo { display: none; }

/* ---------- Contenido ---------- */

main {
  max-width: calc(var(--medida) + var(--margen) * 2);
  padding: 0 var(--margen);
  padding-top: 5rem;
  padding-top: clamp(4rem, 12vh, 8rem);
}

.intro {
  margin-bottom: 4rem;
  margin-bottom: clamp(3.5rem, 11vh, 6rem);
  max-width: var(--medida);
}
.intro p { margin: 0 0 .6rem; }
.intro p:last-child { margin-bottom: 0; }

/* ---------- Relatos ---------- */

.lista {
  list-style: none;
  margin: 0 0 4rem;
  margin-bottom: clamp(3.5rem, 11vh, 6rem);
  padding: 0;
}

.relato { margin-bottom: 2.9rem; }
.relato:last-child { margin-bottom: 0; }

.num {
  display: block;
  margin-bottom: .3rem;
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--suave);
}

h2 {
  margin: 0 0 .4rem;
  font-size: 2rem;
  font-size: clamp(2rem, 8vw, 2.4rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--tinta);
}

.sinopsis {
  margin: 0 0 1rem;
  max-width: 25rem;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--suave);
}

.acciones, .enlaces {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  font-size: .95rem;
}
.acciones a, .enlaces a { margin: 0 1.6rem .3rem 0; }

/* ---------- Escuchar ---------- */

.escuchar {
  max-width: var(--medida);
  margin-bottom: 4rem;
  margin-bottom: clamp(3.5rem, 11vh, 6rem);
}
.escuchar p { margin: 0 0 .9rem; }

.marca-audio {
  font-style: normal;
  letter-spacing: .06em;
  color: var(--tinta);
}
.escuchar p:last-child { margin-bottom: 0; }

/* ---------- Pie ---------- */

footer {
  max-width: calc(var(--medida) + var(--margen) * 2);
  padding: 2rem var(--margen) 4rem;
}

.pie {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--linea);
  font-size: .85rem;
  color: var(--suave);
}
.pie > * { margin: 0 1.4rem .3rem 0; }

/* =========================================================
   ESCRITORIO
   ========================================================= */

@media (min-width: 62rem) {

  :root {
    --margen: 8vw;
    --medida: 58rem;
  }

  body { font-size: 20px; }

  /* Portada a dos columnas */
  .portada { padding: 7rem var(--margen); }

  .portada-texto { max-width: 68rem; }

  h1 {
    font-size: clamp(5rem, 13vw, 11rem);
    line-height: .9;
    letter-spacing: .005em;
  }

  .lema {
    margin-top: 2.4rem;
    padding-top: 2.4rem;
    font-size: 1.12rem;
    max-width: 26rem;
  }

    /* Hilo vertical que invita a bajar */
  .hilo {
    display: block;
    position: absolute;
    left: var(--margen);
    bottom: 0;
    width: 1px;
    height: 5.5rem;
    background: rgba(242, 241, 238, .14);
    overflow: hidden;
  }
  .hilo span {
    display: block;
    width: 1px;
    height: 40%;
    background: rgba(242, 241, 238, .75);
    animation: caer 3.4s cubic-bezier(.6,.05,.3,1) infinite;
  }

  /* Contenido: índice a tres columnas */
  main, footer { max-width: calc(var(--medida) + var(--margen) * 2); }

  .intro {
    max-width: 30rem;
    font-size: 1.15rem;
  }

  .lista { border-bottom: 1px solid var(--linea); }

  .relato {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) 20rem;
    align-items: start;
    gap: 0 2.5rem;
    margin: 0;
    padding: 2.6rem 0;
    border-top: 1px solid var(--linea);
    transition: background-color .4s ease;
  }
  .relato:hover { background-color: rgba(0, 0, 0, .018); }

  .num {
    margin: 0;
    padding-top: .95rem;
    font-size: .88rem;
    transition: color .4s ease;
  }
  .relato:hover .num { color: var(--tinta); }

  .relato h2 {
    margin: 0;
    font-size: 2.9rem;
    line-height: 1.04;
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
  }
  .relato:hover h2 { transform: translateX(7px); }

  .detalle { padding-top: .7rem; }

  .sinopsis {
    margin-bottom: 1.2rem;
    max-width: none;
    font-size: .98rem;
  }

  .escuchar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 3rem;
    max-width: none;
  }
  .escuchar p { margin: 0; }

  .pie { justify-content: space-between; }
  .pie > * { margin: 0; }

  footer { padding-bottom: 5rem; }
}

@keyframes caer {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(250%); }
  100% { transform: translateY(250%); }
}

/* ---------- Movimiento ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes subir {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hilo span { animation: none; }
}
