/* ============================================================
   UCATECI — Custom CSS para JA Impact
   Sistema → Estilos de plantilla → JA Impact → Custom CSS
   Reemplaza TODO el contenido anterior con este archivo
   ============================================================ */


/* ────────────────────────────────────────────────────────────
   1. ESPACIADO ENTRE MÓDULOS
   ──────────────────────────────────────────────────────────── */
.ucateci-oferta-wrapper    { padding-top: 50px; }
.ucateci-cifras-v2         { padding: 50px 30px; }
.ucateci-testimonios-wrapper { margin: 40px auto 0 auto; }
.ucateci-alianzas-wrapper  { margin: 40px auto 0 auto; }
.ucateci-cta-wrapper       { margin-top: 40px; }
.ucateci-eventos-wrapper   { margin-top: 40px; }


/* ────────────────────────────────────────────────────────────
   2. TÍTULO "Noticias" — mismo estilo que Agenda de la Semana
   ──────────────────────────────────────────────────────────── */
/* ────────────────────────────────────────────────────────────
   2. TÍTULO "Noticias" — mismo estilo que Agenda de la Semana
   (CENTRADO al ocupar 12 columnas)
   ──────────────────────────────────────────────────────────── */
div.section-title.text-secondary {
  font-family: 'Quicksand', sans-serif !important;
  font-size: 1.9rem !important;
  font-weight: 700 !important;
  color: rgba(48, 96, 172, 0.90) !important;
  text-align: center !important;            /* ← antes: left */
  margin: 0 auto 30px auto !important;       /* ← antes: 20px abajo */
  padding: 0 !important;
  border-bottom: none !important;
  background: none !important;
}

/* Línea azul decorativa bajo el título */
div.section-title.text-secondary::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: rgba(48, 96, 172, 0.85);
  border-radius: 2px;
  margin-top: 10px;
  margin-left: auto !important;              /* ← antes: 0 */
  margin-right: auto !important;             /* ← agregado */
}

/* ────────────────────────────────────────────────────────────
   3. MÓDULO ARTÍCULOS — Grid de tarjetas de noticias
   ──────────────────────────────────────────────────────────── */

/* Ocultar h1 duplicado que genera Joomla */
.mod-articles-item h1 {
  display: none !important;
}

/* LISTA → grid de 3 columnas */
ul.mod-articles-items.mod-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* CADA LI */
ul.mod-articles-items.mod-list > li {
  flex: 1;
  min-width: 280px;
  max-width: 340px;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: visible !important;
}

/* TARJETA */
.mod-articles-item {
  background-color: #ffffff;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(48, 96, 172, 0.10);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mod-articles-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(48, 96, 172, 0.18);
}

/* Contenido interno */
.mod-articles-item-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* IMAGEN arriba de la tarjeta */
.mod-articles-item .mod-articles-image {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  height: 210px;
  flex-shrink: 0;
  order: -1;
  border-radius: 16px 16px 0 0;
}

.mod-articles-item .mod-articles-image img {
  width: 100% !important;
  height: 210px !important;
  object-fit: cover !important;
  display: block;
  float: none !important;
  max-width: 100% !important;
  transition: transform 0.4s ease;
}

.mod-articles-item:hover .mod-articles-image img {
  transform: scale(1.04);
}

/* TÍTULO de la tarjeta */
.mod-articles-item .mod-articles-title {
  font-family: 'Quicksand', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 20px 20px 20px 20px;
  order: 0;
}

