/* ============================================
   DESIGN SYSTEM — Inspirado en UPSA + Winestore
   ============================================ */
:root {
    --color-primario: #004080;
    --color-secundario: #00264d;
    --color-terciario: #ffffff;
    --color-acento: #FFD700;
    --color-fondo: #fafafa;
    --color-texto: #2d2d3a;
    --color-texto-suave: #6b7280;
    --sombra-suave: 0 4px 20px rgba(0, 64, 128, 0.06);
    --sombra-media: 0 8px 30px rgba(0, 64, 128, 0.10);
    --sombra-fuerte: 0 12px 40px rgba(0, 64, 128, 0.15);
    --radio-suave: 16px;
    --radio-redondo: 50px;
    --transicion: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


/* crea variables de colores */
.bg_pri {
    background-color: var(--color-primario);
}

.bg_sec {
    background-color: var(--color-secundario);
}

.bg_ter {
    background-color: var(--color-terciario);
}

.color_pri {
    color: var(--color-primario);
}

.color_sec {
    color: var(--color-secundario);
}

.color_ter {
    color: var(--color-terciario);
}

.btn_sec {
    color: white;
    background-color: var(--color-secundario);
}

.btn_sec:hover {
    background-color: var(--color-primario);
    /* Cambia a un color diferente en hover */
    color: white;
}

.btn_pri {
    color: white;
    background-color: var(--color-secundario);
}

/* FUENTE DE TEXTO — Stack premium */
body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: var(--color-texto);
    line-height: 1.7;
    background-color: var(--color-fondo);
}


/* botones */

.btn-outline-success {
    color: var(--color-primario);
    border-color: var(--color-secudaria);
}

/* botones */


/* Estilos para las tarjetas */
.card-info {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.card-info .card-block {
    padding: 1.5rem;
}

.card-info .card-footer {
    background-color: #f5c6cb;
    text-align: center;
}

/* Iconos de la tarjeta */
.card-info .fa-user,
.card-info .fa-key {
    font-size: 30px;
}

/* Estilos del gráfico */
#visitor {
    height: 300px;
    overflow: hidden;
    text-align: left;
}

/* Estilos para los textos de la tarjeta */
.card-footer p {
    font-size: 14px;
    color: #000;
    margin: 0;
}

.card-header-right ul li {
    list-style: none;
    display: inline-block;
    padding: 10px;
}

.card-header-right ul li i {
    font-size: 20px;
}


/* SOMBRAS */
.sombra {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    /* Sombra suave */
}

.sombra_b {
    box-shadow: 0 -4px 8px rgb(255, 255, 255);
}

/* TABLA */
/* Fondo de la tabla */
.table-borderless {
    /* border-radius: 20px !important;  */
    overflow: hidden;
    border: 1px solid white;
}


/* Estilos para los badges personalizados */
.search_bar {
    max-width: 400px;
    margin: auto auto;
}

.search_bar .input-group {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.692);
}

.search_bar .form-control {
    border: none;
    padding-left: 20px;
}

.search_bar .btn {
    border: none;
    padding: 10px 20px;
}

/* PUBLIC NAVBAR */
/* La página activa: fondo completo en el <a> */
.bg_active_nav {
    background-color: var(--color-secundario) !important;
    color: white !important;
    border-radius: 10px !important;
    display: block !important;
}

.bg_active_nav:hover {
    background-color: var(--color-primario) !important;
    color: var(--color-terciario) !important;
}

/* Quitar fondo del li para que no interfiera */
.nav-item:hover {
    background-color: transparent !important;
}

/* Hover del nav-link: fondo en el <a> = área 100% clicable */
.navbar-pro .nav-link:hover {
    background-color: var(--color-secundario) !important;
    color: white !important;
    border-radius: 10px !important;
}

/* El <a> debe ocupar todo el espacio del <li> */
.navbar-pro .nav-item {
    display: flex;
    align-items: stretch;
}

.navbar-pro .nav-item > .nav-link {
    display: flex !important;
    align-items: center !important;
    width: 100%;
}






@keyframes parpadeo {
    0% {
        opacity: 1;
        /* Fully visible */
    }

    100% {
        opacity: 0;
        /* Fully invisible */
    }
}

.notificacion {
    animation: parpadeo 1s ease-in-out infinite alternate;
}

/* colores para adminLTE */
/* Admin LTE Sidebar */
.sidebar-dark-info {
    background: linear-gradient(180deg, #004080 0%, #00264d 100%) !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Cambia el color de fondo del contenedor del logo */
.brand-link {
    background-color: #00264d !important;
}

/* Opcional: cambia el color del texto del logo */
.brand-text {
    color: #ffffff !important;
    /* Texto blanco */
}


/* Admin LTE Navbar */
.navbar-white {
    background: #f0f0f0 !important;
    box-shadow: 0 0 10px #797979;
}

/* hover */
.sidebar-dark-info .nav-sidebar>.nav-item>.nav-link.active {
    background-color: var(--color-secundario) !important;
    font-size: 16px;
}

/* cambiar color del boton principal de bootstrap */
.btn-primary {
    background-color: var(--color-primario);
    border-color: var(--color-primario);
}

/* el hover */
.btn-primary:hover {
    background-color: var(--color-secundario);
    border-color: var(--color-secundario);
}

.btn-primary.focus,
.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 64, 128, 0.4);
}

.btn-primary.active,
.btn-primary:active {
    background-color: var(--color-primario);
    border-color: var(--color-primario);
}

.modal {
    z-index: 9995 !important;
}

.select2-search__field {
    z-index: 10000 !important;
}

.select2-container {
    z-index: 10000 !important;
}




.card-section {
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.card-section:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    background-color: #e9ecef;
}

.card-footer {
    background-color: #f1f1f1;
    border-radius: 0 0 15px 15px;
}

.card-body {
    border-radius: 10px;
}

.card {
    border-radius: 15px;
    overflow: hidden;
}

.card-footer .btn {
    border-radius: 5px;
}

/* INPUT SWITCH */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    /* Ajusta el ancho */
    height: 28px;
    /* Ajusta la altura */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 28px;
    /* Ajusta el radio para que el switch siga teniendo bordes redondeados */
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    /* Ajusta el tamaño del círculo */
    width: 20px;
    /* Ajusta el tamaño del círculo */
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

