/*
 * Los Peques de Kari — site design: meadow scene, cards, menu, newsletter, footer, responsive.
 * Design tokens (8 colors, type scale, spacing, layout widths) are the --pk--preset--* variables in
 * base.css (:root); never hard-code a new color or size here. See docs/DESIGN-SYSTEM.md.
 */

:root {
	--pk-radio: 22px;
	--pk-sombra: 0 6px 22px rgba(1, 77, 130, 0.1);
	--pk-sombra-alta: 0 12px 30px rgba(1, 77, 130, 0.16);
	--pk-ola: clamp(28px, 4.2vw, 70px);
	/* Meadow illustrations: default pair, overridden per section below */
	--pk-izq: url(/assets/images/peque_nino_mapamundi.svg);
	--pk-der: url(/assets/images/conejo.svg);
}

.pk-site-blocks > * + * { margin-block-start: 0; }

/* form controls don't inherit fonts by default (the old site showed Times/Arial in forms) */
button, input, select, textarea { font-family: inherit; }

/* long Spanish words ("manualidades") must never spill out of a card */
:where(h1, h2, h3, h4) { overflow-wrap: break-word; hyphens: auto; }

.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

:where(a, button, input, summary):focus-visible {
	outline: 3px solid var(--pk--preset--color--amarillo);
	outline-offset: 3px;
	border-radius: 6px;
}

/* -------------------------------------------------------------- Meadow scene (page header) */

.pk-escena {
	position: relative;
	z-index: 2;
	/*
	 * Two layers of the meadow (split from pradera_dia.svg by scripts/split_pradera.py):
	 *   1. grass (transparent sky), anchored to the bottom, sunk a bit on short headers
	 *   2. sky band with the clouds, anchored to the top, same scale
	 * plus the sky color behind both. Every header height shows clouds AND grass.
	 * --pk-pasto = grass layer height: width-fitted (+8px: the artwork has a 1px gap at its edges),
	 * never shorter than 300px so phones keep a generous meadow. 0.5866 = sky band / full height.
	 */
	--pk-pasto: max(calc((100vw + 8px) * 0.4573), 300px);
	/* sink the grass so the hilltops (43% down the artwork) land mid-header on a ~30rem-tall inner header:
	   hills_y = H + sink - 0.57·pasto  →  sink = 0.57·pasto - H/2, with H ≈ 30rem */
	/* …but never more than 20% of the grass, so a band of light grass always stays visible for the characters.
	   H/2 grows with the width above 1440px (see "Wide screens" below): max(15rem, 16.667vw) */
	--pk-hundir: clamp(0px, calc(var(--pk-pasto) * 0.57 - max(15rem, 16.667vw)), calc(var(--pk-pasto) * 0.2));
	/* the ground line: where the characters' feet go. The light grass starts 32% above the bottom of the
	   grass layer; feet sit 7% deeper (25%), minus whatever part of the layer is sunk below the header. */
	--pk-suelo: calc(var(--pk-pasto) * 0.25 - var(--pk-hundir));
	background-color: #5498ff;
	background-image: url(/assets/images/pradera_dia_cesped.svg), url(/assets/images/pradera_dia_cielo.svg);
	background-repeat: no-repeat, no-repeat;
	background-position: center calc(100% + var(--pk-hundir)), center top;
	background-size: auto var(--pk-pasto), auto calc(var(--pk-pasto) * 0.5866);
	padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
/* the home header is tall enough to show the whole meadow at its natural position */
.pk-escena--grande {
	--pk-hundir: 0px;
	/* never shorter than the header itself (like `cover`), so on tall phone headers the house stands on the hill */
	--pk-pasto: max(calc((100vw + 8px) * 0.4573), 100%);
}
/* inner headers on wide screens: at least the height the sink above is designed for */
@media (min-width: 900px) {
	.pk-escena:not(.pk-escena--grande) { min-height: 30rem; }
}

/* green wave that melts the meadow into the cream page */
.pk-escena::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(var(--pk-ola) * -1 + 1px);
	height: var(--pk-ola);
	background: url(/assets/images/ola_pradera.svg) center top / 100% 100% no-repeat;
	pointer-events: none;
}

