/* Estilo de las páginas montadas con Elementor (reproduce el diseño original). */

body.aep-el .elementor .e-con { --gap: 0px; --widgets-spacing: 0px; gap: 0; }
body.aep-el .elementor-widget:not(:last-child) { margin-block-end: 0; }
body.aep-el .elementor img { max-width: 100%; }

/* ---- Cabecera ---- */
body.aep-el .site-header, body.aep-el #masthead { position: static; }
.aep-header { background: var(--colorAzulOscuro); position: relative; z-index: 1000; transition: all .5s; }
.aep-header .aep-header-row > .e-con-inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 12px; }
.aep-header .aep-logo { width: auto; flex: 0 0 auto; text-align: left; }
.aep-header .aep-logo img { height: 66px; width: auto; }
.aep-header .aep-menu { flex: 1 1 auto; width: auto; }
.aep-header .aep-menu a.hfe-menu-item, .aep-header .aep-menu a.hfe-sub-menu-item { color: #fff; font-family: "Roboto Flex", Arial, sans-serif; font-size: 1.25rem; padding: 6px 0 6px 13px; line-height: 1.5; }
.aep-header .aep-menu a:hover { color: #fff; text-decoration: underline; }
.aep-header .hfe-nav-menu-icon, .aep-header .hfe-nav-menu-icon i { color: #fff; font-size: 1.8rem; }
.aep-header .hfe-nav-menu-icon svg { fill: #fff; width: 28px; height: 28px; }
.aep-header .hfe-nav-menu__toggle { margin-left: auto; }

/* Portada: cabecera transparente y fija sobre el carrusel. */
body.home .aep-header { position: fixed; top: 0; left: 0; right: 0; background: transparent; }
body.home.admin-bar .aep-header { top: 32px; }
body.home .aep-header.navbar-scrolled { background: var(--colorAzulOscuro); }

@media (max-width: 1024px) {
	.aep-header { position: relative; }
	.aep-header .aep-menu, .aep-header .aep-menu .elementor-widget-container, .aep-header .hfe-nav-menu { position: static; }
	.aep-header nav.hfe-nav-menu__layout-horizontal:not(.hfe-dropdown) { display: none; }
	.aep-header nav.hfe-dropdown, .aep-header nav.hfe-dropdown-expandible { position: absolute; left: 0; right: 0; top: 100%; background: var(--colorAzulOscuro); }
	.aep-header .aep-menu a.hfe-menu-item { padding: 10px 20px; }
	.aep-header .aep-menu .hfe-nav-menu li { background: var(--colorAzulOscuro); }
}

/* ---- Portada ---- */
.aep-portada-slider .carousel-image-size, .aep-portada-slider .carousel-item { height: 100vh; }
.aep-portada-slider .c-img { height: 100vh !important; object-fit: cover; filter: brightness(.55); }
.aep-ultimas { padding-top: 64px !important; padding-bottom: 64px !important; }
.aep-ultimas-titulo { border-top: 1px solid #000; padding-top: 10px; margin-bottom: 48px !important; }
.aep-ultimas-titulo .elementor-heading-title, .aep-enlaces-titulo .elementor-heading-title { font-family: var(--fuenteTitulos); font-weight: 400; font-size: 2rem; color: var(--colorGrisOscuro); }
.aep-noticias { display: grid; gap: 24px; padding: 0 12px; }
.aep-noticias .card { overflow: hidden; }
.aep-noticias .card img { width: 100%; height: 150px !important; object-fit: cover; }
.aep-noticias--portada .formatoNoticiasPortada .card { height: 300px; }
.aep-noticias--listado .formatoNoticias .card { height: 100%; min-height: 315px; }
.aep-noticias--listado .card h5 a { color: var(--colorNegro); text-decoration: none; }

.aep-barra { background: var(--colorGrisOscuro); padding: 48px 0 !important; margin: 0; }
.aep-barra .aep-barra-row > .e-con-inner { align-items: center; }
.aep-eslogan img { max-height: 140px; object-fit: contain; }
.aep-correo .elementor-icon-list-icon i, .aep-correo .elementor-icon-list-icon svg { color: #fff; fill: #fff; }
.aep-correo .elementor-icon-list-text { color: #fff; font-family: var(--fuentePrincipal); font-size: 1.05rem; overflow-wrap: anywhere; }

.aep-enlaces { padding: 40px 0 40px !important; }
.aep-enlaces-titulo { text-align: center; margin-bottom: 48px !important; }
.aep-enlaces-row > .e-con-inner > .aep-col { padding: 0 12px; }
.aep-enlace { border: 1px solid var(--colorGrisOscuro); border-radius: .95rem; padding: 1.5rem; height: 250px; background: #fff; }
.aep-enlace img { height: 200px; width: 100%; object-fit: contain; filter: brightness(.5); transition: filter 1s; }
.aep-enlace img:hover { filter: brightness(1); }

/* Redes */
.aep-redes .elementor-social-icon { background: transparent; color: #fff; font-size: 1.3rem; }
.aep-redes .elementor-social-icon i { color: #fff; }
.aep-redes .elementor-social-icon svg { fill: #fff; }

/* ---- Páginas interiores ---- */
.aep-banner { margin-bottom: 1.2rem; }
.aep-titulo { text-align: center; padding: 0 16px; }
.aep-titulo .elementor-heading-title { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 3.1rem; font-weight: 400; color: #000; -webkit-text-stroke: 1px #fff; text-shadow: 2px 2px 6px #000; margin: 0; overflow-wrap: break-word; }
.aep-row.aep-dos { padding-top: 16px !important; padding-bottom: 32px !important; }
.aep-dos > .e-con-inner { align-items: flex-start; justify-content: flex-start; }
.aep-dos > .e-con-inner > .aep-col { padding: 0 12px; }
.aep-foto img { width: 100%; border-radius: 1.5rem; padding: .2rem; border: 1px double #ccc; }
.aep-foto { margin-bottom: 4px !important; }
.aep-cec { margin-top: 56px !important; }
.aep-presentacion, .aep-presentacion p { font-family: var(--fuentePrincipal); font-size: 1.15rem; text-align: justify; color: #404040; line-height: 1.5; }
.aep-lista, .aep-intro { color: #404040; }
.aep-btn { margin: 5px 0 !important; }
.aep-btn .elementor-button { background: var(--colorAzulClaro); color: #fff; border-radius: 50rem; padding: 12px 16px; font-family: var(--fuentePrincipal); font-size: 1.15rem; font-weight: 400; width: 100%; line-height: 1.2; }
.aep-btn .elementor-button:hover, .aep-btn .elementor-button:focus { color: #fff; background: var(--colorAzulOscuro); box-shadow: 2px 3px 3px 1px rgba(0,0,0,.5); }

/* Asóciate */
.aep-intro { margin-bottom: 8px !important; }
.aep-cta { background: #eef6fa; border: 2px solid var(--colorAzulOscuro); border-radius: 12px; padding: 20px 24px !important; margin-bottom: 28px; text-align: center; }
.aep-cta .elementor-heading-title, .aep-form-titulo .elementor-heading-title { font-family: var(--fuenteTitulos); font-weight: 400; font-size: 1.75rem; color: var(--colorGrisOscuro); }
.aep-cta p { margin: 8px 0 12px; }
.aep-cta .aep-btn { max-width: 340px; align-self: center; width: 100%; }
.aep-cta .aep-btn-cta .elementor-button { background: var(--colorAzulOscuro); font-weight: 700; }
.aep-form-titulo { text-align: center; margin-bottom: 20px !important; }

/* Contacto */
.aep-tarjetas { padding: 32px 0 !important; }
.aep-tarjetas > .e-con-inner { justify-content: center; align-items: stretch; }
.aep-tarjetas > .e-con-inner > .aep-col { padding: 8px 12px; }
.aep-tarjeta { height: 100%; }
.aep-tarjeta .elementor-widget-container, .aep-tarjeta .elementor-icon-box-wrapper { height: 100%; }
.aep-tarjeta .elementor-icon-box-wrapper { min-height: 18rem; border: 1px solid #000; border-radius: 10px; padding: 28px 15px 15px; background: linear-gradient(180deg, var(--colorAzulClaro), var(--colorAzulOscuro)); text-align: center; justify-content: flex-start; }
.aep-tarjeta .elementor-icon { color: #fff; fill: #fff; font-size: 3.5rem; }
.aep-tarjeta .elementor-icon-box-title { font-family: var(--fuenteTitulos); font-size: 1.3rem; font-weight: 600; color: #fff; margin: 8px 0; }
.aep-tarjeta .elementor-icon-box-description { color: #fff; font-family: var(--fuentePrincipal); font-size: 1.05rem; overflow-wrap: anywhere; }
.aep-mapa { text-align: center; padding: 16px 12px 48px !important; }
.aep-mapa .elementor-heading-title { font-family: var(--fuenteTitulos); font-size: 1.5rem; font-weight: 400; margin-bottom: 8px; }

.aep-listado { padding-top: 32px !important; padding-bottom: 48px !important; }

/* Inscripción, acceso y foro */
.aep-formulario { padding: 24px 16px 56px !important; font-family: var(--fuentePrincipal); font-size: 1.1rem; }
.aep-formulario #bbpress-forums fieldset.bbp-form { width: 100%; padding: 16px 20px; }
.aep-formulario #bbpress-forums fieldset.bbp-form label { display: block; width: auto; margin-bottom: 4px; }
.aep-formulario #bbpress-forums input[type=text], .aep-formulario #bbpress-forums input[type=password] { width: 100%; max-width: 420px; min-height: 42px; }
.aep-formulario button.submit, .aep-formulario .bbp-submit-wrapper button { min-height: 44px; border: 0; background: var(--colorAzulOscuro); color: #fff; padding: 10px 24px; border-radius: 4px; cursor: pointer; }
.aep-formulario img { max-width: 100%; }
.aep-foro-acceso { padding: 20px 24px 0 !important; }
.aep-foro-acceso > .e-con-inner { gap: 12px; }

/* ---- Pie ---- */
.aep-pie-redes { background: var(--colorAzulOscuro); padding: 12px 0 !important; }
.aep-pie { background: #000; color: #fff; font-family: var(--fuentePrincipal); }
.aep-pie-cols { padding: 36px 0 28px !important; }
.aep-pie-cols > .e-con-inner { align-items: flex-start; }
.aep-pie-cols > .e-con-inner > .aep-col { text-align: center; padding: 0 12px; }
.aep-logo-pie img { max-width: 320px; height: auto; margin-bottom: 24px; }
.aep-pie .elementor-heading-title { color: #fff; font-family: var(--fuenteTitulos); font-size: 1.35rem; font-weight: 700; margin: 0 0 22px; }
.aep-pie p { color: #fff; font-size: 1.15rem; line-height: 1.2; margin: 0 0 6px; }
.aep-pie a, .aep-pie a:hover, .aep-pie a:visited { color: #fff; }
.aep-menu-pie a.hfe-menu-item { color: #fff; font-family: var(--fuentePrincipal); font-size: 1.15rem; line-height: 1.3; padding: 3px 0; justify-content: center; }
.aep-menu-pie a:hover { text-decoration: underline; }
.aep-creditos { text-align: center; padding: 8px 16px 24px; }

/* ---- Ganar a los colores y tipografías globales de Elementor ---- */
body.aep-el .aep-header .aep-logo img { height: 82px; }
body.aep-el .aep-header .aep-menu a.hfe-menu-item { color: #fff; fill: #fff; font-family: "Roboto Flex", Arial, sans-serif; font-size: 1.25rem; font-weight: 400; line-height: 1.5; }
body.aep-el .aep-ultimas-titulo .elementor-heading-title, body.aep-el .aep-enlaces-titulo .elementor-heading-title { font-family: var(--fuenteTitulos); font-weight: 400; font-size: 2rem; color: var(--colorGrisOscuro); }
body.aep-el .aep-titulo .elementor-heading-title { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 400; color: #000; }
body.aep-el .aep-cta .elementor-heading-title, body.aep-el .aep-form-titulo .elementor-heading-title, body.aep-el .aep-mapa .elementor-heading-title { font-family: var(--fuenteTitulos); font-weight: 400; color: var(--colorGrisOscuro); }
body.aep-el .aep-pie .elementor-heading-title { color: #fff; font-family: var(--fuenteTitulos); font-size: 1.35rem; font-weight: 700; }
body.aep-el .aep-pie .aep-menu-pie a.hfe-menu-item { color: #fff; font-family: var(--fuentePrincipal); font-size: 1.15rem; font-weight: 400; line-height: 1.2; padding: 3px 0; justify-content: center; }
body.aep-el .aep-presentacion, body.aep-el .aep-lista, body.aep-el .aep-intro { color: #404040; font-weight: 400; }
body.aep-el .aep-btn .elementor-button { font-family: var(--fuentePrincipal); font-size: 1.15rem; font-weight: 400; color: #fff; }
body.aep-el .aep-cta .aep-btn-cta .elementor-button { font-weight: 700; }
body.aep-el .aep-tarjeta .elementor-icon-box-title, body.aep-el .aep-tarjeta .elementor-icon-box-title a { color: #fff; font-family: var(--fuenteTitulos); font-size: 1.3rem; font-weight: 600; }
body.aep-el .aep-tarjeta .elementor-icon-box-description { color: #fff; font-family: var(--fuentePrincipal); }
body.aep-el .aep-tarjeta .elementor-icon { color: #fff; fill: #fff; border-color: #fff; }
body.aep-el .aep-correo .elementor-icon-list-text { color: #fff; font-family: var(--fuentePrincipal); font-weight: 400; }

body.aep-el .aep-titulo .elementor-heading-title { font-size: 5.3rem; line-height: 1.2; }
body.aep-el .aep-pie .aep-menu-pie a.hfe-menu-item { padding: 3px 0 !important; }
body.aep-el .aep-header .aep-menu a.hfe-menu-item { padding-left: 13px !important; padding-right: 0 !important; }
body.aep-el .aep-pie .aep-logo-pie img { max-width: 310px; width: 100%; }
body.aep-el .aep-cta, body.aep-el .aep-cta .elementor-widget-text-editor, body.aep-el .aep-mapa .elementor-widget-text-editor { color: #404040; }
@media (max-width: 991px) { body.aep-el .aep-titulo .elementor-heading-title { font-size: 3.1rem; } }
@media (max-width: 480px) { body.aep-el .aep-titulo .elementor-heading-title { font-size: clamp(2.4rem, 12vw, 3.4rem); } }
@media (max-width: 1024px) { body.aep-el .aep-header .aep-menu a.hfe-menu-item { padding: 10px 20px !important; } body.aep-el .aep-header .aep-logo img { height: 66px; } }
body.aep-el .aep-pie .aep-menu-pie a.hfe-menu-item { padding: 6px 0 !important; }
@media (max-width: 1024px) { body.aep-el .aep-header .aep-logo img { height: 80px; max-width: 70vw; width: auto; } }

/* Menú desplegable de móvil y tableta */
@media (max-width: 1024px) {
	body.aep-el .aep-header .hfe-nav-menu nav ul, body.aep-el .aep-header .hfe-nav-menu nav li, body.aep-el .aep-header .hfe-nav-menu nav a.hfe-menu-item, body.aep-el .aep-header nav.hfe-dropdown { background: var(--colorAzulOscuro) !important; border-color: rgba(255,255,255,.2) !important; }
	body.aep-el .aep-header .aep-menu .elementor-widget-container { display: flex; justify-content: flex-end; }
	body.aep-el .aep-header .hfe-nav-menu { width: 100%; }
	body.aep-el .aep-header .hfe-nav-menu__toggle { margin: 0 0 0 auto; justify-content: flex-end; }
}

/* Captcha y vistas de bbPress */
body.aep-el #bbpress-forums .aep-captcha label, body.aep-el .aep-formulario #bbpress-forums .aep-captcha label { display: block; width: auto; float: none; }
body.aep-el .aep-captcha input.input { max-width: 220px; min-height: 42px; text-transform: uppercase; }
body.aep-el.bbpress #right-sidebar, body.aep-el.bbpress .comments-area { display: none; }
body.aep-el.bbpress .site-content { padding: 16px; max-width: 1140px; margin: 0 auto; }

/* En el editor, los colores globales de Elementor se cargan después: reforzar. */
html body.aep-el .elementor .aep-titulo .elementor-heading-title { color: #000; }
html body.aep-el .elementor .aep-btn .elementor-button { background-color: var(--colorAzulClaro); }
html body.aep-el .elementor .aep-btn .elementor-button:hover, html body.aep-el .elementor .aep-btn .elementor-button:focus, html body.aep-el .elementor .aep-cta .aep-btn-cta .elementor-button { background-color: var(--colorAzulOscuro); }
html body.aep-el .elementor .aep-ultimas-titulo .elementor-heading-title, html body.aep-el .elementor .aep-enlaces-titulo .elementor-heading-title { color: var(--colorGrisOscuro); }

/* Titulares del carrusel (H1 el primero, parrafos los demas) con el aspecto de siempre. */
body.aep-el .elementor .carousel-item .aep-slide-titulo { color: #fff; font-family: var(--fuenteHeader); font-size: 4.5rem; font-weight: 400; line-height: 1.2; margin: 0 0 .5rem; text-align: center; }
@media (max-width: 768px) { body.aep-el .elementor .carousel-item .aep-slide-titulo { font-size: 2.8rem; } }
body.aep-el .singleNoticia h1.tituloarticulo { font-size: 1.9rem; line-height: 1.2; margin-bottom: 20px; }