input:checked+.slider {
    background-color: #4CAF50;
    /* Color verde cuando está activado */
}

input:checked+.slider:before {
    transform: translateX(22px);
    /* Mueve el círculo del switch */
}


.card_oferta {
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 24px;
    padding: 24px;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

.card_oferta:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(-5px);
}

/* ARTUILCU */

.bg-azul-agora {
    background-color: #004080;
    color: white;
}

.btn-agora {
    background-color: #004080;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 10px;
}

.img-revista {
    width: 100%;
    border-radius: 10px;
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); */
}

.badge-prox {
    background-color: #00264d;
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.platform-text {
    font-size: 1.1rem;
    font-family: Georgia, serif;
    margin-top: 8px;
}

.bg-crema {
    background-color: #f2f2ec;
}


/* noticia emergente */
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
}


.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu {
    transition: all 0.3s ease-in-out;
}


/* BOTONES DE TEXTAREA */
.btn-editor {
    background-color: #f1f3f5;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-editor:hover {
    background-color: #0d6efd;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.btn-editor:active {
    transform: scale(0.95);
    background-color: #0b5ed7;
}


/* PAGINADOR */
/* Contenedor */
.pagination {
    gap: 0.35rem;
}

/* Botones */
.pagination .page-link {
    border-radius: 50% !important;
    padding: 0.48rem 1rem;
    color: #004080;
    /* color principal */
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

/* Botones activos */
.pagination .page-item.active .page-link {
    background-color: #004080;
    color: #fff;
    border-color: #004080;
    box-shadow: 0 4px 12px rgba(0, 64, 128, 0.4);
}

/* Hover */
.pagination .page-link:hover {
    background-color: #e6f2ff;
    border-color: #004080;
    color: #004080;
}

/* Botones deshabilitados */
.pagination .page-item.disabled .page-link {
    color: #aaa;
    cursor: not-allowed;
    background-color: #f8f9fa;
    border-color: #ddd;
}

/* Flechas de anterior/siguiente */
.pagination .page-item .page-link span {
    font-weight: bold;
    font-size: 1.1rem;
}


/* modulo notcias public */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.img-hover-scale:hover {
    transform: scale(1.05);
}

.btn-success {
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #1f7a1f;
    box-shadow: 0 4px 12px rgba(31, 122, 31, 0.4);
}


/* img noticia*/
@media (max-width: 768px) {
    .noticia-img-container {
        width: 100% !important;
        height: auto !important;
    }
}


/* estilos personalizados para categorias span */
.bg_blue {
    background-color: #004080 !important;
    color: rgb(255, 255, 255) !important;
}

.bg_naranja {
    background-color: #ff7300 !important;
    color: white !important;
}

.bg_amarillo {
    background-color: #ffcc00 !important;
    color: black !important;
}


/* ============================================
   NAVBAR PROFESIONAL
   ============================================ */
.navbar-pro {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.navbar-pro:hover {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar-brand-custom {
    transition: transform 0.3s ease;
}

.navbar-brand-custom:hover {
    transform: scale(1.05);
}

.navbar-pro .nav-link {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.25s ease;
    border-radius: 8px;
    position: relative;
}

.navbar-pro .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-secundario);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-pro .nav-link:hover::after {
    width: 0; /* ocultar línea decorativa cuando hay fondo de hover */
}

.navbar-pro .nav-link.bg_active_nav::after {
    width: 0;
}

/* Dropdown animado */
.dropdown-menu-animate {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.5rem;
    animation: dropdownFadeIn 0.25s ease forwards;
    transform-origin: top center;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu-animate .dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.dropdown-menu-animate .dropdown-item:hover {
    background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
    color: #fff !important;
    transform: translateX(4px);
}

.dropdown-menu-animate .dropdown-item:hover .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Botón Acceder */
.btn-acceder {
    background: linear-gradient(135deg, #004080, #00264d);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.55rem 1.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 64, 128, 0.3);
}

.btn-acceder:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 64, 128, 0.45);
}

.btn-acceder:active {
    transform: translateY(0);
}


/* ============================================
   FOOTER PROFESIONAL
   ============================================ */
.footer-pro {
    background: linear-gradient(180deg, #004080 0%, #00264d 100%);
    color: #fff;
    position: relative;
}

.footer-gradient-line {
    height: 4px;
    background: linear-gradient(90deg, var(--color-secundario), var(--color-primario), var(--color-secundario));
    background-size: 200% auto;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

.footer-title {
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--color-secundario);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

.footer-links li a:hover {
    color: #fff;
    padding-left: 6px;
}

.footer-links li a .fa-chevron-right {
    font-size: 0.6rem;
    transition: transform 0.25s ease;
}

.footer-links li a:hover .fa-chevron-right {
    transform: translateX(4px);
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
}

.footer-contact-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Forzar color blanco en los títulos del footer ahogados por el !important global */
.footer-pro h1,
.footer-pro h2,
.footer-pro h3,
.footer-pro h4,
.footer-pro h5,
.footer-pro h6,
.footer-title {
    color: #ffffff !important;
}

/* Iconos de redes sociales */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: #fff;
    transform: translateY(-4px) scale(1.1);
}

.social-icon[title="Facebook"]:hover {
    background: #1877f2;
}

.social-icon[title="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon[title="YouTube"]:hover {
    background: #ff0000;
}

.social-icon[title="TikTok"]:hover {
    background: #000;
    box-shadow: 0 0 10px #69c9d0, 0 0 10px #ee1d52;
}

.footer-bottom {
    background: #0b0735;
    padding: 1rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}


/* ============================================
   ANIMACIÓN fade-in-up (scroll)
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   TIPOGRAFÍA PREMIUM (estilo UPSA)
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    color: var(--color-primario);
    letter-spacing: -0.3px;
}

h2 {
    font-size: 1.85rem;
    position: relative;
    padding-bottom: 12px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secundario), var(--color-acento));
    border-radius: 4px;
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}


/* ============================================
   TARJETAS DE NOTICIAS PREMIUM (estilo Winestore)
   ============================================ */
.hover-card {
    border-radius: var(--radio-suave) !important;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    overflow: hidden;
    border: 1px solid rgba(16, 11, 73, 0.04) !important;
    background: #fff;
}

.hover-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-fuerte);
    border-color: rgba(200, 169, 110, 0.2) !important;
}

.hover-card .img-hover-scale {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card:hover .img-hover-scale {
    transform: scale(1.08);
}

/* Overlay sutil sobre la imagen en hover */
.noticia-img-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radio-suave) 0 0 var(--radio-suave);
}

