/* =================================================================
   main.css — ACF Starter Theme

   Tokens que NO se pueden expresar en theme.json viven aquí.
   Colores, font-sizes, spacing, sombras y radius están definidos
   en theme.json y disponibles como --wp--preset--* o --wp--custom--*.

   Consulta docs/style-guide.md para la referencia completa de tokens.

   Tabla de contenidos:
   1. CSS-only tokens (:root)
   2. WordPress Core utilities
   3. Global styles & typography
   4. Links
   5. Buttons (BEM: .btn, .btn--*)
   6. Images & Media
   7. Header & Navbar
   8. Footer
   9. Header Section component
   10. Accessibility
   11. Media queries
   ================================================================= */

/* =================================================================
   1. CSS-only tokens

   Estos tokens NO se pueden definir en theme.json.
   Para colores, font-sizes, spacing, sombras y radius,
   usa directamente --wp--preset--* o --wp--custom--*.
   ================================================================= */
:root {
	/* Semantic font aliases */
	--font-body: var(--wp--preset--font-family--secondary);
	--font-heading: var(--wp--preset--font-family--primary);
	--font-display: var(--wp--preset--font-family--secondary);
	--font-mono: var(--wp--preset--font-family--monospace);

	/* Layout (fluid values con clamp — no soportado en theme.json) */
	--flow-space: 1.5625rem;
	--column-gap: clamp(2.5rem, 2.5vw + 1.75rem, 3.75rem);
	--box-spacing: clamp(1rem, 2.5vw + 0.25rem, 2.25rem);
	--container-spacing: clamp(1rem, 2.5vw + 0.25rem, 2.25rem);
	--component-spacing: clamp(3rem, 6.5vw + 1.05rem, 6.25rem);

	/* Font weights */
	--fw-regular: 400;
	--fw-medium: 500;
	--fw-semibold: 600;
	--fw-bold: 700;

	/* Line heights */
	--lh-tight: 1.2;
	--lh-base: 1.6;
	--lh-relaxed: 1.8;

	/* Letter spacing */
	--ls-base: 0;
	--ls-wide: 0.02em;
	--ls-wider: 0.03em;
	--ls-btn: 0.0225rem;

	/* Status / Semantic colors (no tienen cabida en el palette de theme.json) */
	--color-success-50: #f0fdf4;
	--color-success-100: #dcfce7;
	--color-success-200: #bbf7d0;
	--color-success-300: #86efac;
	--color-success-400: #4ade80;
	--color-success-500: #22c55e;
	--color-success-600: #16a34a;
	--color-success-700: #15803d;
	--color-success-800: #166534;
	--color-success-900: #14532d;
	--color-success-950: #052e16;
	--color-success: var(--color-success-500);
	--color-success-light: var(--color-success-100);
	--color-success-dark: var(--color-success-700);

	--color-warning-50: #fffbeb;
	--color-warning-100: #fef3c7;
	--color-warning-200: #fde68a;
	--color-warning-300: #fcd34d;
	--color-warning-400: #fbbf24;
	--color-warning-500: #f59e0b;
	--color-warning-600: #d97706;
	--color-warning-700: #b45309;
	--color-warning-800: #92400e;
	--color-warning-900: #78350f;
	--color-warning-950: #451a03;
	--color-warning: var(--color-warning-500);
	--color-warning-light: var(--color-warning-100);
	--color-warning-dark: var(--color-warning-700);

	--color-error-50: #fef2f2;
	--color-error-100: #fee2e2;
	--color-error-200: #fecaca;
	--color-error-300: #fca5a5;
	--color-error-400: #f87171;
	--color-error-500: #ef4444;
	--color-error-600: #dc2626;
	--color-error-700: #b91c1c;
	--color-error-800: #991b1b;
	--color-error-900: #7f1d1d;
	--color-error-950: #450a0a;
	--color-error: var(--color-error-500);
	--color-error-light: var(--color-error-100);
	--color-error-dark: var(--color-error-700);

	--color-info-50: #f0f9ff;
	--color-info-100: #e0f2fe;
	--color-info-200: #bae6fd;
	--color-info-300: #7dd3fc;
	--color-info-400: #38bdf8;
	--color-info-500: #0ea5e9;
	--color-info-600: #0284c7;
	--color-info-700: #0369a1;
	--color-info-800: #075985;
	--color-info-900: #0c4a6e;
	--color-info-950: #082f49;
	--color-info: var(--color-info-500);
	--color-info-light: var(--color-info-100);
	--color-info-dark: var(--color-info-700);

	/* Border extras */
	--color-border-hover: #cccccc;

	/* Transitions (no soportado en theme.json) */
	--transition-btn:
		background-color var(--wp--custom--motion--duration--base)
			var(--wp--custom--motion--easing--standard),
		color var(--wp--custom--motion--duration--base)
			var(--wp--custom--motion--easing--standard),
		border-color var(--wp--custom--motion--duration--base)
			var(--wp--custom--motion--easing--standard),
		transform var(--wp--custom--motion--duration--fast)
			var(--wp--custom--motion--easing--standard);

	/* Component radius aliases */
	--border-radius-input-form: var(--wp--custom--radius--4);
	--border-radius-button-sm: var(--wp--custom--radius--4);
	--border-radius-button-md: var(--wp--custom--radius--4);
	--border-radius-button-lg: var(--wp--custom--radius--4);

	/* Z-index scale */
	--z-below: -1;
	--z-base: 0;
	--z-dropdown: 1000;
	--z-sticky: 1100;
	--z-overlay: 1200;
	--z-modal: 1300;
	--z-popover: 1400;
	--z-tooltip: 1500;
}

/* =================================================================
   2. WordPress Core utilities
   ================================================================= */

/* max-width + overflow-x en html/body: sin esto, cualquier elemento que
   se pase del ancho de la pantalla (un margen/padding negativo, un ancho
   fijo que no se ajusta bien en móvil...) añade scroll horizontal a toda
   la página. Los scrolls horizontales propios de un componente (el
   carrusel de Timeline en móvil, alguna galería) siguen funcionando:
   gestionan su propio overflow-x en su contenedor, no dependen de esto.
   "clip" y no "hidden": con "hidden" (probado) el navegador convierte
   html/body en un contenedor de scroll también en el eje vertical, y eso
   rompe el position:sticky del scroll-pin de "Imagen Interactiva con
   Tabs" (deja de fijarse al hacer scroll). "clip" recorta igual el
   desbordamiento horizontal pero no crea ese contenedor de scroll, así
   que el sticky sigue funcionando. */
html {
	scroll-behavior: smooth;
	max-width: 100vw;
	overflow-x: clip;
}

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	max-width: 96%;
	padding: 5px 3px 10px;
	text-align: center;
}

.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}

.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}

.wp-caption p.wp-caption-text {
	font-size: var(--wp--preset--font-size--12);
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wp--preset--color--bg-secondary);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--text);
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* =================================================================
   3. Global styles & typography
   ================================================================= */
body {
	max-width: 100vw;
	overflow-x: clip;
	font-family: var(--font-body);
	font-size: var(--wp--preset--font-size--15);
	line-height: var(--lh-base);
	color: var(--wp--preset--color--text);
	background-color: var(--wp--preset--color--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
	margin-block-start: var(--wp--preset--spacing--0);
	margin-top: 105px!important;
}

/* El header transparente se solapa sobre una foto/degradado (home, u otra
   página con esa opción marcada en Opciones → Cabecera) — en ese caso el
   contenido debe llegar hasta arriba del todo, no dejar hueco para el
   header. Antes esto dependía de ".home" a secas, así que cualquier otra
   página con el header puesto en modo transparente (Opciones → Cabecera →
   color en páginas interiores) se quedaba con una franja en blanco sin
   nada detrás del header → logo y menú (blancos) invisibles. */
body:has(.site-header--color-transparent) .wp-site-blocks > main {
	margin-top: 0!important;
}

.container {
	margin-inline: auto;
	padding-left: var(--wp--preset--spacing--16);
	padding-right: var(--wp--preset--spacing--16);
}

strong {
	font-weight: var(--fw-semibold);
	color: var(--wp--preset--color--black);
}

/* Headings — font-sizes definidos en theme.json (clamp) */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--wp--preset--color--text-heading);
	line-height: var(--lh-tight);
	margin-top: var(--wp--preset--spacing--0);
	margin-bottom: var(--wp--preset--spacing--24);
}

p {
	margin-top: var(--wp--preset--spacing--0);
	margin-bottom: var(--wp--preset--spacing--16);
}

ul,
ol {
	margin-top: var(--wp--preset--spacing--0);
	margin-bottom: var(--wp--preset--spacing--8);
	padding-left: var(--wp--preset--spacing--12);
}

li {
	margin-bottom: var(--wp--preset--spacing--4);
}

li:last-child {
	margin-bottom: 0;
}

/* Content */
.wp-site-blocks > .entry-content {
	margin-block-start: 0;
}

/* =================================================================
   4. Links
   ================================================================= */
a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
	transition: color var(--wp--custom--motion--duration--base)
		var(--wp--custom--motion--easing--standard);
}

a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

a:focus {
	outline: none;
	outline-offset: 0;
}

a:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* =================================================================
   5. Buttons — Design System
   ----------------------------------------------------------------
   Three solid families × three outline families + utilities.

   Solid:    .btn--primary  (gold, white text)
             .btn--dark     (dark, white text — alias: --default, --secondary)
             .btn--light    (white, dark text)

   Outline:  .btn--outline-primary  (gold ring)
             .btn--outline-dark     (dark ring — alias: --outline)
             .btn--outline-light    (white ring, for dark backgrounds — alias: --transparent)

   Utility:  .btn--ghost   (no border, link-like with hover color)
             .btn--link    (plain underlined link)

   Sizes:    .btn--sm | .btn--md | .btn--lg

   All variants share base motion, focus ring, and disabled handling
   from `.btn` itself — no per-variant duplication.
   ================================================================= */