.mod-articles-item .mod-articles-title a {
  color: rgba(48, 96, 172, 0.90) !important;
  text-decoration: none !important;
  text-transform: capitalize;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mod-articles-item .mod-articles-title a:hover {
  color: rgba(24, 58, 120, 1) !important;
}

/* Flecha → al final del título */
.mod-articles-item .mod-articles-link::after {
  content: ' →';
}

/* RESPONSIVE */
@media (max-width: 680px) {
  ul.mod-articles-items.mod-list > li {
    min-width: 100%;
    max-width: 100%;
  }
}



/* Sombra más visible en las tarjetas */
.mod-articles-item {
  box-shadow: 0 4px 20px rgba(48, 96, 172, 0.15) !important;
  border: 1px solid rgba(48, 96, 172, 0.08) !important;
}

/* Separar el módulo de noticias del módulo de arriba */
.mod-articles-items {
  margin-top: 40px !important;
}
/* Centrar el grid de noticias con padding lateral */
/*
ul.mod-articles-items.mod-list {
  padding-left: 15px !important;
  padding-right: 15px !important;
  justify-content: center !important;
}*/


/* Eliminar franja blanca antes del footer */
.t4-wrap > .t4-section:last-of-type,
.t4-main-wrap {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Limpieza total de cualquier estilo previo aplicado por T4 */
#t4-footer, 
.t4-footer, 
#t4-footer-wrapper, 
footer {
    background-color: #001e42 !important; /* Azul oscuro */
    background-image: none !important;
    border: none !important;
}

/* Forzamos a todos los elementos hijos (textos, links, contenedores) a ser planos */
#t4-footer *, 
.t4-footer *, 
#t4-footer-wrapper *, 
footer * {
    background-color: transparent !important; /* Eliminamos el fondo azul claro */
    background-image: none !important;
    color: #ffffff !important; /* Texto blanco */
    border: none !important;
}

/* Asegurar que los links tengan color blanco y no hereden el color del tema */
#t4-footer a, 
.t4-footer a, 
footer a {
    color: #ffffff !important;
    text-decoration: none !important;
}


/* css para el slider  */

/* ============================================
   FIX: Slider hero JA Impact (ACM)
   #t4-hero > .acm-hero.style-1
   ============================================ */

/* 1. ELIMINAR la capa oscura (gradient overlay del ::after) */
.acm-hero.style-1 .acm-hero-item::after,
.acm-hero .acm-hero-item::after {
    background: transparent !important;
    background-image: none !important;
    display: none !important;
    content: none !important;
}

/* 2. Mostrar la imagen completa (sin recorte) */
.acm-hero.style-1 .acm-hero-item,
.acm-hero .acm-hero-item {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #ffffff !important;
}

/* 3. Ocultar textos superpuestos (ya vienen en la imagen) */
.acm-hero.style-1 .acm-hero-item .container .sub-title,
.acm-hero.style-1 .acm-hero-item .container .title,
.acm-hero.style-1 .acm-hero-item .container .desc,
.acm-hero .acm-hero-item .container .sub-title,
.acm-hero .acm-hero-item .container .title,
.acm-hero .acm-hero-item .container .desc {
    display: none !important;
}

/* 4. Reposicionar el botón "Accede aquí" abajo y centrado */
.acm-hero.style-1 .acm-hero-item .container {
    position: absolute !important;
    bottom: 25px !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    text-align: center !important;
    z-index: 5 !important;
}

.acm-hero.style-1 .acm-hero-item .container .btn,
.acm-hero.style-1 .acm-hero-item .container a.btn {
    background-color: rgba(48, 96, 172, 1) !important;
    border-color: rgba(48, 96, 172, 1) !important;
    color: #fff !important;
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 600 !important;
    padding: 10px 26px !important;
    border-radius: 6px !important;
    display: inline-block !important;
}

.acm-hero.style-1 .acm-hero-item .container .btn:hover {
    background-color: rgba(48, 96, 172, 0.85) !important;
    border-color: rgba(48, 96, 172, 0.85) !important;
}

/* 5. FIX pantallas grandes: limitar ancho y eliminar fondo azul */

/* 5.1 Fondo blanco en TODO el contenedor hero
   (anula el t4-palette-blue que crea el hueco azul) */
#t4-hero,
#t4-hero.t4-palette-blue,
#t4-hero .acm-hero,
#t4-hero .acm-hero.style-1,
#t4-hero .owl-carousel,
#t4-hero .owl-stage-outer,
#t4-hero .owl-stage,
#t4-hero .owl-item {
    background-color: #ffffff !important;
}

/* 5.2 Limitar el ancho del slider a 1920px y centrarlo */
#t4-hero .acm-hero.style-1,
#t4-hero .acm-hero {
    max-width: 1920px !important;
    margin: 0 auto !important;
}

/* 5.3 Altura proporcional del item del slider */
#t4-hero .acm-hero.style-1 .acm-hero-item {
  /*  aspect-ratio: 1920 / 500;*/
    min-height: auto !important;
    height: auto !important;
    max-height: 550px;
    background-color: #ffffff !important;
}

/* 6. Responsive móvil */
@media (max-width: 768px) {
    #t4-hero .acm-hero.style-1 .acm-hero-item {
        aspect-ratio: 16 / 9;
        min-height: 220px !important;
    }
}




/* ============================================
   FIX: Logo a la IZQUIERDA, Redes a la DERECHA
   en el header (topbar)
   ============================================ */

/* 1. La fila distribuye con espacio entre extremos */
#t4-header .header-top .container > .row.justify-content-center {
    justify-content: space-between !important;
    align-items: center !important;
}

/* 2. Logo a la IZQUIERDA */
#t4-header .header-top .col-6.col-lg-3 {
    order: 1 !important;
    flex: 0 0 auto !important;
    text-align: left !important;
}