.noticia-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(16, 11, 73, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hover-card:hover .noticia-img-container::after {
    opacity: 1;
}

/* Título de noticia */
.hover-card h3 {
    font-size: 1.15rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.hover-card:hover h3 {
    color: var(--color-secundario);
}


/* ============================================
   BADGES DE CATEGORÍA — Glassmorphism
   ============================================ */
.badge {
    font-size: 0.72rem !important;
    letter-spacing: 0.8px;
    padding: 0.45em 1em !important;
    border-radius: var(--radio-redondo) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    font-weight: 600;
}


/* ============================================
   BOTÓN "LEER MÁS" PREMIUM
   ============================================ */
.btn.bg_pri.rounded-pill {
    background: linear-gradient(135deg, #004080, #00264d) !important;
    border: none;
    padding: 0.5rem 1.6rem;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    transition: var(--transicion);
    position: relative;
    overflow: hidden;
}

.btn.bg_pri.rounded-pill::after {
    content: '→';
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn.bg_pri.rounded-pill:hover {
    background: linear-gradient(135deg, #00264d, #001a33) !important;
    transform: translateX(3px);
    box-shadow: 0 4px 18px rgba(0, 64, 128, 0.35);
}

.btn.bg_pri.rounded-pill:hover::after {
    transform: translateX(5px);
}


/* ============================================
   SIDEBAR CATEGORÍAS PREMIUM
   ============================================ */
.card.shadow-sm.rounded-4 {
    border: none !important;
    box-shadow: var(--sombra-media) !important;
    border-radius: var(--radio-suave) !important;
    background: #fff;
}

.card.shadow-sm.rounded-4 h5 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.card.shadow-sm.rounded-4 h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2.5px;
    background: var(--color-acento);
    border-radius: 3px;
}

.list-group-item {
    border: none !important;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 10px !important;
    margin-bottom: 3px;
    transition: var(--transicion);
    color: var(--color-texto);
}

.list-group-item:hover {
    background: rgba(0, 64, 128, 0.05) !important;
    color: var(--color-primario) !important;
    padding-left: 1.3rem;
}

.list-group-item.bg_pri {
    color: #fff !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 12px rgba(0, 64, 128, 0.25);
}


/* ============================================
   CONTENEDOR DE NOTICIAS — Espaciado moderno
   ============================================ */
#noticias-container h2 {
    margin-bottom: 1.8rem;
}

#noticias-container .row.g-4>.col-12 {
    margin-bottom: 0.5rem;
}


/* ============================================
   BOTÓN WHATSAPP FLOTANTE — Pulso
   ============================================ */
.btn-whatsapp-float,
.btn_whatsapp_flotante {
    animation: whatsappPulse 2s ease-in-out infinite;
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    50% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
}


/* ============================================
   TRANSICIÓN SUAVE DE PÁGINA
   ============================================ */
main {
    animation: pageLoad 0.5s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   SECCIÓN CONTACTO PREMIUM
   ============================================ */
.table.text-white tbody.bg_pri {
    border-radius: var(--radio-suave);
    overflow: hidden;
    box-shadow: var(--sombra-media);
}

.table.text-white tbody.bg_pri tr {
    transition: background 0.3s ease;
}

.table.text-white tbody.bg_pri tr:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn_facebook,
.btn_instagram,
.btn_youtube,
.btn_tiktok,
.btn_grupo_whatsapp {
    border-radius: var(--radio-redondo) !important;
    padding: 0.55rem 1.4rem !important;
    font-weight: 600;
    transition: var(--transicion);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.btn_facebook:hover,
.btn_instagram:hover,
.btn_youtube:hover,
.btn_tiktok:hover,
.btn_grupo_whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}


/* ============================================
   RESPONSIVE — Ajustes móviles
   ============================================ */
@media (max-width: 768px) {
    h2 {
        font-size: 1.4rem;
    }

    .navbar-pro .nav-link {
        font-size: 0.85rem !important;
        padding: 0.6rem 1rem !important;
    }

    .hover-card .row.g-0 {
        flex-direction: column;
    }

    .noticia-img-container {
        border-radius: var(--radio-suave) var(--radio-suave) 0 0 !important;
        width: 100% !important;
        height: 200px !important;
    }

    .footer-pro .row {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ============================================
   QUIÉNES SOMOS — Animaciones y Estilos (Estilo Saguapac)
   ============================================ */
.float-anim {
    animation: floatingWater 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 64, 128, 0.15));
}

@keyframes floatingWater {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.qs-hero {
    background: linear-gradient(135deg, #004080 0%, #00264d 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.qs-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg opacity="0.08" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="white"/></svg>') no-repeat center center;
    background-size: cover;
    pointer-events: none;
}

/* Forzar texto blanco en heroes con fondo oscuro */
.qs-hero h1,
.qs-hero h2,
.qs-hero h3,
.qs-hero h4,
.qs-hero h5,
.qs-hero h6 {
    color: #ffffff !important;
}

.qs-hero h2::after {
    display: none;
}

.qs-card {
    background: #fff;
    border-radius: var(--radio-suave);
    padding: 3rem 2rem;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    height: 100%;
    position: relative;
    z-index: 1;
    border-top: 4px solid transparent;
}

.qs-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-fuerte);
    border-top-color: var(--color-secundario);
}

.qs-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(0, 64, 128, 0.08);
    color: var(--color-secundario);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    transition: var(--transicion);
}

.qs-card:hover .qs-icon-wrapper {
    background: var(--color-secundario);
    color: #fff;
    transform: scale(1.1);
}

/* ============================================
   SERVICIOS PREMIUM (Estilo Saguapac / Divi)
   ============================================ */
.service-card {
    background: #fff;
    border-radius: var(--radio-suave);
    overflow: hidden;
    position: relative;
    border: none;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 64, 128, 0.15);
    /* Sombra elegante rojiza */
}

.service-img-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}

.service-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 64, 128, 0.5));
    opacity: 0.6;
    transition: var(--transicion);
}

.service-card:hover .service-img-overlay {
    background: linear-gradient(180deg, transparent 20%, rgba(0, 64, 128, 0.8));
    opacity: 0.9;
}

