/* =====================================================
SIDEBAR UNIVERSITARIO
Manteniendo HTML actual de WordPress Widgets
===================================================== */

aside.col-lg-4 .sticky-top{
    top: 100px !important;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =====================================================
WIDGET GENERAL
===================================================== */

aside.col-lg-4 .widget{
    background: #026888;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    overflow: hidden;
    transition: all .3s ease;
    margin-bottom: 0 !important;
}

aside.col-lg-4 .widget:hover{
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(0,0,0,.12);
}

/* =====================================================
TÍTULOS
===================================================== */

aside.col-lg-4 .widget .wp-block-heading{
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0;
    padding: 26px 28px 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    position: relative;
    letter-spacing: -.3px;
}

/* Línea decorativa institucional */

aside.col-lg-4 .widget .wp-block-heading::after{
    content: "";
    position: absolute;
    left: 28px;
    bottom: -1px;
    width: 60px;
    height: 3px;
    background: #5fc6df;
}

/* =====================================================
CONTENIDO
===================================================== */

aside.col-lg-4 .widget .wp-block-group__inner-container{
    padding: 24px 28px;
}

/* =====================================================
LISTAS
===================================================== */

aside.col-lg-4 .widget ul,
aside.col-lg-4 .widget ol{
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =====================================================
ITEMS
===================================================== */

aside.col-lg-4 .widget li{
    position: relative;
    padding-left: 18px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

aside.col-lg-4 .widget li:last-child{
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Icono bullet */

aside.col-lg-4 .widget li::before{
    content: "›";
    position: absolute;
    left: 0;
    top: 0;
    color: #7fd8ee;
    font-size: 18px;
    font-weight: 700;
}

/* =====================================================
LINKS
===================================================== */

aside.col-lg-4 .widget a{
    color: #fff;
    text-decoration: none;
    line-height: 1.7;
    font-size: 1rem;
    transition: all .25s ease;
}

aside.col-lg-4 .widget a:hover{
    color: #8fe6ff;
    padding-left: 6px;
}

/* =====================================================
COMENTARIOS
===================================================== */

aside.col-lg-4 .wp-block-latest-comments__comment-meta{
    color: rgba(255,255,255,.88);
    line-height: 1.7;
    font-size: .97rem;
}

/* =====================================================
BUSCADOR
===================================================== */

/* Widget buscador diferente visualmente */

aside.col-lg-4 .widget:first-child{
    background: #ffffff;
    border: 1px solid #dce7ec;
}

/* Label oculto */

aside.col-lg-4 .wp-block-search__label{
    display: none;
}

/* Wrapper */

aside.col-lg-4 .wp-block-search__inside-wrapper{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
}

/* Input */

aside.col-lg-4 .wp-block-search__input{
    flex: 1;
    border: 1px solid #d6e2e8;
    background: #f8fbfd;
    padding: 14px 16px;
    font-size: 15px;
    transition: all .3s ease;
    min-height: 52px;
}

aside.col-lg-4 .wp-block-search__input:focus{
    outline: none;
    border-color: #0a6d86;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(10,109,134,.08);
}

/* Botón */

aside.col-lg-4 .wp-block-search__button{
    background: #0a6d86 !important;
    color: #fff !important;
    border: none !important;
    min-height: 52px;
    padding: 0 24px;
    font-weight: 600;
    transition: all .3s ease;
}

aside.col-lg-4 .wp-block-search__button:hover{
    background: #084f61 !important;
}

/* =====================================================
ARCHIVOS / CATEGORÍAS
===================================================== */

aside.col-lg-4 .wp-block-archives-list a,
aside.col-lg-4 .wp-block-categories-list a{
    display: block;
}

/* =====================================================
ENTRADAS RECIENTES
===================================================== */

aside.col-lg-4 .wp-block-latest-posts__post-title{
    font-weight: 500;
    display: block;
}

/* =====================================================
EFECTO MODERNO
===================================================== */

aside.col-lg-4 .widget{
    position: relative;
}

aside.col-lg-4 .widget::before{
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.03),
            rgba(255,255,255,0)
        );
    pointer-events: none;
}

/* =====================================================
RESPONSIVE
===================================================== */

@media(max-width:991px){

    aside.col-lg-4 .sticky-top{
        position: relative !important;
        top: 0 !important;
        margin-top: 50px;
    }

}

/* =====================================================
MODO PREMIUM (OPCIONAL)
Bordes institucionales
===================================================== */

aside.col-lg-4 .widget{
    border-left: 4px solid #5fc6df;
}
/* =========================================================
   TOPBAR – SEDES + BUSCADOR
   ========================================================= */

.topbar {
  background-color: #026888;
  color: #ffffff;
  font-size: 0.875rem;
}

.topbar-sedes .nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.topbar-sedes .menu-item {
  list-style: none;
}

.topbar-sedes .menu-item a {
  display: block;
  padding: 0.5rem 1rem;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.topbar-sedes .menu-item a:hover,
.topbar-sedes .menu-item a:focus {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Buscador */
.topbar-search {
  margin-left: auto;
}

.topbar-search .search-field {
  border: none;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.topbar-search .search-submit {
  background-color: #014d63;
  color: #ffffff;
  border: none;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}
/* =========================================================
   HEADER – BRANDING
   ========================================================= */

.header-main {
  padding: 0.75rem 0;
}

.header-main .site-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--amigo-primary);
  text-decoration: none;
}


h2#titulo-seccion {
    background-color: #ffffffbf;
}


/* =========================================================
   MENÚ PRINCIPAL
   ========================================================= */

.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.main-navigation .navbar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-direction: row;
}

.main-navigation .menu-item {
  position: relative;
  list-style: none;
}

.main-navigation .menu-item > a {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #4a4a4a;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-navigation .menu-item > a:hover,
.main-navigation .menu-item.current-menu-item > a,
.main-navigation .menu-item.current_page_item > a {
  color: #026888;
}
/* ===============================
   MENÚ SUPERIOR NOTICIAS
   =============================== */

.top-menu {
    background-color: #026888;
    padding: 6px 0;
}

.menu-top-custom li {
    position: relative;
}

.menu-top-custom li a {
    color: #ffffff;
    font-size: 14px;
    padding: 0 12px;
    text-decoration: none;
}

.menu-top-custom li a:hover {
    text-decoration: underline;
}

/* separador | */
.menu-top-custom li:not(:last-child)::after {
    content: "|";
    color: #ffffff;
    position: absolute;
    right: -4px;
}

/* =========================================================
   DROPDOWNS
   ========================================================= */

.main-navigation .menu-item-has-children > a::after {
  content: "▾";
  font-size: 0.6rem;
  margin-left: 0.35rem;
  color: #6c757d;
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 260px;
    padding: 0.5rem 0;
    background-color: #026888;
    border: 1px solid #02607d;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    display: none;
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.main-navigation .sub-menu .menu-item > a {
  padding: 0.16rem .8rem;
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 400;
}

.main-navigation .sub-menu .menu-item > a:hover {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}
/* =========================================================
   BOTÓN CAMPUS VIRTUAL
   ========================================================= */

.menu-item-campus > a {
  background-color: #ff8c00;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
}
/* =========================================================
   REDES SOCIALES
   ========================================================= */

.social-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-menu a {
  color: #026888;
  font-size: 1.2rem;
}

.social-menu a::before {
  font-family: "bootstrap-icons";
}

.social-menu .facebook a::before { content: "\f344"; }
.social-menu .instagram a::before { content: "\f437"; }
.social-menu .youtube a::before { content: "\f62b"; }
.social-menu .twitter a::before { content: "\f5ef"; }
/* =========================================================
   FOOTER
   ========================================================= */

#site-footer {
  background-color: var(--amigo-dark);
  color: #ffffff;
}

#site-footer h6 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

#site-footer a {
  color: #dddddd;
  text-decoration: none;
}

#site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}
/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
  .topbar-search {
    display: none;
  }
}
/* =========================================================
   MENÚ SECUNDARIO DESTACADO
   ========================================================= */