/* 3. Redes sociales a la DERECHA */
#t4-header .header-top .d-none.d-lg-block.col-lg-9 {
    order: 2 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 40% !important;
}

/* 4. Hamburguesa mobile a la derecha */
#t4-header .header-top .col-6.d-block.d-lg-none {
    order: 3 !important;
}

/* 5. Alinear los íconos DENTRO del módulo ACM a la DERECHA */
#t4-header .acm-social.style-1 {
    text-align: right !important;
    justify-content: flex-end !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
}

#t4-header .acm-social.style-1 ul,
#t4-header .acm-social.style-1 .social-list,
#t4-header .acm-social.style-1 > div {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#t4-header .acm-social.style-1 li,
#t4-header .acm-social.style-1 .social-item {
    margin: 0 !important;
    list-style: none !important;
}

/* 6. Estilo de los íconos (cuadritos blancos con hover azul) */
#t4-header .acm-social.style-1 a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background-color: #ffffff !important;
    border-radius: 6px !important;
    color: rgba(48, 96, 172, 1) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

#t4-header .acm-social.style-1 a:hover {
    background-color: rgba(48, 96, 172, 1) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

#t4-header .acm-social.style-1 a i,
#t4-header .acm-social.style-1 a svg {
    font-size: 18px !important;
    line-height: 1 !important;
}

/* 7. Responsive móvil */
@media (max-width: 991px) {
    #t4-header .acm-social.style-1 {
        display: none !important;
    }
}/* Ocultar iconos de redes sociales en artículos */
.article-tags-social {
    display: none !important;
}


/* Estilos estructurales para el efecto de revelado */
    .hover-card {
        position: relative;
        overflow: hidden;
        min-height: 320px; /* Altura fija para albergar bien el texto al subir */
        background: #ffffff;
    }

    /* El cuerpo que contiene la descripción oculta por defecto */
    .hover-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(27, 54, 115, 0.95); /* Color institucional con opacidad */
        padding: 1.5rem;
        opacity: 0;
        transform: translateY(100%); /* Comienza abajo, fuera de la tarjeta */
        transition: transform 0.4s ease, opacity 0.3s ease;
    }

    /* Comportamiento al pasar el cursor (Hover) */
    .hover-card:hover .hover-overlay {
        opacity: 1;
        transform: translateY(0); /* Sube suavemente a su posición original */
    }


    /* 8-6-2026 */
    /* ============================================
   FIX: Alineación de "Actualidad" y sus tarjetas
   ============================================ */

/* ============================================
   /* ============================================
   FIX v3: Tarjetas con padding lateral + sin huecos
   8-6-2026
   ============================================ */

/* 1. TÍTULO: padding lateral igual al de las tarjetas */
div.section-title.text-secondary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    margin: 0 0 20px 0 !important;
    text-align: left !important;
}

/* 2. LISTA: mismo padding lateral, alineado izquierda */
ul.mod-articles-items.mod-list {
    padding: 0 15px !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
}

/* 3. ALTURA igual de tarjetas — sin huecos vacíos */
ul.mod-articles-items.mod-list > li {
    display: flex !important;
    align-items: stretch !important;
}

.mod-articles-item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
}

.mod-articles-item-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

/* 4. TÍTULO de la tarjeta: sin min-height, fluye natural */
.mod-articles-item .mod-articles-title {
    margin: 0 !important;
    padding: 20px 20px 12px 20px !important;
}

/* 5. "Leer más" pegado debajo del título */
.mod-articles-item .mod-articles-link,
.mod-articles-item p.readmore,
.mod-articles-item .item-readmore {
    margin-top: 0 !important;
    padding: 0 20px 20px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: rgba(48, 96, 172, 0.90) !important;
    text-decoration: none !important;
}


/* ============================================
   FIX: Mostrar SOLO imagen y título en tarjetas de noticias
   Ocultar intro text y "Leer más"
   ============================================ */

/* 1. Ocultar el texto introductorio del artículo */
.mod-articles-item .mod-articles-intro,
.mod-articles-item .item-intro,
.mod-articles-item .article-intro,
.mod-articles-item-content > p:not(.mod-articles-title):not(.readmore),
.mod-articles-item-content > div:not(.mod-articles-image):not(.mod-articles-title) {
    display: none !important;
}

/* 2. Ocultar el "Leer más:" / readmore link */
.mod-articles-item .mod-articles-link,
.mod-articles-item p.readmore,
.mod-articles-item .item-readmore,
.mod-articles-item .readmore {
    display: none !important;
}

/* 3. Ajustar padding del título ahora que es el único contenido textual */
.mod-articles-item .mod-articles-title {
    margin: 0 !important;
    padding: 20px !important;
}