.btn {
	--btn-bg: var(--wp--preset--color--bg-dark);
	--btn-bg-hover: var(--wp--preset--color--black);
	--btn-fg: var(--wp--preset--color--white);
	--btn-fg-hover: var(--wp--preset--color--white);
	--btn-border: var(--btn-bg);
	--btn-border-hover: var(--btn-bg-hover);

	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-family: var(--wp--preset--font-family--primary);
	font-weight: var(--fw-medium, 600);
	font-size: var(--wp--preset--font-size--18);
	line-height: 1.5;
	color: var(--btn-fg);
	background-color: var(--btn-bg);
	text-decoration: none;
	text-transform: uppercase;
	border: 2px solid var(--btn-border);
	border-radius: var(--wp--custom--radius--4);
	cursor: pointer;
	font-weight: 700;
	transition: var(
		--transition-btn,
		background-color 200ms ease,
		color 200ms ease,
		border-color 200ms ease,
		transform 200ms ease
	);
	white-space: nowrap;
	user-select: none;
}

@media (max-width: 63.99rem) {
	.btn {
		font-size: var(--wp--preset--font-size--15);
	}
}

.btn:hover {
	color: var(--btn-fg-hover);
	background-color: var(--btn-bg-hover);
	border-color: var(--btn-border-hover);
	text-decoration: none;
	transform: translateY(-1px);
}

.btn:active {
	transform: translateY(0);
}

.btn:focus {
	outline: 2px solid transparent;
}

.btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
	transform: none;
}

/* --- Sizes --- */

.btn--sm {
	padding: 0.5rem 1rem;
	font-size: var(--wp--preset--font-size--14);
}

.btn--md {
	padding: 0.75rem 1.5rem;
	font-size: var(--wp--preset--font-size--16);
}

.btn--lg {
	padding: 1rem 2rem;
	font-size: var(--wp--preset--font-size--18);
}

/* --- Solid: Primary (gold) --- */
.btn--primary {
	--btn-bg: var(--wp--preset--color--brown-dark);
	--btn-bg-hover: var(--wp--preset--color--white);
	--btn-fg: var(--wp--preset--color--white);
	--btn-fg-hover: var(--wp--preset--color--brown-dark);
	--btn-border: var(--wp--preset--color--brown-dark);
	--btn-border-hover: var(--wp--preset--color--brown-dark);
}

/* --- Solid: Dark (--default and --secondary are aliases) --- */
.btn--dark,
.btn--default,
.btn--secondary {
	--btn-bg: var(--wp--preset--color--gold);
	--btn-bg-hover: var(--wp--preset--color--white);
	--btn-fg: var(--wp--preset--color--brown-dark);
	--btn-fg-hover: var(--wp--preset--color--brown-dark);
	--btn-border: var(--btn-bg);
	--btn-border-hover: var(--wp--preset--color--gold);
}

/* --- Solid: Light (white bg, dark text) --- */
.btn--light {
	--btn-bg: var(--wp--preset--color--white);
	--btn-bg-hover: var(--wp--preset--color--bg-secondary);
	--btn-fg: var(--wp--preset--color--text-heading);
	--btn-fg-hover: var(--wp--preset--color--text-heading);
	--btn-border: var(--wp--preset--color--white);
	--btn-border-hover: var(--wp--preset--color--text-heading);
}

/* --- Outline: Dark (--outline and --outline-secondary are aliases) --- */
.btn--outline,
.btn--outline-dark,
.btn--outline-secondary {
	--btn-bg: transparent;
	--btn-bg-hover: var(--wp--preset--color--bg-dark);
	--btn-fg: var(--wp--preset--color--text-heading);
	--btn-fg-hover: var(--wp--preset--color--white);
	--btn-border: var(--wp--preset--color--text-heading);
	--btn-border-hover: var(--wp--preset--color--bg-dark);
}

/* --- Outline: Primary (gold ring) --- */
.btn--outline-primary {
	--btn-bg: transparent;
	--btn-bg-hover: var(--wp--preset--color--primary);
	--btn-fg: var(--wp--preset--color--primary);
	--btn-fg-hover: var(--wp--preset--color--white);
	--btn-border: var(--wp--preset--color--primary);
	--btn-border-hover: var(--wp--preset--color--primary);
}

/* --- Outline: Light (white ring on dark bg — alias: --transparent) --- */
.btn--outline-light,
.btn--transparent {
	--btn-bg: transparent;
	--btn-bg-hover: var(--wp--preset--color--white);
	--btn-fg: var(--wp--preset--color--white);
	--btn-fg-hover: var(--wp--preset--color--text-heading);
	--btn-border: var(--wp--preset--color--white);
	--btn-border-hover: var(--wp--preset--color--white);
}

/* --- Utility: Ghost (no border, no bg) --- */
.btn--ghost {
	--btn-bg: transparent;
	--btn-bg-hover: transparent;
	--btn-fg: var(--wp--preset--color--text);
	--btn-fg-hover: var(--wp--preset--color--primary);
	--btn-border: transparent;
	--btn-border-hover: transparent;
	padding-inline: 0;
}

.btn--ghost:hover {
	transform: none;
	text-decoration: underline;
}

.btn--ghost:has(svg):hover {
	text-decoration: none;
}

/* --- Utility: Link (plain underlined) --- */
.btn--link {
	--btn-bg: transparent;
	--btn-bg-hover: transparent;
	--btn-fg: var(--wp--preset--color--text);
	--btn-fg-hover: var(--wp--preset--color--primary);
	--btn-border: transparent;
	--btn-border-hover: transparent;
	padding-inline: 0;
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.btn--link:hover {
	transform: none;
	text-decoration: underline;
}

/* =================================================================
   6. Images & Media
   ================================================================= */
img {
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

figcaption {
	font-size: var(--wp--preset--font-size--14);
	color: var(--wp--preset--color--text-muted);
	margin-top: var(--wp--preset--spacing--4);
	text-align: center;
}

video,
iframe,
embed,
object {
	max-width: 100%;
	height: auto;
}

/* =================================================================
   7. Header & Navbar
   Layouts (via render_block): --layout-classic | --layout-centered | --layout-stacked
   Colors  (via render_block): --color-light | --color-dark | --color-transparent
   Classes are injected on .site-header itself → works in frontend + site editor.
   ================================================================= */

/* Site header wrapper */
.site-header {
	background-color: var(--wp--preset--color--bg);
	position: fixed;
	width: 100vw;
	z-index: var(--z-header, 100);
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.site-header--hidden {
	opacity: 0;
	visibility: hidden;
	transform: translateY(-100%);
}
/* Main navigation bar */
.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: var(--wp--preset--spacing--16);
	padding-inline: 30px;
	margin-top: 0;
	gap: var(--wp--preset--spacing--24);
}

.site-header--color-transparent.site-header--scrolled,
.site-header--color-gradient-light.site-header--scrolled,
.site-header--color-gradient-dark.site-header--scrolled {
	background-color: var(--wp--preset--color--primary);
	background-image: none;
}

.site-header--color-transparent.site-header--scrolled .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.site-header--color-transparent.site-header--scrolled .site-header__nav .wp-block-navigation-item__content,
.site-header--color-gradient-dark.site-header--scrolled .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.site-header--color-gradient-dark.site-header--scrolled .site-header__nav .wp-block-navigation-item__content {
	/* Fondo del header al hacer scroll: var(--wp--preset--color--primary)
	   (#9C6169, oscuro) — el texto pasa a blanco en vez del oscuro que
	   usaba cuando el fondo al hacer scroll era claro. */
	color: var(--wp--preset--color--white);
}

.site-header--color-transparent.site-header--scrolled .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.site-header--color-gradient-dark.site-header--scrolled .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--white);
}

.site-header--color-transparent.site-header--scrolled .topbar__value,
.site-header--color-transparent.site-header--scrolled .topbar__link,
.site-header--color-gradient-dark.site-header--scrolled .topbar__value,
.site-header--color-gradient-dark.site-header--scrolled .topbar__link {
	color: var(--wp--preset--color--white);
}
.home .site-header--color-transparent .topbar__contact svg,
.home .site-header--color-transparent .topbar__contact svg path,
.home .site-header--color-transparent .topbar__address svg,
.home .site-header--color-transparent .topbar__address svg path,
.home .site-header--color-transparent .topbar__link svg,
.home .site-header--color-transparent .topbar__link svg path,
.home .site-header--color-gradient-dark .topbar__contact svg,
.home .site-header--color-gradient-dark .topbar__contact svg path,
.home .site-header--color-gradient-dark .topbar__address svg,
.home .site-header--color-gradient-dark .topbar__address svg path,
.home .site-header--color-gradient-dark .topbar__link svg,
.home .site-header--color-gradient-dark .topbar__link svg path {
    fill: var(--wp--preset--color--white) !important;
	stroke: none;
}
.home .site-header--color-transparent.site-header--scrolled .topbar__contact svg,
.home .site-header--color-transparent.site-header--scrolled .topbar__contact svg path,
.home .site-header--color-transparent.site-header--scrolled .topbar__address svg,
.home .site-header--color-transparent.site-header--scrolled .topbar__address svg path,
.home .site-header--color-transparent.site-header--scrolled .topbar__link svg,
.home .site-header--color-transparent.site-header--scrolled .topbar__link svg path,
.home .site-header--color-gradient-dark.site-header--scrolled .topbar__contact svg,
.home .site-header--color-gradient-dark.site-header--scrolled .topbar__contact svg path,
.home .site-header--color-gradient-dark.site-header--scrolled .topbar__address svg,
.home .site-header--color-gradient-dark.site-header--scrolled .topbar__address svg path,
.home .site-header--color-gradient-dark.site-header--scrolled .topbar__link svg,
.home .site-header--color-gradient-dark.site-header--scrolled .topbar__link svg path {
    fill: var(--wp--preset--color--white) !important;
}


/* Brand / Logo */
.site-header__brand {
	flex-shrink: 0;
}

.site-header .wp-block-site-logo a,
.site-header .wp-block-site-logo img {
	height: auto;
	width: auto;
	display: block;
	transition: opacity 0.25s ease;
	max-width: 300px;
}

