/*
Theme Name: Luo Han Luz
Theme URI: https://chi-kung.es/
Author: Luo Han Qi Gong
Description: Segunda propuesta de la misma web. Más luz, fotos grandes que se abren, y un cierre con Mila y las clases.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: luohan-luz
*/

:root {
  --paper: #f7f3ec;
  --paper-2: #efe6d8;
  --ink: #241f1a;
  --ink-soft: #5c5348;
  --leaf: #3e6b4a;
  --leaf-deep: #2d5238;
  --line: #e0d5c6;
  --sand: #f3eadc;
  --white: #fffcf7;
  --noche: #2c2622;
  --serif: "Literata", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ancho: 74rem;
  /* MODIFICADO: 2026-10-06 - Cursor AI
     - La columna de las páginas de texto pasa de 40rem a 46rem.
     - Propósito: un poco más de presencia, sin alargar la línea hasta el marco de las fotos. */
  --lectura: 46rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
}

body.luz-abierto { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--leaf-deep); }
a:hover { color: var(--ink); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 30;
}
.skip:focus { top: 1rem; }

.site-header {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.site-header a { color: inherit; text-decoration: none; }

.header-inner {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 1.1rem 1.5rem 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.brand-kicker,
.kicker {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.brand-kicker { color: var(--leaf-deep); }

.brand-name {
  margin: 0.1rem 0 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.4rem 0.8rem;
  font: inherit;
  cursor: pointer;
}

.site-nav {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0.35rem 1.5rem 0.7rem;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.2rem;
}

.menu a {
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--ink);
  text-decoration: none;
}

.menu > li { position: relative; }

.menu .current-menu-item > a,
.menu .current-menu-ancestor > a,
.menu a:hover {
  box-shadow: inset 0 -2px 0 var(--leaf);
}

.menu .sub-menu {
  display: none;
  position: absolute;
  z-index: 6;
  min-width: 16rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
}

.menu .sub-menu a {
  display: block;
  padding: 0.45rem 0.95rem;
}

.menu .sub-menu a:hover,
.menu .sub-menu .current-menu-item > a {
  background: var(--sand);
  box-shadow: none;
}

.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu { display: block; }

.menu .sub-menu .sub-menu { top: 0; left: 100%; }

/*
MODIFICADO: 08/10/2026 - Cursor AI
- La franja sigue con el alto de antes: lo marca el título, no la foto.
- El dedo pasa la foto de lado. Hacia abajo, la página sigue bajando.
*/
.hero {
  position: relative;
  width: 100%;
  min-height: 26rem;
  color: var(--white);
  background-color: #24503a;
  display: grid;
  align-items: end;
  overflow: hidden;
  touch-action: pan-y;
}

.hero-paso {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.hero-paso.activa { opacity: 1; }

.hero-fondo {
  position: absolute;
  inset: 0;
  background-color: #24503a;
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-fondo-movil {
  display: none;
  background-position: center center;
}

.hero-puntos {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.8rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.hero-puntos button {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.55);
  cursor: pointer;
}

.hero-puntos button.activa { background: var(--white); }

.hero-veil {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(180deg, rgba(28, 24, 18, 0.05), rgba(28, 24, 18, 0.62));
  padding: 5rem 1.5rem 2.6rem;
}

.hero-inner { max-width: var(--ancho); margin: 0 auto; }

.hero .kicker { color: #f3e6d2; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.8rem;
  max-width: 14ch;
}

.hero p { max-width: 36rem; font-size: 1.22rem; margin: 0 0 1.4rem; }

.button {
  display: inline-block;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  margin: 0 0.6rem 0.6rem 0;
  border: 1px solid var(--white);
}

.button.quiet { background: transparent; color: var(--white); }

.button.solido {
  background: var(--leaf);
  color: var(--white);
  border-color: var(--leaf);
}

.button.solido:hover { background: var(--leaf-deep); color: var(--white); }

.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.path {
  padding: 1.7rem 1.6rem 1.8rem;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid var(--line);
}

.path:last-child { border-right: 0; }
.path:hover { background: var(--sand); color: inherit; }

.path span {
  display: block;
  color: var(--leaf-deep);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.45rem;
}

.path strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 560;
  margin-bottom: 0.4rem;
}

.momentos { max-width: var(--ancho); margin: 0 auto; padding: 1rem 1.5rem 2rem; }

.momento {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.momento-inverso { grid-template-columns: 0.85fr 1.15fr; }
.momento-inverso img { order: 2; }

.momento img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  cursor: zoom-in;
}

.momento h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.7rem;
}

.kicker-oscuro { color: var(--leaf-deep); }

.enlace-ir {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 600;
  text-underline-offset: 0.2rem;
}

.entry {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 2.4rem 1.5rem 0;
}

.page-head {
  max-width: var(--lectura);
  margin-left: auto;
  margin-right: auto;
}

.page-head h1,
.entry h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0.25rem 0 0.4rem;
  text-wrap: balance;
}

.crumbs { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.crumbs a { text-decoration: none; }

.entry-content { padding: 1.2rem 0 2rem; }

.entry-content p,
.entry-content ul,
.entry-content h2,
.entry-content ol {
  max-width: var(--lectura);
  margin-left: auto;
  margin-right: auto;
}

.entry-content > p:first-of-type {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
}

.entry-content h2 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 2.2rem auto 0.7rem;
  text-wrap: balance;
}

/* MODIFICADO: 2026-10-06 - Cursor AI
   - Los párrafos van justificados y con guion al final del renglón.
   - Propósito: bloque de texto parejo, sin huecos entre palabras. */
.entry-content p {
  margin: 0 auto 1rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* MODIFICADO: 2026-10-06 - Cursor AI
   - En la portada el texto ocupa el marco entero, de la foto izquierda al texto de la derecha.
   - Propósito: ver el texto entre las dos líneas del marco ancho. */
.presentacion .entry-content p,
.presentacion .entry-content ul,
.presentacion .entry-content ol,
.presentacion .entry-content h2 {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.entry-content ul { padding-left: 1.2rem; }
.entry-content li { margin: 0.3rem 0; }

.entry-content img { cursor: zoom-in; }

.figura { margin: 1.6rem auto 2rem; max-width: 52rem; }
.figura figcaption,
.galeria figcaption,
.gallery-caption,
.wp-caption-text {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 0.45rem;
}

.serie {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1.4rem 0 2rem;
  max-width: none;
}

.serie .figura { margin: 0; max-width: none; }
.serie img { width: 100%; height: 16rem; object-fit: cover; }

.logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: var(--lectura);
  margin: 1.2rem auto 2rem;
}

.logos .figura { margin: 0; }
.logos img {
  width: 100%;
  height: 8rem;
  object-fit: contain;
  background: var(--white);
  cursor: zoom-in;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 0.6rem 0 2rem;
  max-width: none;
}

.gallery-item { float: none; width: auto; margin: 0; }
.gallery img { width: 100%; height: 20rem; object-fit: cover; }

.videos { display: grid; gap: 1.6rem; margin: 1rem auto 0; max-width: 52rem; }
.videos iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--noche);
}