/* 4. Hacer toda la tarjeta clickeable (ya que no hay botón "Leer más") */
.mod-articles-item {
    cursor: pointer;
}

.mod-articles-item .mod-articles-title a {
    display: block !important;
}


/* ────────────────────────────────────────────────────────────
   2. TÍTULO "Actualidad" — centrado robusto
   (cubre el caso de hijos h1/h2/h3/span con estilos propios)
   ──────────────────────────────────────────────────────────── */

/* CONTENEDOR PADRE */
div.section-title.text-secondary {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 1.9rem !important;
    font-weight: 700 !important;
    color: rgba(48, 96, 172, 0.90) !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 auto 30px auto !important;
    float: none !important;
    border-bottom: none !important;
    background: none !important;
}

/* HIJOS DIRECTOS (h1, h2, h3, h4, span, a) — forzar centrado también */
div.section-title.text-secondary > *,
div.section-title.text-secondary h1,
div.section-title.text-secondary h2,
div.section-title.text-secondary h3,
div.section-title.text-secondary h4,
div.section-title.text-secondary span,
div.section-title.text-secondary a {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    font-family: 'Quicksand', sans-serif !important;
    font-size: 1.9rem !important;
    font-weight: 700 !important;
    color: rgba(48, 96, 172, 0.90) !important;
}

/* LÍNEA AZUL — centrada con margin auto */
div.section-title.text-secondary::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: rgba(48, 96, 172, 0.85);
    border-radius: 2px;
    margin: 10px auto 0 auto !important;
}

/* Personalizar puntos de paginación del Widgetkit Slideset
   al color institucional UCATECI */
.uk-slider-nav.uk-dotnav > * > * {
    border-color: rgba(48, 96, 172, 0.40) !important;
    transition: all 0.3s ease;
}

.uk-slider-nav.uk-dotnav > .uk-active > * {
    background-color: rgba(48, 96, 172, 0.85) !important;
    border-color: rgba(48, 96, 172, 0.85) !important;
}

.uk-slider-nav.uk-dotnav > *:hover > * {
    border-color: rgba(48, 96, 172, 0.85) !important;
}

/* También las flechitas de navegación (si las tiene) */
.uk-slidenav {
    color: rgba(48, 96, 172, 0.85) !important;
}

.uk-slidenav:hover {
    color: rgba(24, 58, 120, 1) !important;
}


/*9-6-2026*/
/* ============================================================
   FIX FINAL — Grid responsive para tarjetas de noticias
   Reemplaza el comportamiento flex de los bloques anteriores
   8-6-2026
   ============================================================ */

/* 1. Convertir la lista a GRID con número fijo de columnas */
ul.mod-articles-items.mod-list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;  /* 4 tarjetas en desktop */
    gap: 24px !important;
    padding: 0 15px !important;
    margin: 0 !important;
    list-style: none !important;
    justify-content: stretch !important;
}

/* 2. Anular las propiedades flex del LI (flex:1, min-width, max-width) 
      que entraban en conflicto con el grid */
ul.mod-articles-items.mod-list > li {
    flex: none !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
}

/* 3. Asegurar que la tarjeta ocupe todo el ancho de su celda en el grid */
ul.mod-articles-items.mod-list > li .mod-articles-item {
    width: 100% !important;
}

/* 4. RESPONSIVE: ajustar columnas según el ancho de pantalla */

/* Laptops medianas (1200-1400px): 4 columnas, sigue igual */

