/* Tokens — claro por defecto (Uncode), oscuro para el conmutador */
:root,
:root[data-force-color-mode="light"] {
  --c-text: #1b1b1b;  --c-bg: #ffffff;  --c-surface: #f6f6f4;
  --c-title: #1b1b1b; --c-link: #1b1b1b; --c-accent: #111111;
  --c-muted: #8a8a8a; --c-border: #e8e8e8; --c-border-strong: #9f9f9f;
}
:root[data-force-color-mode="dark"] {
  --c-text: #9f9f9f;  --c-bg: #141414;  --c-surface: #202020;
  --c-title: #f0f0ee; --c-link: #9f9f9f; --c-accent: #f0f0ee;
  --c-muted: #9a9a96; --c-border: #2c2c2a; --c-border-strong: #444440;  --c-accent:grey;
}
/* Base + tipografía (Rubik vendorizada vía /assets/css/typography.css del tema) */
html { font-size: 17px; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: 'Rubik', system-ui, -apple-system, sans-serif;
  font-weight: 400; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--c-link); text-decoration: none; }
a:hover { opacity: .68; }
h1, h2, h3 { color: var(--c-title); }
h1 { font-size: 2.05rem; font-weight: 700; margin: 2.2rem 0 1.6rem; }
h2 { font-size: 1.7rem;  font-weight: 700; margin: 2.4rem 0 1.2rem; }
h3 { font-size: .92rem;  font-weight: 700; margin: 1.8rem 0 1rem; }
img { max-width: 100%; height: auto; }
/* Layout + cabecera + nav + pie.
   En la home el héroe es full-bleed y la cabecera flota transparente encima. */
body{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}
.site-container {
	position:relative;
	max-width: 1200px;
  width: 100%;
  padding: 0 36px 3rem;
  box-sizing: border-box;
  margin: 0 auto;
}
article { flex: 1; }

.site-header { display: flex; justify-content: space-between; align-items: flex-start;
  padding: 1.3rem 0 0; background: var(--c-bg); }
.brand { font-weight: 700; font-size: 1.18rem; color: var(--c-title); letter-spacing: .01em; }
.site-nav { padding: 0; position: absolute; top: 1.55rem; right: 36px; z-index: 25; }
.mainMenu { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; }
.mainMenu a { font-size: 12px; font-weight: 600; color: var(--c--text); padding: .3rem 14px; }
.mainMenu a:hover { opacity: .6; }
#show-menu-input-checkbox, #main-menu-toggler { display: none; }
@media (max-width: 900px) {
  .site-nav { top: 1.5rem; right: 36px; }
  #main-menu-toggler { display: block; position: absolute; top: 0; right: 0;
    width: 30px; height: 22px; cursor: pointer; z-index: 40; }
  #main-menu-toggler-icon, #main-menu-toggler-icon::before, #main-menu-toggler-icon::after {
    content: ''; display: block; position: absolute; left: 0; width: 30px; height: 2px;
    background: var(--c-text); border-radius: 2px; }
  #main-menu-toggler-icon { top: 10px; }
  #main-menu-toggler-icon::before { top: -8px; }
  #main-menu-toggler-icon::after { top: 8px; }
  .mainMenu { display: none; flex-direction: column; gap: 0;
    position: absolute; top: 2.4rem; right: 0; min-width: 210px; z-index: 40;
    background: var(--c-bg); border: 1px solid var(--c-border); padding: .5rem 1rem; }
  #show-menu-input-checkbox:checked ~ .mainMenu { display: flex; }
  .mainMenu a { display: block; padding: .55rem 0; font-size: 12px; font-weight: 600; }
}

/* Home: cabecera flotando sobre el vídeo */
/*
  background: transparent; border: none; padding: 1.6rem 40px; box-sizing: border-box; }

.site-footer { margin-top: 4rem; padding: 1.5rem 0 0; border-top: 1px solid var(--c-border);
  color: var(--c-muted); font-size: .82rem; }
.site-footer a { color: var(--c-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   PORTADA — VARIANTE FULL-SCREEN (toggle)
   Comenta/descomenta este bloque para alternar entre:
   · POR DEFECTO (activo ahora): vídeo a ancho de contenido, bajo la cabecera
     blanca — reglas en 040-content-hero.css.
   · FULL-SCREEN (este bloque): vídeo 100vh a sangre completa con la cabecera
     flotando encima en blanco.
   Tras cambiar: php popup-cms/cli-compile.php + subir content/ y themes/.
   ══════════════════════════════════════════════════════════════════════════ */
