/*
Theme Name: Hello Elementor Child (Mavita)
Theme URI: https://mavita.es
Description: Tema hijo de Hello Elementor para mavita.es. Cabecera, pie y plantilla de entradas propias (sustituyen al Theme Builder de Elementor Pro) y ajustes de jerarquía de encabezados.
Author: Microvalencia
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ------------------------------------------------------------------
   2026-10-20 · Jerarquía de encabezados.
   Se cambiaron las etiquetas (h1/h2/h3/div/p) de varios encabezados de
   Elementor sin tipografía fijada. Estas reglas conservan el tamaño que
   tenían con la etiqueta anterior para que el diseño no cambie.
   ------------------------------------------------------------------ */

/* Antes h2 (1.5em) → ahora h1 o div */
.elementor-element-9c205ee .elementor-heading-title,
.elementor-element-e9fa778 .elementor-heading-title,
.elementor-element-8c78a6e .elementor-heading-title,
.elementor-element-636a7e2 .elementor-heading-title,
.elementor-element-e569d1a .elementor-heading-title,
.elementor-element-67daf98 .elementor-heading-title,
.elementor-element-e5c48af .elementor-heading-title,
.elementor-element-47c7c58 .elementor-heading-title {
	font-size: 1.5em;
	font-weight: bold;
}

/* Antes h4 (1em) → ahora h2 (portada y pie) */
.elementor-element-fa454f3 .elementor-heading-title,
.elementor-element-47dc2a9 .elementor-heading-title,
.elementor-element-d2cafa0 .elementor-heading-title,
.elementor-element-78d47c0 .elementor-heading-title,
.elementor-element-f4acfb1 .elementor-heading-title {
	font-size: 1em;
	font-weight: bold;
}

/* Logo en texto de la cabecera: antes h4 → ahora div (peso ya fijado en Elementor) */
.elementor-element-5fe76cc .elementor-heading-title {
	font-size: 1em;
}

/* Portada: aviso (antes h3 → p) y bloque de horario (h3 → h2, h4 → p) */
.elementor-widget-text-editor p.mv-aviso {
	margin: 1em 0;
}
.elementor-widget-text-editor h2.mv-horario {
	font-size: 1.17em;
	font-weight: bold;
	margin: 1em 0;
}
.elementor-widget-text-editor p.mv-horario-texto {
	font-size: 1em;
	font-weight: bold;
	margin: 1.33em 0;
}

/* Cartas: subtítulos de la carta, antes h4 → ahora h3 */
.elementor-widget-text-editor h3 {
	font-size: 1em;
	font-weight: bold;
	margin: 1.33em 0;
}

/* Widget de categorías (barra lateral de novedades): antes h5 → h2 */
.elementor-widget-wp-widget-categories h2 {
	font-size: 0.83em;
	font-weight: bold;
}

/* ==================================================================
   CABECERA, PIE Y ENTRADAS PROPIAS (sustituyen al Theme Builder de
   Elementor Pro). Colores y fuentes: variables globales del kit de
   Elementor con valor de reserva.
   ================================================================== */

:root {
	--mv-primary: var(--e-global-color-primary, #134B96);
	--mv-secondary: var(--e-global-color-secondary, #232426);
	--mv-text: var(--e-global-color-text, #393B3D);
	--mv-accent: var(--e-global-color-accent, #4393D0);
	--mv-font: "Trebuchet MS", Sans-serif;
}

.mv-container {
	max-width: 1140px;
	margin: 0 auto;
	box-sizing: border-box;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

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

.mv-header {
	position: relative;
	z-index: 100;
	background: #ffffff;
	border-bottom: 2px solid #E9F3FA;
	border-radius: 0 0 2px 0;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}
.mv-header__inner {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	position: relative;
}
.mv-brand {
	flex: 0 0 14.825%;
	padding: 10px;
	box-sizing: border-box;
}
.mv-nav {
	flex: 0 0 85.175%;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 10px 0;
	box-sizing: border-box;
}
.mv-brand__link {
	display: block;
	text-decoration: none;
}
.mv-brand__name,
.mv-brand__tagline {
	display: block;
	font-family: var(--mv-font);
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	color: var(--mv-primary);
}
.mv-brand__name {
	font-size: 1em;
}
.mv-brand__tagline {
	font-size: 14px;
}

.mv-menu,
.mv-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mv-menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
}
.mv-menu > li {
	position: relative;
}
.mv-menu a {
	position: relative;
	z-index: 0;
	display: block;
	padding: 13px 20px;
	font-family: var(--mv-font);
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: var(--mv-primary);
	transition: color 0.3s;
}
/* Puntero "fondo" con fundido, como en Elementor Pro */
.mv-menu > li > a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: #8FC9F5;
	opacity: 0;
	transition: opacity 0.3s;
}
.mv-menu > li > a:hover,
.mv-menu > li > a:focus,
.mv-menu > li.current-menu-item > a,
.mv-menu > li.current-menu-ancestor > a,
.mv-menu > li.current_page_parent > a {
	color: #ffffff;
}
.mv-menu > li > a:hover::before,
.mv-menu > li > a:focus::before,
.mv-menu > li.current-menu-item > a::before,
.mv-menu > li.current-menu-ancestor > a::before,
.mv-menu > li.current_page_parent > a::before {
	opacity: 1;
}
.mv-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	margin-left: 0.5em;
	vertical-align: middle;
	border: 5px solid transparent;
	border-top-color: currentColor;
	border-bottom: 0;
}
/* Desplegable (escritorio) */
.mv-menu > li > ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #ffffff;
	box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);
	z-index: 9997;
	font-size: 13px;
}
.mv-menu > li:hover > ul,
.mv-menu > li:focus-within > ul {
	display: block;
	animation: mv-fade 0.3s;
}
.mv-menu ul a {
	font-weight: 500;
	text-transform: none;
	color: #33373d;
	border-inline-start: 8px solid transparent;
}
.mv-menu ul a:hover,
.mv-menu ul a:focus,
.mv-menu ul li.current-menu-item > a {
	background: #55595c;
	color: #ffffff;
}
@keyframes mv-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
/* Selector de idioma (Transposh) incrustado en el menú */
.mv-menu li.menu-item-object-gs_sim {
	padding: 0 10px;
}
.mv-menu li.menu-item-object-gs_sim select {
	font-family: var(--mv-font);
}