/* Tablets grandes (992-1199px): bajar a 3 columnas */
@media (max-width: 1199px) {
    ul.mod-articles-items.mod-list {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Tablets (768-991px): 2 columnas */
@media (max-width: 991px) {
    ul.mod-articles-items.mod-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Móvil (< 600px): 1 columna */
@media (max-width: 600px) {
    ul.mod-articles-items.mod-list {
        grid-template-columns: 1fr !important;
    }
}

/* 5. Ajustar el tamaño del título de la tarjeta en columnas estrechas
      para que no se vea raro con tarjetas más pequeñas */
@media (max-width: 1199px) {
    .mod-articles-item .mod-articles-title {
        font-size: 0.92rem !important;
    }
}

@media (max-width: 991px) {
    .mod-articles-item .mod-articles-title {
        font-size: 0.95rem !important;
    }
}


/* ============================================
   FIX: Reducir altura del header azul (topbar)
   ============================================ */

/* ============================================
   FOOTER: Grid de locaciones institucionales
   ============================================ */

.ucateci-footer-locaciones {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
    max-width: 1320px;
    margin: 0 auto;
}

/* Cada bloque de locación */
.footer-locacion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* HEADER de cada locación (ícono + título) */
.footer-locacion .locacion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 4px;
}

.footer-locacion .locacion-header i {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 0.85rem;
}

.footer-locacion .locacion-header h4 {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.3;
}

/* Lista de info dentro de cada locación */
.footer-locacion ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-locacion ul li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
}

/* Iconos pequeños de cada item */
.footer-locacion ul li > i {
    flex-shrink: 0;
    width: 18px;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.78rem;
    padding-top: 4px;
}

/* Texto y links */
.footer-locacion ul li span,
.footer-locacion ul li a {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.5;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.footer-locacion ul li a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* RESPONSIVE */

/* Tablet: 2 columnas */
@media (max-width: 992px) {
    .ucateci-footer-locaciones {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Móvil: 1 columna */
@media (max-width: 600px) {
    .ucateci-footer-locaciones {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================
   FIX: Forzar full-width al módulo de locaciones
   en TODAS las páginas (#t4-footnav)
   ============================================ */

/* Forzar que cualquier columna dentro de #t4-footnav
   ocupe el 100% del ancho disponible */
#t4-footnav .t4-row > .t4-col,
#t4-footnav .t4-row > [class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Y forzar también que el grid de locaciones use todo ese ancho */
#t4-footnav .ucateci-footer-locaciones {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px 0 !important;
}

/* ============================================
   FIX: Eliminar espacio en blanco entre la última
   sección de contenido y el footer azul
   ============================================ */

/* 1. Quitar margin-bottom de la última sección antes del footer */
#t4-section-1{

    margin-bottom: 0px !important;
}


/* Línea sutil debajo del menú principal */
#t4-header .t4-header-height {
border-bottom: 1px solid rgba(48, 96, 172, 0.12);

}


/* ============================================
   ESTILOS: Página completa de categoría "Prensa"
   /conoce-la-ucateci/actualidad
   ============================================ */
/* ============================================
   ESTILOS: Página completa de categoría "Prensa"
   /conoce-la-ucateci/actualidad
   ============================================ */

/* ============================================
   PÁGINA: Lista de noticias (categoría Prensa)
   /conoce-la-ucateci/actualidad
   Layout: "Lista de categoría" — clases reales
   ============================================ */

/* 1. Limpiar la tabla Bootstrap del aspecto de tabla */
.com-content-category__table {
    background-color: transparent !important;
    border: none !important;
    width: 100% !important;
    max-width: 1320px !important;
    margin: 30px auto !important;
}

/* 2. Ocultar header de tabla (Título / Fecha) */
.com-content-category__table thead {
    display: none !important;
}

/* 3. Convertir tbody en grid de 3 columnas */
.com-content-category__table tbody {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    padding: 0 15px !important;
}

/* 4. Cada fila (tr) se convierte en tarjeta */
.com-content-category__table tbody tr {
    display: flex !important;
    flex-direction: column !important;
    background-color: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(48, 96, 172, 0.15) !important;
    border: 1px solid rgba(48, 96, 172, 0.08) !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
}

.com-content-category__table tbody tr:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(48, 96, 172, 0.18) !important;
}

/* 5. Anular el "table-striped" (filas alternadas) */
.com-content-category__table tbody tr:nth-of-type(odd),
.com-content-category__table tbody tr:nth-of-type(even) {
    background-color: #ffffff !important;
    --bs-table-accent-bg: transparent !important;
}

/* 6. Anular bordes de celdas (table-bordered) */
.com-content-category__table td,
.com-content-category__table th {
    border: none !important;
    padding: 20px !important;
    background: transparent !important;
    display: block !important;
    width: 100% !important;
    text-align: left !important;
}

/* 7. Título de cada artículo */
.com-content-category__table td a {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: rgba(48, 96, 172, 0.90) !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    display: block !important;
    text-transform: capitalize !important;
}

.com-content-category__table td a:hover {
    color: rgba(24, 58, 120, 1) !important;
    text-decoration: none !important;
}

/* 8. Ocultar la columna de fecha (segunda td) */
.com-content-category__table td:nth-child(2) {
    display: none !important;
}

/* 9. Filtros y selectores arriba (Filtrar, Cantidad mostrada) */
.com-content-category__filters {
    max-width: 1320px !important;
    margin: 0 auto 20px auto !important;
    padding: 0 15px !important;
    border: none !important;
}

.com-content-category__filters legend {
    display: none !important;
}

/* 10. Paginación */
.com-content-category .pagination {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 30px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    max-width: 1320px !important;
    margin: 30px auto !important;
}

.pagination .page-item .page-link {
    background-color: #ffffff !important;
    border: 1px solid rgba(48, 96, 172, 0.20) !important;
    color: rgba(48, 96, 172, 0.85) !important;
    font-family: 'Quicksand', sans-serif !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
}

.pagination .page-item.active .page-link,
.pagination .page-item .page-link:hover {
    background-color: rgba(48, 96, 172, 0.85) !important;
    color: #ffffff !important;
    border-color: rgba(48, 96, 172, 0.85) !important;
}

/* 11. Responsive */
@media (max-width: 992px) {
    .com-content-category__table tbody {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .com-content-category__table tbody {
        grid-template-columns: 1fr !important;
    }
}

/* Título "Actualidad" del home: clickeable, mantiene estilo */
div.section-title.text-secondary a.titulo-link {
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

div.section-title.text-secondary a.titulo-link:hover {
    opacity: 0.75;
    text-decoration: none !important;
}


/* ============================================
   Botón "Ver todas las noticias" — Home
   ============================================ */

.ucateci-ver-todas {
    text-align: center;
    margin: 30px 0 60px 0;
    padding: 0 15px;
}

.ucateci-ver-todas a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: transparent;
    border: 2px solid rgba(48, 96, 172, 0.85);
    color: rgba(48, 96, 172, 0.85) !important;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: none;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.ucateci-ver-todas a:hover {
    background-color: rgba(48, 96, 172, 0.85);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(48, 96, 172, 0.25);
}

.ucateci-ver-todas a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.ucateci-ver-todas a:hover i {
    transform: translateX(5px);
}

/* ============================================================
   UCATECI 2026 - capa visual institucional
   Mejora de estilo aplicada sin tocar la estructura Joomla/T4.
   ============================================================ */

:root {
  --uc-blue-950: #071b3d;
  --uc-blue-900: #0b2a5b;
  --uc-blue-800: #123a78;
  --uc-blue-700: #1c4d99;
  --uc-blue-600: #3060ac;
  --uc-gold-500: #c99a2e;
  --uc-sky-50: #f5f8fc;
  --uc-surface: #ffffff;
  --uc-text: #132238;
  --uc-muted: #64748b;
  --uc-border: rgba(18, 58, 120, 0.12);
  --uc-shadow-sm: 0 8px 24px rgba(7, 27, 61, 0.08);
  --uc-shadow-md: 0 18px 44px rgba(7, 27, 61, 0.12);
  --uc-radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--uc-sky-50) !important;
  color: var(--uc-text) !important;
  font-family: "Readex Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  line-height: 1.6;
}

a {
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible {
  outline: 3px solid rgba(201, 154, 46, 0.7) !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

.container,
.t4-section-inner.container {
  max-width: 1180px;
}

/* Header institucional */
#t4-header {
  position: sticky;
  top: -150px;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(7, 27, 61, 0.08);
}

#t4-header .header-top {
  background: linear-gradient(90deg, var(--uc-blue-950), var(--uc-blue-800));
  color: #ffffff;
  padding: 6px 0 !important;
}

#t4-header .navbar-brand img.logo-img {
  max-width: 188px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12));
}

#t4-header .t4-header-height {
  min-height: 58px;
  background: #ffffff;
  border-bottom: 1px solid var(--uc-border) !important;
  box-shadow: 0 8px 24px rgba(7, 27, 61, 0.08);
  position: relative;
  transition: background-color 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

body.ucateci-menu-stuck #t4-header .t4-header-height {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(48, 96, 172, 0.14) !important;
  box-shadow: 0 12px 30px rgba(7, 27, 61, 0.12);
  backdrop-filter: blur(12px);
}