.featured-menu{
  padding:1.5rem 0;
}

/* HOME AZUL */

.featured-menu-home{
  background:#026888 !important
}

.featured-menu-home .featured-item{
  color:#fff;
}

.featured-menu-home .featured-icon{
  background:#fff;
  color:#026888;
}

/* INTERIOR BLANCO */

.featured-menu-secondary{
  background:#ffffff;
}

.featured-menu-secondary .featured-item{
  color:#026888;
}

.featured-menu-secondary .featured-icon{
  background:#026888;
  color:#ffffff;
}

/* ÍCONO */
.featured-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #026888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* TEXTO */
.featured-content h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.featured-content p {
  margin: 0;
  font-size: 0.85rem;
}
/* =====================================================
   CARRUSEL NOTICIAS – ULUISAMIGO
===================================================== */

/* Espacio interno para permitir sombra sin romper máscara lateral */
.wp-block-getwid-post-carousel .slick-list {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* Contenedor general */
.wp-block-getwid-post-carousel {
    position: relative;
}

/* Slide */
.wp-block-getwid-post-carousel__slide {
    padding: 0 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all .3s ease;
    padding-bottom: 1.5rem;
    height: 100%;
}

/* Hover elegante sin romper layout */
.wp-block-getwid-post-carousel__slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

/* Imagen */
.wp-block-getwid-template-post-featured-image {
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.wp-block-getwid-template-post-featured-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

/* Zoom suave en imagen */
.wp-block-getwid-post-carousel__slide:hover img {
    transform: scale(1.05);
}

/* Espaciado interno */
.wp-block-getwid-template-post-title,
.wp-block-getwid-template-post-meta,
.wp-block-getwid-template-post-content,
.wp-block-getwid-template-post-button {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Título */
.wp-block-getwid-template-post-title {
    margin-top: 1rem;
    margin-bottom: .5rem;
}

.wp-block-getwid-template-post-title a {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    line-height: 1.3;
    transition: color .2s ease;
}

.wp-block-getwid-template-post-title a:hover {
    color: var(--bs-primary);
}

/* Meta */
.wp-block-getwid-template-post-meta {
    font-size: .85rem;
    color: #6c757d;
    margin-bottom: .75rem;
}

/* Extracto */
.wp-block-getwid-template-post-content {
    font-size: .92rem;
    color: #495057;
    margin-bottom: 1rem;
}

/* Botón */
.wp-block-getwid-template-post-button {
    padding-top: .5rem;
}

.wp-block-getwid-template-post-button .wp-block-button__link {
    background-color: #ff7f00 !important;
    border-radius: 30px;
    padding: 6px 18px;
    font-size: .85rem;
    font-weight: 600;
    display: inline-block;
    transition: all .3s ease;
}

.wp-block-getwid-template-post-button .wp-block-button__link:hover {
    background-color: #e66f00 !important;
    transform: translateY(-2px);
}

/* ===========================
   DOTS (indicadores)
=========================== */

.wp-block-getwid-post-carousel .slick-dots li button:before {
    font-size: 10px;
    color: #adb5bd;
}

.wp-block-getwid-post-carousel .slick-dots li.slick-active button:before {
    color: var(--bs-primary);
}

/* ===========================
   FLECHAS
=========================== */

.wp-block-getwid-post-carousel .slick-prev,
.wp-block-getwid-post-carousel .slick-next {
    background: #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10;
}

.wp-block-getwid-post-carousel .slick-prev:before,
.wp-block-getwid-post-carousel .slick-next:before {
    color: var(--bs-primary);
    font-size: 20px;
}
.wp-block-getwid-post-carousel .slick-prev:before, .wp-block-getwid-post-carousel .slick-next:before {
    color: #026888;
    font-size: 32px;
    line-height: 1.5;
}
.slick-next:before, .slick-prev:before {
    font-size: 33px;
}
/* ===========================
   Responsive
=========================== */

@media (max-width: 991px) {
    .wp-block-getwid-template-post-featured-image img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .wp-block-getwid-template-post-featured-image img {
        height: 180px;
    }
}
/* Forzar 16:9 responsive en embeds YouTube */
.wp-block-embed.is-provider-youtube .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    /*padding-top: 56.25%;  16:9 */
}

.wp-block-embed.is-provider-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px; /* opcional */
}
/* ===========================
   Hero Imagen
=========================== */
.microsite-hero {
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
/* video destacado */
figcaption.wp-element-caption h4
 {
    background: #026888;
    border-radius: 10px;
    padding: 10px;
    color: white;
    font-size: 1.3em;
}

/* titulos de los apartados*/
h2.wp-block-heading {
    /* font-family: var(--amigo-font); */
    font-size: 1.6em;
    font-weight: 700;
}
/*Eventos*/
p#evcal_cur {
    font-size: 1.6em;
    text-transform: capitalize;
}
/*Noticias */
.news-item img{
border-radius:8px;
transition: transform .2s ease;
}

.news-item:hover img{
transform: scale(1.03);
}

.news-title a{
color:#0b5ed7;
text-decoration:none;
font-weight:600;
}

.news-title a:hover{
text-decoration:underline;
}

.news-meta{
font-size:13px;
}
/*Menu CSS Grid + Bootstrap 5 */
.featured-grid{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:1fr;
}

.featured-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:15px;
    text-decoration:none;
    color:white;
    transition:.2s;
}

