/* =========================================================================
   Siente Natura · Cabeceras (A franja verde · B foto con velo · C crema con hoja)
   ========================================================================= */

.sn-oculto { display: none !important; }
/* En el editor de Elementor, los títulos antiguos ocultos se ven en gris */
.sn-oculto-editor { opacity: .35; outline: 1px dashed #A9BBA9; outline-offset: 2px; }

/* ---------- Botón amarillo del menú ---------- */
body.sn-estilo .sn-menu-cta { display: flex; align-items: center; margin-left: 8px; }
body.sn-estilo .sn-menu-cta > a,
body.sn-estilo .elementor-nav-menu--main .sn-menu-cta > a.elementor-item {
	background: var(--sn-amarillo) !important;
	color: var(--sn-verde) !important;
	border-radius: 999px !important;
	padding: 10px 18px !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	white-space: nowrap;
}
body.sn-estilo .sn-menu-cta > a:hover { background: var(--sn-blanco) !important; }
body.sn-estilo .elementor-nav-menu--main .sn-menu-cta > a::before,
body.sn-estilo .elementor-nav-menu--main .sn-menu-cta > a::after { display: none !important; }
body.sn-estilo .elementor-nav-menu--dropdown .sn-menu-cta { margin: 10px 16px 14px; }
body.sn-estilo .elementor-nav-menu--dropdown .sn-menu-cta > a { justify-content: center; display: block; text-align: center; }

.sn-cabecera {
	--sn-verde: #1D3A2C; --sn-verde-osc: #16301F; --sn-verde-med: #33533F; --sn-hoja: #6FAE7C;
	--sn-salvia: #A9BBA9; --sn-crema: #E9EFE6; --sn-fondo: #F6F7F2; --sn-amarillo: #F2C94C;
	--sn-texto: #2E3B32; --sn-texto-suave: #5B665D; --sn-blanco: #FFFFFF;
	--sn-titulos: "Fraunces", Georgia, "Times New Roman", serif;
	--sn-cuerpo: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
}
.elementor-widget-sn_cabecera { width: 100% !important; max-width: 100% !important; }
.elementor-widget-sn_cabecera > .elementor-widget-container { margin: 0 !important; padding: 0 !important; }
.sn-cabecera.sn-cabecera--ancha { width: 100vw !important; max-width: 100vw; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
html:has(.sn-cabecera--ancha) { overflow-x: clip; }

/* El título y el subtítulo siempre alineados a la izquierda dentro de la cabecera,
   aunque en Elementor estuvieran centrados */
.sn-cabecera__titulos,
.sn-cabecera__titulos .elementor-element,
.sn-cabecera__titulos .elementor-widget-container,
.sn-cabecera__titulos .e-con,
.sn-cabecera__titulos .e-con-inner,
.sn-cabecera__titulos h1, .sn-cabecera__titulos h2, .sn-cabecera__titulos h3,
.sn-cabecera__titulos p, .sn-cabecera__titulos .e-heading-base {
	text-align: left !important;
	--text-align: left !important;
	--align-items: flex-start !important;
	--justify-content: flex-start !important;
	align-items: flex-start !important;
	justify-content: flex-start !important;
	align-self: stretch !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* ---------- Estructura común de la franja ---------- */
.sn-cabecera {
	--sn-hueco: 0px;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 48px;
	padding: calc(56px + var(--sn-hueco)) max(20px, 5vw) 56px;
	margin: 0 0 40px;
	min-height: 360px;
}
.sn-cabecera--foto { grid-template-columns: minmax(0, 1fr) minmax(280px, 460px); }
.sn-cabecera__texto { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sn-cabecera__titulos { display: flex; flex-direction: column; gap: 12px; }
.sn-cabecera__titulos .elementor-element,
.sn-cabecera__titulos .e-con { margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important; background: none !important; min-height: 0 !important; }
.sn-cabecera__titulos .e-con::before { display: none !important; }

.sn-cabecera .sn-cabecera__titulos .sn-titulo {
	margin: 0 !important;
	font-family: var(--sn-titulos) !important;
	font-weight: 600 !important;
	font-size: clamp(42px, 6.4vw, 80px) !important;
	line-height: 1.02 !important;
	letter-spacing: .005em !important;
	text-align: left !important;
}
.sn-cabecera .sn-cabecera__titulos .sn-subtitulo {
	margin: 0 !important;
	font-family: var(--sn-cuerpo) !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	letter-spacing: .14em !important;
	text-align: left !important;
}

.sn-miga { display: flex; flex-wrap: wrap; gap: 6px 10px; font: 600 14px/1.3 var(--sn-cuerpo); }
.sn-miga a { text-decoration: none !important; }
.sn-miga a:hover { text-decoration: underline !important; }
.sn-cabecera__raya { display: block; width: 64px; height: 5px; border-radius: 3px; background: var(--sn-amarillo); }
.sn-cabecera__foto { position: relative; z-index: 1; background-size: cover; background-position: center; }
.sn-cabecera__hoja { position: absolute; pointer-events: none; border-radius: 60% 0 60% 0; }

/* =========================================================================
   C · CREMA CON LA FOTO EN FORMA DE HOJA
   ========================================================================= */

body.sn-estilo.sn-cab-c .elementor-location-header,
body.sn-estilo.sn-cab-c header.site-header,
body.sn-estilo.sn-cab-c #site-header {
	background-color: var(--sn-verde) !important;
	border-bottom: 0;
}
body.sn-estilo.sn-cab-c .elementor-location-header .e-con,
body.sn-estilo.sn-cab-c .elementor-location-header .elementor-section { background-color: transparent !important; }
body.sn-estilo.sn-cab-c .elementor-nav-menu--main .elementor-item,
body.sn-estilo.sn-cab-c .site-navigation > ul > li > a,
body.sn-estilo.sn-cab-c .elementor-location-header .e-n-menu-title-text { color: var(--sn-crema) !important; fill: var(--sn-crema) !important; }
body.sn-estilo.sn-cab-c .elementor-nav-menu--main .elementor-item:hover,
body.sn-estilo.sn-cab-c .elementor-nav-menu--main .elementor-item.elementor-item-active,
body.sn-estilo.sn-cab-c .site-navigation .current-menu-item > a,
body.sn-estilo.sn-cab-c .site-navigation .current-menu-ancestor > a { color: var(--sn-amarillo) !important; box-shadow: none; }
body.sn-estilo.sn-cab-c .elementor-menu-toggle,
body.sn-estilo.sn-cab-c .site-navigation-toggle { color: var(--sn-crema) !important; fill: var(--sn-crema) !important; }
/* El logo sobre un círculo claro para que se lea sobre el verde */
body.sn-estilo.sn-cab-c .elementor-location-header .elementor-widget-image img,
body.sn-estilo.sn-cab-c .elementor-location-header .elementor-widget-theme-site-logo img,
body.sn-estilo.sn-cab-c .custom-logo,
body.sn-estilo.sn-cab-b .elementor-location-header .elementor-widget-image img,
body.sn-estilo.sn-cab-b .elementor-location-header .elementor-widget-theme-site-logo img,
body.sn-estilo.sn-cab-b .custom-logo {
	/* Recuadro claro con esquinas suaves alrededor del logo: no recorta nada */
	box-sizing: content-box !important;
	background: var(--sn-fondo);
	border-radius: 16px !important;
	clip-path: none !important;
	padding: 10px !important;
	object-fit: contain;
}

.sn-cabecera.sn-v-c { background: var(--sn-crema); min-height: 400px; }
.sn-cabecera.sn-v-c .sn-titulo { color: var(--sn-verde) !important; }
.sn-cabecera.sn-v-c .sn-subtitulo { color: var(--sn-verde-med) !important; }
.sn-v-c .sn-miga { color: var(--sn-texto-suave); }
.sn-v-c .sn-miga a { color: var(--sn-texto-suave) !important; }
.sn-v-c .sn-miga__actual { color: var(--sn-verde); }
.sn-v-c .sn-cabecera__foto { height: 320px; border-radius: 60% 0 60% 0; background-color: var(--sn-salvia); }
.sn-cabecera--foto.sn-v-c .sn-cabecera__hoja {
	width: 120px; height: 120px; background: var(--sn-hoja); opacity: .5;
	right: calc(max(20px, 5vw) + min(460px, 34vw) - 100px); bottom: 26px; z-index: 0;
}
.sn-cabecera.sn-v-c:not(.sn-cabecera--foto) .sn-cabecera__hoja {
	width: 220px; height: 220px; background: var(--sn-hoja); opacity: .25; right: 8%; top: 50%; transform: translateY(-50%);
}

/* =========================================================================
   A · FRANJA VERDE DEL PIE
   ========================================================================= */

.sn-cabecera.sn-v-a {
	background: var(--sn-verde);
	padding-bottom: 92px;
	grid-template-columns: minmax(0, 1fr);
}
.sn-v-a .sn-cabecera__foto { display: none; }
.sn-cabecera.sn-v-a .sn-titulo { color: var(--sn-crema) !important; }
.sn-cabecera.sn-v-a .sn-subtitulo { color: var(--sn-amarillo) !important; }
.sn-v-a .sn-cabecera__raya { display: none; }
.sn-v-a .sn-miga,
.sn-v-a .sn-miga a { color: var(--sn-salvia) !important; }
.sn-v-a .sn-miga__actual { color: var(--sn-crema); }
.sn-v-a .sn-cabecera__hoja {
	width: 220px; height: 220px; right: 9%; top: 40px; background: var(--sn-verde-med);
	box-shadow: 70px 130px 0 -55px rgba(111, 174, 124, .55);
}
/* borde ondulado */
.sn-cabecera.sn-v-a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px;
	background: var(--sn-fondo);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 60' preserveAspectRatio='none'><path d='M0 40 C 240 0, 480 70, 720 34 S 1120 10, 1280 36 L1280 60 L0 60 Z'/></svg>") center / 100% 100% no-repeat;
	        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 60' preserveAspectRatio='none'><path d='M0 40 C 240 0, 480 70, 720 34 S 1120 10, 1280 36 L1280 60 L0 60 Z'/></svg>") center / 100% 100% no-repeat;
}

/* =========================================================================
   B · FOTO DE LA PÁGINA CON VELO VERDE
   ========================================================================= */

body.sn-estilo.sn-cab-b .elementor-location-header,
body.sn-estilo.sn-cab-b header.site-header,
body.sn-estilo.sn-cab-b #site-header { background-color: var(--sn-verde) !important; border-bottom: 0; }
body.sn-estilo.sn-cab-b .elementor-location-header .e-con,
body.sn-estilo.sn-cab-b .elementor-location-header .elementor-section { background-color: transparent !important; }
body.sn-estilo.sn-cab-b .elementor-nav-menu--main .elementor-item,
body.sn-estilo.sn-cab-b .site-navigation > ul > li > a,
body.sn-estilo.sn-cab-b .elementor-location-header .e-n-menu-title-text { color: var(--sn-crema) !important; fill: var(--sn-crema) !important; }
body.sn-estilo.sn-cab-b .elementor-nav-menu--main .elementor-item.elementor-item-active,
body.sn-estilo.sn-cab-b .site-navigation .current-menu-item > a,
body.sn-estilo.sn-cab-b .site-navigation .current-menu-ancestor > a { color: var(--sn-crema) !important; box-shadow: inset 0 -3px 0 var(--sn-amarillo); }
body.sn-estilo.sn-cab-b .elementor-menu-toggle,
body.sn-estilo.sn-cab-b .site-navigation-toggle { color: var(--sn-crema) !important; fill: var(--sn-crema) !important; }

.sn-cabecera.sn-v-b {
	grid-template-columns: minmax(0, 1fr);
	align-items: end;
	min-height: 440px;
	background: var(--sn-verde);
	padding-top: calc(120px + var(--sn-hueco));
}
.sn-v-b .sn-cabecera__foto {
	position: absolute; inset: 0; z-index: 0;
}
.sn-v-b .sn-cabecera__foto::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(22, 48, 31, .35) 0%, rgba(29, 58, 44, .15) 35%, rgba(29, 58, 44, .88) 100%);
}
.sn-cabecera.sn-v-b .sn-titulo { color: var(--sn-fondo) !important; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.sn-cabecera.sn-v-b .sn-subtitulo { color: var(--sn-amarillo) !important; }
.sn-v-b .sn-miga,
.sn-v-b .sn-miga a { color: var(--sn-crema) !important; }
.sn-v-b .sn-cabecera__raya { order: 3; width: 40px; height: 3px; }
.sn-v-b .sn-cabecera__hoja { display: none; }

/* ---------- Móvil ---------- */
@media (max-width: 860px) {
	.sn-cabecera--foto { grid-template-columns: minmax(0, 1fr); }
	.sn-cabecera { padding-top: calc(36px + var(--sn-hueco)); padding-bottom: 40px; gap: 28px; min-height: 0; }
	.sn-v-c .sn-cabecera__foto { height: 240px; max-width: 420px; width: 100%; }
	.sn-cabecera--foto.sn-v-c .sn-cabecera__hoja { display: none; }
	.sn-cabecera.sn-v-a { padding-bottom: 72px; }
	.sn-v-a .sn-cabecera__hoja { width: 140px; height: 140px; right: -30px; top: 20px; opacity: .6; }
	.sn-cabecera.sn-v-b { min-height: 360px; padding-top: calc(110px + var(--sn-hueco)); }
	body.sn-estilo .sn-menu-cta { margin-left: 0; }
}
