/*
Theme Name: Grupo RPM (bloqs)
Template: twentytwentyfive
Description: Tema hijo de Twenty Twenty-Five para Grupo RPM. Scaffolded by Studio Code.
Version: 1.0.0
*/

/*
 * Grupo RPM Twenty Twenty-Five (bloqs) — componente styles
 * Replica la estética del tema heredado (Sage + Tailwind) sobre bloques Gutenberg.
 */

:root {
	--rpm-ink: #000000;
	--rpm-muted: #333333;
	--rpm-accent: #7f0022;
	--rpm-accent-dark: color-mix(in srgb, #7f0022 78%, #000);
	--rpm-paper: #faf8f5;
	--rpm-surface: #f4f2ef;
	--rpm-line: #ddd8d2;
	--rpm-placeholder: #e8e4e0;
	--rpm-gutter: 1.5rem;
	--rpm-section: 5rem;
	--rpm-card-radius: 0.75rem;
	--rpm-content: 72rem;
	--rpm-prose: 57.6rem;
}

html {
	scroll-behavior: smooth;
}

/* ====== Cabecera ====== */
/* Sticky belongs to the template part, not its short inner wrapper.
   No backdrop-filter here: it traps the fixed navigation in the header. */
.wp-site-blocks > .wp-block-template-part:has(.rpm-site-header) {
	position: sticky;
	top: 0;
	z-index: 1000;
}
.rpm-site-header {
	background: var(--rpm-paper);
	border-bottom: 1px solid var(--rpm-line);
}
body.admin-bar .wp-site-blocks > .wp-block-template-part:has(.rpm-site-header) {
	top: 32px;
}
@media (min-width: 601px) and (max-width: 782px) {
	body.admin-bar .wp-site-blocks > .wp-block-template-part:has(.rpm-site-header) { top: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar .wp-site-blocks > .wp-block-template-part:has(.rpm-site-header) { top: 0; }
}
.rpm-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1.25rem;
}
.rpm-site-header .wp-block-site-title {
	font-weight: 600;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--rpm-ink) !important;
	text-decoration: none;
}
.rpm-site-header .rpm-site-logo {
	margin: 0;
	line-height: 0;
	display: flex;
	align-items: center;
}
.rpm-site-header .rpm-site-logo img {
	display: block;
	height: 2.2rem;
	width: auto;
	max-width: 40vw;
	object-fit: contain;
}
.rpm-site-header .rpm-site-logo .wp-block-image {
	margin: 0;
}
/* Logotipo según modo: negro en claro, blanco en oscuro */
.rpm-site-header .rpm-site-logo--dark {
	display: none;
}
html.rpm-scheme-dark .rpm-site-header .rpm-site-logo--light {
	display: none;
}
html.rpm-scheme-dark .rpm-site-header .rpm-site-logo--dark {
	display: block;
}
/* Logotipo del pie: tamaño + alternancia por modo */
.rpm-site-footer .rpm-site-logo--light,
.rpm-site-footer .rpm-site-logo--dark {
	margin: 0;
	line-height: 0;
}
.rpm-site-footer .rpm-site-logo--light img,
.rpm-site-footer .rpm-site-logo--dark img {
	display: block;
	height: 2.6rem;
	width: auto;
	max-width: 180px;
	object-fit: contain;
}
.rpm-site-footer .rpm-site-logo--dark {
	display: none;
}
html.rpm-scheme-dark .rpm-site-footer .rpm-site-logo--light {
	display: none;
}
html.rpm-scheme-dark .rpm-site-footer .rpm-site-logo--dark {
	display: block;
}
.rpm-nav a.wp-block-navigation-item__content,
.rpm-nav .wp-block-navigation-item__content {
	color: var(--rpm-menu-link, var(--rpm-muted)) !important;
	font-family: var(--rpm-font-menu, inherit);
	font-weight: 500;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	text-decoration: none;
	text-underline-offset: 0.4em;
	text-decoration-thickness: 4px;
	transition: color .2s ease, text-decoration-color .2s ease;
}
.rpm-nav .wp-block-navigation-item__content:hover {
	color: var(--rpm-menu-link-hover, var(--rpm-ink)) !important;
	text-decoration: underline;
	text-decoration-color: var(--rpm-menu-link-hover, var(--rpm-ink));
	text-decoration-thickness: 4px;
}
.rpm-nav .wp-block-navigation-item__content:focus-visible {
	color: var(--rpm-menu-link-hover, var(--rpm-ink)) !important;
	text-decoration: none;
	outline: none;
	box-shadow: none;
}
.rpm-nav .wp-block-navigation-item__content:focus,
.rpm-nav .wp-block-navigation-item__content:active {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}
/* Ítem activo: color de botón y subrayado persistente */
.rpm-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.rpm-nav .wp-block-navigation-item.current_page_item > .wp-block-navigation-item__content {
	color: var(--rpm-accent) !important;
	text-decoration: underline;
	text-decoration-color: var(--rpm-accent);
	text-decoration-thickness: 4px;
}
/* Navigation and appearance form one compact, non-wrapping toolbar. */
.rpm-site-header .rpm-header-tools {
	gap: 1.5rem;
	flex-shrink: 0;
	margin-left: auto;
}
.rpm-site-header .rpm-site-logo { min-width: 0; }
.rpm-scheme,
.rpm-scheme > .wp-block-buttons { gap: 0; }
.rpm-scheme {
	position: relative;
}
.rpm-scheme__button,
.rpm-site-header .wp-block-navigation__responsive-container-open,
.rpm-site-header .wp-block-navigation__responsive-container-close {
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--rpm-paper);
	color: var(--rpm-ink);
	border: 1px solid var(--rpm-line);
	border-radius: 0.625rem;
	cursor: pointer;
}
.rpm-scheme__button { display: inline-flex; }
.rpm-site-header .wp-block-navigation__responsive-container-close { display: flex; }
.rpm-scheme__button:hover,
.rpm-scheme.is-open .rpm-scheme__button,
.rpm-site-header .wp-block-navigation__responsive-container-open:hover,
.rpm-site-header .wp-block-navigation__responsive-container-close:hover {
	border-color: var(--rpm-accent);
	color: var(--rpm-accent);
}
.rpm-scheme__button:focus-visible,
.rpm-site-header .wp-block-navigation__responsive-container-open:focus-visible,
.rpm-site-header .wp-block-navigation__responsive-container-close:focus-visible {
	outline: 2px solid var(--rpm-accent);
	outline-offset: 3px;
}
.rpm-site-header .wp-block-navigation__responsive-container-open svg,
.rpm-site-header .wp-block-navigation__responsive-container-close svg {
	width: 20px;
	height: 20px;
}
/* Preserve the core dialog, keyboard controls and focus management. */
.rpm-site-header .rpm-header-tools .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	position: fixed;
	inset: 0;
	z-index: 100000;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	margin: 0;
	padding: max(1rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
	overflow-y: auto;
	background: var(--rpm-paper);
	color: var(--rpm-ink);
}
.rpm-site-header .is-menu-open .wp-block-navigation__responsive-close {
	width: 100%;
	max-width: none;
	margin: 0;
}
.rpm-site-header .is-menu-open .wp-block-navigation__responsive-dialog { margin-top: 0; }
/* Keep the native close control visible independently of menu scrolling. */
.rpm-site-header .is-menu-open .wp-block-navigation__responsive-container-close {
	position: fixed;
	top: max(1rem, env(safe-area-inset-top));
	right: max(1.5rem, env(safe-area-inset-right));
	left: auto;
	bottom: auto;
	z-index: 5;
	display: flex;
	visibility: visible;
	opacity: 1;
	background: var(--rpm-surface);
	color: var(--rpm-ink);
}
.rpm-site-header .is-menu-open .wp-block-navigation__responsive-container-close svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: currentColor;
}
body.admin-bar .rpm-site-header .is-menu-open .wp-block-navigation__responsive-container-close {
	top: calc(var(--wp-admin--admin-bar--height, 32px) + max(1rem, env(safe-area-inset-top)));
}
.rpm-site-header .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 5rem;
	align-items: flex-start;
}
.rpm-site-header .is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: 1.5rem;
}
.rpm-site-header .is-menu-open .wp-block-navigation-item__content {
	font-size: 1.25rem;
	line-height: 1.5;
}
@media (max-width: 767px) {
	.rpm-site-header__inner { gap: 1rem; padding-block: 1rem; }
	.rpm-site-header .rpm-header-tools { gap: 0.5rem; flex-direction: row-reverse; }
	.rpm-site-header .wp-block-navigation__responsive-container-open { display: flex; }
	.rpm-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
}
@media (min-width: 768px) {
	.rpm-site-header .wp-block-navigation__responsive-container-open { display: none; }
}
.rpm-scheme-icon {
	display: inline-flex;
	width: 1rem;
	height: 1rem;
}
.rpm-scheme-icon svg {
	width: 100%;
	height: 100%;
}
.rpm-scheme .rpm-scheme__menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	z-index: 60;
	min-width: 10.5rem;
	padding: 0.5rem;
	background: var(--rpm-surface);
	border: 1px solid var(--rpm-line);
	border-radius: 0.75rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	display: none;
}
.rpm-scheme.is-open .rpm-scheme__menu {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.25rem;
}
.rpm-scheme__opt {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	background: transparent;
	color: var(--rpm-ink) !important;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1;
	border-radius: 0.5rem;
	border: none;
	cursor: pointer;
	text-align: left;
}
.rpm-scheme__opt:hover,
.rpm-scheme__opt.is-active {
	background: var(--rpm-base);
	color: var(--rpm-accent) !important;
}
.rpm-scheme__opt .rpm-scheme__opt-icon {
	width: 1rem;
	height: 1rem;
	flex: 0 0 auto;
}

