/*
 * Sagunt Turisme · hoja de estilos del tema.
 * Identidad corporativa del Ajuntament de Sagunt (Manual d'identitat corporativa):
 *   granate PANTONE 1815 C #782327 · PANTONE Black C #2F2D2B · Montserrat.
 * Titulares en Playfair Display. Neutros cálidos inspirados en la piedra del castillo.
 */

:root {
	--st-granate: #782327;
	--st-granate-oscuro: #5a1a1d;
	--st-granate-profundo: #3b1113;
	--st-negro: #2f2d2b;
	--st-piedra: #6b645d;
	--st-arena: #f2ece4;
	--st-linea: #e3dbd0;
	--st-fondo: #fbf9f6;
	--st-blanco: #fff;
	--st-altura-cabecera: 7.25rem;
	--st-seccion: clamp(3.75rem, 8vw, 7.5rem);
}

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

html {
	scroll-padding-top: var(--st-altura-cabecera);
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--st-granate);
	color: var(--st-blanco);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--st-granate);
	outline-offset: 3px;
}

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

.st-portada,
.st-pagina,
.st-ficha-pagina {
	margin-top: 0 !important;
}

.st-antetitulo {
	align-items: center;
	color: var(--st-granate);
	display: inline-flex;
	font-size: 0.76rem;
	font-weight: 700;
	gap: 0.85rem;
	letter-spacing: 0.22em;
	margin: 0 0 0.9rem;
	text-transform: uppercase;
}

.st-antetitulo::before {
	background: currentColor;
	content: "";
	height: 1px;
	width: 2.25rem;
}

.st-texto-suave {
	color: var(--st-piedra);
}

.st-enlace-flecha {
	margin: 0;
}

.st-enlace-flecha a {
	align-items: center;
	color: var(--st-granate);
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 600;
	gap: 0.5rem;
	text-decoration: none;
}

.st-enlace-flecha a::after {
	content: "→";
	transition: transform 0.3s ease;
}