.pk-header { position: relative; z-index: 3; }

.pk-cabecera { padding-block: 1.1rem; gap: 1rem; }
.pk-logo { margin: 0; flex-shrink: 0; }
.pk-logo img { width: clamp(130px, 16vw, 190px) !important; height: auto; display: block; }

/* the menu sits on the sky, so it gets a white pill (white text on sky blue fails contrast) */
.pk-menu.pk-block-navigation {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--pk--preset--color--tinta);
}
/* desktop: the inline menu is the pill */
.pk-menu .pk-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
	background-color: var(--pk--preset--color--blanco) !important; /* base.css forces `inherit !important` here */
	border-radius: 999px;
	padding: 0.55rem 1.4rem;
	box-shadow: var(--pk-sombra);
}
.pk-menu .pk-block-navigation__container { gap: 1.4rem; }
/* phones: the hamburger button gets the white circle */
.pk-menu .pk-block-navigation__responsive-container-open {
	background: var(--pk--preset--color--blanco);
	border-radius: 50%;
	padding: 0.6rem;
	box-shadow: var(--pk-sombra);
}
.pk-menu .pk-block-navigation-item__content { color: var(--pk--preset--color--tinta); text-decoration: none; padding-block: 0.2rem; }
.pk-menu .pk-block-navigation-item__content:hover,
.pk-menu .current-menu-item > .pk-block-navigation-item__content { color: var(--pk--preset--color--morado); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; }
.pk-menu .pk-block-navigation__submenu-container {
	border: 0 !important;
	border-radius: 16px;
	padding: 0.5rem !important;
	box-shadow: var(--pk-sombra-alta);
	min-width: 230px !important;
}
/* Hover fix: no gap between "Actividades" and its submenu. The submenu sits right under the item,
   and an invisible bridge covers the pill's padding so the pointer never "falls out" of the menu. */
.pk-menu .has-child > .pk-block-navigation__submenu-container { top: 100%; }
.pk-menu .has-child > .pk-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -0.9rem;
	height: 0.9rem;
}
.pk-menu .has-child:hover > .pk-block-navigation__submenu-container,
.pk-menu .has-child:focus-within > .pk-block-navigation__submenu-container { margin-top: 0.6rem; }
.pk-menu .pk-block-navigation__submenu-container .pk-block-navigation-item__content { padding: 0.5rem 0.8rem; border-radius: 10px; }
.pk-menu .pk-block-navigation__submenu-container .pk-block-navigation-item__content:hover { background: var(--pk--preset--color--crema); text-decoration: none; }
/* ---- Phone/tablet menu (the full-screen overlay opened by the round button) ----
   A plain list: left-aligned, padded, big tap targets, dividers between items.
   "Actividades" shows its categories as an indented group (purple line), not as a floating card. */