/* ====== Footer ====== */
.rpm-site-footer {
	background: var(--rpm-surface);
	border-top: 1px solid var(--rpm-line);
	font-size: 1rem;
	color: var(--rpm-muted);
}
.rpm-site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 2.5rem;
}
.rpm-site-footer .wp-block-site-title {
	font-weight: 600;
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--rpm-muted) !important;
	text-decoration: none;
	font-size: 0.8rem;
}
.rpm-site-footer .rpm-site-footer__logo {
	margin: 0;
	line-height: 0;
}
.rpm-site-footer .rpm-site-footer__logo img {
	display: block;
	height: 3.25rem;
	width: auto;
	object-fit: contain;
	opacity: 0.85;
}
.rpm-site-footer__legal-menu .wp-block-navigation-item__content {
	color: var(--rpm-muted);
	font-size: 0.95rem;
	text-decoration: none;
}
.rpm-site-footer__legal-menu .wp-block-navigation-item__content:hover {
	color: var(--rpm-accent);
}

/* ====== Secciones ====== */
.rpm-section {
	padding-inline: var(--rpm-gutter);
	padding-block: var(--rpm-section);
}
.rpm-prose,
.rpm-commitment {
	max-width: var(--rpm-prose);
	margin-inline: auto;
	text-align: center;
}
.rpm-prose p,
.rpm-commitment p {
	margin-bottom: 1rem;
	color: var(--rpm-muted);
}
.rpm-cta {
	text-align: center;
}
.rpm-pilares .wp-block-column {
	text-align: left;
}

