/**
 * Panel del menú (Museo del Traje).
 *
 * Panel a pantalla completa con fondo claro que abre la hamburguesa. Su
 * contenido llega desde el patrón «Panel del menú», así que aquí solo hay
 * maquetación: nada de contenido escrito a mano.
 */

.mega-menu {
	position: fixed;
	inset: 0;
	z-index: 80;
	isolation: isolate;
	background-color: #faf7f2;
	color: #1a1a1a;
	opacity: 0;
	visibility: hidden;
	transform: translateY( -1.5% );
	transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

/*
 * El panel se inserta al final de la parte de cabecera, así que vive dentro de
 * `<header class="wp-block-template-part">`. Esa cabecera es `sticky` con
 * `z-index: 40`, y un `z-index` no escapa del contexto de apilamiento de su
 * padre: por eso la barra de vitrinas y el botón «volver arriba» (150) se
 * pintaban por encima del menú abierto, por mucho que el panel subiera.
 *
 * Mientras el menú está abierto se sube el contexto de la cabecera entera —y
 * con él el panel— por encima de esas capas. Al cerrarlo todo vuelve a su sitio,
 * así que el orden de capas del resto de la página no cambia. En la portada la
 * cabecera no está posicionada, así que allí basta con el propio panel.
 */
body.mdt-menu-open .wp-site-blocks > header.wp-block-template-part,
body.mdt-menu-open .mega-menu {
	z-index: 600;
}

.mega-menu__background {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	margin: 0;
	pointer-events: none;
}

.mega-menu__background img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

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

.mega-menu__scroll {
	height: 100%;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: clamp( 1.1rem, 2vw, 2rem ) clamp( 1.25rem, 4vw, 4rem ) clamp( 0.9rem, 1.4vw, 1.25rem );
}

/* ---------------------------------------------------------------------------
 * Cabecera del panel
 * ------------------------------------------------------------------------- */
.mega-menu__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem clamp( 1.5rem, 4vw, 4rem );
	margin: 0 0 clamp( 1rem, 2vw, 1.5rem );
	padding-bottom: clamp( 1rem, 2vw, 1.5rem );
	border-bottom: 1px solid rgba( 26, 26, 26, 0.1 );
}

.mega-menu__marca {
	flex: 1 1 320px;
	min-width: 0;
	margin: 0;
}

.mega-menu__logo,
.mega-menu__marca .wp-block-site-logo {
	margin: 0 0 0.6rem;
}

body .mega-menu__logo img,
body .mega-menu__marca .custom-logo {
	display: block;
	width: auto;
	height: clamp( 30px, 3vw, 42px );
	max-width: none;
}

.mega-menu__description {
	margin: 0;
	max-width: 62ch;
	color: #555;
	font-size: clamp( 0.7rem, 0.82vw, 0.78rem );
	line-height: 1.5;
}

/* Accesos rápidos */
.mega-menu__quick {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.75rem;
	margin: 0;
}

/*
 * Acciones de la cabecera del panel: los accesos rápidos y la × de cerrar.
 */
body .mega-menu__acciones {
	display: flex;
	align-items: center;
	gap: clamp( 1rem, 2vw, 1.75rem );
	margin: 0;
}

body .mega-menu .mega-menu__acciones-cerrar {
	position: fixed;
	top: 16px;
	right: 16px;
	left: auto;
	z-index: 90;
	display: flex;
	align-items: center;
	margin: 0;
}

/*
 * La barra de administración va fija arriba, con un z-index muy alto, y tapaba
 * los primeros 16px de la X a quien tiene la sesión iniciada. Se desplaza la X
 * por debajo de ella (32px en escritorio, 46px cuando la barra es la de móvil).
 */
body.admin-bar .mega-menu .mega-menu__acciones-cerrar {
	top: calc(32px + 16px);
}

@media (max-width: 782px) {
	body.admin-bar .mega-menu .mega-menu__acciones-cerrar {
		top: calc(46px + 16px);
	}
}

