        :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 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);
        }

        /* 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;
            }
        }