/*
 * Hilanderias de Exportacion - estilos temporales sobre Twenty Twenty-Five.
 * Reproducen logo, colores y tipografia de la configuracion original de Themify Ultra.
 * Borrar este archivo y hila-estilos.php cuando se instale Themify Ultra.
 */
:root {
	--hila-texto: #2f2736;
	--hila-rojo: #ce1b1f;
	--hila-rojo-boton: #ee2312;
	--hila-ancho: 1160px;
}

/* 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; }

/* ---------- 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(--hila-ancho) !important;
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}
header.wp-block-template-part .wp-block-site-title a {
	display: block;
	width: 300px;
	height: 55px;
	background: url(../uploads/2022/10/logo-home2.png) no-repeat left center / contain;
	text-indent: -9999px;
	overflow: hidden;
	white-space: nowrap;
}
header.wp-block-template-part .wp-block-navigation {
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	gap: 2em;
}
header.wp-block-template-part .wp-block-navigation a {
	color: var(--hila-texto) !important;
	text-decoration: none;
}
/* La hoja original del personalizador fija line-height: 60px en la cabecera */
header.wp-block-template-part,
header.wp-block-template-part .wp-block-navigation,
header.wp-block-template-part .wp-block-navigation li,
header.wp-block-template-part .wp-block-navigation a {
	line-height: 1.4 !important;
}
header.wp-block-template-part .wp-block-navigation a:hover,
header.wp-block-template-part .wp-block-navigation a[aria-current="page"] {
	color: var(--hila-rojo) !important;
}
/* Menu siempre visible en linea (4 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;
	flex-wrap: wrap;
	gap: 2em;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 782px) {
	header.wp-block-template-part .wp-block-group.alignwide { flex-wrap: wrap !important; justify-content: center !important; gap: 6px; }
	header.wp-block-template-part .wp-block-site-title a { width: 220px; height: 40px; }
	header.wp-block-template-part .wp-block-navigation { font-size: 11px; }
	header.wp-block-template-part .wp-block-navigation ul { gap: .4em .8em; justify-content: center; }
}

/* ---------- Paginas del constructor a ancho completo ---------- */
body.page main#wp--skip-link--target {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	max-width: none !important;
	width: 100% !important;
}
body.page main#wp--skip-link--target > .wp-block-group {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}
body.page .wp-block-post-title { display: none; }
body.page .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.page .wp-block-post-content > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
body.page .themify_builder_content { width: 100%; }
body.page .module_row:not(.fullwidth) > .row_inner {
	width: 94%;
	max-width: var(--hila-ancho);
	margin-left: auto;
	margin-right: auto;
}
body.page .module_row { margin-top: 0; }
.themify_builder .module-text .tb_text_wrap > :first-child { margin-top: 0; }
/* Al saltar a una seccion (#contactanos), dejar espacio para la cabecera fija */
[data-anchor] { scroll-margin-top: 95px; }
/* 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; }

/* ---------- Tipografia y botones ---------- */
body.page { font-family: "Montserrat", Arial, sans-serif; color: var(--hila-texto); }
.wpcf7 input[type="submit"],
.wp-element-button,
.themify_builder .ui.builder_button {
	background: var(--hila-rojo-boton);
	color: #fff;
	border: 0;
}
.wpcf7 input[type="submit"]:hover,
.wp-element-button:hover,
.themify_builder .ui.builder_button:hover {
	background: #000;
	color: #fff;
}

/* ---------- Pie de pagina del tema ---------- */
/* Las paginas ya incluyen su propio pie ("Todos los derechos reservados") */
body.page footer.wp-block-template-part { display: none; }
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;
}
