/*
Theme Name: mtdev-protedoc
Theme URI:
Author: Marta Torre & Team
Author URI:
Description: Block theme developed for the Prote.doc project. Custom WordPress theme built with Full Site Editing and optimized for performance, accessibility and maintainability.
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version:
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mtdev-protedoc
Tags:
*/

.wp-block-navigation-item.current-menu-item a {
	font-weight: 600;
}

mark {
	padding: 4px 7px;
	border-radius: 7px;
}

/* =============================================================================
   BUTTON: Link Arrow (is-style-link-arrow)
   Botón sin fondo que actúa como enlace de texto.
   Icono SVG a la izquierda via ::before. En hover rota -45° (→ a ↗).
   ============================================================================= */

.wp-block-button.is-style-link-arrow .wp-block-button__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding-left: 2.75rem;
	padding-right: 0;
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	text-transform: none;
	text-decoration: underline;
	transition: color var(--wp--custom--transition--duration);
}

.wp-block-button.is-style-link-arrow .wp-block-button__link:hover {
	background-color: transparent !important;
	color: inherit !important;
}

.wp-block-button.is-style-link-arrow .wp-block-button__link::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%) rotate(-45deg);
	width: 2rem;
	height: 2rem;
	background-image: url('./assets/images/arrow-right.svg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	transition: transform var(--wp--custom--transition--duration);
}

.wp-block-button.is-style-link-arrow .wp-block-button__link:hover::before {
	transform: translateY(-50%) rotate(0deg);
}



/* =============================================================================
   NAVIGATION
   ============================================================================= */

.wp-block-navigation__responsive-container-open svg {
	display: none;
}

.wp-block-navigation__responsive-container-open::before {
	content: '';
	display: block;
	width: 78px;
	height: 12px;
	background-image: url("data:image/svg+xml,%3Csvg width='78' height='12' viewBox='0 0 78 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 12V10.7664H78V12H0ZM0 6.51679V5.28321H78V6.51679H0ZM0 1.23357V0H78V1.23357H0Z' fill='%23232323'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}

/* MODULE */
.modulo-list--item {
	position: relative;
	transition: all 0.3s ease;
	padding: 1.5rem 2rem;
	border: 1px solid black;
}

.modulo-list--item::after {
	content: '';
	display: block;
	width: 3rem;
	height: 3rem;
	background-image: url("assets/images/arrow-module.svg");
	background-repeat: no-repeat;
	background-size: contain;
	position: absolute;
	right: 2rem;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s ease;
}

.modulo-list--item:hover {
	background-color: #EEEEE2 !important;
}

.modulo-list--item:hover::after {
	transform: translateY(-50%) rotate(45deg);
}

.modulo-list--item .codigo {
	font-size: var(--wp--custom--fonts--m);
	font-family: var(--wp--preset--font-family--host-grotesk);
 	font-weight: 500;
}

/*
 RESPONSIVE
*/

@media (max-width: 600px) {
	.desktop-only {
		display: none !important;
	}

	.is-layout-grid {
		grid-template-columns: 1fr;
	}

	.footer-mobile-menu {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.modulo-list--item {
		flex-direction: column;
		align-items: start;
		gap: 1rem;
	}
	.modulo-list--item::after {
		width: 2rem;
		height: 2rem;
		top: 2rem;
		right: 2rem;
	}
}

@media (min-width: 600px) {
	.mobile-only {
		display: none !important;
	}
}