.backColor {

	background-color: #002552;
}

.btn-default {
    color: #fff;
    background-color: #002552;
    border-color: #357ebd; /*set the color you want here*/
}

.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open>.dropdown-toggle.btn-default {
    color: #fff;
    background-color: #0C5BC4;
    border-color: #285e8e; /*set the color you want here*/
}

 /* Cambiar el color del ícono del navbar-toggler a blanco */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Desplazar el logo 70px a la izquierda */
.navbar-brand {
    margin-left: 60px; /* Desplaza el logo a la izquierda */
}

/* Estilo para el fondo del dropdown */
.dropdown-menu {
    background-color: #02336E !important;
}

 /* Cambiar el color del texto al hacer hover */
.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important; /* Fondo al hacer hover */
}


/* Estilos personalizados para los botones */
    .btn-gob-primary {
        background-color: #002552;
        border-color: #002552;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .btn-gob-primary:hover {
        background-color: #001a3a;
        border-color: #001a3a;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 37, 82, 0.2);
    }
    
    /* Ajustes responsivos */
    @media (max-width: 576px) {
        .btn-gob-primary {
            padding: 0.375rem 0.75rem;
            font-size: 0.9rem;
        }
    }



.news-card {
    transition: all 0.3s ease;
    margin-bottom: 25px;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.sorting-options .btn {
    min-width: 120px;
}

.badge-date {
    background-color: #002552;
}

.btn-outline-gov {
    color: #002552;
    border-color: #002552;
}

.btn-outline-gov:hover,
.btn-outline-gov:active,
.btn-outline-gov:focus {
    color: white;
    background-color: #002552;
    border-color: #002552;
}

.btn-outline-gov:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 37, 82, 0.25);
}

/* Personalización de los enlaces de paginación */
.page-link {
    color: #002552 !important;
    border-color: #dee2e6 !important;
    background-color: white !important;
    transition: all 0.3s ease;
}

.page-link:hover {
    color: #001a3a !important;
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
}

.page-item.active .page-link {
    background-color: #002552 !important;
    border-color: #002552 !important;
    color: white !important;
}

.page-item.disabled .page-link {
    color: #6c757d !important;
    background-color: white !important;
    border-color: #dee2e6 !important;
}

/* Opcional: Efecto de sombra al hacer hover */
.page-link:not(.active):not(.disabled):hover {
    box-shadow: 0 2px 4px rgba(0, 37, 82, 0.15);
    transform: translateY(-1px);
}


/* Estilos personalizados  MAPA*/
    .card {
        border-radius: 10px;
        transition: transform 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-5px);
    }
    
    iframe {
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    @media (max-width: 768px) {
        .ratio-16x9 {
            aspect-ratio: 4/3 !important;
        }
    }

/* Estilos personalizados para el directorio */
    .directorio-card {
        border-radius: 10px;
        overflow: hidden;
        transition: all 0.3s ease;
        background: white;
    }
    
    .directorio-card-featured {
        border: 2px solid #002552;
    }
    
    .directorio-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 37, 82, 0.15) !important;
    }
    
    .directorio-img-container {
        height: 300px;
        overflow: hidden;
    }
    
    .directorio-img-featured {
        height: 100%;
        min-height: 350px;
        overflow: hidden;
    }
    
    .directorio-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }
    
    .directorio-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
    }
    
    .directorio-position {
        font-size: 0.95rem;
    }
    
    .directorio-text {
        font-size: 0.9rem;
        color: #555;
    }
    
    .directorio-specialties {
        font-size: 0.85rem;
        color: #555;
    }
    
    .directorio-contact {
        min-width: 120px;
        text-align: right;
    }
    
    @media (max-width: 768px) {
        .directorio-img-featured {
            min-height: 250px;
        }
        
        .directorio-card-featured .directorio-body {
            padding: 1.5rem !important;
        }
    }


    .directorio-img-container {
       
        overflow: hidden;
    }
    
    .directorio-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }
    
    .directorio-card {
        transition: transform 0.3s ease;
    }
    
    .directorio-card:hover {
        transform: translateY(-5px);
    }
    
    .carousel-control-prev, .carousel-control-next {
        width: 40px;
        height: 40px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.8;
    }
    
    .carousel-control-prev {
        left: -20px;
    }
    
    .carousel-control-next {
        right: -20px;
    }
    
    @media (max-width: 767.98px) {
        .carousel-control-prev {
            left: -10px;
        }
        .carousel-control-next {
            right: -10px;
        }
    }


     .logo-entidad {
        transition: transform 0.3s ease;
        padding: 10px;
    }
    
    .logo-entidad:hover {
        transform: scale(1.05);
    }
    
    .logo-entidad img {
        filter: grayscale(30%);
        opacity: 0.8;
        transition: all 0.3s ease;
    }
    
    .logo-entidad:hover img {
        filter: grayscale(0%);
        opacity: 1;
    }
    
    @media (max-width: 768px) {
        .d-flex {
            gap: 15px !important;
        }
        
        .logo-entidad {
            flex: 0 0 calc(33.333% - 15px);
            max-width: calc(33.333% - 15px);
        }
    }
    
    @media (max-width: 576px) {
        .logo-entidad {
            flex: 0 0 calc(50% - 15px);
            max-width: calc(50% - 15px);
        }
    }




footer a:hover {
    color: #f8f9fa !important;
    text-decoration: underline !important;
  }
  
  .bg-primary {
    background-color: #0a1b3a !important;
  }
  
  .bg-dark {
    background-color: #122f61 !important;
  }




  .social-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f9fa;
  }
  
  .social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  }
  
  .instagram-gradient {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  }
  
  .instagram-btn {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border: none;
  }
  
  .instagram-btn:hover {
    color: white;
    opacity: 0.9;
  }
  
  .bg-primary {
    background-color: #002552 !important;
  }
  
  /* Asegurar 3 columnas en todas las pantallas */
  @media (max-width: 768px) {
    .col-md-4 {
      flex: 0 0 100%;
      max-width: 100%;
    }
  }



.dropdown-submenu {
    position: relative;
}
        
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    background-color: #02336E !important;
}
        
/* Pequeño ajuste para móviles */
@media (max-width: 992px) {
    .dropdown-submenu .dropdown-menu {
        position: static;
        margin-left: 10px;
    }
}



  .banner-legacy {
    background: linear-gradient(135deg, #002552 0%, #004b8d 100%);
    border-radius: 8px;
    overflow: hidden;
    height: 266px;
    transition: all 0.3s ease;
  }
  
  .banner-content {
    height: 100%;
  }
  
  .link-icon {
    color: rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
  }
  
  .hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .banner-legacy:hover .hover-overlay {
    opacity: 1;
  }
  
  .banner-legacy:hover .link-icon {
    transform: scale(1.1);
  }
  
  /* Responsive para móviles */
  @media (max-width: 992px) {
    .banner-legacy {
      height: auto;
      min-height: 120px;
    }
    
    .banner-content {
      flex-direction: column;
      text-align: center;
      padding: 1.5rem !important;
    }
    
    .link-icon {
      margin-top: 1rem;
      font-size: 2rem !important;
    }
  }