.featured-item:hover{
    background:rgba(255,255,255,.1);
    border-radius: 10px;
    
}
.featured-icon{
    font-size:22px;
}

.featured-title{
    font-size:16px;
    margin:0;
    font-weight:600;
}

.featured-text{
    font-size:13px;
    margin:0;
    opacity:.85;
}
.dropdown-menu.show {
    background-color: #007fa4;
}
.dropdown-item {
    color: #ffffff;
    padding: .16rem .8rem;
}
a.nav-link.dropdown-toggle {
    color: #737373;
    font-weight: 500;
}
/*Boton campus*/
.btn-primary {
    color: #fff !important;
    background-color: #ff7f00;
    border-color: #ff7f00;
}
.btn-primary:hover {
    color: #fff;
    background-color: #026688 !important;
    border-color: #99aeb5 !important;
}

/*Iconos Redes Sociales*/
.social-part i {
  color: #026688;
}
.social-part a:hover i {
  opacity: 0.7;
}

ul.social-part li{
     list-style: none;
}
span.page-link.current {
    background-color: #026888;
    border-color: #026888;
}

div#articulo {
    box-shadow: 0px 12px 13px 0px rgba(0, 0, 0, .2);
    padding: 25px;
}
.menu-top-custom {
  overflow-x: auto;
  white-space: nowrap;
}