.service-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
}

/* Decoración abstracta superior */
.service-content::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: var(--color-acento);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(200, 169, 110, 0.4);
    z-index: 2;
    transition: var(--transicion);
}

.service-card:hover .service-content::before {
    transform: rotate(90deg) scale(1.1);
    background: var(--color-primario);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primario);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.service-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--color-acento);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.service-card:hover .service-title::after {
    width: 80px;
    background: var(--color-secundario);
}

.service-desc {
    color: var(--color-texto-suave);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Número de servicio discreto */
.service-number {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(0, 64, 128, 0.04);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    transition: var(--transicion);
}

.service-card:hover .service-number {
    color: rgba(0, 64, 128, 0.08);
    transform: translateY(-10px);
}

/* ============================================
   ORNAMENTOS DE FONDO (Saguapac Style)
   ============================================ */
.bg-ornaments {
    position: relative;
    overflow: hidden;
}

.ornament {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 64, 128, 0.03) 0%, rgba(176, 5, 16, 0.03) 100%);
    pointer-events: none;
    z-index: 0;
}

.ornament-1 { width: 300px; height: 300px; top: -5%; left: -10%; animation: float-slow 15s infinite alternate; }
.ornament-2 { width: 200px; height: 200px; bottom: 10%; right: -5%; animation: float-slow 12s infinite alternate-reverse; }
.ornament-3 { width: 150px; height: 150px; top: 40%; left: 80%; animation: float-slow 10s infinite alternate; }

@keyframes float-slow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 40px) rotate(15deg); }
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-fill {
    fill: var(--color-fondo);
}

/* Seccion CTA final */
.services-cta {
    background: linear-gradient(rgba(0, 64, 128, 0.92), rgba(176, 5, 16, 0.92)), url('/img/fondos/pattern-light.png');
    padding: 100px 0;
    border-top: 5px solid var(--color-acento);
}

.cta-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radio-suave);
    padding: 3rem;
}


/* ============================================
   ÁGORA MERCATORIA — Estilos Premium
   ============================================ */

/* Badge superior del Hero */
.agora-badge {
    display: inline-block;
    background: rgba(200, 169, 110, 0.2);
    border: 1px solid rgba(200, 169, 110, 0.5);
    color: var(--color-acento);
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 169, 110, 0.3); }
    50% { box-shadow: 0 0 0 10px rgba(200, 169, 110, 0); }
}

/* Título con glow sutil */
.agora-title-glow {
    text-shadow: 0 0 40px rgba(200, 169, 110, 0.3), 0 0 80px rgba(200, 169, 110, 0.1);
}

/* ---- Showcase de imagen con animación ---- */
.agora-img-showcase {
    position: relative;
    display: inline-block;
    max-width: 460px;
}

/* Glow detrás de la imagen */
.agora-img-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 70%;
    background: radial-gradient(circle, rgba(0, 64, 128, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 0;
    filter: blur(30px);
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* Imagen de libros flotantes */
.agora-float-books {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    filter: drop-shadow(0 25px 50px rgba(0, 64, 128, 0.2));
    animation: booksFloat 5s ease-in-out infinite;
    transition: transform 0.4s ease;
}

.agora-float-books:hover {
    transform: scale(1.04) rotate(-1deg);
    filter: drop-shadow(0 30px 60px rgba(0, 64, 128, 0.3));
}

@keyframes booksFloat {
    0%   { transform: translateY(0px) rotate(0deg); }
    25%  { transform: translateY(-12px) rotate(0.5deg); }
    50%  { transform: translateY(-6px) rotate(-0.3deg); }
    75%  { transform: translateY(-14px) rotate(0.3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* ---- Card "Sobre la Revista" ---- */
.agora-about-card {
    transition: var(--transicion);
    border-left: 4px solid var(--color-acento) !important;
}

.agora-about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-fuerte) !important;
}

.agora-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #004080, #00264d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 64, 128, 0.25);
}

/* Chips informativos */
.agora-stat-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(0, 64, 128, 0.05);
    color: var(--color-primario);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 64, 128, 0.08);
    transition: var(--transicion);
}

.agora-stat-chip:hover {
    background: var(--color-primario);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 64, 128, 0.2);
}

/* ---- Cards informativas (Qué publicamos, Dirigida, Objetivo) ---- */
.agora-info-card {
    transition: var(--transicion);
    border-top: 3px solid transparent !important;
}

.agora-info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-fuerte) !important;
    border-top-color: var(--color-acento) !important;
}

.agora-icon-circle-sm {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicion);
}

.agora-info-card:hover .agora-icon-circle-sm {
    transform: scale(1.15) rotate(5deg);
}

/* ---- Líneas de investigación ---- */
.agora-line-item {
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: rgba(0, 64, 128, 0.03);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--color-texto);
    transition: var(--transicion);
    border-left: 3px solid transparent;
}

.agora-line-item:hover {
    background: rgba(0, 64, 128, 0.07);
    border-left-color: var(--color-secundario);
    padding-left: 1.3rem;
    color: var(--color-primario);
}

/* ---- Datos clave ---- */
.agora-key-data-card {
    padding: 1rem;
    border-radius: 12px;
    background: var(--color-fondo);
    transition: var(--transicion);
}

.agora-key-data-card:hover {
    background: rgba(0, 64, 128, 0.06);
    transform: translateY(-3px);
}

/* ---- CTA Final ---- */
.agora-cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.15);
    border: 2px solid rgba(200, 169, 110, 0.3);
    color: var(--color-acento);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
    animation: ctaIconFloat 3s ease-in-out infinite;
}

@keyframes ctaIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.agora-cta-btn-primary {
    background: linear-gradient(135deg, var(--color-acento), #FFC107) !important;
    color: #00264d !important;
    border: none;
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.agora-cta-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.agora-cta-btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.agora-cta-btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(200, 169, 110, 0.4) !important;
    color: #00264d !important;
}

/* Gradiente oscuro inferior para texto sobre imagen */
.bg-gradient-dark-bottom {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.text-shadow {
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Transition helper */
.transition-all {
    transition: var(--transicion);
}

/* Hover Lift helper */
.hover-lift {
    transition: var(--transicion);
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--sombra-media);
}

/* Z-index helper */
.z-index-1 {
    z-index: 1;
}

/* ============================================
   BOTÓN FOOTER CONTACTO
   ============================================ */
.btn-footer-contact {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-footer-contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-footer-contact:hover::before {
    width: 400px;
    height: 400px;
}

.btn-footer-contact:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(200, 169, 110, 0.6) !important;
}

/* ============================================
   SECCIÓN CONTACTO — Rediseño Premium
   ============================================ */

/* Tarjetas de información de contacto */
.contacto-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 64, 128, 0.05);
}