/*
body.home .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  background: transparent; border: none; padding: 1.6rem 40px; box-sizing: border-box; }
body.home .site-container { position: static; padding: 0 0 3rem; }
body.home .brand, body.home .mainMenu a { color: #fff; }
body.home .home-hero { width: 100vw; position: relative; left: 50%;
  margin-left: -50vw; height: 100vh; margin-top: 0; }
*/
/* Home: vídeo a ancho de contenido, ratio natural, bajo la cabecera */
.home-hero { margin: 1.2rem 0 0; }
.home-hero video { display: block; width: 100%; height: auto; background: #000; }
.welcome-heading { margin-top: 2.6rem; }

.lead { color: var(--c-muted); font-size: 1.02rem; max-width: 640px; }
.btn { display: inline-block; padding: .72rem 1.6rem;
  border: 1px solid var(--c-border-strong); border-radius: 2px;
  font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-text); }
.btn:hover { opacity: .6; }
.ver-todas { text-align: right; margin: .4rem 0 1.4rem; }

/* Tarjetas: imagen plana + título pequeño en negrita debajo (sin caja, sin año) */
.film-grid { display: grid; gap: 24px; margin: 1.2rem 0 .6rem; grid-template-columns: repeat(3, 1fr);
              list-style: none; padding: 0; }
.film-grid > li { margin: 0; }
.film-grid-4 { grid-template-columns: repeat(4, 1fr); }
.film-card { display: block; }
.film-card img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.film-card:hover { opacity: .82; }
.film-card-title { display: block; margin-top: .85rem; font-weight: 700; font-size: .84rem; }
.film-card-year { display: none; }
@media (max-width: 1020px) { .film-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px)  { .film-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .film-grid, .film-grid-4 { grid-template-columns: 1fr; } }

/* Página de película */
.film-title { margin: 2rem 0 .2rem; font-size: 35px; color: #303133; }
.film-year { color: var(--c-muted); margin: 0 0 1.4rem; }
.popup-video, .popup-video video { width: 100%; max-width: 1128px; }
.film-back { margin: 2.2rem 0 0; }
.film-back a { color: var(--c-muted); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; }

/* Poemas: índices y lectura */
.poem-index { list-style: none; padding: 0; margin: 1rem 0 2rem;
  display: grid; gap: 1rem 2.4rem; grid-template-columns: repeat(4, 1fr); }
.poem-index li { border: none; }
.poem-index a { padding: 0; font-size: .84rem; font-weight: 700; }
.poem-index-home { margin: .6rem 0 2rem; }
.poem-title { margin-top: 2.6rem; }
.poem { max-width: 480px; margin: 0 0 4rem; font-size: .95rem; line-height: 1.75;
  color: var(--c-text); }
.poem p { margin: 0 0 1.3rem; }

/* Libros: portada plana + título debajo */
.book-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr);
  margin: 1.2rem 0 2rem; }