.st-enlace-flecha a:hover {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.st-enlace-flecha a:hover::after {
	transform: translateX(4px);
}

/* ------------------------------------------------------------------ */
/* Aviso de demostración                                              */
/* ------------------------------------------------------------------ */

.st-aviso-demo {
	background: var(--st-arena);
	color: var(--st-piedra);
	font-size: 0.74rem;
	letter-spacing: 0.02em;
	padding-block: 0.45rem;
}

.st-aviso-demo p {
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Cabecera                                                           */
/* ------------------------------------------------------------------ */

.st-cabecera {
	background: var(--st-blanco);
	position: sticky;
	/* La franja institucional sube con la página; queda fija la barra del logotipo. */
	top: calc(-1 * var(--st-alto-institucional, 0px));
	transition: box-shadow 0.3s ease;
	z-index: 100;
}

.admin-bar .st-cabecera {
	top: calc(var(--wp-admin--admin-bar--height, 32px) - var(--st-alto-institucional, 0px));
}

.st-cabecera.is-desplazada {
	box-shadow: 0 10px 30px -18px rgba(47, 45, 43, 0.45);
}

.st-cabecera__institucional {
	background: var(--st-granate);
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.76rem;
	padding-block: 0.5rem;
}

.st-cabecera__institucional > .alignwide {
	align-items: center;
	gap: 0.5rem 2rem;
}

.st-cabecera__entidad {
	font-weight: 600;
	letter-spacing: 0.06em;
	margin: 0;
}

.st-cabecera__enlaces ul {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.st-cabecera__enlaces a {
	color: rgba(255, 255, 255, 0.86);
	font-weight: 500;
	text-decoration: none;
}

.st-cabecera__enlaces a:hover {
	color: var(--st-blanco);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.st-cabecera__enlaces .st-cabecera__privada {
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	color: var(--st-blanco);
	padding: 0.28rem 0.85rem;
}

.st-cabecera__enlaces .st-cabecera__privada:hover {
	background: var(--st-blanco);
	color: var(--st-granate);
	text-decoration: none;
}

.st-cabecera__principal {
	border-bottom: 1px solid var(--st-linea);
	padding-block: 0.95rem;
}

.st-cabecera__principal > .alignwide {
	align-items: center;
	gap: 2rem;
}

/* Logotipo tipográfico de la demo (sin el escudo oficial: PCAP 22.1.3) */
.st-marca {
	align-items: center;
	color: var(--st-negro);
	display: inline-flex;
	flex-shrink: 0;
	gap: 0.8rem;
	text-decoration: none;
}

.st-marca:hover {
	color: var(--st-negro);
}

.st-marca__simbolo {
	align-items: center;
	background: var(--st-granate);
	border-radius: 11px;
	color: var(--st-blanco);
	display: inline-flex;
	height: 2.75rem;
	justify-content: center;
	width: 2.75rem;
}

.st-marca__simbolo svg {
	height: 1.65rem;
	width: 1.65rem;
}

.st-marca__texto {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.st-marca__nombre {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.st-marca__sub {
	color: var(--st-piedra);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	margin-top: 0.4rem;
	text-transform: uppercase;
}

.st-marca--clara,
.st-marca--clara:hover {
	color: var(--st-blanco);
}

.st-marca--clara .st-marca__sub {
	color: rgba(255, 255, 255, 0.6);
}

/* Menú principal */
.st-menu {
	gap: 0.25rem 1.75rem;
}

.st-menu .wp-block-navigation-item__content {
	color: var(--st-negro);
	font-weight: 600;
	padding: 0.45rem 0;
	position: relative;
	text-decoration: none;
}

.st-menu .wp-block-navigation-item__content::after {
	background: var(--st-granate);
	bottom: -2px;
	content: "";
	height: 2px;
	left: 0;
	position: absolute;
	right: 0;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.st-menu .wp-block-navigation-item__content:hover,
.st-menu .current-menu-item > .wp-block-navigation-item__content {
	color: var(--st-granate);
}

.st-menu .wp-block-navigation-item__content:hover::after,
.st-menu .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* Menú en móvil */
.st-menu .wp-block-navigation__responsive-container-open {
	background: var(--st-arena);
	border-radius: 999px;
	color: var(--st-negro);
	padding: 0.6rem;
}

.st-menu .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--st-fondo);
	padding: 2rem clamp(1.25rem, 6vw, 3rem);
}

.st-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: 1.75rem;
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Cabecera con imagen (portada y fichas)                             */
/* ------------------------------------------------------------------ */

.st-hero {
	isolation: isolate;
	overflow: hidden;
}

.st-hero > .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(28, 12, 12, 0.32) 0%, rgba(28, 12, 12, 0.08) 32%, rgba(28, 12, 12, 0.55) 70%, rgba(28, 12, 12, 0.86) 100%) !important;
	opacity: 1 !important;
	z-index: 1;
}

.st-hero .wp-block-cover__image-background {
	animation: st-acercar 22s ease-out both;
}

@keyframes st-acercar {
	from {
		transform: scale(1.08);
	}

	to {
		transform: scale(1);
	}
}

.st-hero > .wp-block-cover__inner-container {
	color: var(--st-blanco);
	max-width: none !important;
	/* Holgura para que los botones no queden bajo los widgets flotantes (idioma y asistente). */
	padding-bottom: clamp(6.5rem, 10vw, 8.5rem);
	/* El contenido queda alineado a la izquierda del ancho «wide» de la web. */
	padding-inline: max(var(--wp--style--root--padding-left, 1.5rem), calc((100% - var(--wp--style--global--wide-size, 1280px)) / 2));
	padding-top: 6rem;
	position: relative;
	/* WordPress pone width:auto al contenido colocado abajo a la izquierda; aquí ocupa todo el ancho. */
	width: 100% !important;
	z-index: 2;
}

.st-hero__contenido {
	margin-inline: 0 !important;
	max-width: none !important;
}

.st-hero__contenido > * {
	max-width: 52rem;
}

.st-hero .st-antetitulo,
.st-hero .st-etiqueta {
	color: rgba(255, 255, 255, 0.88);
}

.st-hero .st-etiqueta {
	align-items: center;
	display: inline-flex;
	gap: 0.85rem;
	margin-bottom: 0.9rem;
}

.st-hero .st-etiqueta::before {
	background: currentColor;
	content: "";
	height: 1px;
	width: 2.25rem;
}

.st-hero__titulo,
.st-hero .wp-block-post-title {
	color: var(--st-blanco);
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5.6rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.04;
	margin: 0;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
	text-wrap: balance;
}

.st-hero--ficha .wp-block-post-title {
	font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.4rem);
}

.st-hero__entradilla,
.st-hero .wp-block-post-excerpt__excerpt {
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
	line-height: 1.6;
	margin: 1.4rem 0 0;
	max-width: 40rem;
	text-wrap: pretty;
}

.st-hero .wp-block-post-excerpt {
	margin: 0;
}

.st-hero__botones {
	gap: 0.9rem;
	margin-top: 2.25rem;
}

.st-hero .st-migas {
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 1.6rem;
}

.st-hero .st-credito {
	/* En el flujo, bajo los botones y alineado a la derecha: queda por encima de los widgets flotantes. */
	color: rgba(255, 255, 255, 0.72);
	margin: 2rem 0 0 !important;
	max-width: none !important;
	text-align: right;
}

.st-hero .st-credito a {
	color: inherit !important;
}

/* Sin imagen destacada: fondo granate */
.st-hero:not(:has(.wp-block-cover__image-background)) {
	background:
		radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
		linear-gradient(135deg, var(--st-granate) 0%, var(--st-granate-profundo) 100%);
	min-height: 42vh !important;
}

/* Botones sobre fondo oscuro */
.st-boton-claro .wp-block-button__link {
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.8);
	color: var(--st-blanco);
}

.st-boton-claro .wp-block-button__link:hover,
.st-boton-claro .wp-block-button__link:focus-visible {
	background: var(--st-blanco);
	border-color: var(--st-blanco);
	color: var(--st-granate);
}

.st-boton-blanco .wp-block-button__link {
	background: var(--st-blanco);
	color: var(--st-granate);
}

.st-boton-blanco .wp-block-button__link:hover,
.st-boton-blanco .wp-block-button__link:focus-visible {
	background: var(--st-arena);
	color: var(--st-granate-oscuro);
}

.wp-block-button__link {
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

/* ------------------------------------------------------------------ */
/* Portada                                                            */
/* ------------------------------------------------------------------ */

.st-explora {
	background: var(--st-blanco);
	border-radius: 20px;
	box-shadow: 0 2px 4px rgba(47, 45, 43, 0.05), 0 28px 60px -28px rgba(47, 45, 43, 0.4);
	gap: 1rem 2rem;
	margin-top: calc(-1 * clamp(2.25rem, 4vw, 3.25rem)) !important;
	padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2.25rem);
	position: relative;
	z-index: 3;
}

.st-explora__titulo {
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: 1.35rem;
	font-weight: 600;
	margin: 0;
}

.st-seccion {
	padding-block: var(--st-seccion);
}

.st-seccion + .st-seccion:not(.st-seccion--arena) {
	padding-top: 0;
}

.st-seccion--arena {
	background: var(--st-arena);
}

.st-seccion--arena + .st-seccion {
	padding-top: var(--st-seccion);
}

.st-seccion__cabecera {
	gap: 1rem 2rem;
	margin-bottom: 0.5rem;
}

.st-seccion__titulos h2,
.st-agenda-portada h2,
.st-banda h2 {
	margin: 0;
	max-width: 20ch;
	text-wrap: balance;
}

.st-seccion .st-rejilla {
	margin-top: 2rem;
}

.st-agenda-portada {
	gap: clamp(2rem, 5vw, 5rem);
}

.st-agenda-portada .st-texto-suave {
	margin: 1.2rem 0 1.6rem;
	max-width: 26rem;
}

.st-agenda-portada .st-agenda-lista {
	margin: 0;
}

.st-seccion--mapa .st-mapa {
	box-shadow: 0 2px 4px rgba(47, 45, 43, 0.05), 0 24px 48px -24px rgba(47, 45, 43, 0.35);
	margin-top: 2rem;
}

/* Franja «Planifica tu visita» */
.st-banda {
	background:
		radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.09), transparent 40%),
		linear-gradient(120deg, var(--st-granate) 0%, var(--st-granate-oscuro) 100%);
	color: rgba(255, 255, 255, 0.9);
	padding-block: clamp(4rem, 8vw, 6.5rem);
}