.contacto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secundario), var(--color-primario));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contacto-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-fuerte);
}

.contacto-card:hover::before {
    transform: scaleX(1);
}

/* Cajas de íconos */
.contacto-icon-box {
    width: 65px;
    height: 65px;
    background: rgba(0, 64, 128, 0.05);
    color: var(--color-primario);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    transition: var(--transicion);
}

.contacto-card:hover .contacto-icon-box {
    background: var(--color-primario);
    color: #fff;
    transform: scale(1.1) rotateY(180deg);
}

.contacto-icon-box.icon-rojo {
    color: var(--color-secundario);
    background: rgba(0, 64, 128, 0.05);
}

.contacto-card:hover .contacto-icon-box.icon-rojo {
    background: var(--color-secundario);
    color: #fff;
}

.contacto-icon-box.icon-dorado {
    color: var(--color-acento);
    background: rgba(200, 169, 110, 0.1);
}

.contacto-card:hover .contacto-icon-box.icon-dorado {
    background: var(--color-acento);
    color: #fff;
}

/* Burbujas de Redes Sociales */
.social-bubble-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 1rem;
}

.social-bubble {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-bubble:hover {
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: #fff;
}

.sb-msj { background: linear-gradient(135deg, #128C7E, #25D366); }
.sb-fb { background: linear-gradient(135deg, #1877f2, #0d5cbf); }
.sb-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sb-yt { background: linear-gradient(135deg, #FF0000, #cc0000); }
.sb-tk { background: linear-gradient(135deg, #000000, #333333); }

/* Decoración con la imagen */
.contacto-img-wrapper {
    position: relative;
    display: inline-block;
    padding: 1rem;
}

.contacto-img-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(0, 64, 128, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(25px);
    animation: contactPulse 4s infinite alternate ease-in-out;
}

@keyframes contactPulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
}

.contacto-img-wrapper img {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 15px 30px rgba(0, 64, 128, 0.15));
    animation: floatingContact 6s infinite ease-in-out;
}

@keyframes floatingContact {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}


/* ============================================
   INICIO / HOME — Estilos Premium
   ============================================ */

/* Sidebar */
.inicio-sidebar {
    background: #fff;
    border-left: 3px solid var(--color-acento) !important;
    transition: var(--transicion);
}

.inicio-sidebar:hover {
    box-shadow: var(--sombra-fuerte) !important;
}

/* Tarjetas de noticias en inicio */
.inicio-noticia-card {
    background: #fff;
    border: 1px solid rgba(0, 64, 128, 0.04) !important;
    transition: var(--transicion);
}

.inicio-noticia-card:hover {
    border-color: rgba(0, 64, 128, 0.15) !important;
}

/* Overlay gradiente sutil sobre la imagen */
.inicio-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 64, 128, 0.05) 0%, rgba(176, 5, 16, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.inicio-noticia-card:hover .inicio-img-overlay {
    opacity: 1;
}

/* Título de la noticia */
.inicio-noticia-title {
    color: var(--color-primario);
    transition: color 0.3s ease;
    position: relative;
}

.inicio-noticia-card:hover .inicio-noticia-title {
    color: var(--color-secundario);
}

/* Línea decorativa bajo el título */
.inicio-noticia-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-acento);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.inicio-noticia-card:hover .inicio-noticia-title::after {
    width: 60px;
}

/* Offcanvas mobile mejorado */
#mobileSidebar .list-group-item {
    border-radius: 10px !important;
    margin-bottom: 4px;
    transition: var(--transicion);
    font-weight: 500;
}

#mobileSidebar .list-group-item:hover {
    padding-left: 1.4rem;
    background: rgba(0, 64, 128, 0.05);
}

#mobileSidebar .list-group-item.bg_pri {
    box-shadow: 0 3px 12px rgba(0, 64, 128, 0.2);
}


/* ============================================
   SIDEBAR CATEGORÍAS (Home)
   ============================================ */
.sidebar-categorias {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-cat-item {
    background-color: #f0f0f0;
    font-weight: 500;
}

.sidebar-cat-item:hover {
    background-color: var(--color-secundario) !important;
    color: #fff !important;
    padding-left: 1.2rem !important;
}

.sidebar-cat-item.bg_pri {
    background-color: var(--color-primario) !important;
    font-weight: 600;
}

/* Botones circulares de redes sociales (footer) */
.social-circle {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.social-circle:hover {
    border-color: transparent;
}


/* ============================================
   HERO COVER — Portada Principal (Inicio)
   ============================================ */
.hero-cover {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-cover__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-cover__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.hero-cover__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(0, 38, 77, 0.92) 0%,
        rgba(0, 64, 128, 0.80) 50%,
        rgba(0, 38, 77, 0.70) 100%);
}

.hero-cover__text {
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.hero-cover__badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    color: var(--color-acento);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
}

.hero-cover__title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-top: 1rem;
    text-transform: uppercase;
}

.hero-cover__title--accent {
    background: linear-gradient(135deg, var(--color-acento), #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-cover__subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    margin-top: 0.75rem;
    letter-spacing: 0.5px;
}

.hero-cover__line {
    width: 80px;
    height: 4px;
    background: var(--color-acento);
    border-radius: 2px;
    margin: 1.5rem 0;
}

.hero-cover__desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 520px;
    line-height: 1.7;
}

.hero-cover__btn-primary {
    background: linear-gradient(135deg, var(--color-acento), #FFA500);
    color: #00264d;
    font-weight: 700;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.35);
    transition: all 0.3s ease;
}

.hero-cover__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
    color: #00264d;
}

.hero-cover__btn-secondary {
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.hero-cover__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: translateY(-3px);
}

/* Logo grande lado derecho */
.hero-cover__logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-cover__logo {
    max-width: 340px;
    width: 100%;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.3));
    animation: heroLogoFloat 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.hero-cover__logo-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: heroGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes heroGlowPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.15); opacity: 0.8; }
}

