/*
 * IPL - estilos temporales sobre Twenty Twenty-Five.
 * Reproducen los colores, tipografia y logo de la configuracion original de Themify Ultra.
 * Borrar este archivo y ipl-estilos.php cuando se instale Themify Ultra.
 */
:root {
	--ipl-azul: #003577;
	--ipl-verde: #8cc53f;
	--ipl-ancho: 1160px;
}

/* ---------- Cabecera fija, logo y menu ---------- */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
	box-shadow: 0 1px 8px rgba(0, 0, 0, .08);
}
body.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar header.wp-block-template-part { top: 46px; }
}
header.wp-block-template-part .wp-block-group.alignwide {
	max-width: var(--ipl-ancho) !important;
	padding-top: 6px !important;
	padding-bottom: 6px !important;
}
header.wp-block-template-part .wp-block-site-title a {
	display: block;
	width: 250px;
	height: 72px;
	background: url(../uploads/2021/08/2-1.png) no-repeat left center / contain;
	text-indent: -9999px;
	overflow: hidden;
	white-space: nowrap;
}
header.wp-block-template-part .wp-block-navigation {
	font-family: "Comfortaa", Arial, sans-serif;
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
	gap: 2em;
}
header.wp-block-template-part .wp-block-navigation a {
	color: var(--ipl-azul) !important;
	text-decoration: none;
}
header.wp-block-template-part .wp-block-navigation a:hover,
header.wp-block-template-part .wp-block-navigation a[aria-current="page"] {
	color: var(--ipl-verde) !important;
}
/* Menu siempre visible en linea (solo tiene 2 enlaces): sin boton hamburguesa */
header.wp-block-template-part .wp-block-navigation__responsive-container-open,
header.wp-block-template-part .wp-block-navigation__responsive-container-close {
	display: none !important;
}
header.wp-block-template-part .wp-block-navigation__responsive-container {
	display: block !important;
	position: static !important;
	background: transparent !important;
	padding: 0 !important;
	inset: auto !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
}
header.wp-block-template-part .wp-block-navigation__responsive-dialog,
header.wp-block-template-part .wp-block-navigation__responsive-container-content {
	display: block !important;
	padding: 0 !important;
	margin: 0 !important;
}
header.wp-block-template-part .wp-block-navigation ul {
	display: flex !important;
	flex-direction: row !important;
	gap: 2em;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 600px) {
	header.wp-block-template-part .wp-block-group.alignwide { flex-wrap: wrap !important; justify-content: center !important; gap: 4px; }
	header.wp-block-template-part .wp-block-site-title a { width: 170px; height: 50px; }
	header.wp-block-template-part .wp-block-navigation { font-size: 13px; }
	header.wp-block-template-part .wp-block-navigation ul { gap: 1em; }
}

/* ---------- Paginas del constructor a ancho completo ---------- */
body.tb_fullwidth main#wp--skip-link--target {
	margin-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
body.tb_fullwidth main#wp--skip-link--target > .wp-block-group {
	padding: 0 !important;
	max-width: none !important;
}
body.tb_fullwidth .wp-block-post-title { display: none; }
/* Recortar el desbordamiento horizontal en html; si body tiene overflow hidden, la cabecera fija deja de funcionar */
html { overflow-x: clip; }
body { overflow: visible !important; }
body.tb_fullwidth .wp-block-post-content {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
	width: 100% !important;
}
body.tb_fullwidth main#wp--skip-link--target,
body.tb_fullwidth main#wp--skip-link--target > .wp-block-group {
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-bottom: 0 !important;
	max-width: none !important;
	width: 100% !important;
}
/* Las imagenes del constructor no deben salirse de su columna */
.themify_builder .module-image img,
.themify_builder .module-image .image-wrap { max-width: 100%; height: auto; }
/* Estas paginas ya incluyen su propio pie original */
body.tb_fullwidth footer.wp-block-template-part { display: none; }
body.tb_fullwidth .wp-block-post-content > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
body.tb_fullwidth .themify_builder_content { width: 100%; }
body.tb_fullwidth .module_row:not(.fullwidth) > .row_inner {
	width: 94%;
	max-width: var(--ipl-ancho);
	margin-left: auto;
	margin-right: auto;
}
body.tb_fullwidth .module_row { margin-top: 0; }
/* Al saltar a una seccion (#contactanos), dejar espacio para la cabecera fija */
[data-anchor] { scroll-margin-top: 90px; }
.themify_builder .module-text .tb_text_wrap > :first-child { margin-top: 0; }

/* Titulos que en el original tenian line-height 0 y ahora se encimaban */
.themify_builder .tb_77aq271.module-text,
.themify_builder .tb_77aq271.module-text p,
.themify_builder .tb_rfvk91.module-text,
.themify_builder .tb_rfvk91.module-text p {
	line-height: 1.25 !important;
}

/* ---------- Botones y formulario ---------- */
.wpcf7 input[type="submit"],
.wp-element-button {
	background: var(--ipl-verde);
	color: #fff;
	border: 0;
	border-radius: 30px;
	padding: .7em 2em;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover,
.wp-element-button:hover {
	background: #000;
	color: #fff;
}

/* ---------- Pie de pagina ---------- */
footer.wp-block-template-part {
	background: var(--ipl-azul);
	color: #fff;
	margin-top: 0 !important;
}
footer.wp-block-template-part a { color: #fff; }
footer.wp-block-template-part .wp-block-site-title a {
	font-family: "Comfortaa", Arial, sans-serif;
	font-weight: 700;
	text-decoration: none;
}
/* Enlaces de relleno del tema (Blog, FAQs, Tienda...) y credito del tema */
footer.wp-block-template-part .wp-block-navigation,
footer.wp-block-template-part .wp-block-group:has(> p > a[href*="wordpress.org"]) {
	display: none !important;
}
footer.wp-block-template-part > .wp-block-group { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
footer.wp-block-template-part .wp-block-spacer { display: none; }