@media (max-width: 63.99rem) {
	.site-header .wp-block-site-logo img {
		max-width: 150px;
	}
	.site-header__bar {
		box-sizing: border-box;
		padding: 10px 10px 10px 20px;
	}
}

/* Scroll logo swap: two <img> siblings, only one visible at a time.
   Injected by Starter_Theme::swap_logo_in() when "header_logo_change_on_scroll" is on. */
.custom-logo--scrolled {
	display: none;
}
.site-header--scrolled .custom-logo--resting {
	display: none;
}
.site-header--scrolled .custom-logo--scrolled {
	display: block;
}

/* Navigation links */
.site-header__nav .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--24);
}

/* Contenedor de navegación + megamenú (Ramón y Cajal) */
.site-header__nav-wrap {
	gap: var(--wp--preset--spacing--24, 1.5rem);
}
@media (max-width: 63.99rem) {
	.site-header__nav-wrap {
		flex-wrap: wrap;
	}
}

.site-header__nav .wp-block-navigation-item {
	margin-bottom: 0;
}

.site-header__nav .wp-block-navigation-item__content {
	font-size: 0.875rem;
	font-weight: var(--fw-medium);
	line-height: 1.5;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text);
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-header__nav .wp-block-navigation-item__content:hover,
.site-header__nav .wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* Un ítem del menú con enlace "#" es un marcador de posición — p. ej. el
   nombre de un grupo que solo despliega un submenú, sin página propia.
   Se queda sin poder pulsar (ratón/táctil) y sin el cursor de "enlace",
   en vez de recargar la página al pulsarlo. No toca el botón de abrir
   submenú (es un <button> aparte, no este <a>), así que el desplegable
   sigue funcionando igual. */
.site-header__nav a[href="#"].wp-block-navigation-item__content {
	pointer-events: none;
	cursor: default;
}

.wp-block-columns table {
	margin: 1rem;
    font-size: 0.75rem;
}

/* Active page link — desktop only (mobile menu keeps a flat style) */
@media (min-width: 64rem) {
	.site-header__nav
		.wp-block-navigation-item.current-menu-item
		> .wp-block-navigation-item__content {
		color: var(--wp--preset--color--white);
		background-color: var(--wp--preset--color--primary);
		font-weight: var(--fw-semibold);
		padding-inline: var(--wp--preset--spacing--4);
	}
}

/* --- Header CTA buttons (centered layout) --- */
.header-cta {
	display: none;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.header-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.25rem;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: var(--wp--custom--radius--4, 0.25rem);
	white-space: nowrap;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
	cursor: pointer;
}

.header-cta__btn:hover {
	text-decoration: none;
}

.header-cta__btn--primary {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--primary);
}
.header-cta__btn--primary:hover {
	background-color: var(--wp--preset--color--primary-dark);
	border-color: var(--wp--preset--color--primary-dark);
}

.header-cta__btn--secondary {
	background-color: transparent;
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}
.header-cta__btn--secondary:hover {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.header-cta__btn--ghost {
	background-color: transparent;
	color: var(--wp--preset--color--text);
	border-color: var(--wp--preset--color--border);
}
.header-cta__btn--ghost:hover {
	background-color: var(--wp--preset--color--border);
	color: var(--wp--preset--color--text-heading);
}

/* --- Mobile menu (overlay) --- */

/*
 * WP core hides the hamburger at 600px. Override to keep it visible until 1024px.
 * Also re-hide the nav links below 1024px so only the overlay is used.
 */
@media (max-width: 63.9375rem) {
	.site-header__nav
		.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: inline-flex;
	}
	.site-header__nav
		.wp-block-navigation__responsive-container:not(.hidden-by-default):not(
			.is-menu-open
		) {
		display: none;
	}
}

.site-header__nav .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--text);
}

.site-header__nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--bg-dark);
	padding: 0;
}

.site-header__nav
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item__content {
	font-size: 1.125rem;
	padding-block: var(--wp--preset--spacing--8);
	text-transform: none;
	letter-spacing: normal;
	color: rgba(255, 255, 255, 0.85);
}

/* =================================================================
   7a. Layout: Centered
   Logo left — Nav center — CTA buttons right (3 columns)
   ================================================================= */

.wp-block-post-content {
	margin-block-start: 0;
}

.site-header--layout-centered .site-header__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}

.site-header--layout-centered .site-header__brand {
	justify-self: start;
}

.site-header--layout-centered .site-header__nav {
	justify-self: center;
}

.site-header--layout-centered .header-cta {
	display: flex;
	justify-self: end;
}

/* =================================================================
   7b. Layout: Stacked
   Logo centered top — Nav centered bottom
   ================================================================= */

.site-header--layout-stacked .site-header__bar {
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--12);
	padding-block: var(--wp--preset--spacing--16) var(--wp--preset--spacing--12);
	margin-top: var(--wp--preset--spacing--8);
}

.site-header--layout-stacked .wp-block-site-logo a,
.site-header--layout-stacked .wp-block-site-logo img {
	height: var(--wp--preset--spacing--56);
}

.site-header--layout-stacked .header-cta {
	display: none;
}

/* =================================================================
   7c. Color: Light (explicit)
   Default; declared for robustness so the class can be overridden
   without depending on implicit inheritance from the base rules.
   ================================================================= */

.site-header--color-light {
	background-color: var(--wp--preset--color--bg);
}

.site-header--color-light .site-header__nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--text);
}

.site-header--color-light
	.site-header__nav
	.wp-block-navigation-item__content:hover,
.site-header--color-light
	.site-header__nav
	.wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--primary);
}

@media (min-width: 64rem) {
	.site-header--color-light
		.wp-block-navigation-item.current-menu-item
		> .wp-block-navigation-item__content {
		color: var(--wp--preset--color--white);
		background-color: var(--wp--preset--color--primary);
		padding-inline: var(--wp--preset--spacing--4);
	}
}

/* =================================================================
   7d. Color: Dark
   ================================================================= */

.site-header--color-dark {
	background-color: var(--wp--preset--color--bg-dark);
}

.site-header--color-dark .site-header__nav .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.85);
}
.site-header--color-dark
	.site-header__nav
	.wp-block-navigation-item__content:hover,
.site-header--color-dark
	.site-header__nav
	.wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--white);
}
@media (min-width: 64rem) {
	.site-header--color-dark
		.wp-block-navigation-item.current-menu-item
		> .wp-block-navigation-item__content {
		color: var(--wp--preset--color--white);
	}
}
.site-header--color-dark .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--white);
}

/* Dark: CTA overrides */
.site-header--color-dark .header-cta__btn--ghost {
	color: rgba(255, 255, 255, 0.85);
	border-color: rgba(255, 255, 255, 0.3);
}
.site-header--color-dark .header-cta__btn--ghost:hover {
	color: var(--wp--preset--color--white);
	background-color: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.5);
}
.site-header--color-dark .header-cta__btn--secondary {
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}
.site-header--color-dark .header-cta__btn--secondary:hover {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary-dark);
}

/* Dark: dropdown keeps light surface for legibility */
.site-header--color-dark
	.site-header__nav
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item__content {
	color: var(--wp--preset--color--text);
}
.site-header--color-dark
	.site-header__nav
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item__content:hover,
.site-header--color-dark
	.site-header__nav
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--primary);
	background-color: var(--wp--preset--color--bg-secondary);
}

/* =================================================================
   7e. Color: Transparent
   Overlays hero content, no background, white text.
   Uses --header-height CSS var so the next block (hero) can offset.
   ================================================================= */

/* The template-part wrapper needs absolute too, not just the inner div.
   Shared by all three "floats over the hero" schemes: transparent + both gradients. */
.wp-block-template-part:has(
	:is(
		.site-header--color-transparent,
		.site-header--color-gradient-light,
		.site-header--color-gradient-dark
	)
) {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: var(--z-header, 100);
}

.site-header--color-transparent {
	background-color: transparent;
}

.site-header--color-transparent
	.site-header__nav
	.wp-block-navigation-item__content,
.site-header--color-gradient-dark
	.site-header__nav
	.wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.85);
}
.site-header--color-transparent
	.site-header__nav
	.wp-block-navigation-item__content:hover,
.site-header--color-transparent
	.site-header__nav
	.wp-block-navigation-item__content:focus,
.site-header--color-gradient-dark
	.site-header__nav
	.wp-block-navigation-item__content:hover,
.site-header--color-gradient-dark
	.site-header__nav
	.wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--primary);
}
@media (min-width: 64rem) {
	.site-header--color-transparent
		.wp-block-navigation-item.current-menu-item
		> .wp-block-navigation-item__content,
	.site-header--color-gradient-dark
		.wp-block-navigation-item.current-menu-item
		> .wp-block-navigation-item__content {
		color: var(--wp--preset--color--white);
		background-color: var(--wp--preset--color--primary);
		padding-inline: var(--wp--preset--spacing--4);
	}
}
.site-header--color-transparent
	.wp-block-navigation__responsive-container-open,
.site-header--color-gradient-dark
	.wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--white);
}

/* Transparent/gradient-dark: mobile menu uses dark background for contrast */
.site-header--color-transparent
	.wp-block-navigation__responsive-container.is-menu-open,
.site-header--color-gradient-dark
	.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--bg-dark);
}
.site-header--color-transparent
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item__content,
.site-header--color-gradient-dark
	.wp-block-navigation__responsive-container.is-menu-open
	.wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.85);
}

/* Transparent/gradient-dark: CTA overrides */
.site-header--color-transparent .header-cta__btn--ghost,
.site-header--color-gradient-dark .header-cta__btn--ghost {
	color: rgba(255, 255, 255, 0.85);
	border-color: rgba(255, 255, 255, 0.3);
}
.site-header--color-transparent .header-cta__btn--ghost:hover,
.site-header--color-gradient-dark .header-cta__btn--ghost:hover {
	color: var(--wp--preset--color--white);
	background-color: rgba(255, 255, 255, 0.1);
}
.site-header--color-transparent .header-cta__btn--secondary,
.site-header--color-gradient-dark .header-cta__btn--secondary {
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
}
.site-header--color-transparent .header-cta__btn--secondary:hover,
.site-header--color-gradient-dark .header-cta__btn--secondary:hover {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary-dark);
}