/* Icono de cada acceso rápido, delante del texto. */
.mega-menu__quick-btn .wp-block-button__link::before {
	content: "";
	display: inline-block;
	flex: 0 0 17px;
	width: 17px;
	height: 17px;
	margin-right: 0.55rem;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* Visita 360: una flecha circular, el gesto de girar alrededor de la pieza. */
.mega-menu__icono--visita360 .wp-block-button__link::before {
	-webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-2.64-6.36'/%3E%3Cpolyline points='21 3 21 9 15 9'/%3E%3C/svg%3E" );
	mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-2.64-6.36'/%3E%3Cpolyline points='21 3 21 9 15 9'/%3E%3C/svg%3E" );
}

/* Plano de localización: un mapa desplegado. */
.mega-menu__icono--plano .wp-block-button__link::before {
	-webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='1 6 8 3 16 6 23 3 23 18 16 21 8 18 1 21 1 6'/%3E%3Cline x1='8' y1='3' x2='8' y2='18'/%3E%3Cline x1='16' y1='6' x2='16' y2='21'/%3E%3C/svg%3E" );
	mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='1 6 8 3 16 6 23 3 23 18 16 21 8 18 1 21 1 6'/%3E%3Cline x1='8' y1='3' x2='8' y2='18'/%3E%3Cline x1='16' y1='6' x2='16' y2='21'/%3E%3C/svg%3E" );
}

/*
 * Introducción: un libro abierto. Es la puerta de entrada al recorrido y va la
 * primera de los accesos rápidos, aunque en el patrón del menú solo estén
 * guardados los otros tres: este botón lo añade el plugin (creaktiva-bloques),
 * porque apunta a un Área y su dirección cambia con el idioma.
 */
.mega-menu__icono--introduccion .wp-block-button__link::before {
	-webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E" );
	mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E" );
}

/* Histórico: un reloj. */
.mega-menu__icono--historico .wp-block-button__link::before {
	-webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 16 14'/%3E%3C/svg%3E" );
	mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 16 14'/%3E%3C/svg%3E" );
}

/*
 * Recursos didácticos: una pieza de puzle. Lleva una pestaña arriba y otra a la
 * derecha para que se reconozca de un vistazo, incluso a 17 px.
 */
.mega-menu__icono--recursos .wp-block-button__link::before {
	-webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h5a2.5 2.5 0 0 1 5 0h5v5a2.5 2.5 0 0 1 0 5v5H4z'/%3E%3C/svg%3E" );
	mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h5a2.5 2.5 0 0 1 5 0h5v5a2.5 2.5 0 0 1 0 5v5H4z'/%3E%3C/svg%3E" );
}

.mega-menu__quick-btn {
	margin: 0;
}

.mega-menu__quick-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	padding: 0.62rem 1rem;
	background-color: transparent;
	border: 1px solid rgba( 26, 26, 26, 0.28 );
	border-radius: 3px;
	color: #1a1a1a;
	font-size: clamp( 0.66rem, 0.78vw, 0.76rem );
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.mega-menu__quick-btn .wp-block-button__link:hover,
.mega-menu__quick-btn .wp-block-button__link:focus {
	background-color: #1a1a1a;
	border-color: #1a1a1a;
	color: #faf7f2;
}

/* ---------------------------------------------------------------------------
 * Menú principal dentro del panel
 * ------------------------------------------------------------------------- */
.mega-menu__principal {
	margin: 0 0 clamp( 1.5rem, 3vw, 2.25rem );
}

.mega-menu__principal .wp-block-navigation__container {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem clamp( 1rem, 2.5vw, 2.5rem );
	font-size: clamp( 0.78rem, 1vw, 0.95rem );
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mega-menu__principal .wp-block-navigation-item__content {
	color: #1a1a1a;
	text-decoration: none;
}

.mega-menu__principal .wp-block-navigation-item__content:hover {
	color: #8b4513;
}

/* ---------------------------------------------------------------------------
 * Rejilla de Áreas
 * ------------------------------------------------------------------------- */
.mega-menu__grid {
	margin: 0;
}

.mega-menu__grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat( 5, minmax( 0, 1fr ) );
	gap: clamp( 0.9rem, 1.6vw, 1.4rem ) clamp( 1.5rem, 3vw, 3rem );
	align-items: start;
	margin: 0;
	padding: 0;
	list-style: none;
}

/*
 * La introducción no está en la rejilla: es el botón de los accesos rápidos, y
 * el plugin la descuenta de la lista de Áreas para que no se cuente como sala.
 */
.mega-menu__area {
	margin: 0;
}

.mega-menu__area-title {
	margin: 0 0 0.6rem;
	font-size: clamp( 0.68rem, 0.8vw, 0.78rem );
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.35;
	text-transform: uppercase;
}

.mega-menu__area-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.mega-menu__area-title a:hover {
	color: #8b4513;
}
.wp-block-creaktiva-area-secciones.mega-menu__area-content {
	margin: 0 !important;
}

.mega-menu__sections {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mega-menu__section {
	margin: 0;
}

.mega-menu__accordion {
	margin: 0;
}

.mega-menu__vitrinas-panel {
	overflow: hidden;
}

.mega-menu__accordion.is-animated > .mega-menu__vitrinas-panel {
	max-height: 0;
	opacity: 0;
	transition: max-height 0.32s ease, opacity 0.22s ease;
}

.mega-menu__accordion.is-animated[open] > .mega-menu__vitrinas-panel {
	opacity: 1;
}

.mega-menu__accordion.is-animated.is-closing .mega-menu__caret {
	transform: none;
}

.mega-menu__section-toggle {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
	padding: 0.24rem 0;
	color: #6b6b6b;
	cursor: pointer;
	font-size: clamp( 0.62rem, 0.72vw, 0.7rem );
	font-weight: 500;
	letter-spacing: 0.08em;
	list-style: none;
	text-transform: uppercase;
	transition: color 0.2s ease;
}

.mega-menu__section-toggle::-webkit-details-marker {
	display: none;
}

.mega-menu__section-toggle:hover,
.mega-menu__accordion[open] > .mega-menu__section-toggle {
	color: #1a1a1a;
}

.mega-menu__section-toggle:focus-visible {
	outline: 2px solid #1a1a1a;
	outline-offset: 2px;
}

.mega-menu__caret {
	width: 0;
	height: 0;
	flex: 0 0 auto;
	border-top: 5px solid currentColor;
	border-right: 4px solid transparent;
	border-left: 4px solid transparent;
	transition: transform 0.2s ease;
}

.mega-menu__accordion[open] .mega-menu__caret {
	transform: rotate(180deg);
}

.mega-menu__vitrinas {
	margin: 0.25rem 0 0.5rem 0.65rem;
	padding: 0 0 0 0.75rem;
	border-left: 1px solid rgba( 26, 26, 26, 0.15 );
	list-style: none;
}

.mega-menu__vitrinas li {
	margin: 0;
}

.mega-menu__section-link {
	display: block;
	padding: 0.24rem 0;
	color: #6b6b6b;
	font-size: clamp( 0.62rem, 0.72vw, 0.7rem );
	font-weight: 500;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s ease;
}

.mega-menu__section-link:hover {
	color: #1a1a1a;
}

/* ---------------------------------------------------------------------------
 * Pie del panel
 * ------------------------------------------------------------------------- */
.mega-menu__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: clamp( 2rem, 4vw, 3.5rem );
	padding-top: 1.25rem;
	border-top: 1px solid rgba( 26, 26, 26, 0.1 );
}

.mega-menu__social {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mega-menu__social .wp-social-link {
	background-color: transparent;
	color: #555;
}

.mega-menu__social .wp-social-link a {
	color: inherit;
}

.mega-menu__social .wp-social-link:hover {
	color: #1a1a1a;
	transform: none;
}

/*
 * Botón de cerrar: una × en la esquina, como en el diseño de referencia. El
 * texto del botón se oculta a la vista pero sigue en el documento.
 */
.mega-menu__cerrar {
	margin: 0;
}

.mega-menu__cerrar .wp-block-button__link {
	position: relative;
	display: inline-block;
	width: 36px;
	height: 36px;
	padding: 0;
	overflow: hidden;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: #1a1a1a;
	text-indent: -999em;
	white-space: nowrap;
	cursor: pointer;
}

.mega-menu__cerrar .wp-block-button__link::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Cline x1='5' y1='5' x2='19' y2='19'/%3E%3Cline x1='19' y1='5' x2='5' y2='19'/%3E%3C/g%3E%3C/svg%3E" );
	mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Cline x1='5' y1='5' x2='19' y2='19'/%3E%3Cline x1='19' y1='5' x2='5' y2='19'/%3E%3C/g%3E%3C/svg%3E" );
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transform: translate( -50%, -50% );
}

.mega-menu__cerrar .wp-block-button__link:hover,
.mega-menu__cerrar .wp-block-button__link:focus {
	background-color: transparent;
	color: #8b4513;
}

body.mdt-menu-open {
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
 * Editor
 *
 * En el lienzo del editor el panel se muestra siempre desplegado y en su sitio:
 * si no, sería imposible editarlo (en la web nace oculto).
 * ------------------------------------------------------------------------- */
.editor-styles-wrapper .mega-menu,
.block-editor-block-preview__content .mega-menu {
	position: relative !important;
	opacity: 1;
	visibility: visible;
	transform: none;
	height: auto;
}

.editor-styles-wrapper .mega-menu__scroll,
.block-editor-block-preview__content .mega-menu__scroll {
	position: static !important;
	height: auto;
	overflow: visible;
}

/* El overlay no debe ocupar la vista al editar una plantilla que incluye el header. */
.editor-styles-wrapper .wp-block-template-part .mega-menu,
.block-editor-block-preview__content .wp-block-template-part .mega-menu {
	display: none !important;
}

.editor-styles-wrapper .mega-menu > .wp-block-creaktiva-mega-menu-background,
.block-editor-block-preview__content .mega-menu > .wp-block-creaktiva-mega-menu-background {
	position: absolute !important;
	inset: 0 !important;
	z-index: 0 !important;
	height: 100% !important;
	margin: 0 !important;
	pointer-events: none;
}

.editor-styles-wrapper .mega-menu > .mega-menu__scroll,
.block-editor-block-preview__content .mega-menu > .mega-menu__scroll {
	position: relative !important;
	z-index: 1;
}

.editor-styles-wrapper .mega-menu__bar,
.block-editor-block-preview__content .mega-menu__bar,
.editor-styles-wrapper .mega-menu__acciones,
.block-editor-block-preview__content .mega-menu__acciones {
	position: static !important;
}

.editor-styles-wrapper .mega-menu .mega-menu__acciones-cerrar,
.block-editor-block-preview__content .mega-menu .mega-menu__acciones-cerrar {
	position: absolute !important;
	top: 16px !important;
	right: 16px !important;
	left: auto !important;
	z-index: 90 !important;
}

/* Polylang muestra nombres completos en su preview del editor. */
.editor-styles-wrapper .mega-menu__footer .wp-block-polylang-language-switcher .components-disabled > ul,
.block-editor-block-preview__content .mega-menu__footer .wp-block-polylang-language-switcher .components-disabled > ul {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.editor-styles-wrapper .mega-menu__footer .wp-block-polylang-language-switcher .components-disabled > ul > li,
.block-editor-block-preview__content .mega-menu__footer .wp-block-polylang-language-switcher .components-disabled > ul > li {
	margin: 0;
	font-size: 0;
	line-height: 1;
}

.editor-styles-wrapper .mega-menu__footer .wp-block-polylang-language-switcher .components-disabled > ul > li > span,
.block-editor-block-preview__content .mega-menu__footer .wp-block-polylang-language-switcher .components-disabled > ul > li > span {
	display: none;
}

.editor-styles-wrapper .mega-menu__footer .wp-block-polylang-language-switcher .components-disabled > ul > li::after,
.block-editor-block-preview__content .mega-menu__footer .wp-block-polylang-language-switcher .components-disabled > ul > li::after {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.editor-styles-wrapper .mega-menu__footer .wp-block-polylang-language-switcher .components-disabled > ul > li:first-child::after,
.block-editor-block-preview__content .mega-menu__footer .wp-block-polylang-language-switcher .components-disabled > ul > li:first-child::after {
	content: "ES";
	color: #1a1a1a;
}

.editor-styles-wrapper .mega-menu__footer .wp-block-polylang-language-switcher .components-disabled > ul > li:nth-child(2),
.block-editor-block-preview__content .mega-menu__footer .wp-block-polylang-language-switcher .components-disabled > ul > li:nth-child(2) {
	margin-left: 0.6rem;
	padding-left: 0.6rem;
	border-left: 1px solid #ddd;
}

.editor-styles-wrapper .mega-menu__footer .wp-block-polylang-language-switcher .components-disabled > ul > li:nth-child(2)::after,
.block-editor-block-preview__content .mega-menu__footer .wp-block-polylang-language-switcher .components-disabled > ul > li:nth-child(2)::after {
	content: "EN";
	color: #8a8a8a;
}


/****** Mirando atrás y Recursos ******/
.mega-menu__quick-btn.mega-menu__icono--recursos, .mega-menu__quick-btn.mega-menu__icono--historico {
	background-color: #fbfbfa;
	background-image: linear-gradient( 150deg, #ffffff 0%, #f7f3ea 55%, #f0eadd 100% );
	border-radius: 3px;
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
@media ( max-width: 1200px ) {
	.mega-menu__grid .wp-block-post-template {
		grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 1024px ) {
	.mega-menu__grid .wp-block-post-template {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 900px ) {
	.mega-menu__grid .wp-block-post-template {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.mega-menu__bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.mega-menu__quick {
		justify-content: flex-start;
	}
}

@media ( max-width: 640px ) {
	body .mega-menu .mega-menu__bar {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
		gap: 1rem;
		margin-bottom: 1.5rem;
		padding-bottom: 1.25rem;
		margin-left: 0px !important;
		;
	}

	body .mega-menu .mega-menu__marca,
	body .mega-menu .mega-menu__acciones {
		display: contents;
	}

	.mega-menu .mega-menu__logo,
	.mega-menu .mega-menu__marca .wp-block-site-logo {
		grid-column: 1;
		grid-row: 1;
		margin: 0;
	}

	.mega-menu .mega-menu__quick {
		display: grid;
		grid-column: 1;
		grid-row: 2;
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
		width: 100%;
		justify-content: stretch;
	}

	.mega-menu .mega-menu__description {
		grid-column: 1;
		grid-row: 3;
		max-width: 62ch;
		margin: 0;
	}

	.mega-menu__grid .wp-block-post-template {
		grid-template-columns: 1fr;
	}

	.mega-menu__footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.mega-menu__quick-btn {
		width: 100%;
	}

	.mega-menu__quick-btn .wp-block-button__link {
		width: 100%;
		justify-content: flex-start;
	}

	body .mega-menu__marca .custom-logo {
		width: auto;
		height: auto;
		max-width: calc( 100vw - 80px );
		max-height: 34px;
	}
}

/* ---------------------------------------------------------------------------
 * Accesibilidad: sin animación si el usuario lo prefiere
 * ------------------------------------------------------------------------- */
@media ( prefers-reduced-motion: reduce ) {
	.mega-menu,
	.mega-menu__quick-btn .wp-block-button__link,
	.mega-menu__area-title a,
	.mega-menu__section-link,
	.mega-menu__section-toggle,
	.mega-menu__caret,
	.mega-menu__vitrinas-panel {
		transition: none;
	}
}