.st-banda h2 {
	color: var(--st-blanco);
}

.st-banda .st-antetitulo {
	color: rgba(255, 255, 255, 0.8);
}

.st-banda p {
	max-width: 36rem;
}

.st-banda .wp-block-buttons {
	gap: 0.9rem;
	margin-top: 1.75rem;
}

.st-banda__tarjeta {
	backdrop-filter: blur(4px);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 20px;
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

.st-banda .st-contacto,
.st-banda .st-contacto a {
	color: var(--st-blanco);
}

.st-banda .st-contacto__nombre {
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: 1.4rem;
	font-weight: 600;
}

/* Noticias (portada, archivo y listados de bloques) */
.st-noticias .wp-block-post,
.st-archivo__lista .wp-block-post {
	background: var(--st-blanco);
	border: 1px solid var(--st-linea);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.st-noticias .wp-block-post:hover,
.st-archivo__lista .wp-block-post:hover {
	box-shadow: 0 2px 4px rgba(47, 45, 43, 0.06), 0 24px 48px -16px rgba(47, 45, 43, 0.28);
	transform: translateY(-4px);
}

.st-noticias .wp-block-post-featured-image,
.st-archivo__lista .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
}

.st-noticias .wp-block-post-featured-image img,
.st-archivo__lista .wp-block-post-featured-image img {
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.st-noticias .wp-block-post:hover .wp-block-post-featured-image img,
.st-archivo__lista .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.045);
}