/* Wave divider del hero */
.hero-cover__wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.hero-cover__wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ============================================
   QUICK ACCESS CARDS (Inicio)
   ============================================ */
.quick-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 64, 128, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 64, 128, 0.06);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primario), var(--color-acento));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.quick-card:hover::before {
    transform: scaleX(1);
}

.quick-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 64, 128, 0.14);
}

.quick-card__icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.quick-card:hover .quick-card__icon {
    transform: scale(1.1) rotate(-5deg);
}

.quick-card__title {
    font-weight: 700;
    color: var(--color-primario);
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.quick-card__desc {
    color: var(--color-texto-suave);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.quick-card__link {
    color: var(--color-primario);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.quick-card:hover .quick-card__link {
    color: var(--color-secundario);
}

.quick-card:hover .quick-card__link .fa-arrow-right {
    transform: translateX(4px);
    transition: transform 0.25s ease;
}


/* ============================================
   RESPONSIVE — Hero Cover
   ============================================ */
@media (max-width: 991.98px) {
    .hero-cover__title {
        font-size: 2.5rem;
    }

    .hero-cover__subtitle {
        font-size: 1.1rem;
    }

    .hero-cover__text {
        text-align: center;
        padding-top: 7rem;
    }

    .hero-cover__line {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cover__desc {
        margin: 0 auto;
        text-align: center;
    }

    .hero-cover__btn-primary,
    .hero-cover__btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero-cover__title {
        font-size: 2rem;
    }

    .hero-cover {
        min-height: 80vh;
    }

    .quick-card {
        padding: 1.5rem 1rem;
    }
}


/* ============================================================
   ================ MEJORAS v2 — PÚBLICO ======================
   Bloque añadido para la zona del visitante.
   Sidebar + Cards noticias + Limpieza + Extras + Fix imágenes
   Todo sobrescribe sin tocar lo anterior (cascada).
   ============================================================ */

/* 0. FIX typo variable (compatibilidad con --color-secudaria) */
:root {
    --color-secudaria: var(--color-secundario);
}

/* ============================================================
   1. LIMPIEZA TÉCNICA
   ============================================================ */
/* 1a. .card-info pierde los colores de alerta roja por unos azules suaves */
.card-info {
    background-color: rgba(0, 64, 128, 0.05) !important;
    border-color: rgba(0, 64, 128, 0.15) !important;
}
.card-info .card-footer {
    background-color: rgba(0, 64, 128, 0.08) !important;
}

/* 1b. Reducir el padding-bottom muerto del hero (.qs-hero) */
.qs-hero {
    padding: 70px 0 90px !important;
}
.qs-hero[style*="padding-bottom"] {
    padding-bottom: 90px !important;
}

/* 1c. Remate inferior del hero: línea acento antes de la wave */
.qs-hero::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 82px;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, rgba(255, 215, 0, 0.5), transparent);
    z-index: 1;
}

/* 1d. Apaga el duplicado de .hover-card (línea 545) con un reset suave */
.hover-card {
    box-shadow: var(--sombra-suave);
    border-radius: var(--radio-suave);
    overflow: hidden;
    background: #fff;
}

/* ============================================================
   2. SIDEBAR CATEGORÍAS — Moderno con iconos y contadores
   ============================================================ */
.sidebar-categorias {
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 64, 128, 0.10) !important;
    background: #fff;
    overflow: hidden;
}

/* Header del sidebar con barra amarilla inferior */
.sidebar-categorias > .bg_pri {
    position: relative;
    background: linear-gradient(135deg,
        var(--color-primario), var(--color-secundario)) !important;
}
.sidebar-categorias > .bg_pri::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--color-acento);
}

/* Contenedor de items: quita el fondo gris plano */
.sidebar-categorias > .bg-white {
    background: #fff !important;
}

/* Item del sidebar */
.sidebar-cat-item {
    background-color: #fff !important;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 500;
    color: var(--color-texto) !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-left: 3px solid transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: capitalize;
}

/* Icono genérico a la izquierda — puede sobrescribirse por nth-child */
.sidebar-cat-item::before {
    content: "\f07b"; /* fa-folder */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    margin-right: 12px;
    color: var(--color-primario);
    opacity: 0.55;
    width: 16px;
    display: inline-block;
    transition: all 0.28s ease;
    font-size: 0.9rem;
}

/* Iconos específicos por orden.
   El orden actual en el Livewire es:
   1 Anuncios, 2 Conferencias, 3 Ferias, 4 Convocatorias,
   5 Conversatorio, 6 Académico, 7 Talleres, 8 Investigación.
   Si cambia el orden en la BD, solo hay que editar estos nth-child. */
.sidebar-cat-item:nth-child(1)::before { content: "\f0a1"; } /* bullhorn */
.sidebar-cat-item:nth-child(2)::before { content: "\f130"; } /* microphone */
.sidebar-cat-item:nth-child(3)::before { content: "\f57d"; } /* globe-americas */
.sidebar-cat-item:nth-child(4)::before { content: "\f574"; } /* file-contract */
.sidebar-cat-item:nth-child(5)::before { content: "\f086"; } /* comments */
.sidebar-cat-item:nth-child(6)::before { content: "\f19d"; } /* graduation-cap */
.sidebar-cat-item:nth-child(7)::before { content: "\f0e7"; } /* bolt - talleres */
.sidebar-cat-item:nth-child(8)::before { content: "\f002"; } /* search - investigación */

/* Hover con slide a la derecha + borde amarillo */
.sidebar-cat-item:hover {
    background-color: rgba(0, 64, 128, 0.06) !important;
    color: var(--color-primario) !important;
    border-left-color: var(--color-acento) !important;
    padding-left: 22px !important;
}
.sidebar-cat-item:hover::before {
    opacity: 1;
    transform: scale(1.15) rotate(-6deg);
    color: var(--color-secundario);
}

/* Categoría activa: gradient y borde acento grueso */
.sidebar-cat-item.bg_pri {
    background: linear-gradient(135deg,
        var(--color-primario), var(--color-secundario)) !important;
    color: #fff !important;
    border-left-color: var(--color-acento) !important;
    padding-left: 22px !important;
    font-weight: 600 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.08);
}
.sidebar-cat-item.bg_pri::before {
    color: var(--color-acento) !important;
    opacity: 1;
}

