/* Alumni ULPGC – Tipografía y estilo del menú (Montserrat) */
:root{
  --aum-font:"Montserrat","Open Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --aum-text:#0a2540;      /* azul Alumni */
  --aum-accent:#f2b84b;    /* subrayado al pasar/activo */
  --aum-bg-sub:transparent;  /* fondo del desplegable: ninguno */
  --aum-sub-text:#13234f;  /* texto de los desplegables (azul marino sobre fondo claro) */
  --aum-sub-up:-30px;      /* sube o baja el desplegable (más negativo = más pegado) */
  --aum-logo-filter:brightness(0) invert(1); /* logo en blanco sobre el hero; pon none para respetar sus colores */
}

/* Elementos de primer nivel */
.main-navigation .main-nav > ul > li > a,          /* GeneratePress */
.main-header-menu > .menu-item > .menu-link,        /* Astra */
.elementor-nav-menu--main .elementor-item,          /* Elementor */
.wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item > a,
.wp-block-navigation > .wp-block-navigation-item > .wp-block-navigation-item__content,
.site-header .menu > li > a{
  font-family:var(--aum-font)!important;
  font-weight:600;font-size:.9rem;letter-spacing:.04em;text-transform:uppercase;
  color:var(--aum-text);text-decoration:none;
  background:none;
}
.main-navigation .main-nav > ul > li:hover > a,
.main-navigation .main-nav > ul > li[class*="current-menu-"] > a,
.main-header-menu > .menu-item:hover > .menu-link,
.main-header-menu > .current-menu-item > .menu-link,
.elementor-nav-menu--main .elementor-item:hover,
.elementor-nav-menu--main .elementor-item.elementor-item-active,
.site-header .menu > li:hover > a,
.site-header .menu > li[class*="current-menu-"] > a{
  background:none;color:var(--aum-text);opacity:.85;
}

/* Submenú (Alumni → Estatutos, La asociación, Junta directiva): sin caja blanca y pegado al menú */
.main-navigation ul ul a,
.main-header-menu .sub-menu a,
.elementor-nav-menu--dropdown a,
.wp-block-navigation__submenu-container a,
.site-header .sub-menu a{
  font-family:var(--aum-font)!important;
  font-weight:500;font-size:.92rem;text-transform:none;letter-spacing:0;color:var(--aum-sub-text);background:transparent;
}
.main-navigation ul ul,
.main-header-menu .sub-menu,
.elementor-nav-menu--dropdown,
.wp-block-navigation__submenu-container,
.site-header .sub-menu{
  background:var(--aum-bg-sub)!important;border:0!important;border-top:0!important;box-shadow:none!important;outline:0!important;
}
.main-navigation ul ul a:hover,
.main-header-menu .sub-menu a:hover,
.elementor-nav-menu--dropdown a:hover,
.site-header .sub-menu a:hover{background:transparent!important;color:var(--aum-sub-text);opacity:.75}
@media (min-width:922px){
  .main-navigation ul ul,
  .main-header-menu .sub-menu,
  .site-header .sub-menu{margin-top:var(--aum-sub-up,-30px)!important;padding-top:0!important}
}

/* Teclado visible */
.site-header a:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* Móvil: menú desplegado, sin mayúsculas forzadas y con toques cómodos */
@media (max-width:768px){
  .main-navigation .main-nav > ul > li > a,
  .main-header-menu > .menu-item > .menu-link,
  .site-header .menu > li > a{font-size:1rem;padding-block:.9em}
}
@media (prefers-reduced-motion:reduce){
  .main-navigation a,.main-header-menu a,.elementor-nav-menu--main a,.site-header .menu a{transition:none!important}
}

