/*
Theme Name: Red de Salud Collao
Theme URI: https://www.linkedin.com/in/adsencio/
Description: 
Version: 1.0
Author: Jhon Jorge Ramos Asencio
Author URI: https://www.linkedin.com/in/adsencio/
License: GNU General Public License v2 or later
*/
        :root {
            --primary-color: #007bff;
            --primary-dark: #0056b3;
            --text-color: #333;
            --bg-color: #f4f7fa;
            --topbar-height: 36px;
            --navbar-height: 76px;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            overflow-x: hidden;
            padding-top: calc(var(--navbar-height) + var(--topbar-height));
        }

        /* Estilos para el Top Bar - Mejorado para responsive */
        .top-bar {
            background-color: #f4f7fa;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
            font-size: 0.85rem;
            color: #555;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: var(--topbar-height);
            z-index: 1031;
            transition: transform 0.3s ease;
        }

        .top-bar-info {
            color: #555;
            font-weight: 500;
            white-space: nowrap;
        }

        .top-bar-link {
            color: #555;
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
            padding: 0 8px;
            white-space: nowrap;
        }

        .top-bar-link:hover {
            color: var(--primary-color);
        }

        /* Navbar que subirá cuando se oculte el topbar */
        .navbar {
            background-color: var(--primary-color);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            padding: 0.75rem 0;
            z-index: 1030;
            position: fixed;
            top: var(--topbar-height);
            width: 100%;
            transition: transform 0.3s ease, top 0.3s ease;
        }

        .navbar.topbar-hidden {
            top: 0;
        }

        .top-bar.hidden {
            transform: translateY(-100%);
        }

        .navbar-brand, .nav-link {
            color: white !important;
            font-weight: 500;
        }

        .navbar-brand {
            display: flex;
            align-items: center;
        }

        .nav-link {
            padding: 0.5rem 1rem;
            transition: all 0.3s ease;
        }

        .nav-link:hover {
            color: #e0e0e0 !important;
            transform: translateY(-2px);
        }

        .dropdown-menu {
            background-color: var(--primary-color);
            border: none;
            border-radius: 8px;
            margin-top: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .dropdown-item {
            color: white;
            padding: 8px 16px;
            transition: all 0.2s ease;
        }

        .dropdown-item:hover {
            background-color: var(--primary-dark);
            color: white;
            transform: translateX(5px);
        }

        /* Estilos para el carrusel */
        .modern-carousel-container {
            margin-bottom: 3rem;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        }

        #modernCarousel {
            position: relative;
        }

        .carousel-img {
            height: 450px;
            background-position: center;
            background-size: cover;
            position: relative;
            transition: transform 0.5s ease-in-out;
        }

        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                to right,
                rgba(0, 0, 0, 0.7) 0%,
                rgba(0, 0, 0, 0.5) 30%,
                rgba(0, 0, 0, 0.3) 70%,
                rgba(0, 0, 0, 0.2) 100%
            );
        }

        .carousel-caption {
            position: absolute;
            top: 50%;
            left: 8%;
            transform: translateY(-50%);
            width: 50%;
            text-align: left;
            z-index: 10;
            padding: 0;
        }

        .carousel-caption h2 {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 1rem;
            line-height: 1.2;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease;
        }
        
        .carousel-caption p {
            font-size: 1rem;
            margin-bottom: 1.5rem;
            max-width: 90%;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease 0.2s;
        }

        .carousel-caption .btn {
            border-radius: 50px;
            padding: 8px 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.8rem;
            font-weight: 600;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease 0.4s;
            border-width: 2px;
        }

        .carousel-caption .btn:hover {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .caption-tag {
            display: inline-block;
            background-color: var(--primary-color);
            color: white;
            font-size: 0.7rem;
            font-weight: 600;
            padding: 5px 12px;
            border-radius: 30px;
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease 0.1s;
        }

        /* Indicadores personalizados */
        .carousel-indicators {
            bottom: 20px;
            margin-bottom: 0;
            display: flex;
            justify-content: center;
            width: 100%;
            margin-left: 0;
            margin-right: 0;
        }

        .carousel-indicators button {
            width: 30px;
            height: 4px;
            border-radius: 0;
            background-color: rgba(255, 255, 255, 0.4);
            border: none;
            margin: 0 5px;
            transition: all 0.3s ease;
            opacity: 1;
            position: relative;
            overflow: hidden;
        }

        .carousel-indicators button::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background-color: white;
            transition: width 5s linear;
        }

        .carousel-indicators button.active {
            background-color: rgba(255, 255, 255, 0.8);
            width: 60px;
        }

        .carousel-indicators button.active::after {
            width: 100%;
        }

        #modernCarousel:hover .carousel-indicators button {
            opacity: 1;
        }

        /* Controles personalizados */
        .carousel-control-prev, .carousel-control-next {
            width: 40px;
            height: 40px;
            top: 50%;
            transform: translateY(-50%);
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.2);
            opacity: 0;
            transition: all 0.3s ease;
        }

        .carousel-control-prev {
            left: 20px;
        }

        .carousel-control-next {
            right: 20px;
        }

        .carousel-control-prev-icon, .carousel-control-next-icon {
            width: 20px;
            height: 20px;
        }

        #modernCarousel:hover .carousel-control-prev,
        #modernCarousel:hover .carousel-control-next {
            opacity: 1;
        }

        .carousel-control-prev:hover, .carousel-control-next:hover {
            background-color: var(--primary-color);
        }

        /* Animación para el slide activo */
        .carousel-item.active .carousel-caption h2,
        .carousel-item.active .carousel-caption p,
        .carousel-item.active .carousel-caption .btn,
        .carousel-item.active .carousel-caption .caption-tag {
            opacity: 1;
            transform: translateY(0);
        }

        /* Efecto de zoom en hover */
        #modernCarousel:hover .carousel-item.active .carousel-img {
            transform: scale(1.05);
            transition: transform 10s ease;
        }
        
        /* Estructura de la página con grid - Mejorado para responsive */
        .page-container {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 340px;
            grid-gap: 30px;
            margin: 20px 0;
            position: relative;
        }

        .main-content {
            grid-column: 1;
            min-width: 0;
        }

        /* Sidebar optimizado */
        .sidebar {
            grid-column: 2;
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            padding: 25px;
            height: fit-content;
            width: 340px;
            max-height: calc(100vh - 100px);
            overflow-y: auto;
        }

        .sidebar.fixed {
            position: fixed;
            top: 90px;
        }

        .sidebar.bottom {
            position: absolute;
            bottom: 0;
        }

        .card {
            border: none;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            margin-bottom: 30px;
            overflow: hidden;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }

        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            border-radius: 30px;
            padding: 10px 25px;
            transition: all 0.3s ease;
            font-weight: 600;
        }

        .btn-primary:hover {
            background-color: var(--primary-dark);
            transform: scale(1.05);
        }

        .section-title {
            position: relative;
            padding-bottom: 15px;
            margin-bottom: 40px;
            font-weight: 700;
        }

        .section-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background-color: var(--primary-color);
            border-radius: 2px;
        }

        /* Footer rediseñado */
        footer {
            background-color: #1a1a2e;
            color: #f4f4f4;
            padding: 4rem 0 2rem;
            margin-top: 60px;
        }

        footer h5 {
            color: white;
            font-weight: 600;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 10px;
        }

        footer h5:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background-color: var(--primary-color);
        }

        footer p {
            color: #b4b4b4;
            margin-bottom: 0.8rem;
        }

        footer a {
            color: #b4b4b4;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-block;
            margin-bottom: 0.5rem;
        }

        footer a:hover {
            color: var(--primary-color);
            transform: translateX(5px);
        }

        footer .social-icons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            margin-right: 10px;
            transition: all 0.3s ease;
        }

        footer .social-icons a:hover {
            background-color: var(--primary-color);
            transform: translateY(-5px);
        }

        footer .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 20px;
            margin-top: 40px;
        }

        .contact-info a {
            color: #b4b4b4;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .contact-info a:hover {
            color: var(--primary-color);
        }

        footer .list-unstyled li {
            margin-bottom: 10px;
        }

        footer .list-unstyled li i {
            color: var(--primary-color);
            margin-right: 10px;
        }

        .emergency-section {
            background-color: #ff3e3e;
            color: white;
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 8px 20px rgba(255, 62, 62, 0.3);
        }

        /* Estilo para widgets del sidebar */
        .sidebar-widget {
            margin-bottom: 30px;
            padding-bottom: 25px;
            border-bottom: 1px solid #eee;
        }
        
        .sidebar-widget:last-child {
            border-bottom: none;
            padding-bottom: 0;
            margin-bottom: 0;
        }

        .sidebar-widget h4 {
            font-size: 1.2rem;
            margin-bottom: 20px;
            color: var(--primary-color);
            font-weight: 700;
            border-left: 4px solid var(--primary-color);
            padding-left: 12px;
        }

        .news-item {
            display: flex;
            margin-bottom: 15px;
            align-items: center;
            transition: all 0.3s ease;
        }

        .news-item:hover {
            transform: translateX(5px);
        }