.pk-menu .pk-block-navigation__responsive-container.is-menu-open {
	padding: 1.25rem clamp(1.25rem, 6vw, 2.5rem) 2rem !important;
	font-size: var(--pk--preset--font-size--mediano);
}
.pk-menu .is-menu-open .pk-block-navigation__responsive-container-close { top: 1.25rem; right: clamp(1.25rem, 6vw, 2.5rem); }
.pk-menu .is-menu-open .pk-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }
.pk-menu .is-menu-open .pk-block-navigation__responsive-container-content { padding-top: 3.5rem !important; align-items: stretch !important; }
.pk-menu .is-menu-open .pk-block-navigation__container {
	align-items: stretch !important;
	gap: 0 !important;
	width: 100%;
}
.pk-menu .is-menu-open .pk-block-navigation__container > .pk-block-navigation-item {
	align-items: stretch !important;
	border-bottom: 1px solid #ECE8DE;
}
.pk-menu .is-menu-open .pk-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 0.85rem 0 !important;
	text-align: left;
	font-weight: 700;
	text-decoration: none !important;
}
.pk-menu .is-menu-open .pk-block-navigation__container > .pk-block-navigation-item > .pk-block-navigation-item__content {
	font-size: var(--pk--preset--font-size--mediano); /* main items bigger than the categories under "Actividades" */
}
.pk-menu .is-menu-open .current-menu-item > .pk-block-navigation-item__content { color: var(--pk--preset--color--morado); }
/* the submenu: indented group under "Actividades" */
.pk-menu .is-menu-open .pk-block-navigation__submenu-container {
	position: static !important;
	min-width: 0 !important;
	width: auto !important;
	margin: 0 0 0.85rem 0.25rem !important;
	padding: 0 0 0 1rem !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	border-left: 3px solid var(--pk--preset--color--morado) !important;
	gap: 0 !important;
}
.pk-menu .is-menu-open .pk-block-navigation__submenu-container::before { display: none; }
.pk-menu .is-menu-open .pk-block-navigation__submenu-container .pk-block-navigation-item__content {
	padding: 0.6rem 0.75rem !important;
	font-size: var(--pk--preset--font-size--normal);
	font-weight: 600;
	border-radius: 10px;
}
.pk-menu .is-menu-open .pk-block-navigation__submenu-container .pk-block-navigation-item__content:hover { background: var(--pk--preset--color--crema); }
.pk-menu .is-menu-open .pk-block-navigation-submenu__toggle,
.pk-menu .is-menu-open .pk-block-navigation__submenu-icon { display: none; }
/* base.css switches to the hamburger only below 600px, but our 6 items need ~570px next to the logo:
   use the hamburger up to 900px so tablets never get a menu wrapped onto two lines. */