.st-noticias .wp-block-post > :not(.wp-block-post-featured-image),
.st-archivo__lista .wp-block-post > :not(.wp-block-post-featured-image) {
	margin-inline: 1.4rem;
}

.st-noticias__fecha {
	color: var(--st-granate);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	margin-top: 1.25rem !important;
	text-transform: uppercase;
}

.st-noticias__titulo,
.st-archivo__titulo {
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: 1.3rem !important;
	font-weight: 600;
	line-height: 1.25;
	margin-block: 0.5rem 1.5rem !important;
}

.st-archivo__titulo {
	margin-top: 1.25rem !important;
}

.st-noticias__titulo a,
.st-archivo__titulo a {
	color: var(--st-negro);
	text-decoration: none;
}

.st-noticias__titulo a:hover,
.st-archivo__titulo a:hover {
	color: var(--st-granate);
}

.st-archivo__lista .wp-block-post-excerpt {
	color: var(--st-piedra);
	font-size: 0.93rem;
	margin-bottom: 1.5rem !important;
}

.st-archivo__lista .wp-block-post-excerpt__more-text {
	display: none;
}

.st-archivo__lista {
	padding-block: clamp(2.5rem, 5vw, 4rem) var(--st-seccion);
}

/* ------------------------------------------------------------------ */
/* Páginas interiores                                                 */
/* ------------------------------------------------------------------ */

.st-cabecera-pagina {
	background:
		radial-gradient(circle at 100% 0%, rgba(120, 35, 39, 0.07), transparent 45%),
		var(--st-arena);
	padding-block: clamp(3rem, 6vw, 5rem) clamp(2.25rem, 4vw, 3.25rem);
}

.st-cabecera-pagina .st-migas {
	color: var(--st-piedra);
	margin-bottom: 1.4rem;
}

.st-cabecera-pagina__titulo {
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: clamp(2.4rem, 1.6rem + 3vw, 4.25rem) !important;
	letter-spacing: -0.02em;
	line-height: 1.06;
	margin: 0;
	max-width: 20ch;
	text-wrap: balance;
}

.st-cabecera-pagina__entradilla {
	color: var(--st-piedra);
	font-size: 1.15rem;
	margin-top: 1.25rem;
	max-width: 42rem;
}

.st-contenido-pagina {
	padding-block: clamp(2.5rem, 5vw, 4rem) var(--st-seccion);
}

.st-contenido-pagina .wp-block-post-content > :is(p, ul, ol, h2, h3, h4, blockquote, .wp-block-quote, .wp-block-list, .wp-block-table, .wp-block-details) {
	max-width: 48rem;
}