.cierre-pagina {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin: 0.5rem 0 3rem;
  padding: 1.4rem 1.5rem;
  background: var(--sand);
  max-width: none;
}

.cierre-pagina p { margin: 0; max-width: 36rem; }

.formulario {
  max-width: var(--lectura);
  display: grid;
  gap: 0.85rem;
  margin: 1rem auto 3rem;
}

.formulario label { display: grid; gap: 0.3rem; }

.formulario input,
.formulario textarea {
  font: inherit;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.formulario button {
  justify-self: start;
  font: inherit;
  background: var(--leaf);
  color: var(--white);
  border: 0;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
}

.aviso {
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  max-width: var(--lectura);
  margin-left: auto;
  margin-right: auto;
}

.trampa { position: absolute; left: -9999px; }

.site-footer { background: var(--noche); color: #f3eadf; margin-top: 1rem; }
.site-footer a { color: inherit; }

.cierre {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 2.2rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: auto 1.3fr 1fr auto;
  gap: 1.6rem;
  align-items: center;
}

.cierre-foto {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
}

.cierre-nombre {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
}

.cierre p { margin: 0.2rem 0; }
.cierre .kicker { color: #d7c4a4; }

.cierre-clases { margin: 0; padding-left: 1.1rem; }
.cierre-clases li { margin: 0.25rem 0; }

.luz-visor {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(28, 24, 18, 0.92);
  display: grid;
  place-items: center;
  padding: 3rem 1rem 1rem;
}

.luz-visor[hidden] { display: none; }

.luz-visor img {
  width: min(92vw, 70rem);
  height: min(86vh, 48rem);
  object-fit: contain;
  cursor: default;
}

.luz-cerrar {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  font: inherit;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; margin-bottom: 0.8rem; }
  .site-nav { display: none; padding-top: 0; }
  .site-nav.abierto { display: block; padding-bottom: 1rem; }
  .menu { display: grid; }
  .menu .sub-menu,
  .menu li:hover > .sub-menu,
  .menu li:focus-within > .sub-menu {
    display: block;
    position: static;
    border: 0;
    background: transparent;
    padding-left: 0.7rem;
  }
  .paths,
  .momento,
  .momento-inverso,
  .serie,
  .logos,
  .cierre,
  .cierre-pagina { grid-template-columns: 1fr; display: grid; }
  .momento-inverso img { order: 0; }
  .momento img,
  .gallery img,
  .serie img { height: 16rem; }
  .gallery { grid-template-columns: 1fr; }
  .path { border-right: 0; border-bottom: 1px solid var(--line); }
  .cierre-pagina { align-items: start; }
  .entry-content p { text-align: start; hyphens: manual; }
  .hero-paso-con-movil .hero-fondo-ordenador { display: none; }
  .hero-fondo-movil { display: block; }
}