/* Transparent/gradient-dark: dropdown keeps light surface for legibility */
.site-header--color-transparent
	.site-header__nav
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item__content,
.site-header--color-gradient-dark
	.site-header__nav
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item__content {
	color: var(--wp--preset--color--text);
}
.site-header--color-transparent
	.site-header__nav
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item__content:hover,
.site-header--color-transparent
	.site-header__nav
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item__content:focus,
.site-header--color-gradient-dark
	.site-header__nav
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item__content:hover,
.site-header--color-gradient-dark
	.site-header__nav
	.wp-block-navigation__submenu-container
	.wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--primary);
	background-color: var(--wp--preset--color--bg-secondary);
}

/* =================================================================
   7e-2. Color: Gradient (light / dark)
   Same overlay behavior as Transparent, but with a top→bottom gradient
   background instead of full transparency. "gradient-light" keeps the
   default dark nav text (like "Claro"); "gradient-dark" reuses all the
   light-text rules above (grouped with .site-header--color-transparent).
   ================================================================= */

.site-header--color-gradient-light {
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.7) 0%,
		rgba(255, 255, 255, 0) 100%
	);
}

.site-header--color-gradient-dark {
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.7) 0%,
		rgba(0, 0, 0, 0) 100%
	);
}

/* =================================================================
   7f. Hero offset for transparent/gradient headers
   When the header is absolute, the first content block (hero/pageheader)
   needs extra top padding so content isn't hidden behind the header.

   :has() targets the template-part wrapper that contains .site-header,
   then the next sibling (+) which holds the page content.
   ================================================================= */

.wp-block-template-part:has(
		:is(
			.site-header--color-transparent,
			.site-header--color-gradient-light,
			.site-header--color-gradient-dark
		)
	)
	+ *
	.hero,
.wp-block-template-part:has(
		:is(
			.site-header--color-transparent,
			.site-header--color-gradient-light,
			.site-header--color-gradient-dark
		)
	)
	+ *
	.pageheader {
	padding-top: 5rem;
}

/* Stacked layout is taller — more offset */
.wp-block-template-part:has(
		.site-header--layout-stacked:is(
				.site-header--color-transparent,
				.site-header--color-gradient-light,
				.site-header--color-gradient-dark
			)
	)
	+ *
	.hero,
.wp-block-template-part:has(
		.site-header--layout-stacked:is(
				.site-header--color-transparent,
				.site-header--color-gradient-light,
				.site-header--color-gradient-dark
			)
	)
	+ *
	.pageheader {
	padding-top: 7.5rem;
}

@media (min-width: 48rem) {
	.wp-block-template-part:has(
			:is(
				.site-header--color-transparent,
				.site-header--color-gradient-light,
				.site-header--color-gradient-dark
			)
		)
		+ *
		.hero,
	.wp-block-template-part:has(
			:is(
				.site-header--color-transparent,
				.site-header--color-gradient-light,
				.site-header--color-gradient-dark
			)
		)
		+ *
		.pageheader {
		padding-top: 5.5rem;
	}

	.wp-block-template-part:has(
			.site-header--layout-stacked:is(
					.site-header--color-transparent,
					.site-header--color-gradient-light,
					.site-header--color-gradient-dark
				)
		)
		+ *
		.hero,
	.wp-block-template-part:has(
			.site-header--layout-stacked:is(
					.site-header--color-transparent,
					.site-header--color-gradient-light,
					.site-header--color-gradient-dark
				)
		)
		+ *
		.pageheader {
		padding-top: 16rem;
		padding-bottom: 8rem;
	}
}

/* =================================================================
   8. Footer
   Layouts (via render_block): --layout-columns | --layout-centered | --layout-minimal
   Colors:  --color-light | --color-dark | --color-primary
   Logo:    --logo-sm | --logo-md | --logo-lg
   ================================================================= */

footer {
	margin-block-start: 0;
}

.site-footer {
	flex-shrink: 0;
	background-color: var(--wp--preset--color--text);
	color: var(--wp--preset--color--white);
	padding: var(--wp--preset--spacing--48) var(--wp--preset--spacing--0)
		var(--wp--preset--spacing--32);
}

/* --- Links --- */
.site-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
}

/* --- Top section --- */
.site-footer__top {
	margin-bottom: var(--wp--preset--spacing--64);
}

.site-footer__columns {
	gap: var(--wp--preset--spacing--32);
}

/* --- Logo sizes --- */
.site-footer--logo-sm .wp-block-site-logo img {
	max-height: var(--wp--preset--spacing--32);
}
.site-footer--logo-md .wp-block-site-logo img {
	max-height: var(--wp--preset--spacing--40);
}
.site-footer--logo-lg .wp-block-site-logo img {
	max-width: 130px;
}

.site-footer .wp-block-site-logo img {
	height: auto;
	width: auto;
	display: block;
}

/* --- Footer brand block --- */
.footer-brand {
	margin-top: 0.75rem;
}

.footer-brand__tagline {
	margin: 0;
	font-size: var(--wp--preset--font-size--14);
	line-height: 1.6;
	color: var(--wp--preset--color--text-muted);
}

.footer-brand__cta {
	margin-top: var(--wp--preset--spacing--12);
}

/* --- Column titles --- */
.site-footer__title {
	/* font-family: var(--wp--preset--font-family--secondary);
	color: var(--wp--preset--color--text); */
	font-size: var(--wp--preset--font-size--18);
	font-weight: 800;
	/* letter-spacing: -0.0625rem; */
	margin-bottom: var(--wp--preset--spacing--12);
}

/* --- Navigation lists --- */
.site-footer__nav {
	margin-block-start: var(--wp--preset--spacing--16);
}

.site-footer__nav .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--14);
	font-weight: var(--fw-regular);
	color: var(--wp--preset--color--text);
}

.site-footer__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary);
}

/* --- Schedule/contact info --- */
.footer-contact {
	margin-block-start: var(--wp--preset--spacing--16);
}

/* --- Bottom (credits + legal) --- */
.site-footer__bottom {
	border-top: 1px solid var(--wp--preset--color--border);
	margin-top: var(--wp--preset--spacing--32);
	padding-top: var(--wp--preset--spacing--16);
}

.site-footer__bottom .footer-credits {
	font-size: var(--wp--preset--font-size--12);
	color: var(--wp--preset--color--white);
	margin: 0;
}

.site-footer__bottom .footer-credits .footer-credits__dev {
	color: var(--wp--preset--color--text-muted);
}

.footer-credits__sep {
	margin-inline: 0.5em;
	opacity: 0.4;
}

.site-footer__legal .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--12);
	color: var(--wp--preset--color--text-muted);
}

.site-footer__legal .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary);
}

.site-footer__legal li {
	margin-bottom: 0;
}

/* =================================================================
   8a. Layout: Columns (default)
   4-col: brand | nav | nav | contact
   ================================================================= */

/* (Default structure handles this) */

/* =================================================================
   8b. Layout: Centered
   Everything stacked and centered: logo, tagline, social, credits
   ================================================================= */

.site-footer--layout-centered .site-footer__top {
	text-align: center;
}

.site-footer--layout-centered .site-footer__columns {
	flex-direction: column;
	align-items: center;
}

/* Hide nav + contact columns, show only brand */
.site-footer--layout-centered .site-footer__col--nav,
.site-footer--layout-centered .site-footer__col--contact {
	display: none;
}

.site-footer--layout-centered .site-footer__col--brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 28rem;
}

.site-footer--layout-centered .footer-brand {
	text-align: center;
}

.site-footer--layout-centered .site-footer__bottom {
	justify-content: center;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

/* =================================================================
   8c. Layout: Minimal
   Just credits + legal in one line
   ================================================================= */

.site-footer--layout-minimal .site-footer__top {
	display: none;
}

.site-footer--layout-minimal {
	padding: 1rem 0;
}

.site-footer--layout-minimal .site-footer__bottom {
	border-top: none;
	margin-top: 0;
	padding-top: 0;
}

/* =================================================================
   8d. Color: Light (default)
   ================================================================= */

/* (Default styles) */

/* =================================================================
   8e. Color: Dark
   ================================================================= */

.site-footer--color-dark {
	background-color: var(--wp--preset--color--bg-dark);
	color: rgba(255, 255, 255, 0.85);
}

.site-footer--color-dark a {
	color: rgba(255, 255, 255, 0.85);
}

.site-footer--color-dark a:hover,
.site-footer--color-dark a:focus {
	color: var(--wp--preset--color--white);
}

.site-footer--color-dark .site-footer__title {
	color: var(--wp--preset--color--white);
}

.site-footer--color-dark .site-footer__nav .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.75);
}

.site-footer--color-dark
	.site-footer__nav
	.wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--white);
}

.site-footer--color-dark .footer-brand__tagline {
	color: rgba(255, 255, 255, 0.6);
}

.site-footer--color-dark .footer-contact__social-link {
	color: rgba(255, 255, 255, 0.6);
}

.site-footer--color-dark .footer-contact__social-link:hover {
	color: var(--wp--preset--color--white);
}

.site-footer--color-dark .footer-brand__cta {
	--btn-fg: var(--wp--preset--color--white);
	--btn-fg-hover: var(--wp--preset--color--bg-dark);
	--btn-bg-hover: var(--wp--preset--color--white);
	--btn-border: rgba(255, 255, 255, 0.35);
	--btn-border-hover: var(--wp--preset--color--white);
}

.site-footer--color-dark .footer-contact__center {
	color: rgba(255, 255, 255, 0.75);
}

.site-footer--color-dark .site-footer__bottom {
	border-color: rgba(255, 255, 255, 0.15);
}

.site-footer--color-dark .footer-credits,
.site-footer--color-dark
	.site-footer__legal
	.wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.5);
}