.news-date {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 0;  /* Ajustado el padding vertical y quitado el horizontal */
    border-radius: 6px;
    font-size: 0.85rem;
    margin-right: 15px;
    flex-shrink: 0;
    text-align: center;
    width: 60px;       /* Ancho fijo para todas las fechas */
    height: 60px;      /* Altura fija para todas las fechas */
    display: flex;     /* Para centrar el contenido verticalmente */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 6px rgba(0, 123, 255, 0.2);
}

        .link-list {
            list-style: none;
            padding-left: 0;
        }

        .link-list li {
            margin-bottom: 12px;
        }

        .link-list a {
            color: var(--text-color);
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
            padding: 8px 5px;
            border-radius: 8px;
        }

        .link-list a:hover {
            color: var(--primary-color);
            background-color: rgba(0, 123, 255, 0.05);
            transform: translateX(5px);
        }

        .link-list i {
            margin-right: 10px;
            color: var(--primary-color);
        }

        /* Estilos para tarjetas */
        .card-body {
            padding: 1.5rem;
        }

        .list-group-item {
            padding: 1rem 1.5rem;
            transition: all 0.3s ease;
        }

        .list-group-item:hover {
            background-color: rgba(0, 123, 255, 0.05);
            transform: translateX(5px);
        }

        .card .bi-bullseye, .card .bi-eye {
            font-size: 2.5rem !important;
        }

        /* Estilos para tarjetas modernas */
        .feature-card {
            background-color: #ffffff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            margin-bottom: 10px;
            height: 100%;
            position: relative;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0, 123, 255, 0.15);
        }

        .feature-card-img {
            height: 220px;
            position: relative;
            overflow: hidden;
        }

        .feature-card-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .feature-card:hover .feature-card-img img {
            transform: scale(1.05);
        }

        .feature-tag {
            position: absolute;
            top: 16px;
            right: 16px;
            background-color: var(--primary-color);
            color: white;
            padding: 5px 12px;
            border-radius: 30px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
        }

        .feature-card-body {
            padding: 24px;
            position: relative;
        }

        .feature-card-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 12px;
            color: #333;
        }

        .feature-card-text {
            color: #666;
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 0px;
        }



        /* Personalización de la barra de desplazamiento para el sidebar */
        .sidebar::-webkit-scrollbar {
            width: 6px;
        }
        
        .sidebar::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }
        
        .sidebar::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 10px;
        }
        
        .sidebar::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        /* Mejoras para responsive - Topbar y layout general */
        @media (max-width: 1199px) {
            .page-container {
                grid-gap: 20px;
            }
            
            .sidebar {
                width: 300px;
            }
        }

        @media (max-width: 991px) {
            :root {
                --topbar-height: 40px;
            }
            
            .top-bar {
                height: auto;
                min-height: var(--topbar-height);
            }
            
            body {
                padding-top: calc(var(--navbar-height) + var(--topbar-height));
            }
            
            .page-container {
                display: block;
            }

            .main-content, .sidebar {
                width: 100%;
            }

            .sidebar {
                margin-top: 30px;
                max-height: none;
                overflow-y: visible;
            }

            /* Desactivar comportamiento fijo en tablets */
            .sidebar.fixed, .sidebar.bottom {
                position: static;
                width: 100%;
            }

            .navbar-collapse {
                background-color: var(--primary-color);
                padding: 15px;
                border-radius: 0 0 15px 15px;
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            }

            .dropdown-menu {
                border-radius: 8px;
                padding: 10px;
                background-color: rgba(255, 255, 255, 0.1);
                margin-left: 15px;
                box-shadow: none;
            }
            
            .carousel-img {
                height: 400px;
            }
            
            .carousel-caption {
                width: 70%;
            }
            
            .carousel-caption h2 {
                font-size: 1.8rem;
            }
            
            .carousel-indicators {
                justify-content: center;
                margin-left: 0;
            }
            
            /* Mejora del topbar en tablets */
            .top-bar-info, .top-bar-link {
                font-size: 0.8rem;
            }
            
            .feature-card-img {
                height: 200px;
            }
        }

        @media (max-width: 768px) {
            :root {
                --topbar-height: 40px; /* Reducido de 70px a 40px */
            }
            
            .top-bar {
                padding: 8px 0;
            }
            
            body {
                padding-top: calc(var(--navbar-height) + var(--topbar-height));
            }
            
            /* Eliminamos la reorganización del topbar para móviles */
            .top-bar .row {
                flex-direction: row; /* Mantenemos la dirección en fila */
            }
            
            .top-bar .col-md-6 {
                text-align: inherit !important; /* Quitamos el centrado */
                margin-bottom: 0; /* Quitamos el margen inferior */
            }
            
            .top-bar-info {
                display: inline-block; /* Cambiamos a inline-block */
                margin-bottom: 0; /* Quitamos el margen inferior */
                font-size: 0.75rem; /* Reducimos tamaño de fuente */
            }
            
            .top-bar-link {
                font-size: 0.75rem; /* Reducimos tamaño de fuente */
                padding: 0 5px; /* Reducimos el padding */
            }
            
            .carousel-img {
                height: 350px;
            }

            .carousel-caption {
                width: 80%;
            }

            .carousel-caption h2 {
                font-size: 1.5rem;
            }

            .section-title {
                font-size: 1.8rem;
            }

            .card {
                margin-bottom: 20px;
            }

            footer {
                padding: 2rem 0;
                margin-top: 40px;
            }
            
            .feature-card-img {
                height: 180px;
            }
        }

        @media (max-width: 576px) {
            :root {
                --topbar-height: 40px; /* Reducido de 85px a 40px */
            }
            
            body {
                padding-top: calc(var(--navbar-height) + var(--topbar-height));
            }
            
            /* Ajustes adicionales para móviles pequeños */
            .top-bar-link {
                display: inline-block;
                margin: 0 2px; /* Reducimos los márgenes */
                padding: 0 3px; /* Reducimos aún más el padding */
                font-size: 0.7rem; /* Reducimos más la fuente */
            }
            
            .top-bar-info {
                font-size: 0.7rem; /* Reducimos más la fuente */
            }

            .container {
                padding-left: 20px;
                padding-right: 20px;
            }

            .carousel-img {
                height: 300px;
            }

            .carousel-caption {
                top: 45%;
                width: 85%;
            }

            .carousel-caption h2 {
                font-size: 1.2rem;
                margin-bottom: 0.5rem;
            }

            .carousel-caption p {
                font-size: 0.8rem;
                margin-bottom: 0.8rem;
            }

            .caption-tag {
                font-size: 0.6rem;
                padding: 3px 8px;
                margin-bottom: 0.5rem;
            }

            .carousel-caption .btn {
                font-size: 0.7rem;
                padding: 5px 15px;
            }

            .emergency-section {
                padding: 20px;
            }

            .page-container {
                margin: 20px 0;
            }
            
            .feature-card-img {
                height: 200px;
            }
        }
		
		
		


        /* Estilos específicos para la página de entradas */
        .blog-entry {
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .blog-entry:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }
        
        .blog-img {
            height: 240px;
            overflow: hidden;
        }
        
        .blog-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .blog-entry:hover .blog-img img {
            transform: scale(1.05);
        }
        
        .blog-content {
            padding: 25px;
        }
        
        .blog-meta {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            font-size: 0.85rem;
            color: #777;
        }
        
        .blog-meta div {
            margin-right: 20px;
            display: flex;
            align-items: center;
        }
        
        .blog-meta i {
            margin-right: 5px;
            color: var(--primary-color);
        }
        
        .blog-category {
            background-color: var(--primary-color);
            color: white;
            font-size: 0.7rem;
            font-weight: 600;
            padding: 5px 12px;
            border-radius: 30px;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: inline-block;
            margin-bottom: 15px;
        }
        
        .blog-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: #333;
            transition: color 0.3s ease;
        }
        
        .blog-entry:hover .blog-title {
            color: var(--primary-color);
        }
        
        .blog-excerpt {
            color: #666;
            margin-bottom: 20px;
            line-height: 1.6;
        }
        
        .blog-link {
            display: inline-flex;
            align-items: center;
            color: var(--primary-color);
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .blog-link i {
            margin-left: 5px;
            transition: transform 0.3s ease;
        }
        
        .blog-link:hover {
            color: var(--primary-dark);
        }
        
        .blog-link:hover i {
            transform: translateX(5px);
        }
        
        .blog-featured {
            position: relative;
        }
        
        .featured-label {
            position: absolute;
            top: 20px;
            right: -30px;
            background: var(--primary-color);
            color: white;
            padding: 5px 30px;
            transform: rotate(45deg);
            font-size: 0.8rem;
            font-weight: 600;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            z-index: 1;
        }
        
        .pagination {
            margin-top: 30px;
            margin-bottom: 50px;
        }
        
        .page-link {
            color: var(--primary-color);
            border: none;
            margin: 0 5px;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .page-link:hover {
            background-color: rgba(0, 123, 255, 0.1);
            color: var(--primary-color);
        }
        
        .page-item.active .page-link {
            background-color: var(--primary-color);
            color: white;
        }
        
        .page-item.disabled .page-link {
            color: #ccc;
        }
        
        /* Filtros de categorías */
        .category-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 30px;
            padding: 20px;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .category-filter {
            background-color: #f0f3f7;
            color: #555;
            border: none;
            padding: 8px 18px;
            border-radius: 30px;
            font-size: 0.85rem;
            font-weight: 600;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .category-filter:hover, .category-filter.active {
            background-color: var(--primary-color);
            color: white;
        }
        

        

            
            .featured-slide {
                height: 300px;
            }
            
            .featured-title {
                font-size: 1.2rem;
            }
            
            .featured-meta {
                flex-wrap: wrap;
            }
            
            .featured-meta div {
                margin-bottom: 5px;
            }
            
            .category-filters {
                padding: 15px;
            }
            
            .category-filter {
                font-size: 0.75rem;
                padding: 6px 14px;
            }
        }
		
		
		/* PAGINA CONVOCATORIAS */
		
		        /* Estilos optimizados para los botones de la tabla de convocatorias */
        .btn-file {
            color: white;
            width: 24px;
            height: 24px;
            padding: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin: 0 1px;
            font-size: 11px;
            border-radius: 3px;
            transition: transform 0.3s ease;
        }

        .btn-file:hover {
            transform: translateY(-2px);
            color: white; /* Mantener el texto blanco en hover */
        }

        .btn-file-pdf {
            background-color: #dc3545;
        }
        .btn-file-pdf:hover {
            background-color: #c82333;
        }

        .btn-file-word {
            background-color: #007bff;
        }
        .btn-file-word:hover {
            background-color: #0069d9;
        }

        .btn-file-excel {
            background-color: #ffc107;
        }
        .btn-file-excel:hover {
            background-color: #e0a800;
        }

        .btn-file-text {
            background-color: #17a2b8;
        }
        .btn-file-text:hover {
            background-color: #138496;
        }

        .btn-file-check {
            background-color: #28a745;
        }
        .btn-file-check:hover {
            background-color: #218838;
        }

        /* Estilos para los badges de estado */
        .badge-convocatoria {
            font-weight: 500;
            padding: 5px 8px;
            border-radius: 4px;
            color: white;
            display: inline-block;
            width: 100%;
            max-width: 100px;
            font-size: 11px;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            white-space: nowrap;
        }

        .badge-desierta {
            background-color: #6c757d;
        }

        .badge-vigente {
            background-color: #28a745;
        }

        .badge-proceso {
            background-color: #17a2b8;
        }

        .badge-finalizada {
            background-color: #dc3545;
        }
        
        /* Estilos para títulos y subtítulos */
        .puesto-title {
            font-weight: normal !important;
            font-size: 0.9rem;
            line-height: 1.3;
            margin-bottom: 4px;
            color: #333;
        }
        
        .puesto-sede {
            font-size: 0.8rem;
            color: #666;
        }
        
        /* Filas de tabla más compactas */
        .table td {
            padding: 0.5rem 0.5rem;
            vertical-align: middle;
        }
        
        /* Evitar saltos de línea en botones */
        .btn-group-resultados {
            display: flex;
            flex-wrap: nowrap;
            justify-content: center;
        }
        
        /* Paginación mejorada */
        .pagination-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .pagination {
            margin: 0;
        }
        
        .pagination .page-link {
            padding: 6px 12px;
            font-size: 0.9rem;
            color: #007bff;
            background-color: #fff;
            border: 1px solid #dee2e6;
            margin: 0 2px;
            border-radius: 4px;
            transition: all 0.2s ease;
        }
        
        .pagination .page-item.active .page-link {
            color: #fff;
            background-color: #007bff;
            border-color: #007bff;
            z-index: 1;
        }
        
        .pagination .page-item:not(.active) .page-link:hover {
            background-color: #f0f0f0;
            border-color: #ced4da;
        }
        
        .pagination .page-item:first-child .page-link,
        .pagination .page-item:last-child .page-link {
            padding: 6px 12px;
        }
        
        /* Optimización para dispositivos móviles - Manteniendo diseño PC con scroll horizontal */
        @media (max-width: 768px) {
            /* Contenedor de tabla para scroll horizontal */
            .table-responsive {
                position: relative;
                border-radius: 8px;
                overflow-x: auto; /* Solo scroll horizontal */
                overflow-y: visible; /* Permite que el contenido vertical salga si es necesario */
                box-shadow: 0 2px 10px rgba(0,0,0,0.05);
                margin-bottom: 20px;
                cursor: grab; /* Cursor que indica que se puede arrastrar */
                scrollbar-width: thin; /* Para Firefox */
            }
            
            /* Personalizar scrollbar para WebKit (Chrome, Safari) */
            .table-responsive::-webkit-scrollbar {
                height: 6px;
            }
            
            .table-responsive::-webkit-scrollbar-track {
                background: #f1f1f1;
                border-radius: 3px;
            }
            
            .table-responsive::-webkit-scrollbar-thumb {
                background: #c1c1c1;
                border-radius: 3px;
            }
            
            .table-responsive:active {
                cursor: grabbing; /* Cursor cuando se está arrastrando */
            }
            
            /* Estilo mejorado para el indicador/pad de control */
        .swipe-indicator {
            transition: opacity 0.5s ease;
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
            background-color: #e8f4ff !important; 
            border-color: #7eb3ff !important;
            position: relative;
            cursor: grab;
        }
        
        .swipe-indicator:active,
        .swipe-indicator.grabbing {
            cursor: grabbing;
            background-color: #e8f4ff !important;
            border-color: #7eb3ff !important;
            box-shadow: 0 1px 6px rgba(0,0,0,0.15) !important;
        }
        
        .swipe-indicator:hover {
            background-color: #e8f4ff !important;
            border-color: #7eb3ff !important;
        }
        
        /* Asegurarse que Bootstrap no anule nuestros estilos en hover */
        .bg-light:hover {
            background-color: inherit !important;
        }
            
            /* Mantener el diseño de la tabla como en PC */
            .table {
                min-width: 900px; /* Ancho mínimo para asegurar que se vea igual que en PC */
                margin-bottom: 0;
            }
            
            /* Badges de estado - Optimización para móviles */
            .badge-convocatoria {
                min-width: 80px;
                width: auto; /* Permite que se adapte al contenido */
                max-width: 100%; /* Ocupa todo el espacio disponible */
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                font-size: 10px;
                padding: 4px 6px;
            }
            
            /* Ajustar paginación para móviles - estructura de PC pero compacta */
            .pagination-container {
                flex-direction: column;
                align-items: center;
                gap: 15px;
                margin-top: 20px;
            }
            
            .text-muted.small {
                text-align: center;
            }
            
            /* Columna de estado optimizada para móviles */
            .estado-column {
                min-width: 85px;
                width: 85px; /* Ancho fijo para evitar desbordamientos */
            }
        }
        
        /* Para dispositivos muy pequeños */
        @media (max-width: 360px) {
            .swipe-indicator {
                padding: 5px;
                font-size: 11px;
            }
        }
		
		
		
		
		/* PAGINA SINGLE */
		
		/* Breadcrumbs con diseño elegante y actual */
.breadcrumb {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 24px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    border: 1px solid rgba(230, 230, 230, 0.7);
    position: relative;
    overflow: hidden;
}

.breadcrumb::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

.breadcrumb-item {
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 16px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #ccc;
    opacity: 0.7;
    padding-right: 16px;
    font-weight: 300;
}

.breadcrumb-item a {
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.breadcrumb-item a i {
    margin-right: 8px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.breadcrumb-item.active {
    color: #222;
    font-weight: 600;
}
        
        /* Nuevo estilo para el hero header con más altura */
        .article-hero {
            position: relative;
            height: 480px;
            background-size: cover;
            background-position: center;
            margin-bottom: 30px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }
        
        .article-hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.85) 100%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 60px 40px;
        }
        
        .article-category-badge {
            background-color: var(--primary-color);
            color: white;
            font-size: 0.85rem;
            font-weight: 500;
            padding: 7px 25px;
            border-radius: 30px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: inline-block;
            margin-bottom: 20px;
            align-self: flex-start;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
        }
        
        .article-hero-title {
            color: white;
            font-size: 2.5rem;
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 20px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }
        
        .article-hero-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            color: rgba(255, 255, 255, 0.9);
            font-size: 0.95rem;
            margin-top: 5px;
        }
        
        .article-hero-meta div {
            margin-right: 20px;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
        }
        
        .article-hero-meta i {
            margin-right: 5px;
            color: var(--primary-color);
        }
        
        .article-container {
            background-color: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            padding: 30px;
            margin-bottom: 30px;
        }
        
        .article-header {
            margin-bottom: 30px;
            display: none; /* Ocultamos el header original */
        }
        
        .article-category {
            background-color: var(--primary-color);
            color: white;
            font-size: 0.7rem;
            font-weight: 600;
            padding: 5px 12px;
            border-radius: 30px;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: inline-block;
            margin-bottom: 15px;
        }
        
        .article-title {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: #333;
            line-height: 1.3;
        }
        
        .article-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            margin-bottom: 20px;
            font-size: 0.9rem;
            color: #777;
        }
        
        .article-meta div {
            margin-right: 20px;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
        }
        
        .article-meta i {
            margin-right: 5px;
            color: var(--primary-color);
        }
        
        .article-featured-image {
            width: 100%;
            max-height: 500px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 30px;
            display: none; /* Ocultamos la imagen destacada original */
        }
        
        .article-content {
            font-size: 1.05rem;
            line-height: 1.8;
            color: #444;
        }
        
        /* Estilos mejorados para listas en el contenido */
        .article-content ul, .article-content ol {
            margin: 5px 0 15px 0;
            padding: 0 0 0 40px;
            color: #444;
        }
        
        .article-content ul {
            list-style-type: none;
        }
        
        .article-content ul li {
            position: relative;
            padding-left: 5px;
            margin-bottom: 12px;
            line-height: 1.6;
        }
        
        .article-content ul li:before {
            content: "";
            position: absolute;
            left: -20px;
            top: 8px;
            width: 8px;
            height: 8px;
            background-color: var(--primary-color);
            border-radius: 50%;
        }
        
        .article-content ol {
            counter-reset: item;
            list-style-type: none;
        }
        
        .article-content ol li {
            counter-increment: item;
            position: relative;
            padding-left: 5px;
            margin-bottom: 15px;
            line-height: 1.6;
        }
        
        .article-content ol li:before {
            content: counter(item) ".";
            position: absolute;
            left: -28px;
            color: var(--primary-color);
            font-weight: 700;
            font-size: 1.1rem;
        }
        
        /* Mejoras en los títulos h2 dentro del artículo */
        .article-content h2 {
            font-size: 1.5rem;
            font-weight: 700;
            margin: 25px 0 5px;
            color: #333;
            position: relative;
            padding-left: 18px;
            display: inline-block;
            line-height: 1.3;
            border-bottom: none;
        }
        
        .article-content h2:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background-color: var(--primary-color);
            border-radius: 0;
        }
        
        /* H3 sin barra lateral */
        .article-content h3 {
            font-size: 1.4rem;
            font-weight: 600;
            margin: 20px 0 5px;
            color: #444;
            padding-left: 0;
            position: relative;
            line-height: 1.3;
        }
        
        /* Ajustes de espaciado */
        .article-content p {
            margin-top: 0;
            margin-bottom: 15px;
        }
        
        .article-content h2 + p,
        .article-content h3 + p {
            margin-top: 0;
        }
        
        .article-content img {
            max-width: 100%;
            border-radius: 8px;
            margin: 20px 0;
        }
        
        .article-content blockquote {
            background-color: #f4f7fa;
            border-left: 4px solid var(--primary-color);
            padding: 20px 25px;
            margin: 30px 0;
            font-style: italic;
            color: #555;
            border-radius: 0 8px 8px 0;
        }
        
        /* Botones de compartir mejorados */
        .article-share {
            margin-top: 40px;
            padding-top: 30px;
            border-top: 1px solid #eee;
        }
        
        .share-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 20px;
            color: #333;
        }
        
        .share-buttons {
            display: flex;
            gap: 15px;
        }
        
        .share-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: auto;
            height: 42px;
            padding: 0 20px;
            border-radius: 30px;
            color: white;
            transition: all 0.3s ease;
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        }
        
        .share-btn i {
            margin-right: 8px;
            font-size: 1.1rem;
        }
        
        .share-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
            color: white;
        }
        
        .share-facebook {
            background-color: #3b5998;
        }
        
        .share-twitter {
            background-color: #1da1f2;
        }
        
        .share-whatsapp {
            background-color: #25d366;
        }
        
        .share-email {
            background-color: #666;
        }
        
        .article-author {
            display: flex;
            align-items: center;
            background-color: #f4f7fa;
            border-radius: 12px;
            padding: 25px;
            margin-top: 40px;
        }
        
        .author-img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 25px;
        }
        
        .author-info {
            flex: 1;
        }
        
        .author-name {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 5px;
            color: #333;
        }
        
        .author-role {
            font-size: 0.9rem;
            color: var(--primary-color);
            margin-bottom: 15px;
        }
        
        .author-bio {
            font-size: 0.95rem;
            line-height: 1.6;
            color: #555;
        }
        
        /* Títulos de secciones */
        .related-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: #333;
            position: relative;
            padding-left: 18px;
            display: inline-block;
        }
        
        .related-title:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background-color: var(--primary-color);
            border-radius: 0;
        }
        
        /* Mejoras para artículos relacionados */
        .related-posts {
            margin-top: 50px;
        }
        
        .related-card {
            height: 100%;
            transition: all 0.3s ease;
        }
        
        .related-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        .comment-section {
            margin-top: 50px;
        }
        
        .comment-form input, .comment-form textarea {
            border-radius: 8px;
            border: 1px solid #ddd;
            padding: 10px 15px;
            margin-bottom: 15px;
        }
        
        .comment-form textarea {
            min-height: 120px;
        }
		
		/* Fix for comment avatars to ensure they maintain proper aspect ratio */