/* Botón del menú (tablet y móvil) */
.mv-nav__toggle {
	display: none;
	margin-left: auto;
	align-items: center;
	justify-content: center;
	padding: 0.25em;
	border: 0;
	border-radius: 3px;
	background: #62B6F5;
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.mv-nav__toggle:hover,
.mv-nav__toggle:focus {
	background: #62B6F5;
	color: #ffffff;
}
.mv-nav__icon {
	width: 1em;
	height: 1em;
	line-height: 1;
}
.mv-nav__icon--close {
	display: none;
}
.mv-nav--open .mv-nav__icon--open {
	display: none;
}
.mv-nav--open .mv-nav__icon--close {
	display: inline-block;
}

@media (max-width: 1024px) {
	.mv-nav__toggle {
		display: flex;
	}
	.mv-menu {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		background: #ffffff;
		box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);
		z-index: 9997;
		font-size: 13px;
	}
	.mv-nav--open .mv-menu {
		display: flex;
		animation: mv-fade 0.3s;
	}
	.mv-menu a,
	.mv-menu ul a {
		white-space: normal;
		border-inline-start: 8px solid transparent;
	}
	.mv-menu > li > a::before {
		display: none;
	}
	.mv-menu > li > a:hover,
	.mv-menu > li > a:focus,
	.mv-menu > li.current-menu-item > a,
	.mv-menu > li.current-menu-ancestor > a,
	.mv-menu > li.current_page_parent > a {
		background: #55595c;
		color: #ffffff;
	}
	.mv-menu > li > ul,
	.mv-menu > li:hover > ul,
	.mv-menu > li:focus-within > ul {
		display: block;
		position: static;
		min-width: 0;
		box-shadow: none;
		animation: none;
	}
	.mv-menu ul a {
		padding-left: 40px;
	}
	.mv-menu li.menu-item-object-gs_sim {
		padding: 10px 20px;
	}
}
@media (max-width: 767px) {
	.mv-brand {
		flex-basis: 60%;
	}
	.mv-nav {
		flex-basis: 40%;
	}
}

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

.mv-footer {
	font-family: var(--mv-font);
	color: var(--mv-text);
	clear: both;
}
.mv-shape {
	position: absolute;
	left: 0;
	width: 100%;
	line-height: 0;
	overflow: hidden;
	direction: ltr;
}
.mv-shape--bottom {
	bottom: -1px;
}
.mv-shape svg {
	display: block;
	position: relative;
	left: 50%;
	width: calc(100% + 1.3px);
	transform: translateX(-50%);
}

.mv-footer-top {
	position: relative;
	background: #F0F0F0;
	padding: 20px 0 30px;
	min-height: 1px;
}
.mv-footer-top .mv-shape__fill {
	fill: #E2E2E2;
}