.site-footer--color-dark
	.site-footer__legal
	.wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--white);
}

/* =================================================================
   8f. Color: Primary
   ================================================================= */

.site-footer--color-primary {
	background-color: var(--wp--preset--color--primary);
	color: rgba(255, 255, 255, 0.8);
}

.site-footer--color-primary a {
	color: rgba(255, 255, 255, 0.8);
}

.site-footer--color-primary a:hover {
	color: var(--wp--preset--color--white);
}

.site-footer--color-primary .site-footer__title {
	color: var(--wp--preset--color--white);
}

.site-footer--color-primary
	.site-footer__nav
	.wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.8);
}

.site-footer--color-primary
	.site-footer__nav
	.wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--white);
}

.site-footer--color-primary .footer-brand__tagline {
	color: rgba(255, 255, 255, 0.7);
}

.site-footer--color-primary .footer-contact__social-link {
	color: rgba(255, 255, 255, 0.7);
}

.site-footer--color-primary .footer-contact__social-link:hover {
	color: var(--wp--preset--color--white);
}

.site-footer--color-primary .footer-brand__cta {
	--btn-fg: var(--wp--preset--color--white);
	--btn-fg-hover: var(--wp--preset--color--primary);
	--btn-bg-hover: var(--wp--preset--color--white);
	--btn-border: rgba(255, 255, 255, 0.4);
	--btn-border-hover: var(--wp--preset--color--white);
}

.site-footer--color-primary .footer-contact__center {
	color: rgba(255, 255, 255, 0.8);
}

.site-footer--color-primary .site-footer__bottom {
	border-color: rgba(255, 255, 255, 0.2);
}

.site-footer--color-primary .footer-credits,
.site-footer--color-primary
	.site-footer__legal
	.wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.5);
}

.site-footer--color-primary
	.site-footer__legal
	.wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--white);
}

/* =================================================================
   8g. Footer responsive
   ================================================================= */

/* Mobile-first responsive footer */
.site-footer__columns {
	flex-direction: column;
}

.site-footer__bottom {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}

@media (min-width: 48rem) {
	.site-footer {
		padding: var(--wp--preset--spacing--64) 0 var(--wp--preset--spacing--32);
	}

	.site-footer__columns {
		flex-direction: row;
	}

	.site-footer__bottom {
		flex-direction: row;
		align-items: center;
		gap: var(--wp--preset--spacing--16);
	}
}

/* =================================================================
   9. Header Section component
   ================================================================= */
.header-section {
	margin-bottom: var(--wp--preset--spacing--32);
}

/* Alignment */
.header-section--align-center {
	text-align: center;
}

.header-section--align-left {
	text-align: left;
}

.header-section--align-right {
	text-align: right;
}

/* Width */
.header-section--width-narrow {
	max-width: 66.666%;
}

.header-section--align-center.header-section--width-narrow {
	margin-inline: auto;
}

.header-section--align-right.header-section--width-narrow {
	margin-inline-start: auto;
}

.header-section--width-full {
	max-width: 100%;
}

/* Tagline */
.header-section__tagline {
	font-size: var(--wp--preset--font-size--18);
	font-weight: var(--fw-medium);
	text-transform: uppercase;
	letter-spacing: normal;
	color: var(--wp--preset--color--text-muted);
	margin: 0 0 var(--wp--preset--spacing--8);
}

/* Tagline below title: subtitle style */
.header-section__title + .header-section__tagline {
	font-size: var(--wp--preset--font-size--22);
	font-weight: var(--fw-medium);
	text-transform: uppercase;
	letter-spacing: normal;
	color: var(--wp--preset--color--text-muted);
	margin: -0.5rem 0 var(--wp--preset--spacing--16);
}

/* Title */
.header-section__title {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: var(--wp--preset--font-size--30);
	font-weight: 700;
	line-height: 1.4;
	text-wrap: balance;
	margin: 0 0 1rem;
	letter-spacing: 0;
	color: var(--wp--preset--color--primary);
}

/* Description */
.header-section__description {
	font-size: var(--wp--preset--font-size--16);
	line-height: 1.6;
	color: var(--wp--preset--color--text);
	text-wrap: pretty;
	margin: 0;
}

.header-section--align-center .header-section__description {
	max-width: 90%;
	margin-inline: auto;
	text-wrap: balance;
}

/* Button (optional) */
.header-section__cta {
	margin-top: var(--wp--preset--spacing--24);
}

/* Mobile */
@media (max-width: 48rem) {
	.header-section--width-narrow {
		max-width: 100%;
	}
}

/* =================================================================
   10. Error 404 page
   ================================================================= */
.error-404__title {
	margin-bottom: var(--wp--preset--spacing--16);
}

.error-404__text {
	font-size: var(--wp--preset--font-size--16);
	line-height: 1.6;
	color: var(--wp--preset--color--text);
	text-wrap: balance;
	margin-bottom: var(--wp--preset--spacing--16);
}

.wp-block-search__inside-wrapper {
	margin-bottom: var(--wp--preset--spacing--32);
}

.error-404__search button {
	transition: opacity 0.2s ease;
}

.error-404__search button:hover {
	opacity: 0.8;
}

.error-404__btn a {
	background-color: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	transition: transform 0.2s ease;
}

.error-404__btn a:hover {
	transform: scale(0.98);
	text-decoration: none;
}

@media (min-width: 48rem) {
	.error404 {
		margin-block-start: 8rem !important;
	}
}

/* =================================================================
   11. Accessibility
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* =================================================================
   12. Scroll-to-top
   ================================================================= */
.scroll-top {
	position: fixed;
	bottom: 4.5rem;
	left: 1.1rem;
	z-index: var(--z-sticky);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.5rem);
	transition:
		opacity 0.25s ease,
		transform 0.25s ease,
		visibility 0s linear 0.25s,
		background-color 0.2s ease;
}

.scroll-top--visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition:
		opacity 0.25s ease,
		transform 0.25s ease,
		visibility 0s linear 0s,
		background-color 0.2s ease;
}

.scroll-top:hover {
	background-color: var(
		--wp--preset--color--primary-dark,
		var(--wp--preset--color--primary)
	);
}

.scroll-top:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* =================================================================
   13. Float CTA (call + WhatsApp)
   ================================================================= */
.float-cta {
	position: fixed;
	bottom: 1.75rem;
	right: 1.75rem;
	z-index: var(--z-overlay);
	display: flex;
	flex-direction: column;
	align-items: end;
	gap: 0.75rem;
}

.float-cta__btn {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--wp--preset--color--white);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.float-cta__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
	color: var(--wp--preset--color--white);
}

.float-cta__btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

.float-cta__btn--call {
	background-color: var(--wp--preset--color--primary);
}

.float-cta__btn--whatsapp {
	/* Verde oficial de la marca WhatsApp, no de la paleta del proyecto —
	   se deja fuera de los tokens a propósito, para que el botón se
	   reconozca como WhatsApp. */
	background-color: #25d366;
}

@media (prefers-reduced-motion: reduce) {
	.float-cta__btn {
		transition: none;
	}
}

/* =================================================================
   14. Float Booking — pill trigger + panel popup
   ================================================================= */

/* Pill trigger — se añade al final de la columna .float-cta */
.float-cta__btn--booking {
	width: auto;
	height: auto;
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	padding: var(--wp--preset--spacing--10, 0.625rem)
		var(--wp--preset--spacing--20, 1.25rem);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--12, 0.75rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	border: none;
	cursor: pointer;
	transition:
		background-color var(--wp--custom--motion--duration--base, 200ms) ease,
		transform var(--wp--custom--motion--duration--base, 200ms) ease,
		box-shadow var(--wp--custom--motion--duration--base, 200ms) ease;
}

.float-cta__btn--booking:hover {
	background-color: var(--wp--preset--color--primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
	color: var(--wp--preset--color--white);
}

.float-cta__btn--booking:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* Panel — posicionado absolutamente sobre la columna de botones */
.float-booking {
	position: absolute;
	bottom: calc(100% + var(--wp--preset--spacing--12, 0.75rem));
	right: 0;
	width: 18rem;
	background-color: var(--wp--preset--color--bg);
	border-radius: var(--wp--custom--radius--8);
	box-shadow:
		0 4px 6px rgba(49, 41, 36, 0.06),
		0 12px 40px rgba(49, 41, 36, 0.14);
	padding: var(--wp--preset--spacing--24, 1.5rem);
	opacity: 0;
	visibility: hidden;
	transform: translateY(var(--wp--preset--spacing--8, 0.5rem));
	transition:
		opacity var(--wp--custom--motion--duration--slow, 320ms)
			cubic-bezier(0.22, 1, 0.36, 1),
		transform var(--wp--custom--motion--duration--slow, 320ms)
			cubic-bezier(0.22, 1, 0.36, 1),
		visibility var(--wp--custom--motion--duration--slow, 320ms);
}

.float-booking.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.float-booking__close {
	position: absolute;
	top: var(--wp--preset--spacing--10, 0.625rem);
	right: var(--wp--preset--spacing--10, 0.625rem);
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--wp--preset--color--text-muted);
	padding: var(--wp--preset--spacing--4, 0.25rem);
	border-radius: var(--wp--custom--radius--4);
	line-height: 1;
	transition: color var(--wp--custom--motion--duration--fast, 120ms) ease;
}

.float-booking__close:hover {
	color: var(--wp--preset--color--text);
}

.float-booking__title {
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--11, 0.6875rem);
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--text-muted);
	margin: 0 0 var(--wp--preset--spacing--16, 1rem);
	padding-bottom: var(--wp--preset--spacing--12, 0.75rem);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.float-booking__item {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--12, 0.75rem);
	padding: var(--wp--preset--spacing--10, 0.625rem) 0;
	font-size: var(--wp--preset--font-size--14, 0.875rem);
	color: var(--wp--preset--color--text);
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--border);
	transition: color var(--wp--custom--motion--duration--fast, 120ms) ease;
}

.float-booking__item:last-of-type {
	border-bottom: none;
}

