/*
 * LaMagna 1.8.2 — correcciones verificadas contra la web pública.
 * Mantiene verde botella, burdeos, marfil y oro envejecido.
 */

:root {
	--lamagna-green: #0f322a;
	--lamagna-burgundy: #4f151f;
	--lamagna-gold: #a8852d;
	--lamagna-ivory: #f5f1e8;
	--lamagna-paper: #fffdf8;
}

/* La 1.8.1 aplicaba a la vez burdeos y marfil al héroe. Este selector excluye
   expresamente los héroes verdes de la regla para fondos claros. */
.lamagna-paper:not(.lamagna-dark):not(.lamagna-burgundy):not(.lamagna-hero) h1.elementor-heading-title,
.lamagna-paper:not(.lamagna-dark):not(.lamagna-burgundy):not(.lamagna-hero) h2.elementor-heading-title,
.lamagna-native-section--ivory h1.elementor-heading-title,
.lamagna-native-section--ivory h2.elementor-heading-title,
.lamagna-native-section--ivory h3.elementor-heading-title {
	color: var(--lamagna-burgundy) !important;
}

body.lamagna-site .lamagna-paper.lamagna-hero h1.elementor-heading-title,
body.lamagna-site .lamagna-paper.lamagna-hero h2.elementor-heading-title,
body.lamagna-site .lamagna-paper.lamagna-hero h3.elementor-heading-title {
	color: var(--lamagna-ivory) !important;
}

body.lamagna-site .lamagna-hero h1.elementor-heading-title em {
	color: #d9b95f !important;
}

/* Cabecera compacta: conserva logo, redes y navegación, pero evita el vacío de
   más de 450 px detectado en escritorio. */
body.lamagna-site .lamagna-header {
	min-height: 0 !important;
	padding-block: 18px !important;
}

body.lamagna-site .lamagna-header > .e-con-inner,
body.lamagna-site .lamagna-header.e-con {
	gap: 14px !important;
}

body.lamagna-site .lamagna-header > .e-con:first-child {
	min-height: 0 !important;
	padding-bottom: 12px !important;
	padding-top: 12px !important;
}

body.lamagna-site .lamagna-header .elementor-widget-image {
	margin: 0 auto !important;
	max-width: 170px !important;
	width: 170px !important;
}

body.lamagna-site .lamagna-header .elementor-widget-image img {
	display: block;
	height: auto !important;
	max-height: 142px !important;
	object-fit: contain;
	width: 170px !important;
}

/* Ritmo más compacto sin sustituir las secciones ni su contenido. */
body.lamagna-site .lamagna-paper:not(.lamagna-hero),
body.lamagna-site .lamagna-dark,
body.lamagna-site .lamagna-burgundy,
body.lamagna-site .lamagna-native-section {
	padding-bottom: clamp(46px, 5.2vw, 72px) !important;
	padding-top: clamp(46px, 5.2vw, 72px) !important;
}

body.lamagna-site .lamagna-hero {
	min-height: clamp(560px, 72vh, 760px) !important;
	position: relative;
	overflow: hidden;
}

/* Remate ornamental completo y discreto. Se utiliza una pieza ya incluida en
   el proyecto, sin marcos alrededor de fotografías. */
body.lamagna-site .lamagna-hero::after {
	background: url('../images/ornaments-180/leaf-scroll.webp') center / contain no-repeat;
	content: '';
	height: clamp(150px, 19vw, 270px);
	opacity: .12;
	pointer-events: none;
	position: absolute;
	right: clamp(18px, 3vw, 46px);
	top: clamp(34px, 7vw, 86px);
	transform: rotate(8deg);
	width: clamp(115px, 15vw, 210px);
	z-index: 0;
}

body.lamagna-site .lamagna-hero > .e-con-inner,
body.lamagna-site .lamagna-hero > .elementor-container {
	position: relative;
	z-index: 1;
}

body.lamagna-site .lamagna-hero__copy::after {
	background: url('../images/ornaments-180/divider-gold.webp') left center / contain no-repeat;
	content: '';
	display: block;
	height: 38px;
	margin-top: 8px;
	max-width: 250px;
	opacity: .5;
	width: min(55vw, 250px);
}

/* Tarjetas editoriales sin marcos decorativos alrededor de las fotografías. */
.lamagna-native-events .elementor-post,
.lamagna-native-posts .elementor-post {
	border: 0 !important;
	border-top: 3px solid var(--lamagna-gold) !important;
	border-radius: 0 !important;
}

.lamagna-native-gallery .e-gallery-item,
.lamagna-native-gallery .e-gallery-image,
.lamagna-native-gallery a,
.lamagna-native-gallery img {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Botones con caja y línea base homogéneas. */
body.lamagna-site .elementor-button,
body.lamagna-site .lamagna-button {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	line-height: 1.15 !important;
	min-height: 48px;
	text-align: center;
}

@media (max-width: 1024px) {
	body.lamagna-site .lamagna-header .elementor-widget-image,
	body.lamagna-site .lamagna-header .elementor-widget-image img {
		max-width: 145px !important;
		width: 145px !important;
	}

	body.lamagna-site .lamagna-hero {
		min-height: auto !important;
	}
}

@media (max-width: 767px) {
	body.lamagna-site .lamagna-header {
		padding-block: 12px !important;
	}

	body.lamagna-site .lamagna-header .elementor-widget-image,
	body.lamagna-site .lamagna-header .elementor-widget-image img {
		max-height: 92px !important;
		max-width: 110px !important;
		width: 110px !important;
	}

	body.lamagna-site .lamagna-paper:not(.lamagna-hero),
	body.lamagna-site .lamagna-dark,
	body.lamagna-site .lamagna-burgundy,
	body.lamagna-site .lamagna-native-section {
		padding-bottom: 42px !important;
		padding-top: 42px !important;
	}

	body.lamagna-site .lamagna-hero::after {
		display: none;
	}

	body.lamagna-site .lamagna-hero__copy::after {
		height: 30px;
		max-width: 190px;
		width: 58vw;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lamagna-native-events .elementor-post,
	.lamagna-native-posts .elementor-post,
	.lamagna-native-gallery .e-gallery-image {
		transition: none !important;
	}
}