/* ====== Banda fotográfica ====== */
.rpm-band {
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--rpm-placeholder);
	position: relative;
	overflow: hidden;
}
.rpm-band.has-background .wp-block-cover__inner-container {
	/* cuando lleve imagen */
}

/* ====== Hero carrusel (bloque dinámico) ====== */
/* Quita el hueco entre la cabecera (menú) y el primer contenido */
.rpm-page-content {
	margin-top: 0 !important;
}
.rpm-page-content > .alignfull,
.rpm-page-content .entry-content > .alignfull,
.rpm-page-content > .wp-block-gruporpm-hero-carousel.alignfull,
.rpm-page-content .entry-content > .wp-block-gruporpm-hero-carousel.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Páginas legales: título visible bajo la navegación y texto legible. */
.rpm-legal {
	padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem);
}
.rpm-legal .rpm-page-title {
	max-width: 42rem;
	margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
	font-family: var(--wp--preset--font-family--display, serif);
	font-size: clamp(2.125rem, 5vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-align: left;
}
.rpm-legal .wp-block-post-content {
	max-width: 42rem;
	margin-inline: auto;
	line-height: 1.75;
}
.rpm-legal .wp-block-post-content h2,
.rpm-legal .wp-block-post-content h3 {
	margin-top: 1.6em;
}
.rpm-hero {
	position: relative;
	min-height: 68vh;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
	padding-block: 8rem 4rem;
}
.rpm-hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.8s ease;
}
.rpm-hero__slide.is-active {
	opacity: 1;
}
.rpm-hero__slide.is-active .rpm-hero__media {
	animation: rpm-ken 12s ease-out forwards;
}
.rpm-hero__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: #6b5a4e;
}
.rpm-hero__media--ph1 { background-image: linear-gradient(135deg, #3d3530 0%, #6b5a4e 45%, #8a6f5c 100%); }
.rpm-hero__media--ph2 { background-image: linear-gradient(145deg, #2a3d36 0%, #4a6358 50%, #7a9488 100%); }
.rpm-hero__media--ph3 { background-image: linear-gradient(160deg, #4a3228 0%, #8b4e3d 40%, #c45a45 100%); }
.rpm-hero__slide:after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.25) 55%, rgba(0,0,0,.1));
	opacity: var(--rpm-hero-overlay, 1);
}
.rpm-hero__content {
	position: relative;
	z-index: 2;
	max-width: 44rem;
	text-align: center;
	color: #fff;
	padding-inline: 1rem;
}
.rpm-hero__title {
	font-family: var(--wp--preset--font-family--display, "Playfair Display", Georgia, serif);
	font-weight: 600;
	line-height: 1.08;
	margin: 0 0 1rem;
	color: #fff;
}
.rpm-hero__text {
	font-size: 1.125rem;
	line-height: 1.6;
	margin: 0 0 1.5rem;
	opacity: 0.92;
}
.rpm-hero__dots {
	position: absolute;
	z-index: 3;
	bottom: 1.25rem;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 0.6rem;
}
.rpm-hero__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255,255,255,.45);
	border: 0;
	cursor: pointer;
	padding: 0;
}
.rpm-hero__dot.is-active {
	background: #fff;
}

/* ====== Botones píldora ====== */
/* Estilos base de elemento: hero del carrusel usa <a class="rpm-btn"> */
.rpm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	padding: 1rem 2.5rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
}
.rpm-btn--solid {
	background: var(--rpm-accent);
	color: #fff;
}
.rpm-btn--solid:hover {
	background: var(--rpm-accent-dark);
	color: #fff;
}
.rpm-btn--outline {
	background: transparent;
	color: var(--rpm-accent);
	border: 1px solid var(--rpm-accent);
}
.rpm-btn--outline:hover {
	background: var(--rpm-accent);
	color: #fff;
}

