/**
 * ULL — Hero editorial, 1.3.0
 *
 * Contrato: una clase «ull-hero-editorial» en la SECCIÓN nativa de Divi.
 * Las filas, proporciones de columnas, contenido y fondo se editan en Divi.
 * Este componente define el eje editorial y su escala responsive.
 * Los !important protegen estas decisiones frente al CSS generado por Divi.
 * No se necesitan clases auxiliares en las filas o en los módulos.
 */

/* La presencia de una sección editorial activa la integración del header. */
body:not(.wp-admin):has(#main-content .et_pb_section.ull-hero-editorial) #page-container {
	padding-top: 0 !important;
}

body:not(.wp-admin):has(#main-content .et_pb_section.ull-hero-editorial) .ull-cool-header:not(.is-scrolled):not(.is-menu-open) {
	position: absolute;
	background: transparent;
	box-shadow: none;
}

body:not(.wp-admin):has(#main-content .et_pb_section.ull-hero-editorial) .ull-cool-header.is-scrolled {
	position: fixed;
}

body:not(.wp-admin) #page-container #main-content .et_pb_section.ull-hero-editorial {
	--ull-hero-height: 720px;
	--ull-hero-content-width: 1440px;
	--ull-hero-title-size: 56px;
	--ull-hero-title-leading: 1.08;
	--ull-button-width: 240px;
	--ull-button-height: 48px;
	--ull-button-padding: 0 26px;
	--ull-button-font-size: 16px;
	position: relative;
	box-sizing: border-box;
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	min-height: var(--ull-hero-height) !important;
	height: auto !important;
	padding-block: max(var(--ull-cool-header-height), 120px) 54px !important;
	overflow: hidden;
	text-align: left;
}

/* Un mismo eje para texto, botones y contenido de las sucesivas filas. */
body:not(.wp-admin) #page-container #main-content .et_pb_section.ull-hero-editorial > .et_pb_row {
	position: relative;
	width: 90% !important;
	max-width: var(--ull-hero-content-width) !important;
	margin: 0 auto !important;
	padding: 27px 0 !important;
}

body:not(.wp-admin) #page-container #main-content .et_pb_section.ull-hero-editorial > .et_pb_row > .et_pb_column {
	min-width: 0;
}

body:not(.wp-admin) #page-container #main-content .et_pb_section.ull-hero-editorial :is(.et_pb_text_inner, .et_pb_heading) {
	text-align: left !important;
}

body:not(.wp-admin) #page-container #main-content .et_pb_section.ull-hero-editorial h1 {
	max-width: 100% !important;
	margin: 0 0 18px !important;
	font-size: var(--ull-hero-title-size) !important;
	line-height: var(--ull-hero-title-leading) !important;
	letter-spacing: -.02em !important;
}

/* El párrafo normal hereda la escala; precios, etiquetas y paneles conservan
 * la tipografía de sus componentes comerciales. */
body:not(.wp-admin) #page-container #main-content .et_pb_section.ull-hero-editorial .et_pb_text:not(.ayc-clima-status) .et_pb_text_inner p:not([class]) {
	font-size: 18px !important;
	line-height: 1.6 !important;
}

body:not(.wp-admin) #page-container #main-content .et_pb_section.ull-hero-editorial .et_pb_button_module_wrapper {
	width: var(--ull-button-width) !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	align-self: flex-start !important;
	text-align: left !important;
}

@media (max-width: 980px) {
	body:not(.wp-admin) #page-container #main-content .et_pb_section.ull-hero-editorial {
		--ull-hero-title-size: 44px;
	}

	body:not(.wp-admin) #page-container #main-content .et_pb_section.ull-hero-editorial > .et_pb_row {
		flex-direction: column !important;
		gap: 30px !important;
	}

	body:not(.wp-admin) #page-container #main-content .et_pb_section.ull-hero-editorial > .et_pb_row > .et_pb_column {
		width: 100% !important;
		max-width: 100% !important;
		flex-basis: auto !important;
		margin-inline: 0 !important;
	}

	/* Sólo columnas vacías de composición: nunca módulos con contenido. */
	body:not(.wp-admin) #page-container #main-content .et_pb_section.ull-hero-editorial > .et_pb_row > .et_pb_column_empty {
		display: none !important;
	}
}

@media (max-width: 767px) {
	body:not(.wp-admin) #page-container #main-content .et_pb_section.ull-hero-editorial {
		--ull-hero-height: 760px;
		--ull-hero-title-size: 34px;
		--ull-hero-title-leading: 1.1;
	}
}
