.comunidad-hero-section {
	position: relative;
	width: 100%;
	min-height: 60vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	padding-top: 0; /* Sin padding-top para que el header quede por encima */
	padding-bottom: 80px;
}

.comunidad-hero-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 1;
}

.comunidad-hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-top: 5.5rem; /* Espacio para el header fijo en el contenido */
}

@media (min-width: 768px) {
	.comunidad-hero-content {
		padding-top: 7.5rem; /* Espacio para el header fijo en desktop */
	}
}

.comunidad-hero-title {
	color: #FFFFFF;
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.comunidad-hero-subtitle {
	color: #FFFFFF;
	font-size: 1rem;
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
	margin-top: 1rem;
}

@media (min-width: 768px) {
	.comunidad-hero-title {
		font-size: 3rem;
	}
	.comunidad-hero-subtitle {
		font-size: 1.125rem;
	}
}

@media (min-width: 1024px) {
	.comunidad-hero-title {
		font-size: 3.75rem;
	}
}

/* Header fixed y transparente cuando NO está scrolled */
body.single-comunidad_aef .site-header:not(.scrolled) {
	position: fixed;
	background-color: transparent;
}

/* Estilos de texto blanco solo cuando NO está scrolled */
body.single-comunidad_aef .site-header:not(.scrolled) .header-nav .nav-link,
body.single-comunidad_aef .site-header:not(.scrolled) .header-nav .nav-link svg,
body.single-comunidad_aef .site-header:not(.scrolled) .header-nav .nav-link-button,
body.single-comunidad_aef .site-header:not(.scrolled) .header-nav .nav-link-button svg,
body.single-comunidad_aef .site-header:not(.scrolled) .action-button-secondary,
body.single-comunidad_aef .site-header:not(.scrolled) .action-button-primary,
body.single-comunidad_aef .site-header:not(.scrolled) .mobile-menu-icon,
body.single-comunidad_aef .site-header:not(.scrolled) .mobile-menu-icon svg,
body.single-comunidad_aef .site-header:not(.scrolled) .mobile-menu-icon svg path {
	color: #FFFFFF !important;
	stroke: #FFFFFF !important;
}

body.single-comunidad_aef .site-header:not(.scrolled) .action-button-primary {
	background-color: #2563eb !important;
	border-color: #2563eb !important;
}

body.single-comunidad_aef .site-header:not(.scrolled) .action-button-secondary {
	border-color: #FFFFFF !important;
	background-color: transparent !important;
}

body.single-comunidad_aef .site-header:not(.scrolled) .search-button svg path {
	stroke: #FFFFFF !important;
}

body.single-comunidad_aef .site-header:not(.scrolled) .header-logo img {
	filter: brightness(0) invert(1);
}

body.single-comunidad_aef.has-hero .site-header {
	background-color: transparent !important;
}

/* Comentario: páginas hijas de premios-aef necesitan padding-top normal para que el header sea visible */
body.single-comunidad_aef.premios-child #page {
	padding-top: 5.5rem !important; /* Altura aproximada del header en mobile */
}

@media (min-width: 768px) {
	body.single-comunidad_aef.premios-child #page {
		padding-top: 7.5rem !important; /* Altura del header en desktop */
	}
}

/* Comentario: mantener el ancho original del contenido (igual que páginas normales de comunidad) */
body.single-comunidad_aef.premios-child .news-detail-wrapper {
	max-width: 100% !important; /* Usar todo el ancho del container (1200px) en lugar de 900px */
}

/* Comentario: centrar breadcrumbs igual que en noticias (usar container en lugar de container-large) */
body.single-comunidad_aef.premios-child .breadcrumb .container-large {
	max-width: 1200px !important; /* Mismo ancho que container de noticias */
}

/* Comentario: header no debe ser transparente en páginas hijas de premios-aef (sin hero) */
body.single-comunidad_aef.premios-child .site-header {
	background-color: #ffffff !important;
}

body.single-comunidad_aef.premios-child .site-header:not(.scrolled) {
	background-color: #ffffff !important;
}

/* Comentario: texto del header debe ser oscuro en páginas hijas de premios-aef (sin hero) */
body.single-comunidad_aef.premios-child .site-header:not(.scrolled) .header-nav .nav-link,
body.single-comunidad_aef.premios-child .site-header:not(.scrolled) .header-nav .nav-link-button {
	color: #111827 !important;
}

body.single-comunidad_aef.premios-child .site-header:not(.scrolled) .header-nav .nav-link svg,
body.single-comunidad_aef.premios-child .site-header:not(.scrolled) .header-nav .nav-link-button svg {
	color: #111827 !important;
	stroke: #111827 !important;
}

body.single-comunidad_aef.premios-child .site-header:not(.scrolled) .action-button-primary {
	color: #ffffff !important;
	background-color: #2563eb !important;
	border-color: #2563eb !important;
}

body.single-comunidad_aef.premios-child .site-header:not(.scrolled) .action-button-secondary {
	color: #2563eb !important;
	border-color: #2563eb !important;
	background-color: transparent !important;
}

body.single-comunidad_aef.premios-child .site-header:not(.scrolled) .search-button svg path {
	stroke: #111827 !important;
}

body.single-comunidad_aef.premios-child .site-header:not(.scrolled) .header-logo img {
	filter: none !important;
}

body.single-comunidad_aef.premios-child .site-header:not(.scrolled) .mobile-menu-icon,
body.single-comunidad_aef.premios-child .site-header:not(.scrolled) .mobile-menu-icon svg,
body.single-comunidad_aef.premios-child .site-header:not(.scrolled) .mobile-menu-icon svg path {
	color: #111827 !important;
	stroke: #111827 !important;
}

@media (max-width: 768px) {
	.comunidad-hero-section {
		min-height: 50vh;
		padding-bottom: 60px;
	}
	
	.comunidad-hero-content {
		padding-top: 5.5rem; /* Espacio para el header fijo en móvil */
	}
	
	.comunidad-hero-title {
		font-size: 1.875rem;
	}
}

