/* ==========================================================================
   Adaptación a WordPress de main.css (hoja idéntica a la del prototipo).
   ========================================================================== */

/* Idioma: el servidor imprime ES y EN; se muestra el elegido */
html:not(.lang-en) [data-l="en"],
html.lang-en [data-l="es"] { display: none !important; }
.rmr-lang { display: contents; }

/* Envoltorios de WordPress */
body { display: block; }
.wp-site-blocks {
  min-height: var(--vh);
  display: flex;
  flex-direction: column;
}
.wp-site-blocks > main { flex: 1 0 auto; }
:where(.wp-site-blocks) > *,
:where(.is-layout-flow) > * { margin-block-start: 0; margin-block-end: 0; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }

.home-index__all { margin-top: 10px; }
.site-header .lang-switch button { background: none; }

/* ---- Texto del proyecto (bloques de párrafo de WordPress) ---- */
.text .is-style-lede {
  font-size: var(--fs-lede);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-style: italic;
  margin-bottom: 1.2em;
  font-variation-settings: "opsz" 60;
  text-wrap: balance;
}
.text .is-style-firma {
  font-family: var(--sans);
  font-size: var(--fs-meta);
  color: var(--ink-2);
  margin-top: 1.8em;
  text-indent: 0;
}
.text .is-style-firma + .is-style-firma { margin-top: 0.3em; }
.text h2, .text h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-body);
  margin-bottom: 1.1em;
}
.text h2 + p, .text h3 + p,
.text .is-style-lede + p,
.text .text__lang-note + .rmr-lang > p:first-child,
.text .rmr-lang > p:first-child { text-indent: 0; }
.text ul { list-style: disc; padding-left: 1.2em; margin: 0.6em 0; }

/* Citas: en el flujo (grandes) y dentro del texto (como el resto del texto) */
.wp-block-quote { margin: 0; padding: 0; border: 0; }
.quote cite {
  display: block;
  margin-top: 1.1em;
  font-family: var(--sans);
  font-size: var(--fs-meta);
  font-style: normal;
  line-height: 1.5;
  color: var(--ink-2);
}
.quote cite a { border-bottom: 1px solid currentColor; }
.quote p + p { margin-top: 0.8em; }
.text .quote {
  grid-column: auto;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0;
  font-variation-settings: "opsz" 16;
  max-width: none;
}
.text .quote p { font-style: italic; text-indent: 0; }
.text .quote + .is-style-firma { margin-top: 0.4em; }

/* Párrafos sueltos en el flujo de un proyecto */
.flow > p,
.flow > h2,
.flow > ul {
  grid-column: 5 / span 7;
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.52;
  max-width: var(--measure);
}

/* Páginas genéricas */
.page-content > p,
.page-content > h2,
.page-content > h3,
.page-content > ul {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--margin);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.52;
}
.page-content > p + p { margin-top: 1em; }

/* Info */
.info-bio .is-style-firma { font-family: var(--sans); font-size: var(--fs-ui); color: var(--ink); margin-bottom: 1em; }
.info-bio p + p:not(.cta-line) { margin-top: 1em; }
.cv__title a { border-bottom: 1px solid var(--line); }
.cv__title a:hover { border-color: var(--ink); }
.press__links a + a { margin-left: 0; }

@media (max-width: 860px) {
  .flow > p, .flow > h2, .flow > ul { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}