#t4-header .navbar-nav.level0 {
  align-items: center;
  gap: 2px;
  transition: padding-left 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#t4-header .t4-header-height::before {
  content: "";
  position: absolute;
  left: max(18px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  background-image: url("../../../../images/logo-menu.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 42px 42px;
  border: 1px solid rgba(48, 96, 172, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(7, 27, 61, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-14px) scale(0.86);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#t4-header .t4-header-height::after {
  content: "";
  position: absolute;
  left: max(82px, calc((100vw - 1180px) / 2 + 64px));
  top: 50%;
  width: 2px;
  height: 30px;
  background: linear-gradient(180deg, transparent, var(--uc-gold-500), transparent);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scaleY(0.55);
  transition: opacity 0.24s ease 0.08s, transform 0.24s ease 0.08s;
}

body.ucateci-menu-stuck #t4-header .t4-header-height::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

body.ucateci-menu-stuck #t4-header .t4-header-height::after {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}

body.ucateci-menu-stuck #t4-header .navbar-nav.level0 {
  padding-left: 92px;
}

#t4-header .navbar-nav.level0 > li > .nav-link,
#t4-header .navbar-nav.level0 > li > .separator {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px !important;
  border-radius: 8px;
  color: var(--uc-blue-950) !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  transition: background-color 0.18s ease, color 0.18s ease;
}