/* En los bloques Button, el contenedor .wp-block-button.rpm-btn queda neutro
   y el botón visual es el <a> interior: evita la doble píldora. */
.wp-block-button.rpm-btn {
	background: transparent;
	border: 0;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
}
.wp-block-button.rpm-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	padding: 1rem 2.5rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	color: inherit;
	border: 1px solid transparent;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.wp-block-button.rpm-btn--solid .wp-block-button__link {
	background: var(--rpm-accent) !important;
	color: #fff !important;
}
.wp-block-button.rpm-btn--solid .wp-block-button__link:hover {
	background: var(--rpm-accent-dark) !important;
	color: #fff !important;
}
/* El contorno legado NO debe anular un relleno nativo elegido en el editor:
   si el botón es is-style-fill o el enlace lleva fondo, mandan esos. */
.wp-block-button.rpm-btn--outline:not(.is-style-fill) .wp-block-button__link:not(.has-background) {
	background: transparent !important;
	color: var(--rpm-accent) !important;
	border: 1px solid var(--rpm-accent) !important;
}
.wp-block-button.rpm-btn--outline:not(.is-style-fill) .wp-block-button__link:hover {
	background: var(--rpm-accent) !important;
	color: #fff !important;
}

/* ====== Empresa (filas alternadas Áreas) ====== */
.rpm-empresa__card {
	display: grid;
	grid-template-columns: 1fr;
	border: 1px solid var(--rpm-line);
	border-radius: 1rem;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
@media (min-width: 48rem) {
	.rpm-empresa--reverse .rpm-empresa__media { order: 2; }
	.rpm-empresa--reverse .rpm-empresa__body { order: 1; }
	.rpm-empresa__card { grid-template-columns: 1fr 1fr; }
}
.rpm-empresa__media {
	position: relative;
	min-height: 16rem;
	background: var(--rpm-placeholder);
	overflow: hidden;
}
.rpm-empresa__media-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.rpm-empresa__media:after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.05));
}
.rpm-empresa__body {
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.rpm-empresa__logo {
	max-height: 3.5rem;
	max-width: 12rem;
	height: auto;
	width: auto;
	margin-bottom: 0.5rem;
	object-fit: contain;
	object-position: left;
}
.rpm-empresa__name {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(1.875rem, 3vw, 2.5rem);
	font-weight: 600;
	color: var(--rpm-ink);
	margin: 0;
}
.rpm-empresa__title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}
.rpm-empresa__tag {
	margin: 1.25rem 0 0.15rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--rpm-muted);
}
.rpm-empresa__text {
	margin: 0 0 1rem;
	color: var(--rpm-muted);
}
.rpm-empresa__external {
	color: var(--rpm-accent);
	text-decoration: none;
	flex-shrink: 0;
	line-height: 0;
}
.rpm-empresa__external:hover {
	color: var(--rpm-accent-dark);
}