.mv-footer-main {
	background-color: #E2E2E2;
	background-position: center center;
	background-repeat: no-repeat;
	padding: 40px 0;
}
.mv-footer-main__cols {
	display: flex;
	flex-wrap: wrap;
}
.mv-footer-col {
	flex: 0 0 33.3333%;
	padding: 10px;
	box-sizing: border-box;
}
.mv-footer__title {
	margin: 0 0 20px;
	font-family: var(--mv-font);
	font-weight: 600;
	font-size: 1em;
	line-height: 1;
	color: var(--mv-primary);
}
.mv-contact {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mv-contact li {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0 0 6px;
	font-weight: 400;
	color: var(--mv-secondary);
}
.mv-contact i {
	flex: 0 0 14px;
	width: 14px;
	font-size: 14px;
	text-align: center;
	color: var(--mv-primary);
}
.mv-contact a {
	color: inherit;
	text-decoration: none;
}
.mv-contact a:hover {
	color: var(--mv-accent);
}
.mv-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}
.mv-gallery a {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}
.mv-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s;
}
.mv-gallery a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: opacity 0.8s;
}
.mv-gallery a:hover::after,
.mv-gallery a:focus::after {
	opacity: 1;
}
.mv-legal {
	font-family: "Roboto", Sans-serif;
	font-weight: 400;
	line-height: 12px;
	text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	color: #000000;
}
.mv-legal p {
	margin: 0 0 1em;
}
.mv-legal p:last-child {
	margin-bottom: 0;
}
.mv-legal a {
	color: inherit;
}

.mv-footer-bottom {
	background: #E2E2E2;
	padding: 0 0 30px;
}
.mv-footer-logos {
	display: flex;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
	border-top: 2px solid #6EAAD6;
	margin: 0 10px;
}
.mv-footer-logos > div {
	flex: 0 0 20%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	box-sizing: border-box;
}
.mv-footer-logos img {
	max-width: 100%;
	height: auto;
}
.mv-copyright {
	position: relative;
	padding: 10px;
}
.mv-copyright .mv-shape svg {
	height: 98px;
}
.mv-copyright .mv-shape__fill {
	fill: var(--mv-primary);
}
.mv-copyright__text {
	position: relative;
	margin: 0;
	text-align: center;
	font-family: "Roboto", Sans-serif;
	font-weight: 400;
	line-height: 12px;
	color: #ffffff;
}

@media (max-width: 767px) {
	.mv-footer-col {
		flex-basis: 100%;
	}
	.mv-legal {
		line-height: 16px;
	}
	.mv-footer-logos > div {
		flex-basis: 50%;
	}
	.mv-footer-logos > div:last-child {
		flex-basis: 100%;
	}
	.mv-copyright .mv-shape svg {
		width: calc(300% + 1.3px);
	}
	.mv-copyright__text {
		line-height: 16px;
	}
}

/* ---------- Entrada individual ---------- */

.mv-single .mv-container {
	padding: 0 10px;
}
.mv-single__box {
	background: #ffffff;
	padding: 20px 20px 40px;
	font-family: var(--mv-font);
}
.mv-single__thumb {
	margin: 0 0 20px;
}
.mv-single__thumb img {
	max-width: 100%;
	height: auto;
	display: block;
}
.mv-post-info {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	font-weight: 400;
	color: var(--mv-secondary);
}
.mv-post-info li,
.mv-post-info a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--mv-secondary);
	text-decoration: none;
}
.mv-post-info i {
	width: 14px;
	font-size: 14px;
	text-align: center;
	color: var(--mv-primary);
}
.mv-single__title {
	margin: 0 0 20px;
	font-family: var(--mv-font);
	font-weight: 600;
	line-height: 1;
	color: var(--mv-primary);
}
.mv-single__content {
	margin: 0 0 20px;
	font-weight: 400;
	color: var(--mv-text);
}
.mv-single__content img {
	max-width: 100%;
	height: auto;
}
.mv-post-nav {
	display: flex;
	overflow: hidden;
	border-top: 1px solid #d5d8dc;
	border-bottom: 1px solid #d5d8dc;
	padding: 10px 0;
}
.mv-post-nav__link {
	flex: 1 1 0;
	min-width: 0;
}
.mv-post-nav__link a {
	display: flex;
	align-items: center;
	gap: 15px;
	max-width: 100%;
	text-decoration: none;
}
.mv-post-nav__link--next a {
	justify-content: flex-end;
	text-align: end;
}
.mv-post-nav__sep {
	width: 1px;
	margin: 0 auto;
	background: #d5d8dc;
}
.mv-post-nav__arrow {
	display: flex;
	font-size: 30px;
	color: #d5d8dc;
}
.mv-post-nav__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.mv-post-nav__label {
	font-size: 0.8em;
	font-weight: 400;
	text-transform: uppercase;
	color: var(--mv-text);
	overflow: hidden;
	text-overflow: ellipsis;
}
.mv-post-nav__title {
	font-size: 0.7em;
	color: var(--mv-secondary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
