/*
 * Estilos del contenido de las páginas (bloques).
 *
 * Se cargan en la web, justo antes de style.css, y dentro del editor de bloques (add_editor_style),
 * para que lo que se ve al editar sea lo que se publica. Aquí solo va lo que afecta al contenido;
 * la cabecera, el pie, los formularios y el catálogo están en style.css.
 */

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
/* Sin line-height: en el editor esta regla se aplica al lienzo y pisaría el interlineado del texto */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
  word-break: normal;
  font-family: var(--texto);
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

main p {
  display: block;
  margin: 10px 0;
}

main h1 {
  display: block;
  font-family: var(--titulosL);
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  margin: 0.67em 0;
  font-weight: 700;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

p {
  font-size: 1.125rem;
}

/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: 600;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
  max-width: 1000px;
  margin: 0 auto;
  object-fit: cover;
}

.wp-block-list {
  margin: 15px;
}

/* botones: colores, radio y tipografía en theme.json (Estilos > Elementos > Botón) */

.wp-block-button a {
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

/* Botones con color elegido en el editor: el color manda, al pasar el ratón solo se aclara */
.wp-block-button__link.has-background:hover {
  opacity: 0.88;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body {
  color: var(--wp--preset--color--tinta);
  font-size: 1rem;
  line-height: 1.6;
  font-family: var(--texto);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
  margin-block-start: 20px;
  margin-block-end: 10px;
  margin-inline-start: 0;
  margin-inline-end: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

.wp-block-quote.has-text-align-center {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

address {
  margin: 0 0 1.5em;
}

pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

code,
kbd,
tt,
var {
  font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark,
ins {
  background: var(--wp--preset--color--niebla);
  text-decoration: none;
}

big {
  font-size: 125%;
}

/* Elements
--------------------------------------------- */
html {
  /* Los anclajes (#...) no quedan tapados por la cabecera fija */
  scroll-padding-top: 90px;
}

body {
  background: #fff;
  word-break: normal;
}

hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

ul,
ol {
  margin: 0 0 1.5em 3em;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li>ul,
li>ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

/* Links
--------------------------------------------- */
a {
  color: var(--wp--preset--color--azul);
}

/* a:focus {
  outline: thin dotted;
} */

a:hover,
a:active {
  outline: 0;
}

/* Contenido de las páginas
--------------------------------------------- */

.entry-title {
  padding: 0;
  text-align: center;
  color: white;
}

.entry-title-main {
  font-family: var(--wp--preset--font-family--tussilago);
  font-size: clamp(2.25rem, 1rem + 5.5vw, 5.25rem);
  line-height: 0.95;
  overflow-wrap: normal;
}

/* Alignments
--------------------------------------------- */
.alignleft {
  /*rtl:ignore*/
  float: left;

  /*rtl:ignore*/
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  /*rtl:ignore*/
  float: right;

  /*rtl:ignore*/
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

/* Fuentes: registradas en theme.json (Barlow, Barlow Condensed y Tussilago), servidas desde el propio tema */

:root {
  /* Variables de colores: apuntan a la paleta de theme.json */
  --primary-color: var(--wp--preset--color--marino);
  --secondary-color: var(--wp--preset--color--azul);
  --contrast-color: var(--wp--preset--color--azul);
  --tertiary-color: var(--wp--preset--color--azul);

  /* Variables de fuentes */
  --titulosL: var(--wp--preset--font-family--barlow-condensed);
  --texto: var(--wp--preset--font-family--barlow);
}

.wp-block-columns {
  margin: 0;
  padding: 0;
}

/* Los botones quedan fuera (con :where para no cambiar la especificidad de la regla) */
.wp-block-column *:not(figure):not(img):not(.wp-block-image):where(:not(.wp-block-buttons, .wp-block-button, .wp-block-button__link)) {
  padding-block-start: 10px;
  padding-block-end: 10px;
  padding-inline-start: 10px;
  padding-inline-end: 10px;
}

:where(.wp-block-columns.is-layout-flex) {
  gap: 0;
}

.wp-block-column,
.is-vertically-aligned-center figure {
  margin: 0;
}

/* Ancho del contenido: igual que antes en escritorio, con al menos 16px de margen en móvil */
.element-size-large {
  width: calc(100% - 2 * max(16px, 2.5vw));
  max-width: 100rem;
  margin: 0 auto;
}

/* estilos para las familias en el index */

.wp-block-cover__inner-container.is-layout-flow.wp-block-cover-is-layout-flow {
  width: 100% !important;
}

.wp-block-cover,
.wp-block-cover-image {
  min-height: 0;
}

.wp-block-cover .wp-block-cover__background.has-background-dim:not([class*="-background-color"]):not(.has-background-gradient) {
  background-color: var(--wp--preset--color--marino);
}