/* ===== Páginas con el hero: logo y menú en blanco SOBRE la portada ===== */
body.auh-has-hero{--aum-text:#fff;--aum-sub-text:#fff;overflow-x:clip}
body.auh-has-hero .site-header,
body.auh-has-hero #masthead{position:absolute;top:0;left:0;right:0;width:100%;z-index:60;background:transparent!important;box-shadow:none}
body.auh-has-hero .ast-primary-header-bar,
body.auh-has-hero .main-header-bar,
body.auh-has-hero .ast-above-header,
body.auh-has-hero .inside-header,
body.auh-has-hero .main-navigation{background:transparent!important;border:0!important}
body.auh-has-hero .custom-logo,
body.auh-has-hero .site-logo img,
body.auh-has-hero .site-branding img{filter:var(--aum-logo-filter)}
body.auh-has-hero .site-title a,
body.auh-has-hero .ast-site-title-wrap a,
body.auh-has-hero .site-description{color:#fff}
body.auh-has-hero .menu-toggle,
body.auh-has-hero .ast-mobile-menu-buttons .menu-toggle{color:#fff}
body.auh-has-hero .ast-icon svg,
body.auh-has-hero .menu-toggle svg{fill:#fff}
body.auh-has-hero .main-navigation ul ul,
body.auh-has-hero .main-header-menu .sub-menu,
body.auh-has-hero .elementor-nav-menu--dropdown,
body.auh-has-hero .wp-block-navigation__submenu-container,
body.auh-has-hero .site-header .sub-menu{background:transparent!important;box-shadow:none!important;border:0!important}
body.auh-has-hero .sub-menu a{text-shadow:none}
body.auh-has-hero .entry-header,
body.auh-has-hero .entry-title{display:none}
body.auh-has-hero .site-content{padding-top:0;margin-top:0}
@media (max-width:921px){
  /* Desplegable móvil: fondo claro, así que texto oscuro */
  body.auh-has-hero .ast-mobile-header-content a,
  body.auh-has-hero #ast-mobile-header .main-header-menu a,
  body.auh-has-hero .main-navigation.toggled a{color:#1b173a!important;background-image:none}
}

/* Submenú: texto blanco (el tema lo pinta gris) */
.main-navigation ul ul a,
.main-header-menu .sub-menu a,
.main-header-menu .sub-menu .menu-link,
.ast-desktop .main-header-menu .sub-menu .menu-item > .menu-link,
.ast-desktop .main-header-menu .sub-menu .menu-item:hover > .menu-link,
.elementor-nav-menu--dropdown a,
.wp-block-navigation__submenu-container a,
.site-header .sub-menu a{color:var(--aum-sub-text)!important;opacity:1!important}
@media (max-width:921px){
  .ast-mobile-header-content .main-header-menu .sub-menu a,
  .main-navigation.toggled .sub-menu a{color:#1b173a!important}
}

/* Submenú: nada de cajas, bordes ni sombras (también las que añade el tema) */
.main-header-menu .sub-menu,
.main-header-menu .sub-menu .menu-item,
.main-header-menu .sub-menu .menu-item > .menu-link,
.ast-desktop .main-header-menu .sub-menu,
.ast-desktop .main-header-menu .sub-menu .menu-item,
.main-navigation ul ul,
.main-navigation ul ul li,
.site-header .sub-menu,
.site-header .sub-menu li{box-shadow:none!important;border:0!important;text-shadow:none!important}
body.auh-has-hero .main-header-menu .sub-menu .menu-item,
body.auh-has-hero .main-header-menu .sub-menu .menu-item > .menu-link,
body.auh-has-hero .main-header-menu .sub-menu .menu-item:hover,
body.auh-has-hero .main-navigation ul ul li,
body.auh-has-hero .site-header .sub-menu li{background:transparent!important}

/* ===== Sin rayas: ni bajo la cabecera (marco de arriba, raya gris) ni sobre el pie de página ===== */
.site-header,#masthead,
.main-header-bar,.ast-primary-header-bar,.ast-above-header-bar,.ast-below-header-bar,
.ast-main-header-wrap,.main-header-bar-wrap,.ast-builder-grid-row-container,
.inside-header,.main-navigation,.elementor-location-header,.wp-block-template-part header{
  border-top:0!important;border-bottom:0!important;box-shadow:none!important}
.main-header-bar,.ast-primary-header-bar{border-bottom-width:0!important}
#masthead::after,#masthead::before,.site-header::after,.site-header::before,.main-header-bar::after,.main-header-bar::before{display:none!important}
.site-footer,#colophon,.site-footer .ast-builder-grid-row-container,.site-primary-footer-wrap,.site-above-footer-wrap,.site-below-footer-wrap,
.ast-small-footer,.footer-adv,.footer-width-fixer,.ast-footer-copyright,.elementor-location-footer,.inside-site-info,.site-info{
  border-top:0!important;border-bottom:0!important;box-shadow:none!important}
.site-footer hr,.site-footer .wp-block-separator{display:none}

/* ===== Botones «Leer más» de las noticias: azul (se cambia en Personalizar → Portada Alumni) ===== */
a[title="Leer más"],.more-link,a.more-link,.read-more a,.ast-read-more-container a,.wp-block-post-excerpt__more-link,
.entry-content a.more-link,.vc_gitem-link.vc_btn3,.vc_grid-item .vc_btn3,.vc_grid .vc_btn3{
  background-color:var(--auh-btn,#1f4fa8)!important;border-color:var(--auh-btn,#1f4fa8)!important;color:#fff!important}
a[title="Leer más"]:hover,.more-link:hover,a.more-link:hover,.read-more a:hover,.ast-read-more-container a:hover,
.wp-block-post-excerpt__more-link:hover,.vc_grid-item .vc_btn3:hover,.vc_grid .vc_btn3:hover{
  background-color:var(--auh-btn,#1f4fa8)!important;border-color:var(--auh-btn,#1f4fa8)!important;color:#fff!important;filter:brightness(1.15)}

.auh-meta{margin:0 0 1.2em;font-size:1.05rem}

/* ===== Páginas con color/imagen de fondo elegidos: pantalla completa, sin menú separado arriba ===== */
body.auh-pg .site-header,
body.auh-pg #masthead{position:absolute;top:0;left:0;right:0;width:100%;z-index:60;background:transparent!important;box-shadow:none}
body.auh-pg .ast-primary-header-bar,
body.auh-pg .main-header-bar,
body.auh-pg .ast-above-header,
body.auh-pg .inside-header,
body.auh-pg .main-navigation{background:transparent!important;border:0!important}
body.auh-pg #page,body.auh-pg .site,body.auh-pg #content,body.auh-pg .site-content,body.auh-pg #primary,body.auh-pg .content-area,
body.auh-pg .ast-container,body.auh-pg .site-main,body.auh-pg article,body.auh-pg .entry-content,
body.auh-pg.ast-separate-container .ast-article-post,body.auh-pg.ast-separate-container .ast-article-single,
body.auh-pg.ast-separate-container .comments-area,body.auh-pg .ast-article-single{background:transparent!important;box-shadow:none!important}
body.auh-pg .site-content{padding-top:clamp(96px,12vh,130px)}
body.auh-pg .custom-logo,
body.auh-pg .site-logo img,
body.auh-pg .site-branding img{filter:var(--aum-logo-filter)}
body.auh-pg .site-title a,body.auh-pg .ast-site-title-wrap a,body.auh-pg .menu-toggle{color:var(--auh-pg-txt)}
body.auh-pg .ast-icon svg,body.auh-pg .menu-toggle svg{fill:var(--auh-pg-txt)}
body.auh-pg .entry-content,body.auh-pg .entry-content p,body.auh-pg .entry-content li,body.auh-pg .entry-content h1,body.auh-pg .entry-content h2,
body.auh-pg .entry-content h3,body.auh-pg .entry-content h4,body.auh-pg .entry-content h5,body.auh-pg .entry-content h6,
body.auh-pg .entry-title,body.auh-pg .entry-title a,body.auh-pg .entry-meta,body.auh-pg .entry-meta a,body.auh-pg .auh-meta,
body.auh-pg .wpb_text_column,body.auh-pg .wpb_wrapper,body.auh-pg blockquote{color:var(--auh-pg-txt)!important}
body.auh-pg .entry-content a:not(.button):not(.vc_btn3):not(.wp-block-button__link){color:var(--auh-pg-txt)!important;text-decoration:underline}
body.auh-pg{--aum-sub-text:var(--auh-pg-txt)}
@media (max-width:921px){
  body.auh-pg .ast-mobile-header-content a,
  body.auh-pg #ast-mobile-header .main-header-menu a,
  body.auh-pg .main-navigation.toggled a{color:#1b173a!important;background-image:none}
}

/* ===== Hueco libre bajo el menú para que el submenú desplegado no pise el título ===== */
:root{--auh-sub-space:115px}
@media (min-width:922px){
  body:not(.home):not(.auh-has-hero):not(.auh-pg):not(.auh-nogap) .site-content,
  body:not(.home):not(.auh-has-hero):not(.auh-pg):not(.auh-nogap) #content{padding-top:var(--auh-sub-space)!important}
  body:not(.home):not(.auh-has-hero):not(.auh-pg):not(.auh-nogap) #primary,
  body:not(.home):not(.auh-has-hero):not(.auh-pg):not(.auh-nogap) .content-area{margin-top:0!important}
  /* páginas con fondo propio (cabecera superpuesta): el submenú empieza más arriba, así que más hueco */
  body.auh-pg .site-content{padding-top:clamp(210px,25vh,260px)}
}

/* ===== Pie de página en azul marino (se cambia en Personalizar → Portada Alumni) ===== */
.site-footer,#colophon,.site-footer .ast-builder-grid-row-container,.site-primary-footer-wrap,.site-above-footer-wrap,.site-below-footer-wrap,
.ast-small-footer,.footer-adv,.footer-width-fixer,.ast-footer-copyright,.inside-site-info,.site-info,.elementor-location-footer{
  background:var(--auh-footer,#0b1f4b)!important;background-image:none!important;color:#fff!important}
.site-footer p,.site-footer span,.site-footer li,.site-footer div,.site-footer h1,.site-footer h2,.site-footer h3,.site-footer h4,.site-footer a,
#colophon a,.ast-small-footer a,.ast-footer-copyright{color:#fff!important}
.site-footer a:hover,#colophon a:hover{opacity:.8}

/* ===== Pie de página pegado al contenido en la home y en páginas a pantalla completa (sin franja blanca) ===== */
body.home .site-content,body.auh-has-hero .site-content,body.auh-split .site-content{padding-bottom:0!important;margin-bottom:0!important}
body.home #primary,body.home .content-area,body.home .site-main,body.home article,body.home .entry-content,body.home .ast-article-single,
body.auh-has-hero #primary,body.auh-has-hero .content-area,body.auh-has-hero .site-main,body.auh-has-hero article,body.auh-has-hero .entry-content,body.auh-has-hero .ast-article-single{
  margin-bottom:0!important;padding-bottom:0!important}
body.home .entry-content>:last-child,body.auh-has-hero .entry-content>:last-child{margin-bottom:0!important}
body.home .entry-content p:empty,body.auh-has-hero .entry-content p:empty{display:none}
body.home .entry-footer,body.home .comments-area,body.auh-has-hero .entry-footer,body.auh-has-hero .comments-area{display:none}
body.home .site-footer,body.auh-has-hero .site-footer,body.home #colophon,body.auh-has-hero #colophon{margin-top:0!important}

/* Los bloques de «entradas relacionadas» del tema se sustituyen por los cuadros con foto */
.ast-related-posts-wrapper,.related-posts,.yarpp-related,.jp-relatedposts,.crp_related,.rp4wp-related-posts,.ast-single-related-posts-container{display:none!important}
