@font-face { font-family: "Alegreya"; src: url("/fuentes/Alegreya.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Alegreya SC"; src: url("/fuentes/AlegreyaSC-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --papel: #f3e9d2;
  --papel-2: #e8dab8;
  --tinta: #2b2116;
  --tinta-suave: #5a4a36;
  --acento: #8c2f1b;
  --acento-2: #6d2414;
  --linea: #c9b48a;
  --barra: rgba(43, 33, 22, .92);
  --barra-texto: #f3e9d2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papel: #1c1712;
    --papel-2: #261f18;
    --tinta: #ece0c6;
    --tinta-suave: #bfae8d;
    --acento: #d0673f;
    --acento-2: #e07a50;
    --linea: #4a3d2c;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 1.125rem/1.6 "Alegreya", Georgia, serif; }
a { color: var(--acento); }
img { max-width: 100%; height: auto; display: block; }

.barra { position: sticky; top: 0; z-index: 10; display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  padding: .5rem 1rem; background: var(--barra); color: var(--barra-texto); flex-wrap: wrap; }
.barra a { color: var(--barra-texto); text-decoration: none; }
.marca { display: flex; gap: .5rem; align-items: center; font: 700 1.3rem "Alegreya SC", serif; }
.marca img { border-radius: 6px; }
.barra nav { display: flex; gap: .9rem; flex-wrap: wrap; font-size: 1rem; }
.barra nav a:hover { text-decoration: underline; }
.idioma { border: 1px solid var(--barra-texto); border-radius: 4px; padding: 0 .5rem; }

.portada { position: relative; }
.banner { width: 100%; max-height: 80vh; object-fit: cover; }
.portada-texto { text-align: center; padding: 1.5rem 1rem 2rem; background: var(--papel-2); border-bottom: 1px solid var(--linea); }
/* the banner already shows the title; the h1 stays for search engines and readers */
.portada h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lema { font-size: 1.35rem; max-width: 46rem; margin: 0 auto 1.2rem; }
.plataformas { color: var(--tinta-suave); margin: .6rem 0 0; }

.boton { display: inline-block; background: var(--acento); color: #fff; padding: .8rem 1.6rem; border-radius: 6px;
  font: 700 1.25rem "Alegreya SC", serif; text-decoration: none; box-shadow: 0 2px 0 var(--acento-2); }
.boton:hover { background: var(--acento-2); }
.boton.secundario { font-size: 1.05rem; padding: .5rem 1.1rem; }

section { max-width: 64rem; margin: 0 auto; padding: 2.5rem 1rem; }
section + section { border-top: 1px solid var(--linea); }
h2 { font: 700 2rem "Alegreya SC", serif; margin: 0 0 1rem; }
h3 { margin: .2rem 0; }

.rasgos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.rasgos li { background: var(--papel-2); border: 1px solid var(--linea); border-radius: 6px; padding: 1rem; }
.rasgos p { margin: .3rem 0 0; }

.galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .8rem; }
.captura img { border-radius: 4px; border: 1px solid var(--linea); transition: transform .15s; }
.captura:hover img { transform: scale(1.02); }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.video iframe, .video-play, .video-play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-play { padding: 0; cursor: pointer; background: none; }
.triangulo { position: absolute; left: 50%; top: 50%; width: 88px; height: 62px; transform: translate(-50%, -50%);
  background: rgba(140, 47, 27, .92); border-radius: 14px; }
.triangulo::after { content: ""; position: absolute; left: 36px; top: 17px; border-style: solid; border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #fff; }
.nota { color: var(--tinta-suave); font-size: .95rem; }

#diario article { border-left: 3px solid var(--acento); padding: .2rem 0 .2rem 1rem; margin-bottom: 1.2rem; }
#diario time { color: var(--tinta-suave); font-size: .95rem; }
#diario p { margin: .2rem 0 0; }

footer { text-align: center; padding: 2rem 1rem; border-top: 1px solid var(--linea); color: var(--tinta-suave); }

#visor { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
#visor::backdrop { background: rgba(0, 0, 0, .85); }
#visor img { max-height: 88vh; width: auto; margin: auto; }
#visor p { color: #fff; text-align: center; margin: .4rem 0 0; }
#visor .cerrar { position: absolute; top: .3rem; right: .5rem; font-size: 2rem; color: #fff; background: rgba(0,0,0,.5); border: 0; border-radius: 50%; width: 2.6rem; height: 2.6rem; cursor: pointer; }

@media (max-width: 600px) {
  .barra nav a:not(.idioma) { display: none; }
  h2 { font-size: 1.6rem; }
}