.menu-top-custom .nav-link {
  display: inline-block;
}
@media (max-width:991px){

.featured-grid{
    grid-template-columns:repeat(2,1fr);
    grid-auto-flow:row;
}
.dropdown-menu{
position:static;
float:none;
}

#menu-menu-principal{
    flex-direction: column;
    width:100%;
}

#menu-menu-principal .nav-item{
    width:100%;
}

#menu-menu-principal .nav-link{
    display:block;
    width:100%;
}
#menu-menu-principal{
flex-direction:column;
width:100%;
}

.navbar-nav .nav-item{
width:100%;
}
}


/* =========================================================
   FIX MENÚ PRINCIPAL INSTITUCIONAL — ULUISAMIGO 1.0.2
   Garantiza que la navegación y los iconos sociales se vean
   en escritorio aunque otra hoja o caché oculte .collapse.
   En móvil, Bootstrap conserva el comportamiento desplegable.
   ========================================================= */
@media (min-width: 992px) {
  #site-header .header-main .navbar-collapse,
  #site-header .header-main .navbar-collapse.collapse:not(.show) {
    display: flex !important;
    flex-basis: auto;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
  }
  #site-header .header-main #menu-menu-principal {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
    padding-left: 0;
    list-style: none;
    width: auto;
  }
  #site-header .header-main #menu-menu-principal > .nav-item {
    width: auto;
    list-style: none;
  }
  #site-header .header-main #menu-menu-principal > .nav-item > .nav-link {
    display: block;
    width: auto;
    white-space: nowrap;
    padding: .5rem .55rem;
    color: #4a4a4a;
    text-decoration: none;
    font-weight: 500;
  }
  #site-header .header-main .social-part {
    display: flex !important;
    align-items: center;
    margin-left: 1rem;
  }
}
@media (max-width: 991.98px) {
  #site-header .header-main .navbar-collapse:not(.show) {
    display: none !important;
  }
  #site-header .header-main .navbar-collapse.show {
    display: block !important;
    flex-basis: 100%;
  }
  #site-header .header-main #menu-menu-principal {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    list-style: none;
    padding-left: 0;
  }
  #site-header .header-main #menu-menu-principal > .nav-item {
    width: 100%;
    list-style: none;
  }
  #site-header .header-main #menu-menu-principal .nav-link {
    display: block;
    width: 100%;
    padding: .65rem .75rem;
  }
}