.comments .rounded-circle {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
        
        /* Ajustes responsive */
        @media (min-width: 768px) and (max-width: 991px) {
            .related-posts .col-md-12 .blog-img {
                height: 220px;
            }
            
            .related-posts .col-md-6 .blog-title {
                font-size: 1.1rem;
                height: 48px;
                overflow: hidden;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
            }
            
            .related-posts .blog-excerpt {
                height: 75px;
                overflow: hidden;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                font-size: 0.9rem;
            }
            
            .related-posts .blog-img {
                height: 180px;
            }
            
            .related-posts .blog-content {
                padding: 15px;
            }
        }
        
        @media (max-width: 767px) {
            .related-posts .blog-img {
                height: 200px;
            }
            
            .related-posts .col-12:not(:last-child) {
                margin-bottom: 10px;
            }
            
            .article-container {
                padding: 20px;
            }
            
            .article-content {
                font-size: 1rem;
            }
            
            .article-content h2 {
                font-size: 1.6rem;
                margin-bottom: 15px;
            }
            
            .article-content h3 {
                font-size: 1.3rem;
            }
            
            .article-author {
                flex-direction: column;
                align-items: flex-start;
                text-align: center;
            }
            
            .author-img {
                margin: 0 auto 15px;
            }
            
            .author-info {
                width: 100%;
            }
            
            .article-hero {
                height: 450px;
            }
            
            .article-hero-overlay {
                padding: 40px 25px;
            }
            
            .article-hero-title {
                font-size: 1.8rem;
            }
        }
        
        @media (max-width: 576px) {
            .article-hero {
                height: 400px;
            }
            
            .article-hero-title {
                font-size: 1.5rem;
                margin-bottom: 15px;
            }
            
            .article-hero-overlay {
                padding: 30px 20px;
            }
            
            .article-category-badge {
                font-size: 0.75rem;
                padding: 5px 15px;
                margin-bottom: 15px;
            }
            
            .article-hero-meta {
                font-size: 0.85rem;
            }
            
            .share-buttons {
                flex-wrap: wrap;
            }
            
            .share-btn {
                flex: 1 0 calc(50% - 10px);
                min-width: calc(50% - 10px);
                justify-content: center;
            }
        }
		
		
		









        /* Ajustes adicionales para mejorar la responsividad de los cards */

/* Aseguramos que las tarjetas tengan altura uniforme en cada fila */
.row {
    display: flex;
    flex-wrap: wrap;
}

/* Mejoramos el espaciado en el contenedor de las tarjetas */
#servicios-destacados .row {
    margin-right: -15px;
    margin-left: -15px;
}