.float-booking__item:hover {
	color: var(--wp--preset--color--primary);
}

.float-booking__item-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--accent);
}

.float-booking__cta {
	display: block;
	text-align: center;
	margin-top: var(--wp--preset--spacing--16, 1rem);
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	padding: var(--wp--preset--spacing--12, 0.75rem)
		var(--wp--preset--spacing--20, 1.25rem);
	border-radius: var(--wp--custom--radius--pill);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--12, 0.75rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition:
		background-color var(--wp--custom--motion--duration--base, 200ms) ease,
		transform var(--wp--custom--motion--duration--base, 200ms) ease;
}

.float-booking__cta:hover {
	background-color: var(--wp--preset--color--primary-dark);
	transform: translateY(-1px);
	color: var(--wp--preset--color--white);
}

@media (prefers-reduced-motion: reduce) {
	.float-cta__btn--booking,
	.float-booking,
	.float-booking__close,
	.float-booking__item,
	.float-booking__cta {
		transition: none;
	}
}

/* =================================================================
   15. Tables
   ================================================================= */

.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wp-block-table table,
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	border: none;
	font-size: var(--wp--preset--font-size--15);
	line-height: 1.6;
}

.wp-block-table th,
.wp-block-table td,
.entry-content th,
.entry-content td {
	padding: 0.75rem 1rem;
	text-align: left;
	border: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	vertical-align: top;
}

.wp-block-table thead {
	border-color: var(--wp--preset--color--border);
}

.wp-block-table thead th,
.entry-content thead th {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
}

.wp-block-table tbody tr:last-child td,
.entry-content tbody tr:last-child td {
	border-bottom: none;
}

.wp-block-table tbody tr:hover td,
.entry-content tbody tr:hover td {
	background-color: var(--wp--preset--color--bg-secondary);
}

.wp-block-table tfoot td,
.entry-content tfoot td {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--text-muted);
	border: none;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* =================================================================
   15. Form Gravity Forms
   ================================================================= */
.gform_wrapper {
	background-color: transparent !important;
	margin: 0 auto;
	padding-top: var(--wp--preset--spacing--8);
	padding-bottom: var(--wp--preset--spacing--32);
}

.gform_wrapper form {
	margin: 0 auto;
	text-align: left;
}

.gform_fields {
	row-gap: var(--wp--preset--spacing--10) !important;
}

.gform_button {
	background-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--white) !important;
	border: none;
	padding: 0.75rem 1.5rem;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	border-radius: 0 !important;
	cursor: pointer;
	width: 100% !important;
	transition: transform 0.2s ease !important;
	border-radius: 50px !important;
    height: 53px !important;
}

.gform_button:hover {
	transform: scale(0.98) !important;
}

textarea,
.gfield input {
	border-radius: 0 !important;
	border: none !important;
}

textarea:focus,
.gfield input:focus-within {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.gform_confirmation_message {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: var(--wp--preset--font-size--15);
	font-weight: 600;
	font-style: italic;
	color: var(--wp--preset--color--accent);
	text-wrap: balance;
	line-height: 1.6;
}

.wrap_svl_center_box {
	width: 100%!important;
}
.wrap_svl_center_box .wrap_svl {
	width: 100%!important;
}

/* =================================================================
   16. Media queries
   ================================================================= */

/* Container responsive — uses theme.json custom tokens */
@media (min-width: 640px) {
	.container {
		max-width: var(--wp--custom--container--sm);
	}
}
@media (min-width: 768px) {
	.container {
		max-width: var(--wp--custom--container--md);
	}
}
@media (min-width: 1024px) {
	.container {
		max-width: var(--wp--custom--container--lg);
	}
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
	.site-header .wp-block-site-logo a,
	.site-header .wp-block-site-logo img {
		height: 1.55rem;
	}
}
@media (min-width: 1280px) {
	.container {
		max-width: var(--wp--custom--container--xl);
	}
}
@media (min-width: 1536px) {
	.container {
		max-width: var(--wp--custom--container--xl);
	}
}

/* Desktop (64rem / 1024px) — desktop nav */
@media (min-width: 64rem) {
	/* Navbar hover underline animation */
	.site-header__nav .wp-block-navigation-item__content {
		position: relative;
	}

	.site-header__nav .wp-block-navigation-item__content::after {
		content: "";
		display: block;
		position: absolute;
		bottom: -2px;
		left: 50%;
		width: 0;
		height: 1px;
		background: currentColor;
		transition:
			width 0.3s ease,
			left 0.3s ease;
	}

	.site-header__nav .wp-block-navigation-item__content:hover::after {
		width: 100%;
		left: 0;
	}

	/* ---------------------------------------------------------------
	   Dropdown submenu (desktop only)
	   HTML: .wp-block-navigation-submenu > button + ul.submenu-container
	   --------------------------------------------------------------- */
	.site-header__nav .wp-block-navigation-item.has-child {
		position: relative;
	}

	/* Parent link doesn't get the underline animation (chevron marks it) */
	.site-header__nav
		.wp-block-navigation-submenu
		> .wp-block-navigation-item__content::after {
		display: none;
	}

	/* Chevron toggle button */
	.site-header__nav .wp-block-navigation__submenu-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: auto;
		height: auto;
		padding: 0;
		margin-left: 0.375rem;
		background: transparent;
		border: 0;
		color: inherit;
		cursor: pointer;
		transition: transform 0.2s ease;
	}

	.site-header__nav .wp-block-navigation__submenu-icon svg {
		width: 0.625rem;
		height: 0.625rem;
		stroke: currentColor;
		fill: none;
	}

	.site-header__nav .wp-block-navigation__submenu-icon[aria-expanded="true"] {
		transform: rotate(180deg);
	}

	/* Dropdown container — width auto but never too narrow */
	.site-header__nav .wp-block-navigation__submenu-container {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 11rem;
		max-width: 20rem;
		width: max-content;
		margin: 0;
		padding: var(--wp--preset--spacing--8) 0;
		list-style: none;
		background-color: var(--wp--preset--color--white);
		border: 0;
		border-radius: var(--wp--custom--radius--4, 0.25rem);
		box-shadow:
			0 10px 30px -12px rgba(0, 0, 0, 0.12),
			0 4px 12px -4px rgba(0, 0, 0, 0.08);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-4px);
		transition:
			opacity 0.15s ease,
			transform 0.15s ease,
			visibility 0s linear 0.15s;
		pointer-events: none;
		z-index: var(--z-dropdown);
	}

	/* Open states: hover, keyboard focus, explicit click (aria-expanded) */
	.site-header__nav
		.wp-block-navigation-submenu:hover
		> .wp-block-navigation__submenu-container,
	.site-header__nav
		.wp-block-navigation-submenu:focus-within
		> .wp-block-navigation__submenu-container,
	.site-header__nav
		.wp-block-navigation__submenu-icon[aria-expanded="true"]
		+ .wp-block-navigation__submenu-container {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		pointer-events: auto;
		transition:
			opacity 0.15s ease,
			transform 0.15s ease,
			visibility 0s linear 0s;
	}

	/* Dropdown items */
	.site-header__nav
		.wp-block-navigation__submenu-container
		.wp-block-navigation-item {
		margin: 0;
	}

	.site-header__nav
		.wp-block-navigation__submenu-container
		.wp-block-navigation-item__content {
		display: block;
		padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--20);
		font-size: var(--wp--preset--font-size--13);
		font-weight: var(--fw-regular);
		line-height: 1.5;
		letter-spacing: 0.01em;
		text-transform: none;
		color: var(--wp--preset--color--text);
		white-space: nowrap;
		transition:
			background-color 0.15s ease,
			color 0.15s ease;
	}

	.site-header__nav
		.wp-block-navigation__submenu-container
		.wp-block-navigation-item__content:hover,
	.site-header__nav
		.wp-block-navigation__submenu-container
		.wp-block-navigation-item__content:focus {
		background-color: var(--wp--preset--color--bg-secondary);
		color: var(--wp--preset--color--primary);
		text-decoration: none;
	}

	/* Submenu items never carry the animated underline */
	.site-header__nav
		.wp-block-navigation__submenu-container
		.wp-block-navigation-item__content::after {
		display: none;
	}

	/*
	 * CTA nav link — last menu item styled as button.
	 * Active when .site-header--nav-cta is on the header.
	 */
	.site-header--nav-cta
		.site-header__nav
		.wp-block-navigation-link:last-child
		.wp-block-navigation-item__content::after {
		display: none;
	}

	.site-header--nav-cta
		.site-header__nav
		.wp-block-navigation-link:last-child
		a {
		display: flex;
		align-items: center;
		padding: var(--wp--preset--spacing--10) var(--wp--preset--spacing--20);
		background-color: var(--wp--preset--color--bg-dark);
		color: var(--wp--preset--color--white);
		font-weight: var(--fw-medium);
		font-size: var(--wp--preset--font-size--13);
		line-height: 1.5;
		border-radius: var(--wp--custom--radius--0);
		transition: background-color 0.2s ease;
	}

	.site-header--nav-cta
		.site-header__nav
		.wp-block-navigation-link:last-child
		a:hover,
	.site-header--nav-cta
		.site-header__nav
		.wp-block-navigation-link:last-child
		a:focus {
		background-color: var(--wp--preset--color--text);
		color: var(--wp--preset--color--white);
		text-decoration: none;
	}

	.site-header--nav-cta
		.site-header__nav
		.wp-block-navigation-link:last-child
		a:focus-visible {
		outline: 2px solid var(--wp--preset--color--accent);
		outline-offset: 2px;
	}

	/* Dark/transparent: nav CTA uses white style */
	.site-header--color-dark.site-header--nav-cta
		.wp-block-navigation-link:last-child
		a,
	.site-header--color-transparent.site-header--nav-cta
		.wp-block-navigation-link:last-child
		a {
		background-color: var(--wp--preset--color--bg-dark);
		color: var(--wp--preset--color--white);
	}

	.site-header--color-dark.site-header--nav-cta
		.wp-block-navigation-link:last-child
		a:hover,
	.site-header--color-transparent.site-header--nav-cta
		.wp-block-navigation-link:last-child
		a:hover {
		background-color: var(--wp--preset--color--text);
	}

	/* Stacked: larger logo on desktop */
	.site-header--layout-stacked .wp-block-site-logo a,
	.site-header--layout-stacked .wp-block-site-logo img {
		height: var(--wp--preset--spacing--64);
	}

	/* Centered: CTA visible on desktop */
	.site-header--layout-centered .header-cta {
		display: flex;
	}
}