.book-card { display: block; }
.book-card img { display: block; width: 100%; aspect-ratio: 25/35; object-fit: cover; }
.book-card:hover { opacity: .82; }
.book-card-title { display: block; margin-top: .85rem; font-weight: 700; font-size: .84rem; }
.book-card-count { display: none; }
.book-list { list-style: none; padding: 0; }
.book-list li { border: none; }
.book-list a { padding: 0; font-size: .84rem; font-weight: 700; }
@media (max-width: 860px) { .book-grid { grid-template-columns: repeat(2, 1fr); }
  .poem-index { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .book-grid { grid-template-columns: 1fr; }
  .poem-index { grid-template-columns: 1fr; } }

/* Meta de película (Año / Duración) + barra Prev · sección · Next */
.film-caption { color: var(--c-muted); font-size: .92rem; margin: .9rem 0 1.4rem; }
.film-meta { margin: .4rem 0 2rem; }
.detail-container { display: block; padding: .3rem 0; }
.detail-label { display: inline-block; min-width: 108px; font-weight: 700; font-size: .84rem; color: #303133; }
.detail-value { display: inline-block; font-size: .9rem; color: var(--c-muted); }
.film-nav { display: flex; justify-content: space-between; align-items: center;
  margin: 3rem 0 0; border-top: 1px solid var(--c-border); padding-top: 1.2rem; }
.nav-cell { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-off { color: var(--c-border-strong); }
.nav-center { color: var(--c-muted); }
.poem-list-page { max-width: 640px; grid-template-columns: 1fr; }
.poem-list-page a { font-size: 1rem; }
.film-card-desc { display: block; padding: .15rem .0rem .6rem; color: var(--c-muted);
  font-size: .84rem; line-height: 1.5; max-width: 340px; }

/* Página de libro: 3 columnas [portada | título+descripción+SoundCloud | poemas].
   Sin h1 gigante: el título va pequeño y en negrita sobre la descripción (2.ª col).
   Poemas como texto simple en negrita, sin bordes. Botón negro, texto blanco. */
.book-header { display: grid; gap: 40px 64px; grid-template-columns: repeat(3, 1fr);
  margin: 2.2rem 0 2.6rem; align-items: start; }
.book-cover img { display: block; width: 100%; }
.book-title { font-size: 1rem; font-weight: 700; margin: 0 0 1.1rem; }
.book-desc { font-size: .9rem; line-height: 1.75; color: var(--c-muted); }
.book-desc p { margin: 0 0 1rem; }
.book-desc a { color: var(--c-text); }
.btn-soundcloud { display: inline-block; margin-top: 1rem; padding: .78rem 1.6rem;
  background: var(--c-accent); color: #fff; border: none; border-radius: 2px;
  font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.btn-soundcloud:hover { opacity: .82; color: #fff; }
.book-poems { list-style: none; padding: 0; margin: .2rem 0 0; }
.book-poems li { border: none; }
.book-poems a { display: block; padding: .5rem 0; font-size: .86rem; font-weight: 700;
  line-height: 1.5; }
@media (max-width: 900px) { .book-header { grid-template-columns: 1fr; gap: 28px; } }

/* Héroe home: full-bleed real (rompe el contenedor), ocupa 100vh y sube con el
   scroll (no fixed). La cabecera/nav absolutos flotan encima (z 20) y anclan a
   la página (el contenedor pasa a static en home): marca y menú en los bordes
   del viewport, como el original. */

/* Bajo el vídeo: título (col 8) | Año-Duración (col 4) — patrón col-lg-8/4 del original */
.film-below { display: grid; grid-template-columns: 2fr 1fr; gap: 40px;
  align-items: start; margin-top: 2.4rem; }
.film-caption { margin: 0; font-size: 35px; font-weight: 700; color: #303133; }
.film-meta { margin: .4rem 0 0; }
.detail-container { display: block; padding: .3rem 0; }
.detail-label { display: inline-block; min-width: 108px; font-weight: 700;
  font-size: .84rem; color: #303133; }
.detail-value { display: inline-block; font-size: .9rem; color: var(--c-muted); }
@media (max-width: 760px) { .film-below { grid-template-columns: 1fr; gap: 16px; } }
.poem-byline { font-size: .8rem; color: var(--c-muted); margin: -1.4rem 0 2.2rem; }
.poem-byline a { color: var(--c-muted); }

/* Contacto: intro | formulario, dos columnas (col-6/col-6 del original) */
.contact-grid { display: grid; gap: 56px; grid-template-columns: 1fr 1fr;
  margin: 1.6rem 0 2.6rem; align-items: start; }
.contact-intro { font-size: .95rem; line-height: 1.8; color: var(--c-text); }
.contact-intro a { color: var(--c-text); font-weight: 700; }
/* Poemas: ancho estándar del sitio (nada de columnas raquíticas) */
.poem { max-width: none; }
.contact-grid, .film-below { max-width: none; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Botón Enviar del formulario: negro, texto blanco (como el original) */
.pf-form button[type="submit"], .pf-form input[type="submit"] {
  background: var(--c-accent); color: #fff; border: none; border-radius: 2px;
  padding: .78rem 1.6rem; font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.pf-form button[type="submit"]:hover { opacity: .82; }
.pf-form label { font-size: .9rem; }
.pf-form input[type="text"], .pf-form input[type="email"], .pf-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--c-border-strong);
  border-radius: 2px; padding: .6rem .7rem; font-family: inherit; font-size: .95rem; }
/* Conmutador claro/oscuro — visible en ambos modos */
.switchModeButton {
  position:fixed;
  right:4px;
  bottom:4px;
  background: none;
  border: none;
  color: var(--c-text); 
  font-size: 1.05rem; 
  line-height: 1;
  cursor: pointer; 
  padding: .38rem .5rem; }
/*.switchModeButton:hover { border-color: var(--c-text); }*/
:root[data-force-color-mode="dark"] .switchModeButton {  border-color: var(--c-border-strong); }