.st-contenido-pagina .wp-block-post-content > h2 {
	margin-top: clamp(3rem, 6vw, 4.5rem);
}

.st-contenido-pagina .wp-block-post-content > h2:first-child {
	margin-top: 0;
}

.st-contenido-pagina .wp-block-post-content > p:first-child {
	color: var(--st-negro);
	font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
	line-height: 1.6;
}

/* Fichas */
.st-ficha-pagina__columnas {
	gap: clamp(2rem, 5vw, 5rem);
	margin-top: clamp(2.5rem, 5vw, 4.5rem) !important;
}

.st-ficha-pagina__texto .wp-block-post-content > p {
	font-size: 1.1rem;
	line-height: 1.8;
}

.st-ficha-pagina__texto .wp-block-post-content > p:first-child::first-letter {
	color: var(--st-granate);
	float: left;
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: 4.2rem;
	font-weight: 600;
	line-height: 0.85;
	margin: 0.35rem 0.6rem 0 0;
}

.st-ficha-pagina__lateral {
	align-self: flex-start;
	position: sticky;
	top: calc(var(--st-altura-cabecera) + 1.5rem);
}

.st-credito-foto {
	border-top: 1px solid var(--st-linea);
	color: var(--st-piedra);
	margin-top: 2.5rem !important;
	padding-top: 1rem;
}

.st-credito-foto a {
	color: inherit;
}

.st-relacionados {
	border-top: 1px solid var(--st-linea);
	margin-top: var(--st-seccion) !important;
	padding-block: clamp(3rem, 6vw, 5rem) var(--st-seccion);
}

.st-relacionados h2 {
	margin: 0;
}

/* Noticia */
.st-noticia .st-cabecera-pagina .wp-block-group {
	max-width: 48rem;
}

.st-noticia .st-cabecera-pagina__titulo {
	font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem) !important;
	max-width: none;
}

.st-noticia .st-etiqueta {
	color: var(--st-granate);
	margin-bottom: 1rem;
}

.st-noticia__imagen {
	margin-top: clamp(2rem, 4vw, 3rem) !important;
}

.st-noticia__imagen img {
	border-radius: 16px;
}

.st-noticia__texto {
	font-size: 1.1rem;
	line-height: 1.8;
	padding-block: clamp(2rem, 4vw, 3rem) var(--st-seccion);
}

/* ------------------------------------------------------------------ */
/* Pie                                                                */
/* ------------------------------------------------------------------ */

.st-pie {
	background: var(--st-negro);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.92rem;
	padding-top: clamp(4rem, 7vw, 6rem);
}

.st-pie a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
}