/* Mobile: stacked & centered revert to classic flex */
@media (max-width: 63.9375rem) {
	.site-header--layout-centered .site-header__bar,
	.site-header--layout-stacked .site-header__bar {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}

	.site-header--layout-centered .header-cta,
	.site-header--layout-stacked .header-cta {
		display: none;
	}
}

/* =================================================================
   Mobile drawer — slide from right (below 1024px)
   ================================================================= */

@media (max-width: 63.9375rem) {
	/* 1 — Backdrop (ocupa toda la pantalla, oscurece el contenido detrás).
	   The panel's slide-in is driven by JS (assets/js/main.js, see notes
	   there) — a CSS `animation` tied to this class doesn't play reliably
	   because WordPress's Interactivity API toggles the class reactively
	   rather than via a plain classList.add(). The backdrop fade stays a
	   plain CSS transition (simple color change, doesn't need JS, and
	   writing its color from the same JS frame as the panel's transform
	   is what broke the panel's animation in the first place). */
	.site-header__nav .wp-block-navigation__responsive-container.is-menu-open {
		display: flex !important;
		justify-content: flex-end;
		align-items: stretch;
		padding: 0;
		background-color: rgba(0, 0, 0, 0.6);
		backdrop-filter: blur(3px);
		transition: background-color 0.6s ease;
	}

	/* 2 — Panel lateral (see note above — slide-in is JS-driven) */
	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation__responsive-close {
		/* width: min(82vw, 22rem); */
		height: 100%;
		background-color: var(--wp--preset--color--bg-dark);
		display: flex;
		flex-direction: column;
		overflow-y: auto;
		box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
	}
	a {
		overflow-wrap: break-word;
	}

	/* 3 — Dialog: columna que rellena el panel */
	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation__responsive-dialog {
		display: flex;
		flex-direction: column;
		flex: 1;
		padding: var(--wp--preset--spacing--24);
		gap: 0;
	}

	/* 4 — Botón cerrar */
	.site-header__nav .wp-block-navigation__responsive-container-close {
		align-self: flex-end;
		flex-shrink: 0;
		width: 2.25rem;
		height: 2.25rem;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-bottom: var(--wp--preset--spacing--32);
		padding: 0;
		color: rgba(255, 255, 255, 0.65);
		background-color: rgba(255, 255, 255, 0.08);
		border: 1px solid rgba(255, 255, 255, 0.15);
		border-radius: 50%;
		cursor: pointer;
		transition:
			background-color 0.2s ease,
			color 0.2s ease;
			margin-right: 15px;
	}

	.site-header__nav .wp-block-navigation__responsive-container-close:hover,
	.site-header__nav
		.wp-block-navigation__responsive-container-close:focus-visible {
		background-color: rgba(255, 255, 255, 0.16);
		color: var(--wp--preset--color--white);
	}

	/* 5 — Lista de enlaces */
	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation__container {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	/* 6 — Cada enlace */
	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		padding: var(--wp--preset--spacing--16) 0;
		font-size: 1rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: rgba(255, 255, 255, 0.75);
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		transition:
			color 0.15s ease,
			padding-left 0.15s ease;
	}

	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation-item__content:hover,
	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation-item__content:focus-visible {
		color: var(--wp--preset--color--white);
		padding-left: var(--wp--preset--spacing--12);
	}

	/* 7 — Enlace activo */
	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation-item.current-menu-item
		> .wp-block-navigation-item__content {
		color: var(--wp--preset--color--primary);
	}

	/* 8 — Submenús: fila con el link + botón chevron aparte.
	   El link navega, el chevron abre/cierra — nunca el mismo elemento.
	   NOTE: ".wp-block-navigation-submenu" is present on BOTH the <li>
	   wrapper AND its own <ul class="...submenu-container...submenu">,
	   so these rules are scoped with ".has-child" (only on the <li>) to
	   avoid also turning the submenu list itself into a flex row. */
	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation-item.has-child {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-end;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		flex-direction: row;
        justify-content: end;
		position: relative;
        right: -15px;
	}

	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation-item.has-child ul li a {
			padding-right: 15px !important;
		}

	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation-item.has-child
		> .wp-block-navigation-item__content {
		flex: 1 1 auto;
		border-bottom: 0;
        justify-content: end;
	}

	/* Chevron toggle button */
	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation__submenu-icon {
		display: flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: 2.75rem;
		height: 2.75rem;
		margin: 0;
		padding: 0;
		background: transparent;
		border: 0;
		color: rgba(255, 255, 255, 0.75);
		cursor: pointer;
		transition:
			transform 0.2s ease,
			color 0.15s ease;
	}

	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation__submenu-icon:hover,
	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation__submenu-icon:focus-visible {
		color: var(--wp--preset--color--white);
	}

	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation__submenu-icon svg {
		width: 0.75rem;
		height: 0.75rem;
		stroke: currentColor;
		fill: none;
	}

	/* Rotate the chevron when open (aria-expanded is toggled by core's JS) */
	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation__submenu-icon[aria-expanded="true"] {
		transform: rotate(180deg);
	}

	/* Submenu list: closed by default, only shown when its toggle is
	   expanded. WordPress core ships its own rule for the overlay that
	   forces submenus permanently open (opacity/visibility/overflow all
	   set to "visible", with higher specificity than a plain 4-class
	   selector) — the !important overrides below are needed to actually
	   win against that and make it collapsible. */
	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation__submenu-container {
		flex-basis: 100%;
		max-height: 0 !important;
		opacity: 0 !important;
		visibility: hidden !important;
		overflow: hidden !important;
		margin: 0;
		padding: 0 !important;
		list-style: none;
		pointer-events: none;
		transition: max-height 0.2s ease, opacity 0.2s ease;
	}

	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation__submenu-icon[aria-expanded="true"]
		+ .wp-block-navigation__submenu-container {
		max-height: 60rem !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto;
	}

	/* Nested items: smaller, indented, no uppercase — visually distinct
	   from the top-level rows. */
	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation__submenu-container
		.wp-block-navigation-item__content {
		padding: var(--wp--preset--spacing--12) 0 var(--wp--preset--spacing--12)
			var(--wp--preset--spacing--16);
		font-size: 0.875rem;
		font-weight: 500;
		letter-spacing: normal;
		text-transform: none;
		color: rgba(255, 255, 255, 0.6);
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation__submenu-container
		.wp-block-navigation-item__content:hover,
	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation__submenu-container
		.wp-block-navigation-item__content:focus-visible {
		color: var(--wp--preset--color--white);
	}

	.site-header__nav
		.wp-block-navigation__responsive-container.is-menu-open
		.wp-block-navigation__submenu-container
		.wp-block-navigation-item:last-child
		> .wp-block-navigation-item__content {
		border-bottom: 0;
	}

}

/* =================================================================
   17. Reveal on scroll
   No es el bloque entero el que anima como una sola pieza — el fondo
   del bloque nunca se toca, siempre está ahí. Lo que anima, con un
   retraso creciente por cada uno (por eso el "transition-delay" no
   está aquí: lo calcula y lo escribe assets/js/main.js elemento a
   elemento), son sus hijos de texto y de imagen, por separado:

   - Texto (títulos, tagline, descripciones...): fundido + desenfoque
     + un pequeño desplazamiento hacia arriba.
   - Imágenes: solo fundido, sin desenfoque ni movimiento — un blur
     fuerte sobre una foto grande pesa de más y no aporta nada.

   Las clases ".js-reveal-text"/".js-reveal-image" las añade JS, nunca
   vienen en el HTML servido por PHP — si JS fallara por lo que sea,
   nada se queda invisible: el contenido se muestra normal, sin animar.
   ================================================================= */
.js-reveal-text {
	--reveal-duration: 900ms;
	--reveal-distance: 1.5rem;
	--reveal-blur: 100px;

	opacity: 0;
	transform: translateY(var(--reveal-distance));
	filter: blur(var(--reveal-blur));
	transition:
		opacity var(--reveal-duration) var(--wp--custom--motion--easing--standard, ease),
		transform var(--reveal-duration) var(--wp--custom--motion--easing--standard, ease),
		filter var(--reveal-duration) var(--wp--custom--motion--easing--standard, ease);
	will-change: opacity, transform, filter;
}

.js-reveal-text.is-revealed {
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
	will-change: auto;
}

.js-reveal-image {
	--reveal-duration: 900ms;

	opacity: 0;
	transition: opacity var(--reveal-duration) var(--wp--custom--motion--easing--standard, ease);
	will-change: opacity;
}

.js-reveal-image.is-revealed {
	opacity: 1;
	will-change: auto;
}

/* Utilidades de entrada lateral (en vez de subir, entra desde su lado
   hacia el centro) — sin uso actual en ningún bloque del catálogo, pero
   quedan disponibles para el próximo bloque que necesite esa variante de
   reveal. assets/js/main.js no las añade por sí solo; hace falta que el
   bloque que las quiera las aplique explícitamente. */
.js-reveal-text.js-reveal-from-left,
.js-reveal-image.js-reveal-from-left {
	transform: translateX(-3rem);
}

.js-reveal-text.js-reveal-from-right,
.js-reveal-image.js-reveal-from-right {
	transform: translateX(3rem);
}

.js-reveal-text.js-reveal-from-left.is-revealed,
.js-reveal-text.js-reveal-from-right.is-revealed,
.js-reveal-image.js-reveal-from-left.is-revealed,
.js-reveal-image.js-reveal-from-right.is-revealed {
	transform: translateX(0);
}

/* La imagen normal solo transiciona "opacity" (nunca se mueve) — con la
   dirección lateral sí hay transform de por medio, así que aquí se
   añade a la lista de propiedades a transicionar. */
.js-reveal-image.js-reveal-from-left,
.js-reveal-image.js-reveal-from-right {
	transition:
		opacity var(--reveal-duration) var(--wp--custom--motion--easing--standard, ease),
		transform var(--reveal-duration) var(--wp--custom--motion--easing--standard, ease);
}

/* "Marcas" y "Galería con miniaturas": aquí la foto ES el contenido (no
   algo que acompaña al texto), así que el fundido solo apenas se notaba
   — se les añade un pequeño desplazamiento hacia arriba, igual que al
   texto, pero sin blur (sigue sin compensar sobre una foto grande). */
.brands .js-reveal-image,
.gallery-tumbs .js-reveal-image {
	--reveal-distance: 1.5rem;

	transform: translateY(var(--reveal-distance));
	transition:
		opacity var(--reveal-duration) var(--wp--custom--motion--easing--standard, ease),
		transform var(--reveal-duration) var(--wp--custom--motion--easing--standard, ease);
}

.brands .js-reveal-image.is-revealed,
.gallery-tumbs .js-reveal-image.is-revealed {
	transform: translateY(0);
}

/* Bloques por ENCIMA del pliegue (el hero): se revelan una sola vez al
   cargar, no con el scroll — ver el comentario de prepareRevealElement()
   en assets/js/main.js. Usan "animation" en vez de "transition": el
   navegador conoce su propio estado "from" desde el momento en que se
   asigna la animación, sin importar cuándo ocurra eso respecto al primer
   pintado — con una transición normal (que necesita ver primero el
   estado inicial ya pintado y DESPUÉS el cambio a final) el resultado
   dependía de una carrera contra el propio pintado de la página y podía
   saltarse por completo. */
@keyframes reveal-onload-text {
	from {
		opacity: 0;
		transform: translateY(var(--reveal-distance));
		filter: blur(var(--reveal-blur));
	}
	to {
		opacity: 1;
		transform: translateY(0);
		filter: blur(0);
	}
}

@keyframes reveal-onload-image {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.js-reveal-text.js-reveal-onload {
	opacity: 0;
	transition: none;
	animation: reveal-onload-text var(--reveal-duration) var(--wp--custom--motion--easing--standard, ease) both;
	animation-delay: var(--reveal-onload-delay, 0ms);
}

.js-reveal-image.js-reveal-onload {
	opacity: 0;
	transition: none;
	animation: reveal-onload-image var(--reveal-duration) var(--wp--custom--motion--easing--standard, ease) both;
	animation-delay: var(--reveal-onload-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
	.js-reveal-text,
	.js-reveal-image {
		opacity: 1;
		transform: none;
		filter: none;
		transition: none;
	}

	.js-reveal-text.js-reveal-onload,
	.js-reveal-image.js-reveal-onload {
		animation: none;
	}
}

/* =================================================================
   18. Componentes Ramón y Cajal — tarjeta de experto
   (compartida por acf/expertos-mosaico, acf/expertos-buscador,
   acf/expertos-listado, acf/expertos-mosaico)
   ================================================================= */
.experto-card {
	height: 100%;
}
.experto-card__link {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	height: 100%;
	text-decoration: none;
	color: var(--wp--preset--color--text);
}
.experto-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background-color: var(--wp--preset--color--bg-secondary);
}
.experto-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 320ms var(--wp--custom--motion--easing--standard, ease),
		filter 320ms var(--wp--custom--motion--easing--standard, ease);
}
.experto-card__img--placeholder {
	display: block;
}
.experto-card--bn .experto-card__img {
	filter: grayscale(1);
}
/* Variante «row»: foto cuadrada a la izquierda, texto a la derecha
   (resultados del buscador de expertos). */
.experto-card--row .experto-card__link {
	flex-direction: row;
	align-items: flex-start;
	gap: 1rem;
}
.experto-card--row .experto-card__media {
	aspect-ratio: 1 / 1;
	width: 6.5rem;
	flex-shrink: 0;
}
/* Sin min-width:0, un nombre largo empuja el ítem flex a su ancho
   intrínseco y desborda la columna del grid (visto en "Nuestro equipo"
   a 2 columnas en mobile) en vez de ajustarse al espacio disponible. */
.experto-card--row .experto-card__body {
	min-width: 0;
}
.experto-card--row .experto-card__name {
	font-weight: 700;
	font-size: 1rem;
}
.experto-card--row .experto-card__position {
	font-weight: 700;
	color: var(--wp--preset--color--text);
}
.experto-card__link:hover .experto-card__img,
.experto-card__link:focus-visible .experto-card__img {
	transform: scale(1.04);
	filter: grayscale(0);
}
.experto-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.experto-card__name {
	font-family: var(--wp--preset--font-family--primary);
	font-weight: 500;
	font-size: 1.125rem;
	line-height: 1.25;
	color: var(--wp--preset--color--text-heading);
}
.experto-card__position {
	font-size: 0.875rem;
	color: var(--wp--preset--color--text);
}
.experto-card__areas {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--text-muted);
}
.experto-card__areas--stacked {
	display: flex;
	flex-direction: column;
}