@media (min-width: 600px) and (max-width: 900px) {
	.pk-menu .pk-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.pk-menu .pk-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

.pk-escena__titulo {
	position: static; /* characters inside are positioned against the whole scene (they stand on its grass) */
	color: var(--pk--preset--color--blanco);
	padding-block: clamp(1.5rem, 5vw, 3.5rem) 0.5rem;
	text-align: center;
}
.pk-escena--grande .pk-escena__titulo { padding-block: clamp(2rem, 6vw, 4.5rem) 1.5rem; }

/* white display type on grass: a navy "sticker" shadow keeps it legible */
.pk-escena__titulo :where(h1, .pk-block-post-title, .pk-block-query-title) {
	color: inherit;
	font-size: var(--pk--preset--font-size--enorme);
	font-weight: 800;
	line-height: 1.12;
	margin: 0;
	text-shadow: 0 3px 0 var(--pk--preset--color--marino), 0 0 20px rgba(1, 77, 130, 0.45);
	text-wrap: balance;
}
.pk-escena__subtitulo,
.pk-escena__titulo .pk-block-term-description,
.pk-escena__titulo .pk-block-post-excerpt {
	color: inherit;
	font-size: var(--pk--preset--font-size--mediano);
	font-weight: 600;
	line-height: 1.4;
	margin-top: 0.6rem;
	text-shadow: 0 2px 0 var(--pk--preset--color--marino), 0 0 14px rgba(1, 77, 130, 0.5);
	text-wrap: balance;
}
.pk-escena__titulo .pk-block-post-excerpt__excerpt,
.pk-escena__titulo .pk-block-term-description p { margin: 0; }
.pk-escena__titulo .pk-block-buttons { margin-top: 1.5rem; }
.pk-escena__titulo .pk-block-button__link { box-shadow: 0 4px 0 var(--pk--preset--color--marino); }

/* characters standing on the meadow, left and right of the title (spans in plantillas/base.html).
   Positioned against .pk-escena, feet on the ground line computed from the grass layer (--pk-suelo). */
.pk-escena__titulo > .pk-personaje {
	display: block;
	position: absolute;
	bottom: var(--pk-suelo);
	width: clamp(120px, 17vw, 230px);
	max-width: none;
	aspect-ratio: 1;
	margin: 0 !important;
	background: center bottom / contain no-repeat;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.pk-escena__titulo > .pk-personaje--izq { left: max(clamp(1rem, 4vw, 2rem), calc(50% - 560px)); background-image: var(--pk-izq); }
.pk-escena__titulo > .pk-personaje--der { right: max(clamp(1rem, 4vw, 2rem), calc(50% - 560px)); background-image: var(--pk-der); }
.pk-escena--grande .pk-escena__titulo > .pk-personaje { width: clamp(140px, 22vw, 300px); }

@keyframes pk-baile {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(35px); }
	75% { transform: translateX(-50px); }
}
.pk-personaje.pk-baile { animation: pk-baile 1s cubic-bezier(0.68, -0.55, 0.27, 1.55); }

.pk-tema-inicio              { --pk-izq: url(/assets/images/casa_de_peques.svg);                      --pk-der: url(/assets/images/arboles_y_conejo.svg); }
.pk-tema-musica              { --pk-izq: url(/assets/images/peque_nino_tocando_trompeta.svg);         --pk-der: url(/assets/images/conejo.svg); }
.pk-tema-cuentos-infantiles  { --pk-izq: url(/assets/images/peque_nino_leyendo_cuentos.svg);          --pk-der: url(/assets/images/arboles_y_conejo.svg); }
.pk-tema-arte-manualidades   { --pk-izq: url(/assets/images/conejo_persiguiendo_mariposas.svg);       --pk-der: url(/assets/images/arboles.svg); }
.pk-tema-peques-genios       { --pk-izq: url(/assets/images/peque_nina_sosteniendo_lapiz_grande.svg); --pk-der: url(/assets/images/mapamundi.svg); }
.pk-tema-quienes-somos       { --pk-izq: url(/assets/images/peque_nino_leyendo_cuentos.svg);          --pk-der: url(/assets/images/peque_nina_saltando_cuerda.svg); }
.pk-tema-contacto            { --pk-izq: url(/assets/images/peque_nino_leyendo_frente_casa.svg);      --pk-der: url(/assets/images/arboles_y_conejo.svg); }
.pk-tema-tienda              { --pk-izq: url(/assets/images/peque_nino_mapamundi.svg);                --pk-der: url(/assets/images/peque_nina_sosteniendo_lapiz_grande.svg); }

/* Night (18:00–06:59, set by the <head> script in plantillas/base.html): night meadow; logos switch to the moon in JS */
.pk-noche .pk-escena {
	background-color: #233374;
	background-image: url(/assets/images/pradera_noche_cesped.svg), url(/assets/images/pradera_noche_cielo.svg);
}

/* Wide screens (>1440px). The scene is designed at 1440px. The meadow is width-fitted, so above 1440px it
   grows with the screen; if the header kept its height, the grass covered the whole sky (2560px screens: no
   clouds at all). So everything in the scene grows with the width, as one picture:
   value = its 1440px size + (100vw - 1440px) × (its 1440px position / 1440). Identical at 1440px. */
@media (min-width: 1440px) {
	.pk-escena:not(.pk-escena--grande) { min-height: 33.333vw; }   /* 480px at 1440 */
	.pk-escena--grande { min-height: 42.41vw; }                     /* 611px at 1440 */
	/* title text top at 216.6px (inner) / 232.6px (home) of 1440 → keeps level with the characters */
	.pk-escena__titulo { padding-top: calc(3.5rem + (100vw - 1440px) * 0.1504); }
	.pk-escena--grande .pk-escena__titulo { padding-top: calc(4.5rem + (100vw - 1440px) * 0.1615); }
	.pk-escena__titulo > .pk-personaje { width: 15.97vw; }                      /* 230px at 1440 */
	.pk-escena--grande .pk-escena__titulo > .pk-personaje { width: 20.83vw; }  /* 300px at 1440 */
	.pk-escena__titulo > .pk-personaje--izq { left: 11.11vw; }                   /* 160px at 1440 */
	.pk-escena__titulo > .pk-personaje--der { right: 11.11vw; }
}

/* tablets: smaller characters, title column narrowed so they never overlap the text */
@media (max-width: 900px) {
	.pk-escena__titulo > .pk-personaje,
	.pk-escena--grande .pk-escena__titulo > .pk-personaje { width: 112px; }
	.pk-escena__titulo > :not(.pk-personaje) { max-width: calc(100% - 250px); margin-inline: auto !important; }
}
/* phones */
@media (max-width: 600px) {
	.pk-escena__titulo > :not(.pk-personaje) { max-width: 100%; }

	/* inner pages: both characters small in the bottom corners, standing on the grass;
	   the header keeps a strip free under the text so they never overlap it */
	.pk-escena:not(.pk-escena--grande) { padding-bottom: calc(var(--pk-suelo) + 88px); }
	.pk-escena:not(.pk-escena--grande) .pk-escena__titulo > .pk-personaje { width: 78px; }

	/* home: the tall header puts the house on the hill above the title (one character only) */
	.pk-escena--grande .pk-escena__titulo { display: flex; flex-direction: column; align-items: center; }
	.pk-escena--grande .pk-escena__titulo > .pk-personaje--der { display: none; }
	.pk-escena--grande .pk-escena__titulo > .pk-personaje--izq {
		position: static; order: -1; width: 150px; margin: 0 auto 0.75rem !important;
	}
}

/* -------------------------------------------------------------- Page body */

.pk-main {
	padding-top: calc(var(--pk-ola) + clamp(1.5rem, 4vw, 3rem));
	padding-bottom: clamp(3rem, 6vw, 5rem);
}
.pk-main > * + * { margin-block-start: clamp(3rem, 6vw, 5rem); }
.pk-main > .pk-contenido + .pk-block-post-date { margin-block-start: 2rem; }

.pk-seccion > h2 { margin-bottom: 0.25rem; }
.pk-seccion__intro { color: var(--pk--preset--color--gris); margin-top: 0; }
.pk-seccion > .pk-block-buttons { margin-top: 2rem; }

/* category label (pill) */
.pk-etiqueta { font-size: var(--pk--preset--font-size--pequeno); font-weight: 600; margin: 0; }
.pk-etiqueta a { color: var(--pk--preset--color--morado); text-decoration: none; }
.pk-etiqueta a:hover { text-decoration: underline; }
.pk-escena .pk-etiqueta { margin-bottom: 0.9rem; }
.pk-escena .pk-etiqueta a {
	display: inline-block;
	background: var(--pk--preset--color--blanco);
	color: var(--pk--preset--color--tinta);
	padding: 0.3em 1em;
	border-radius: 999px;
	text-shadow: none;
	box-shadow: 0 3px 0 rgba(1, 77, 130, 0.35);
}

/* -------------------------------------------------------------- Category cards */

.pk-categorias { gap: 1.5rem; }
.pk-tarjeta-cat {
	border-radius: 26px;
	padding: 1.4rem 1.6rem 1.4rem 1.2rem;
	gap: 1.2rem;
	box-shadow: var(--pk-sombra);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	min-height: 210px;
}
.pk-tarjeta-cat:hover { transform: translateY(-4px); box-shadow: var(--pk-sombra-alta); }
.pk-tarjeta-cat__img { flex: 0 0 clamp(96px, 34%, 170px); margin: 0 !important; }
.pk-tarjeta-cat__img img { width: 100%; height: auto; display: block; }
.pk-tarjeta-cat__texto > * { margin-block: 0; }
.pk-tarjeta-cat__texto > * + * { margin-block-start: 0.5rem; }
.pk-tarjeta-cat h3 { color: inherit; font-size: var(--pk--preset--font-size--grande); font-weight: 800; }
.pk-tarjeta-cat .pk-block-buttons { margin-top: 1rem !important; }

.pk-block-button.is-style-blanco .pk-block-button__link {
	background: var(--pk--preset--color--blanco);
	color: var(--pk--preset--color--tinta);
	box-shadow: 0 3px 0 rgba(1, 77, 130, 0.25);
}
.pk-block-button.is-style-blanco .pk-block-button__link:hover { background: var(--pk--preset--color--crema); }

@media (max-width: 480px) {
	.pk-tarjeta-cat { padding: 1.1rem; gap: 0.9rem; }
	.pk-tarjeta-cat__img { flex-basis: 108px; }
}
/* very small phones (≤ 380px): picture on top, text below at full width */
@media (max-width: 380px) {
	.pk-tarjeta-cat { flex-wrap: wrap !important; }
	.pk-tarjeta-cat__img { flex-basis: 96px; }
	.pk-tarjeta-cat__texto { flex: 1 1 100%; }
}

/* -------------------------------------------------------------- Post cards */

.pk-rejilla .pk-block-post-template { gap: 1.5rem; }
.pk-tarjeta {
	background: var(--pk--preset--color--blanco);
	border-radius: var(--pk-radio);
	overflow: hidden;
	box-shadow: var(--pk-sombra);
	height: 100%;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pk-tarjeta:hover { transform: translateY(-4px); box-shadow: var(--pk-sombra-alta); }
.pk-tarjeta .pk-block-post-featured-image { margin: 0; }
.pk-tarjeta .pk-block-post-featured-image img { display: block; }
.pk-tarjeta__cuerpo { padding: 1rem 1.25rem 1.4rem; }
.pk-tarjeta__cuerpo > * { margin-block: 0; }
.pk-tarjeta .pk-block-post-title { font-size: var(--pk--preset--font-size--mediano); margin-block: 0.3rem 0.4rem; }
.pk-tarjeta .pk-block-post-title a { color: var(--pk--preset--color--tinta); text-decoration: none; }
.pk-tarjeta .pk-block-post-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pk-tarjeta .pk-block-post-excerpt__excerpt { margin: 0; }
.pk-tarjeta .pk-block-post-excerpt__more-text { display: none; }

.pk-block-query-pagination { margin-top: 2.5rem; gap: 0.5rem; font-weight: 600; }
.pk-block-query-pagination a { text-decoration: none; }
.pk-block-query-pagination-numbers .page-numbers { display: inline-block; min-width: 2.4em; padding: 0.35em 0.5em; text-align: center; border-radius: 999px; }
.pk-block-query-pagination-numbers .current { background: var(--pk--preset--color--tinta); color: var(--pk--preset--color--blanco); }

/* -------------------------------------------------------------- Single post / page content */

.pk-destacada { max-width: 440px; margin-inline: auto !important; }
.pk-destacada img { border-radius: 26px; box-shadow: var(--pk-sombra-alta); }

.pk-contenido h2 { margin-top: 2.5rem; }
.pk-contenido .pk-block-image img,
.pk-contenido .pk-block-embed iframe { border-radius: 18px; }
.pk-contenido .pk-block-embed { margin-block: 2rem; }
.pk-contenido .pk-block-columns { gap: 2rem; }
.pk-contenido .pk-block-column {
	background: var(--pk--preset--color--blanco);
	border-radius: var(--pk-radio);
	padding: 1.25rem 1.5rem;
	box-shadow: var(--pk-sombra);
}
.pk-contenido .pk-block-list li + li { margin-top: 0.35rem; }

/* -------------------------------------------------------------- Search */

.pk-buscador { max-width: 560px; margin-inline: auto !important; }
.pk-buscador .pk-block-search__inside-wrapper { gap: 0.5rem; border: 0; padding: 0; }
.pk-buscador .pk-block-search__input {
	border: 2px solid #D9D3C4; border-radius: 999px; padding: 0.8em 1.2em; font: inherit; color: inherit; background: #fff;
}
.pk-buscador .pk-block-search__button { margin: 0; }

/* -------------------------------------------------------------- Newsletter */

.pk-boletin {
	position: relative;
	border-radius: 30px;
	padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 3rem) !important;
	margin-top: clamp(4.5rem, 9vw, 6.5rem) !important;
	box-shadow: var(--pk-sombra-alta);
}
.pk-boletin h2 { color: inherit; margin-top: 0; }
.pk-boletin p { margin-block: 0.5rem 1.25rem; }
.pk-boletin__imagen img { margin-top: clamp(-6.5rem, -9vw, -3.5rem); width: 100%; max-width: 260px; height: auto; display: block; margin-inline: auto; }
.pk-boletin__form { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pk-boletin__form input {
	flex: 1 1 15rem;
	min-width: 0;   /* without it the field keeps its intrinsic ~400px width and phones zoom out the whole page */
	width: 100%;
	min-height: 52px;
	padding: 0.8em 1.3em;
	border: 0;
	border-radius: 999px;
	font: inherit;
	color: var(--pk--preset--color--tinta);
	background: #fff;
}
.pk-boletin__form input::placeholder { color: var(--pk--preset--color--gris); opacity: 1; }
.pk-boletin__form button {
	min-height: 52px;
	padding: 0.8em 1.6em;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	color: var(--pk--preset--color--tinta);
	background: var(--pk--preset--color--amarillo);
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}
.pk-boletin__form button:hover { background: #F5B000; }
.pk-boletin__form button:disabled { cursor: progress; opacity: 0.75; }
/* Bot trap: a field people never see; bots that fill it are ignored by the API */
.pk-boletin__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Turnstile check (only shown when Cloudflare asks for a click) and the result message: full row when they have
   content; empty they leave the layout but stay rendered (the message is a live region for screen readers) */
.pk-boletin__verificacion, .pk-boletin .pk-boletin__mensaje { flex: 1 0 100%; margin: 0; }
.pk-boletin__verificacion:empty, .pk-boletin__mensaje:empty { position: absolute; }
.pk-boletin__mensaje { font-weight: 700; }
@media (max-width: 781px) {
	.pk-boletin__imagen img { max-width: 170px; }
	.pk-boletin { text-align: center; }
}

/* -------------------------------------------------------------- Footer */

.pk-footer { position: relative; }
.pk-pie {
	position: relative;
	margin-top: var(--pk-ola);
	background: #713A22;
	color: var(--pk--preset--color--blanco);
	padding-block: 2.5rem 1.5rem;
	font-size: 0.95rem;
}
/* green-and-brown wave on top of the footer */
.pk-pie::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: calc(var(--pk-ola) * -1 + 1px);
	height: var(--pk-ola);
	background: url(/assets/images/ola_pie.svg) center bottom / 100% 100% no-repeat;
}
.pk-pie a { color: inherit; text-decoration: none; }
.pk-pie a:hover { text-decoration: underline; }
.pk-pie__titulo { color: inherit; font-size: var(--pk--preset--font-size--normal); font-weight: 700; margin: 0 0 0.75rem; }
.pk-pie__lista { list-style: none; padding: 0; margin: 0; }
.pk-pie__lista li + li { margin-top: 0.4rem; }
.pk-pie__conejo .pk-block-image { margin: 0 0 -1.5rem auto; }
.pk-pie__legal { border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 1.25rem; margin-top: 2rem; font-size: var(--pk--preset--font-size--pequeno); }
@media (max-width: 781px) {
	.pk-pie__conejo { display: none; }
}

/* -------------------------------------------------------------- Motion */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }

/* Listings (/blog/, categories): grid + pagination hidden until assets/js/paginacion.js has rendered the
   page for the current number of columns (class set in <head>, removed after 2.5s at most) */
.pk-paginando .pk-rejilla,.pk-paginando .pk-block-query-pagination{visibility:hidden}