/* Contador (badge) a la derecha — se activa si la <a> tiene data-count */
.sidebar-cat-item[data-count]::after {
    content: attr(data-count);
    background: rgba(0, 64, 128, 0.08);
    color: var(--color-primario);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
    margin-left: auto;
    transition: all 0.28s ease;
}
.sidebar-cat-item.bg_pri[data-count]::after {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.sidebar-cat-item:hover[data-count]::after {
    transform: scale(1.1);
}

/* ============================================================
   3. CARDS DE NOTICIA — Premium
   ============================================================ */

/* Lift marcado + sombra con color de marca */
.inicio-noticia-card {
    border-radius: 18px !important;
    transition: all 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    box-shadow: 0 4px 16px rgba(0, 64, 128, 0.06) !important;
    border: 1px solid rgba(0, 64, 128, 0.06) !important;
    will-change: transform;
}
.inicio-noticia-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 22px 50px rgba(0, 64, 128, 0.18) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
}

/* Overlay gradient sobre la imagen — más visible */
.inicio-img-overlay {
    background: linear-gradient(135deg,
        rgba(0, 64, 128, 0.0) 0%,
        rgba(0, 64, 128, 0.12) 50%,
        rgba(0, 38, 77, 0.32) 100%) !important;
    opacity: 1 !important; /* siempre visible sutil */
}
.inicio-noticia-card:hover .inicio-img-overlay {
    background: linear-gradient(135deg,
        rgba(0, 64, 128, 0.15) 0%,
        rgba(255, 215, 0, 0.10) 45%,
        rgba(0, 38, 77, 0.40) 100%) !important;
}

/* Zoom imagen en hover */
.inicio-noticia-card .img-hover-scale {
    transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.inicio-noticia-card:hover .img-hover-scale {
    transform: scale(1.08) !important;
}

/* Línea dorada bajo el título (la versión original existía pero era tímida) */
.inicio-noticia-card .inicio-noticia-title::after {
    height: 3px !important;
    background: linear-gradient(90deg,
        var(--color-acento), #FFA500) !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}
.inicio-noticia-card:hover .inicio-noticia-title::after {
    width: 80px !important;
}

/* Badges de categoría con gradient (solo dentro de las cards de noticia) */
.inicio-noticia-card .badge {
    border-radius: 20px !important;
    padding: 0.5em 1em !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
    font-size: 0.72rem !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    animation: badgePopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    border: none !important;
}
.inicio-noticia-card .badge.bg-danger {
    background: linear-gradient(135deg, #e13747, #a52834) !important;
}
.inicio-noticia-card .badge.bg-success {
    background: linear-gradient(135deg, #22a850, #0f7a36) !important;
}
.inicio-noticia-card .badge.bg_blue {
    background: linear-gradient(135deg, #0066cc, #00264d) !important;
}
.inicio-noticia-card .badge.bg_naranja {
    background: linear-gradient(135deg, #ff8a1e, #d15a00) !important;
}
.inicio-noticia-card .badge.bg_amarillo {
    background: linear-gradient(135deg, #ffd700, #d6a800) !important;
    color: #00264d !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes badgePopIn {
    0%   { transform: scale(0.4) translateY(-12px); opacity: 0; }
    60%  { transform: scale(1.08) translateY(2px);  opacity: 1; }
    100% { transform: scale(1)    translateY(0);    opacity: 1; }
}

/* Botón "Leer Más" premium con flecha animada */
.inicio-noticia-card .btn.bg_pri,
.inicio-noticia-card a.btn.bg_pri {
    background: linear-gradient(135deg,
        var(--color-primario), var(--color-secundario)) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 22px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(0, 64, 128, 0.20);
}
.inicio-noticia-card .btn.bg_pri::after {
    content: "\f061"; /* fa-arrow-right */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block;
}
.inicio-noticia-card .btn.bg_pri:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 64, 128, 0.40) !important;
    background: linear-gradient(135deg,
        var(--color-secundario), var(--color-primario)) !important;
}
.inicio-noticia-card .btn.bg_pri:hover::after {
    transform: translateX(5px);
}

/* Animación de entrada de cada card (reentrada al filtrar categoría) */
.inicio-noticia-card {
    animation: cardFadeIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ============================================================
   4. FIX IMÁGENES TIPO POSTER (flyers, LinkedIn, carteles)
   ============================================================ */
/* Contenedor con gradient de fondo y overflow controlado */
.noticia-img-container {
    background: linear-gradient(135deg, #f8f9fc 0%, #e7eaf1 100%);
    position: relative;
}

/* Placeholder decorativo cuando la imagen es contain (posters) */
.noticia-img-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%,
            rgba(0, 64, 128, 0.08), transparent 40%),
        radial-gradient(circle at 80% 80%,
            rgba(255, 215, 0, 0.08), transparent 40%);
    z-index: 0;
    pointer-events: none;
}

.noticia-img-container .img-hover-scale {
    object-fit: cover !important;
    object-position: center top !important; /* evita cortar caras/títulos en posters */
    position: relative;
    z-index: 1;
}

/* Modo póster (lo activa JS si la imagen es más vertical que el contenedor) */
.noticia-img-container.poster-mode .img-hover-scale {
    object-fit: contain !important;
    padding: 10px;
}
.noticia-img-container.poster-mode {
    background:
        linear-gradient(135deg,
            rgba(0, 64, 128, 0.10), rgba(0, 38, 77, 0.18)),
        var(--bg-blur-image, linear-gradient(135deg, #e7eaf1, #f8f9fc));
    background-size: cover;
    background-position: center;
}

/* ============================================================
   5. EXTRAS INTERACTIVOS
   ============================================================ */

/* 5a. Botón scroll-to-top flotante */
#scrollTopBtn {
    position: fixed;
    bottom: 95px; /* por encima del botón de WhatsApp */
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        var(--color-primario), var(--color-secundario));
    color: #fff;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 64, 128, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
}
#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#scrollTopBtn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 34px rgba(0, 64, 128, 0.55);
    background: linear-gradient(135deg,
        var(--color-secundario), var(--color-primario));
    color: var(--color-acento);
}
#scrollTopBtn::before {
    content: "\f062"; /* fa-arrow-up */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    font-size: 1.15rem;
}

/* 5b. Overlay con spinner durante carga de Livewire */
#noticias-container {
    position: relative;
    min-height: 300px;
}
#noticias-container [wire\:loading] {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 50;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    animation: loadFade 0.2s ease;
}
#noticias-container [wire\:loading]::before {
    content: '';
    width: 54px;
    height: 54px;
    border: 4px solid rgba(0, 64, 128, 0.12);
    border-top-color: var(--color-primario);
    border-right-color: var(--color-acento);
    border-radius: 50%;
    animation: loadSpin 0.75s linear infinite;
}
@keyframes loadSpin  { to { transform: rotate(360deg); } }
@keyframes loadFade  { from { opacity: 0; } to { opacity: 1; } }

/* 5c. Skeleton si prefieres no usar wire:loading
   (se activa añadiendo clase .skeleton-card al contenedor) */
.skeleton-card {
    background: linear-gradient(90deg,
        #f0f0f0 0%, #f8f8f8 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: skeleton 1.4s ease-in-out infinite;
    border-radius: 18px;
    height: 220px;
    margin-bottom: 1rem;
}
@keyframes skeleton {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* 5d. Animación suave al cambiar categoría en el sidebar (pulso del header) */
.sidebar-categorias.filter-pulse > .bg_pri {
    animation: pulseFilter 0.6s ease;
}
@keyframes pulseFilter {
    0%   { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.6); }
    100% { box-shadow: 0 0 0 18px rgba(255, 215, 0, 0); }
}

/* ============================================================
   6. TWEAKS EXTRA — Mejoras globales para todas las páginas públicas
   ============================================================ */

/* Mejora del search_bar (pasantías, bolsa de trabajo) */
.qs-hero .search_bar .input-group {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.qs-hero .search_bar .input-group:focus-within {
    border-color: var(--color-acento);
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.25);
}

/* Alert vacío más agradable (no hay noticias / pasantías) */
.alert.bg-white.rounded-4 {
    background: linear-gradient(135deg, #fff, #fafbfd) !important;
    border: 2px dashed rgba(0, 64, 128, 0.15) !important;
}

/* Mejora del btn-outline-primary del sidebar "TODAS" */
.sidebar-categorias .btn-outline-primary {
    color: var(--color-primario) !important;
    border: 2px solid var(--color-primario) !important;
    transition: all 0.3s ease !important;
}
.sidebar-categorias .btn-outline-primary:hover {
    background: linear-gradient(135deg,
        var(--color-primario), var(--color-secundario)) !important;
    border-color: transparent !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 64, 128, 0.28);
}

/* Responsive: en móvil, un poco menos de padding en hero */
@media (max-width: 767.98px) {
    .qs-hero {
        padding: 50px 0 70px !important;
    }
    .qs-hero h1 {
        font-size: 2rem !important;
    }
    #scrollTopBtn {
        bottom: 88px;
        right: 18px;
        width: 42px;
        height: 42px;
    }
}

/* Accesibilidad: respeta preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .inicio-noticia-card,
    .inicio-noticia-card .badge,
    .inicio-noticia-card .img-hover-scale,
    .sidebar-cat-item,
    #scrollTopBtn,
    .hero-cover__logo {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================================
   FIN MEJORAS v2 — PÚBLICO
   ============================================================ */


/* ============================================================
   PAGINACIÓN CUSTOM (Bootstrap 5 + Livewire)
   ============================================================ */
.pagination-custom {
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-custom .page-item .page-link {
    border: 1px solid rgba(0, 64, 128, 0.12);
    color: var(--color-primario);
    background: #fff;
    border-radius: 10px !important;
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 64, 128, 0.05);
    cursor: pointer;
    padding: 0 12px;
}

.pagination-custom .page-item .page-link:hover:not(:disabled) {
    background: linear-gradient(135deg,
        var(--color-primario), var(--color-secundario));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 64, 128, 0.25);
}