/* -----------------------------------------------------------------
   Tarjeta de entrada de Actualidad — compartida por
   acf/featured-posts, acf/post-archive y el estilo "actualidad" de
   acf/related. Muestra fecha + lugar cuando la entrada es un evento.
   ----------------------------------------------------------------- */
.post-card {
	height: 100%;
}
.post-card__link {
	display: flex;
	flex-direction: row;
	gap: 0.85rem;
	height: 100%;
	text-decoration: none;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--white);
	border-top: 5px solid var(--wp--preset--color--text-muted);
	box-sizing: border-box;
	font-size: 24px;
	padding: 20px;
	box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.10);
}
.post-card__media {
	display: block;
	overflow: hidden;
	position: relative;
	/* background-color: var(--wp--preset--color--bg-secondary); */
}
.post-card__img {
	aspect-ratio: 8 / 12;
	max-width: 60%;
	width: 380px;
	/* height: 453px; */
	margin: 2rem 0 0 0;
	object-fit: cover;
	transition: transform 320ms var(--wp--custom--motion--easing--standard, ease);
}
.post-card__link:hover .post-card__img,
.post-card__link:focus-visible .post-card__img {
	transform: scale(1.04);
}
/* Más específico que el "a:hover { text-decoration: underline }"
   global — sin esto, gana el global por especificidad (un elemento
   "a" cuenta más que una clase a igual nº de clases). */
.post-card__link:hover,
.post-card__link:focus-visible {
	text-decoration: none;
}
.post-card__link:hover .post-card__title,
.post-card__link:focus-visible .post-card__title {
	color: var(--wp--preset--color--primary);
}
.post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.4rem;
}
.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.post-card__cat {
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}
/* En las tarjetas grande/media la categoría es una etiqueta con fondo. */
.post-card--lg .post-card__cat,
.post-card--md .post-card__cat {
	display: inline-block;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	padding: 0.3rem 0.65rem;
	border-radius: var(--wp--custom--radius--4, 2px);
	font-size: 0.6875rem;
}
.post-card__date {
	color: var(--wp--preset--color--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 12px;
}
.post-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0rem;
	margin-top: auto;
	padding-top: 30px;
}
.arrow-post-card {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--wp--preset--color--primary);
}
.arrow-post-card svg {
	width: 20px;
	height: 20px;
}
/* Los titulares (columna de la derecha) no llevan flecha. */
.post-card--sm .arrow-post-card {
	display: none;
}
.post-card__title {
	font-family: var(--wp--preset--font-family--primary);
	font-weight: 700;
	font-size: 18px;
	padding-top: 10px;
	line-height: 1.3;
	color: var(--wp--preset--color--text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.post-card__excerpt {
	font-size: 0.9rem;
	color: var(--wp--preset--color--text);
}
.post-card__place {
	font-size: 0.85rem;
	color: var(--wp--preset--color--text);
}
.post-card__place::before {
	content: "";
	display: inline-block;
	width: 0.35rem;
	height: 0.35rem;
	margin-right: 0.4rem;
	border-radius: 50%;
	background-color: var(--wp--preset--color--primary);
	vertical-align: middle;
}
.post-card--sm .post-card__link {
	gap: 0.3rem;
	padding: 0.9rem 0;
}
.post-card--sm .post-card__title {
	font-size: 1rem;
}
/* Línea punteada entre titulares — no antes del primero. */
.post-card--sm + .post-card--sm {
	border-top: 1px dotted var(--wp--preset--color--border);
}

/* =================================================================
   19. Ramón y Cajal — Navegación principal del header

   Enlaces de primer nivel siempre en blanco; ítem activo con fondo
   #29282D al 50%; hover con fondo #B1A7A3. Se usa !important en color
   y fondo para ganar al sistema de color del header base
   (transparent / scrolled / light).
   ================================================================= */
.site-header__nav .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding-inline: 15px;
	border-radius: var(--wp--custom--radius--4, 2px);
	color: var(--wp--preset--color--white) !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.site-header__nav .wp-block-navigation-item__content:hover,
.site-header__nav .wp-block-navigation-item__content:focus,
.site-header__nav .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--white) !important;
	background-color: var(--wp--preset--color--text-muted) !important; /* #B1A7A3 */
}

.site-header__nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.site-header__nav .wp-block-navigation-item.current-menu-ancestor > .wp-block-navigation-item__content,
.site-header__nav .wp-block-navigation-item[aria-current] > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--white) !important;
	background-color: color-mix(in srgb, var(--wp--preset--color--bg-dark) 50%, transparent) !important; /* #29282D @ 50% */
	font-weight: var(--fw-semibold, 600);
}

/* El submenú desplegable (si algún ítem lo usa) hereda el fondo de marca */
.site-header__nav .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--text-muted);
	border: 0;
}
.site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: var(--wp--preset--color--white) !important;
}