/* 1.0.13.8: SVG icons for home featured menu (no external icon font). */
.featured-menu-home .featured-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:#fff;color:#026888}
.featured-menu-home .featured-icon svg{display:block!important;width:24px!important;height:24px!important;max-width:24px;max-height:24px;visibility:visible!important;opacity:1!important;fill:none;stroke:currentColor}

/* 1.0.14.10: menú compartido del plugin, sin alterar el diseño existente. */
.topbar-sedes > ul.la-shared-menu--top,
.topbar-sedes .la-shared-menu--top {
  display:flex; flex-direction:row; align-items:center; flex-wrap:wrap;
  gap:0.25rem 0.75rem; list-style:none; margin:0; padding:0;
}
.topbar-sedes .la-shared-menu--top > li {list-style:none; margin:0; padding:0;}
.topbar-sedes .la-shared-menu--top > li > a {
  display:inline-flex; align-items:center; padding:0.5rem 0.5rem;
  color:inherit; font-weight:600; text-decoration:none; white-space:nowrap;
}
.topbar-sedes .la-shared-menu--top > li > a:hover,
.topbar-sedes .la-shared-menu--top > li > a:focus-visible {text-decoration:underline; text-underline-offset:0.2em;}
@media(max-width:767px) {
  .topbar-sedes .la-shared-menu--top {gap:0 0.25rem;}
  .topbar-sedes .la-shared-menu--top > li > a {padding:0.35rem 0.4rem;}
}

/* 1.0.14.14 — Hero configurable en micrositios; no altera la portada institucional. */
.ula-subsite-hero{min-height:350px;background-size:cover;background-repeat:no-repeat;display:flex;align-items:center;color:#fff;padding:clamp(48px,6vw,92px) 0 clamp(96px,9vw,132px)}
.ula-subsite-hero__content{width:100%;position:relative;z-index:1}
.ula-subsite-hero h1{color:#fff;font-size:clamp(2rem,3.6vw,3.2rem);line-height:1.15;margin:0 0 16px}
.ula-subsite-hero p{color:#fff;max-width:850px;font-size:clamp(1rem,1.4vw,1.2rem);line-height:1.55;margin:0}
/* En modo slider heredado, conservar diseño y reservar aire para el menú flotante. */
body:not(.home) .subsite-header{position:relative}
@media(max-width:767px){.ula-subsite-hero{min-height:320px;padding:48px 0 100px}.ula-subsite-hero h1{font-size:clamp(1.8rem,7vw,2.5rem)}}

/* 1.0.14.27 — Pie de foto de imágenes de Gutenberg */
figcaption.wp-element-caption {
  font-size: 0.8em;
  font-style: italic;
  line-height: 1.5;
}