/* ====== Tarjeta de noticia ====== */
.rpm-noticia-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--rpm-line);
	border-radius: var(--rpm-card-radius);
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
	text-decoration: none;
	color: inherit;
	transition: box-shadow .2s ease;
}
.rpm-noticia-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.rpm-noticia-card__media {
	aspect-ratio: 4 / 3;
	background: var(--rpm-placeholder);
	background-size: cover;
	background-position: center;
}
.rpm-noticia-card__body {
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.75rem;
}
.rpm-noticia-card__title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--rpm-ink);
	margin: 0;
}
.rpm-noticia-card__excerpt {
	color: var(--rpm-muted);
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}
.rpm-noticia-card__cta {
	margin-top: auto;
	align-self: flex-start;
}

/* ====== Encabezados con fuente display ====== */
.wp-site-blocks h1,
.wp-site-blocks h2,
.wp-site-blocks h3,
.wp-site-blocks h4,
.wp-site-blocks h5,
.wp-site-blocks h6 {
	font-family: var(--rpm-font-display, var(--wp--preset--font-family--display, "Playfair Display", Georgia, serif));
	font-weight: 600;
}

/* Escala tipográfica unificada de encabezados.
   H1 es el más grande y único (se reserva al contenido).
   H2 → banners, bandas y hero. H3, H4, progresivamente menores. */
.wp-site-blocks h1 { font-size: var(--rpm-h1, clamp(2.75rem, 5.5vw, 4rem));      line-height: 1.06; }
.wp-site-blocks h2 { font-size: var(--rpm-h2, clamp(2.125rem, 4.25vw, 3rem));    line-height: 1.08; }
.wp-site-blocks h3 { font-size: var(--rpm-h3, clamp(1.375rem, 2.5vw, 1.875rem)); line-height: 1.16; }
.wp-site-blocks h4 { font-size: var(--rpm-h4, clamp(1.125rem, 1.6vw, 1.375rem)); line-height: 1.25; }
.wp-site-blocks h5 { font-size: var(--rpm-h5, 1rem);    line-height: 1.3; }
.wp-site-blocks h6 { font-size: var(--rpm-h6, .875rem); line-height: 1.3; }
body { font-size: var(--rpm-base); font-family: var(--rpm-font-body); }
/* La misma escala dentro del editor de Gutenberg (usa .editor-styles-wrapper) */
.editor-styles-wrapper h1 { font-size: var(--rpm-h1, clamp(2.75rem, 5.5vw, 4rem));      line-height: 1.06; }
.editor-styles-wrapper h2 { font-size: var(--rpm-h2, clamp(2.125rem, 4.25vw, 3rem));    line-height: 1.08; }
.editor-styles-wrapper h3 { font-size: var(--rpm-h3, clamp(1.375rem, 2.5vw, 1.875rem)); line-height: 1.16; }
.editor-styles-wrapper h4 { font-size: var(--rpm-h4, clamp(1.125rem, 1.6vw, 1.375rem)); line-height: 1.25; }
.editor-styles-wrapper h5 { font-size: var(--rpm-h5, 1rem);    line-height: 1.3; }
.editor-styles-wrapper h6 { font-size: var(--rpm-h6, .875rem); line-height: 1.3; }
.editor-styles-wrapper { font-size: var(--rpm-base); font-family: var(--rpm-font-body); }