/* Optimización para visualización en tablets */
@media (min-width: 768px) and (max-width: 991px) {
    /* En tablets, cada tarjeta ocupa el 50% del ancho (2 tarjetas por fila) */
    #servicios-destacados .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Ajustamos altura de la imagen para tablets */
    .feature-card-img {
        height: 200px;
    }
    
    /* Ajustamos el tamaño del título para tablets */
    .feature-card-title {
        font-size: 1.2rem;
    }
    
    /* Cuando es el único elemento en su fila (por ejemplo, el tercero en una disposición 2+1), 
       hacemos que ocupe todo el ancho disponible */
    #servicios-destacados .row > div:nth-child(odd):last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Optimización adicional para dispositivos móviles */
@media (max-width: 767px) {
    /* En móviles, cada tarjeta ocupa el 100% del ancho (1 tarjeta por fila) */
    #servicios-destacados .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Ajustamos altura de la imagen para móviles */
    .feature-card-img {
        height: 180px;
    }
}




















/**
 * Estilos adicionales para los widgets personalizados
 * Añade estos estilos al final de tu archivo style.css
 */

/* Estilos para los widgets de Asencio */
.news-item {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateX(5px);
}

.news-date {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-right: 15px;
    flex-shrink: 0;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 3px 6px rgba(0, 123, 255, 0.2);
}

.link-list {
    list-style: none;
    padding-left: 0;
}

.link-list li {
    margin-bottom: 12px;
}

.link-list a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 8px 5px;
    border-radius: 8px;
}