/* Item activo — destacado con gradient */
.pagination-custom .page-item.active .page-link {
    background: linear-gradient(135deg,
        var(--color-primario), var(--color-secundario));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 64, 128, 0.32);
    transform: scale(1.08);
    position: relative;
}

.pagination-custom .page-item.active .page-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 3px;
    background: var(--color-acento);
    border-radius: 2px;
}

/* Item disabled (primera/última página, separadores …) */
.pagination-custom .page-item.disabled .page-link {
    background: #f7f8fa;
    color: #c0c0c0;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: none;
    cursor: not-allowed;
}

/* Animación durante wire:loading */
.pagination-custom .page-item .page-link[disabled] {
    opacity: 0.55;
    cursor: wait;
    pointer-events: none;
}

/* Responsive: en móvil usar un poco más chico */
@media (max-width: 575.98px) {
    .pagination-custom .page-item .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
        padding: 0 8px;
    }
}


/* ============================================================
   BRÚJULA CARD — Boletín Académico (grid horizontal)
   ============================================================ */
.brujula-card {
    background: #fff;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0, 64, 128, 0.06) !important;
}

.brujula-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 64, 128, 0.18) !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
}

/* Wrapper de la imagen — fondo gradient para imágenes con transparencia */
.brujula-card__img-wrapper {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fc 0%, #e7eaf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 3px solid var(--color-acento);
}

.brujula-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brujula-card:hover .brujula-card__img {
    transform: scale(1.06);
}

/* Placeholder cuando no hay imagen */
.brujula-card__img--placeholder {
    color: var(--color-primario);
    opacity: 0.4;
}

/* Título — máximo 2 líneas con ellipsis */
.brujula-card__title {
    color: var(--color-primario);
    font-size: 1.05rem;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Resumen — máximo 3 líneas */
.brujula-card__resumen {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.3em;
}

/* Botón principal con gradient + animación de hover */
.brujula-card__btn {
    background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.brujula-card__btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-secundario), var(--color-primario));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.brujula-card__btn > * {
    position: relative;
    z-index: 1;
}

.brujula-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 64, 128, 0.4);
    color: #fff !important;
}

.brujula-card__btn:hover::before {
    opacity: 1;
}

.brujula-card__btn:hover .fa-compass {
    animation: compassSpin 1.2s ease-in-out;
    color: var(--color-acento);
}

@keyframes compassSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Responsive — móvil: cards a tamaño completo */
@media (max-width: 575.98px) {
    .brujula-card__img-wrapper {
        height: 180px;
    }
    .brujula-card__title {
        font-size: 1rem;
    }
}