#t4-header .navbar-nav.level0 > li.active > .nav-link,
#t4-header .navbar-nav.level0 > li > .nav-link:hover,
#t4-header .navbar-nav.level0 > li > .separator:hover {
  background: rgba(48, 96, 172, 0.08);
  color: var(--uc-blue-700) !important;
}

#t4-header .dropdown-menu {
  border: 1px solid var(--uc-border) !important;
  border-radius: 10px !important;
  box-shadow: var(--uc-shadow-md) !important;
  padding: 10px !important;
}

#t4-header .dropdown-item {
  border-radius: 8px;
  color: var(--uc-text) !important;
  font-size: 0.88rem;
  line-height: 1.35;
  padding: 10px 12px !important;
}

#t4-header .dropdown-item:hover,
#t4-header .dropdown-item:focus {
  background: rgba(48, 96, 172, 0.08) !important;
  color: var(--uc-blue-800) !important;
}

#t4-header .acm-social.style-1 a,
#t4-header .social-follow a.icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--uc-gold-500) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: var(--uc-blue-950) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

#t4-header .acm-social.style-1 a span,
#t4-header .social-follow a.icon span,
#t4-header .social-follow a.icon .fa {
  color: var(--uc-blue-950) !important;
}

#t4-header .acm-social.style-1 a:hover,
#t4-header .social-follow a.icon:hover {
  background: #ffffff !important;
  transform: translateY(-2px);
}

/* Secciones y titulos */
.t4-section {
  background: transparent;
}

#t4-section-2,
#t4-section-3,
#t4-section-4,
#t4-section-5 {
  padding-top: 58px;
  padding-bottom: 58px;
}

div.section-title.text-secondary,
.ucateci-oferta-titulo h2,
.ucateci-alianzas-titulo h2,
.ucateci-eventos-header h2 {
  color: var(--uc-blue-900) !important;
  font-family: "Readex Pro", system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

div.section-title.text-secondary::after,
.ucateci-oferta-titulo .titulo-linea,
.ucateci-alianzas-titulo .titulo-linea,
.ucateci-eventos-linea {
  background: var(--uc-gold-500) !important;
  height: 3px !important;
  border-radius: 999px !important;
}

.ucateci-oferta-titulo p,
.ucateci-alianzas-titulo p,
.ucateci-eventos-header p {
  color: var(--uc-muted) !important;
  font-size: 1rem !important;
}

/* Accesos rapidos */
.opetus-centro-servicios {
  border: 1px solid var(--uc-border) !important;
  border-radius: var(--uc-radius) !important;
  box-shadow: var(--uc-shadow-sm) !important;
  padding: 28px 24px !important;
  gap: 8px !important;
}

.opetus-item {
  border-radius: 10px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.opetus-item::after {
  display: none !important;
}

.opetus-item:hover {
  background: rgba(48, 96, 172, 0.06);
  transform: translateY(-3px) !important;
}

.opetus-circulo {
  width: 72px !important;
  height: 72px !important;
  border-radius: 16px !important;
  background: rgba(48, 96, 172, 0.07) !important;
  border: 1px solid rgba(48, 96, 172, 0.18) !important;
}

.opetus-circulo i {
  color: var(--uc-blue-700) !important;
  font-size: 28px !important;
}

.opetus-item:hover .opetus-circulo {
  background: var(--uc-blue-700) !important;
  box-shadow: 0 10px 24px rgba(18, 58, 120, 0.22) !important;
}

.opetus-item:hover .opetus-circulo i {
  color: #ffffff !important;
}

.opetus-titulo {
  color: var(--uc-text) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.02em !important;
}

/* Tarjetas de oferta academica */
.ucateci-oferta-wrapper {
  max-width: 1180px !important;
}

.ucateci-oferta-grid {
  gap: 22px !important;
}

.ucateci-oferta-card {
  border-radius: var(--uc-radius) !important;
  box-shadow: var(--uc-shadow-sm) !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ucateci-oferta-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--uc-shadow-md) !important;
}

.ucateci-oferta-card-overlay {
  background: linear-gradient(180deg, rgba(7, 27, 61, 0.1) 0%, rgba(7, 27, 61, 0.72) 58%, rgba(7, 27, 61, 0.94) 100%) !important;
}

.ucateci-oferta-card::after {
  background-color: var(--uc-gold-500) !important;
}

.ucateci-oferta-icono {
  border-radius: 14px !important;
}

.ucateci-oferta-card-titulo {
  font-size: 1.35rem !important;
}

/* Noticias, vida universitaria y bloques de confianza */
.mod-articles-item,
.ucateci-cifras-v2,
.ucateci-alianzas-wrapper,
.ucateci-eventos-wrapper,
.ucateci-footer-locaciones {
  border: 1px solid var(--uc-border) !important;
  border-radius: var(--uc-radius) !important;
  box-shadow: var(--uc-shadow-sm) !important;
}

.mod-articles-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--uc-shadow-md) !important;
}