.link-list a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateX(5px);
}

.link-list i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Ajustes para el widget de búsqueda */
.sidebar-widget .input-group {
    display: flex;
    align-items: stretch;
}

.sidebar-widget .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    height: 38px;
}

.sidebar-widget .input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0.375rem 0.75rem;
}

/* Ajustes para el widget de Banner Informativo */
.sidebar-widget .card.border-0.bg-primary {
    margin-bottom: 0;
}

/* Mejorar la visualización del formato de fecha */
.news-date br {
    display: block;
    content: "";
    margin-top: 2px;
}

/* Asegurarse que los enlaces dentro de news-item se muestren correctamente */
.news-item div {
    flex-grow: 1;
    overflow: hidden;
}

.news-item div a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-item div a:hover {
    color: var(--primary-color);
}




/* Reglas específicas con alta especificidad para los contenedores de fecha */
.widget .news-date,
.asencio-widget .news-date,
.sidebar-widget .news-date,
.sidebar .news-date,
div.news-date {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    margin-right: 15px !important;
    padding: 6px 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Asegurarnos que el contenedor flexible funcione correctamente */
.widget .news-item,
.asencio-widget .news-item,
.sidebar-widget .news-item,
.sidebar .news-item,
div.news-item {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 15px !important;
}

/* Ajustar el contenedor del texto */
.widget .news-item > div:not(.news-date),
.asencio-widget .news-item > div:not(.news-date),
.sidebar-widget .news-item > div:not(.news-date),
.sidebar .news-item > div:not(.news-date),
.news-item > div:not(.news-date) {
    flex: 1 !important;
    overflow: hidden !important;
}