/* ====== Modo oscuro ====== */
html.rpm-scheme-dark {
	--rpm-ink: #f0f0f0;
	--rpm-muted: #d6d6d6;
	--rpm-paper: #121212;
	--rpm-surface: #1a1a1a;
	--rpm-line: #333333;
	--rpm-placeholder: #2a2a2a;
}
html.rpm-scheme-dark body,
html.rpm-scheme-dark .wp-site-blocks {
	background: var(--rpm-paper);
}
html.rpm-scheme-dark .rpm-empresa__card,
html.rpm-scheme-dark .rpm-noticia-card {
	background: #161616;
}
html.rpm-scheme-dark .rpm-site-footer {
	background: var(--rpm-surface);
}
/* Ítem activo del menú en dark: variante más clara del acento */
html.rpm-scheme-dark .rpm-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
html.rpm-scheme-dark .rpm-nav .wp-block-navigation-item.current_page_item > .wp-block-navigation-item__content {
	color: color-mix(in srgb, var(--rpm-accent) 26%, #fff) !important;
}
/* Selector de apariencia en dark: acento más claro */
html.rpm-scheme-dark .rpm-scheme__button:hover,
html.rpm-scheme-dark .rpm-scheme.is-open .rpm-scheme__button,
html.rpm-scheme-dark .rpm-site-header .wp-block-navigation__responsive-container-open:hover,
html.rpm-scheme-dark .rpm-site-header .wp-block-navigation__responsive-container-close:hover {
	border-color: color-mix(in srgb, var(--rpm-accent) 42%, #fff);
	color: color-mix(in srgb, var(--rpm-accent) 42%, #fff);
}
html.rpm-scheme-dark .rpm-scheme__opt:hover,
html.rpm-scheme-dark .rpm-scheme__opt.is-active {
	color: color-mix(in srgb, var(--rpm-accent) 42%, #fff) !important;
}
/* Texto en dark: párrafos/listas claros, encabezados casi blancos */
html.rpm-scheme-dark .wp-site-blocks {
	color: var(--rpm-muted);
}
html.rpm-scheme-dark .wp-site-blocks h1,
html.rpm-scheme-dark .wp-site-blocks h2,
html.rpm-scheme-dark .wp-site-blocks h3,
html.rpm-scheme-dark .wp-site-blocks h4,
html.rpm-scheme-dark .wp-site-blocks h5,
html.rpm-scheme-dark .wp-site-blocks h6 {
	color: var(--rpm-ink);
}

/* ====== Movimiento ====== */
@keyframes rpm-ken {
	from { transform: scale(1); }
	to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.rpm-hero__slide.is-active .rpm-hero__media { animation: none; }
	* { transition-duration: 0.01ms !important; }
}

/* ====== Banda fotográfica (bloque gruporpm/photo-band) ====== */
.rpm-band {
	position: relative;
	overflow: hidden;
	min-height: 340px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rpm-band__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	will-change: transform;
}
.rpm-band--parallax .rpm-band__media {
	height: 132%;
	top: -16%;
}
.rpm-band--fixed .rpm-band__media {
	background-attachment: fixed;
}
.rpm-band--kenburns .rpm-band__media {
	animation: rpm-band-ken 16s ease-in-out infinite alternate;
}
@keyframes rpm-band-ken {
	from { transform: scale(1.02); }
	to { transform: scale(1.14); }
}
.rpm-band__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,.5));
}
.rpm-band__content {
	position: relative;
	color: #fff;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 60rem;
	padding: 5rem 1.5rem;
}
.rpm-band__title {
	color: #fff;
	font-family: var(--wp--preset--font-family--display, "Playfair Display", Georgia, serif);
	line-height: 1.08;
	margin: 0;
}
.rpm-band__text {
	color: rgba(255,255,255,.94);
	font-size: 1.05rem;
	margin: 0;
}
.rpm-band__content--left {
	text-align: left;
	align-items: flex-start;
}
@media (max-width: 47.99rem) {
	.rpm-band { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
	.rpm-band--kenburns .rpm-band__media { animation: none; }
}

/* ====== Hero de noticia (single) ====== */
.rpm-post-hero {
	position: relative;
	overflow: hidden;
	min-height: clamp(400px, 78vh, 720px);
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--rpm-placeholder);
}
.rpm-post-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,.5));
}
.rpm-post-hero__media {
	position: absolute;
	inset: 0;
	left: 0;
	right: 0;
	width: auto;
	max-width: none !important;
	margin: 0 !important;
	padding: 0;
}
.rpm-post-hero__media .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	width: auto;
	max-width: none;
	margin: 0;
}
.rpm-post-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
}
.rpm-post-hero__content {
	position: relative;
	z-index: 2;
	color: #fff;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 5rem 1.5rem;
}
.rpm-post-hero .rpm-post-hero__title {
	color: #fff;
	font-family: var(--wp--preset--font-family--display, "Playfair Display", Georgia, serif);
	line-height: 1.08;
	margin: 0;
}
.rpm-post-hero .wp-block-post-date {
	color: rgba(255,255,255,.85);
	font-size: 1rem;
	margin: 0;
}
.rpm-post-single {
	max-width: 46rem;
	padding-top: 3rem;
}
.rpm-post-more {
	margin-top: 4rem;
	padding: 4rem 0 2rem;
	border-top: 1px solid var(--rpm-line);
}
.rpm-post-more__title {
	margin-bottom: 2rem;
}
@media (prefers-reduced-motion: reduce) {
	.rpm-post-hero__media img { animation: none; }
}