.st-pie a:hover {
	color: var(--st-blanco);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.st-pie__columnas {
	gap: clamp(2rem, 4vw, 4rem);
}

.st-pie__lema {
	line-height: 1.65;
	margin-top: 1.5rem;
	max-width: 22rem;
}

.st-pie__eslogan {
	color: var(--st-blanco);
	font-family: var(--wp--preset--font-family--playfair-display);
	font-size: 1.25rem;
	font-style: italic;
}

.st-pie__titulo {
	color: rgba(255, 255, 255, 0.55);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 0.74rem !important;
	font-weight: 700;
	letter-spacing: 0.2em;
	margin: 0.5rem 0 1.25rem;
	text-transform: uppercase;
}

.st-pie__lista,
.st-pie__legal-enlaces {
	display: grid;
	gap: 0.7rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.st-pie .st-contacto__nombre {
	color: var(--st-blanco);
}

.st-pie__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.78rem;
	gap: 1rem 2rem;
	margin-top: clamp(3rem, 5vw, 4rem) !important;
	padding-block: 1.75rem 2.25rem;
}

.st-pie__legal p {
	margin: 0;
	max-width: 46rem;
}

.st-pie__legal-enlaces {
	display: flex;
	gap: 1.5rem;
}

/* ------------------------------------------------------------------ */
/* Módulos: idioma, asistente y zona privada con la marca             */
/* ------------------------------------------------------------------ */

body .st-idioma {
	--st-idioma-acento: var(--st-granate);
	--st-idioma-oscuro: var(--st-granate-oscuro);
	--st-idioma-texto: var(--st-negro);
	--st-idioma-suave: var(--st-arena);
	--st-idioma-gris: var(--st-piedra);
}

body .st-chatbot {
	--stc-acento: var(--st-granate);
	--stc-acento-oscuro: var(--st-granate-oscuro);
	--stc-texto: var(--st-negro);
	--stc-suave: var(--st-piedra);
	--stc-fondo-log: var(--st-fondo);
	--stc-borde: var(--st-linea);
}

body .st-zp {
	--st-zp-primario: var(--st-granate);
	--st-zp-primario-hover: var(--st-granate-oscuro);
	--st-zp-suave: var(--st-arena);
	--st-zp-linea: var(--st-linea);
	font-family: inherit;
}

body .st-zp :is(input, select, textarea, button) {
	font-family: inherit;
}

/* ------------------------------------------------------------------ */
/* Adaptación a pantallas pequeñas                                    */
/* ------------------------------------------------------------------ */

@media (max-width: 1080px) {
	.st-cabecera__enlaces li:not(:last-child) {
		display: none;
	}
}

@media (max-width: 781px) {
	:root {
		--st-altura-cabecera: 6.5rem;
	}

	.st-aviso-demo {
		font-size: 0.68rem;
		padding-block: 0.35rem;
	}

	.st-cabecera__institucional > .alignwide {
		flex-wrap: nowrap !important;
	}

	.st-cabecera__entidad {
		font-size: 0.7rem;
	}

	.st-cabecera__departamento {
		display: none;
	}

	.st-cabecera__enlaces .st-cabecera__privada {
		font-size: 0.7rem;
		padding: 0.2rem 0.7rem;
		white-space: nowrap;
	}

	.st-cabecera__principal {
		padding-block: 0.7rem;
	}

	/* Selector de idioma redondo, como el del asistente (el texto sigue para lectores de pantalla) */
	body .st-idioma__boton .st-idioma__etiqueta,
	body .st-idioma__boton .st-idioma__actual {
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		height: 1px;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}

	body .st-idioma__boton {
		border-radius: 50%;
		gap: 0;
		height: 3.5rem;
		justify-content: center;
		min-height: 0;
		min-width: 0;
		padding: 0;
		width: 3.5rem;
	}

	/* Portada más compacta: los botones quedan por encima de los widgets flotantes */
	.st-hero > .wp-block-cover__inner-container {
		padding-bottom: 6rem;
		padding-top: 3rem;
	}

	.st-hero__titulo,
	.st-hero .wp-block-post-title {
		font-size: clamp(2.2rem, 1.6rem + 3vw, 2.8rem);
	}

	.st-hero__entradilla,
	.st-hero .wp-block-post-excerpt__excerpt {
		font-size: 1rem;
		margin-top: 1rem;
	}

	.st-hero__botones {
		flex-wrap: nowrap !important;
		gap: 0.6rem;
		margin-top: 1.5rem;
	}

	.st-hero__botones .wp-block-button__link {
		font-size: 0.85rem;
		padding: 0.8rem 1.1rem;
		white-space: nowrap;
	}

	.st-marca__nombre {
		font-size: 1.25rem;
	}

	.st-marca__simbolo {
		height: 2.4rem;
		width: 2.4rem;
	}

	.st-hero--portada {
		min-height: 80vh !important;
	}

	.st-hero .st-credito {
		font-size: 0.65rem;
		margin-top: 1.25rem !important;
		text-align: left;
	}

	.st-explora {
		border-radius: 16px;
	}

	.st-ficha-pagina__lateral {
		position: static;
	}

	.st-ficha-pagina__texto .wp-block-post-content > p:first-child::first-letter {
		font-size: 3.4rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.st-hero .wp-block-cover__image-background {
		animation: none;
	}

	.st-menu .wp-block-navigation-item__content::after,
	.st-enlace-flecha a::after,
	.wp-block-button__link,
	.st-noticias .wp-block-post,
	.st-archivo__lista .wp-block-post {
		transition: none;
	}

	.wp-block-button__link:hover,
	.st-noticias .wp-block-post:hover,
	.st-archivo__lista .wp-block-post:hover {
		transform: none;
	}
}