.mod-articles-item .mod-articles-title a,
.com-content-category__table td a {
  color: var(--uc-blue-900) !important;
}

.mod-articles-item .mod-articles-title a:hover,
.com-content-category__table td a:hover {
  color: var(--uc-blue-600) !important;
}

.ucateci-cifra-icono-wrap {
  border-radius: 14px !important;
  border-color: rgba(48, 96, 172, 0.16) !important;
  background: rgba(48, 96, 172, 0.06);
}

.ucateci-cifra-numero,
.ucateci-cifra-numero .sufijo {
  color: var(--uc-blue-900) !important;
}

.ucateci-cifra-label {
  color: var(--uc-muted) !important;
}

.ucateci-logo-item {
  border-radius: 10px !important;
  background: #ffffff !important;
  border-color: var(--uc-border) !important;
}

.ucateci-logo-item:hover {
  background: rgba(48, 96, 172, 0.05) !important;
  box-shadow: var(--uc-shadow-sm) !important;
}

/* Botones */
.btn,
.ucateci-ver-todas a,
.ucateci-btn-agenda,
.ucateci-oferta-card-link {
  letter-spacing: 0 !important;
}

.ucateci-ver-todas a,
.ucateci-btn-agenda {
  min-height: 44px;
  border-radius: 999px !important;
  border-color: var(--uc-blue-700) !important;
  color: var(--uc-blue-800) !important;
}

.ucateci-ver-todas a:hover,
.ucateci-btn-agenda:hover {
  background: var(--uc-blue-800) !important;
  border-color: var(--uc-blue-800) !important;
  color: #ffffff !important;
}

/* Footer */
#t4-footnav {
  background: linear-gradient(135deg, var(--uc-blue-950), var(--uc-blue-800)) !important;
}

.footer-locacion {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 22px !important;
  position: relative;
}

.footer-locacion:not(:last-child)::after {
  display: none !important;
}

.footer-locacion .locacion-header {
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  padding: 0 0 13px 0 !important;
  margin-bottom: 18px !important;
  gap: 10px !important;
}

.footer-locacion .locacion-header i {
  color: var(--uc-gold-500) !important;
  background: rgba(255, 255, 255, 0.11) !important;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  font-size: 0.82rem !important;
}

.footer-locacion .locacion-header h4 {
  color: #ffffff !important;
  font-size: 0.95rem !important;
  line-height: 1.25 !important;
  letter-spacing: 0.03em !important;
}

.footer-locacion ul li {
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.footer-locacion ul li > i {
  color: rgba(255, 255, 255, 0.58) !important;
  margin-top: 3px;
}

.footer-locacion ul li span,
.footer-locacion ul li a {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
}

.footer-locacion ul li a:hover {
  color: #ffffff !important;
}

/* Responsive */
@media (max-width: 991.98px) {
  #t4-header {
    position: relative;
    top: auto;
  }

  #t4-header .header-top {
    padding: 8px 0 !important;
  }

  #t4-header .navbar-brand img.logo-img {
    max-width: 170px;
  }

  #t4-section-2,
  #t4-section-3,
  #t4-section-4,
  #t4-section-5 {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .opetus-centro-servicios,
  .ucateci-cifras-v2,
  .ucateci-alianzas-wrapper {
    padding: 26px 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #t4-header .t4-header-height,
  #t4-header .t4-header-height::before,
  #t4-header .t4-header-height::after,
  #t4-header .navbar-nav.level0 {
    transition: none !important;
  }
}

@media (max-width: 575.98px) {
  div.section-title.text-secondary,
  .ucateci-oferta-titulo h2,
  .ucateci-alianzas-titulo h2,
  .ucateci-eventos-header h2 {
    font-size: 1.55rem !important;
  }

  .opetus-item {
    min-width: 46% !important;
    max-width: 48% !important;
    min-height: 132px;
  }

  .opetus-circulo {
    width: 60px !important;
    height: 60px !important;
  }

  .opetus-circulo i {
    font-size: 23px !important;
  }

  .ucateci-oferta-card {
    height: 250px !important;
  }

  .footer-locacion {
    padding: 0 !important;
  }

  .footer-locacion:not(:last-child)::after {
    display: none;
  }

  .footer-locacion .locacion-header {
    border-bottom-color: rgba(255, 255, 255, 0.16) !important;
  }
}
