@font-face {
    font-family: 'grel';
    src: url('../fonts/tt_norms_pro_extrablack_italic-webfont.woff') format('woff'),
         url('../fonts/tt_norms_pro_extrablack_italic-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'grel-n';
    src: url('../fonts/tt_norms_pro_regular-webfont.woff') format('woff'),
         url('../fonts/tt_norms_pro_regular-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}



.top-bar a:hover {
    text-decoration: underline;
}

.top-bar i, a {
    color: #107bd9; 
}

h1 , h2 {
    font-family: 'arial black', sans-serif;
}


.dropdown-menu .dropdown-item {
    font-size: 0.9em;
}

.navbar-brand img {
    transition: transform 0.3s;
}

.navbar-brand img:hover {
    transform: scale(1.1);
}



.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%280, 0, 0, 1%29" stroke-width="2" linecap="round" linejoin="round" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E');
}

/* Para ocultar la barra superior al hacer scroll */
.scrolled .top-bar {
    top: -40px;
}

.scrolled .navbar {
    top: 0;
}

/* Ocultar la barra superior en dispositivos móviles */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .navbar {
        top: 0;
    }

    body {
        margin-top: 70px; /* Ajuste para la altura de la barra de navegación en móviles */
    }
}





.card {
    border-radius: 10px;
    background-color: white; /* Fondo blanco para las tarjetas */
    transition: background-color 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    background-color: #e0e0e0; /* Fondo más oscuro al pasar el mouse */
}

.button-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.button-card:hover {
    transform: scale(1.05);
    background-color: #00274d; /* Fondo oscuro */
    color: white;
    box-shadow: 0 0 30px 0 rgba(0, 199, 236, 0.5); /* Brillo de la sombra */
}

.button-card i {
    color: #00c7ec;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.button-card:hover i {
    color: white;
}

.button-card h5 {
    font-size: 1.2em;
    margin: 10px 0;
}

.button-card p {
    font-size: 0.9em;
    color: #555;
    transition: color 0.3s;
}

.button-card:hover p {
    color: #d1e9f4;
}

.shine-effect {
    content: '';
    display: block;
    width: 0px;
    height: 86%;
    position: absolute;
    top: 7%;
    left: 0%;
    opacity: 0;
    background: white;
    box-shadow: 0 0 15px 3px white;
    transform: skewX(-20deg);
    transition: all 0.8s ease-in-out; /* Animación más lenta */
    clip-path: polygon(20% 0%, 60% 0%, 40% 100%, 0% 100%); /* Forma de R */
}

.button-card:hover .shine-effect {
    width: 100%;
    opacity: 0.3;
    left: 100%;
}

@keyframes shine {
    from {
        opacity: 0;
        left: 0%;
    }

    50% {
        opacity: 1;
    }

    to {
        opacity: 0;
        left: 100%;
    }
}



#comunicado-section .card-title {
    font-size: 1em;
    font-weight: bold;
}

#comunicado-section .card-text {
    font-size: 0.8em;
    color: #666;
}

#comunicado-section .btn {
    font-size: 0.9em;
}

#intervenciones-section img {
    transition: transform 0.3s;
    margin-bottom: 20px;
}

#intervenciones-section img:hover {
    transform: scale(1.1);
}

#flyers-section .card-title {
    font-size: 1em;
    font-weight: bold;
}

#flyers-section .card-text {
    font-size: 0.8em;
    color: #666;
}

#flyers-section .btn {
    font-size: 0.9em;
}

.carousel-indicators li {
    background-color: #0044cc;
}

.carousel-indicators .active {
    background-color: #0044cc;
}

.table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

.table-secondary {
    background-color: #e2e3e5;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}




.inactive {
    background-color: #f0f0f0;
    color: #ccc;
}

.inactive td {
    text-decoration: line-through;
}

.table tbody tr:hover {
    background-color: #e0e0e0;
}

/* Cambia el fondo de la sección de funcionarios a un gris más claro */
.section-funcionarios {
    background-color: #f3f3f3; /* Gris más claro */
    padding: 50px 50px;
}



.img-fluid.hover-effect {
    transition: transform 0.3s ease-in-out;
}

.img-fluid.hover-effect:hover {
    transform: scale(1.1); /* Efecto de zoom */
}

#news-container {
    position: relative;
}

#news-container .pagination {
    margin-top: 20px;
}

#news-container .btn-secondary {
    margin-top: 20px;
}

#news .d-flex {
    margin-bottom: 20px; /* Ajusta el espacio entre el título y las noticias */
}

#news h2 {
    margin: 0; /* Elimina el margen para alinear mejor con el botón */
}

#news .btn-secondary {
    margin: 0; /* Asegura que no haya margen adicional */
    align-self: flex-end; /* Alinea el botón al final del contenedor flexible */
}


.card {
    border: 4px solid #ffffff;
    border-radius: 10px;
    background-color: white;
    transition: background-color 0.3s;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.471); /* Sombra suave */
}

.card-body {
    padding: 15px;
    text-align: left;
}


.card-text {
    font-size: 1em;
    color: #555;
}


/* Estilos para la animación */
.animation-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Asegurar que la animación esté detrás de los botones */
}

.lightning-container .lightning {
    position: absolute;
    display: block;
    height: 12px;
    width: 12px;
    border-radius: 12px;
    transform-origin: 6px 6px;
    animation-name: woosh;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.445, 0.050, 0.550, 0.950);
    animation-direction: alternate;
}

.lightning-container .lightning.white {
    background-color: white;
    box-shadow: 0px 50px 50px 0px rgba(255, 255, 255, 0.7);
}

.lightning-container .lightning.red {
    background-color: #fc7171;
    box-shadow: 0px 50px 50px 0px rgba(252, 113, 113, 0.7);
    animation-delay: 0.2s;
}

.boom-container .shape {
    display: inline-block;
    position: relative;
    opacity: 0;
    transform-origin: center center;
}

.boom-container .shape.triangle {
    width: 0;
    height: 0;
    border-style: solid;
    transform-origin: 50% 80%;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
    margin-left: -15px;
    border-width: 0 2.5px 5px 2.5px;
    border-color: transparent transparent #42e599 transparent;
    animation-name: boom-triangle;
}

.boom-container .shape.triangle.big {
    margin-left: -25px;
    border-width: 0 5px 10px 5px;
    border-color: transparent transparent #fade28 transparent;
    animation-name: boom-triangle-big;
}

.boom-container .shape.disc {
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: #e6e6e6;
    animation-name: boom-disc;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
}

.boom-container .shape.circle {
    width: 20px;
    height: 20px;
    animation-name: boom-circle;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
    border-radius: 100%;
    margin-left: -30px;
}

.boom-container .shape.circle.white {
    border: 1px solid white;
}

.boom-container .shape.circle.big {
    width: 40px;
    height: 40px;
    margin-left: 0px;
}

.boom-container .shape.circle.big.white {
    border: 2px solid white;
}

.boom-container.second {
    left: 485px;
    top: 155px;
}

@keyframes woosh {
    0% {
        width: 12px;
        transform: translate(0px, 0px) rotate(-35deg);
    }
    15% {
        width: 50px;
    }
    30% {
        width: 12px;
        transform: translate(214px, -150px) rotate(-35deg);
    }
    30.1% {
        transform: translate(214px, -150px) rotate(46deg);
    }
    50% {
        width: 110px;
    }
    70% {
        width: 12px;
        transform: translate(500px, 150px) rotate(46deg);
    }
    70.1% {
        transform: translate(500px, 150px) rotate(-37deg);
    }
    85% {
        width: 50px;
    }
    100% {
        width: 12px;
        transform: translate(700px, 0) rotate(-37deg);
    }
}

@keyframes boom-circle {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    30% {
        opacity: 0;
        transform: scale(3);
    }
}

@keyframes boom-triangle-big {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    40% {
        opacity: 0;
        transform: scale(2.5) translate(50px, -50px) rotate(360deg);
    }
}

@keyframes boom-triangle {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    30% {
        opacity: 0;
        transform: scale(3) translate(20px, 40px) rotate(360deg);
    }
}

@keyframes boom-disc {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    40% {
        opacity: 0;
        transform: scale(2) translate(-70px, -30px);
    }
}





.sub-title {
    color: black;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sub-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: black;
    position: absolute;
    bottom: 0;
    left: 0;
}

.sub-title:hover {
    color: white;
    background-color: black;
}

.sub-title:hover::after {
    background-color: white;
}

.classification-box {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.classification-box h4 {
    background-color: #333;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px 5px 0 0;
    margin: -20px -20px 20px -20px;
}

.classification-box ul {
    list-style-type: none;
    padding: 0;
}

.classification-box ul li {
    padding: 10px 0;
    border-top: 1px solid #ddd;
}

.classification-box ul li:first-child {
    border-top: none;
}

.classification-box ul li i {
    color: #333;
    margin-right: 10px;
}
.card-header .btn-link {
    text-decoration: none;
    color: #007bff;
}

.card-header .btn-link:hover {
    text-decoration: none;
    color: #0056b3;
}







.services-section {
    text-align: center;
    padding: 20px;
}

.services-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-card {
    width: 200px;
    height: 250px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.9;
}

.service-content {
    width: 100%;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    text-align: center;
    position: relative;
    z-index: 2;
}

.service-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.service-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.service-description {
    font-size: 0.9em;
    color: #ffffff;
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s, max-height 0.3s;
    overflow: hidden;
}

.service-card:hover .service-description {
    opacity: 1;
    max-height: 100px;
}

.service-button {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 0.9em;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s, max-height 0.3s;
    overflow: hidden;
}

.service-card:hover .service-button {
    opacity: 1;
    max-height: 40px;
}

@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
        align-items: center;
     
    }
    .service-card {
        width: 100%;
    }
}


.modal {
    display: none; /* Ocultar por defecto */
    position: fixed; /* Fijo en la pantalla */
    z-index: 5000; /* Asegurarse de que esté por encima de otros elementos */
    left: 0;
    top: 0;
    width: 100%; /* Ancho completo */
    height: 100%; /* Alto completo */
    overflow: auto; /* Permitir scroll si es necesario */
    background-color: rgba(0, 0, 0, 0.4); /* Fondo oscuro con transparencia */
}

.modal-content {
    background-color: #fefefe;
    margin:  auto; /* Centrar verticalmente */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Ancho por defecto */
    max-width: 600px; /* Ancho máximo */
    border-radius: 10px; /* Bordes redondeados */
    text-align: center; /* Centrar el contenido */
}

.modal-image {
    width: 100%; /* Imagen responsive */
    height: auto;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.close-btn {
    background-color: #4CAF50; /* Color del botón */
    color: white; /* Color del texto */
    padding: 10px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.close-btn:hover {
    background-color: #45a049; /* Color al pasar el cursor */
}

@media screen and (max-width: 600px) {
    .modal-content {
        width: 90%; /* Ancho ajustado para móviles */
    }
}







.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    font-weight: bold;
    padding: 15px 30px; /* Aumenté el padding del botón para hacerlo más fácil de presionar */
    text-transform: uppercase;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Añadí una sombra al botón para darle un aspecto más interactivo */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
    transform: translateY(-2px); /* Efecto de elevación al hacer hover */
}

@media (max-width: 768px) {
    .banner-section {
        height: auto; /* Deja que la altura se ajuste automáticamente en dispositivos móviles */
        margin-top: 15px; /* Espacio menor en dispositivos móviles */
    }

    .banner-content {
        padding: 20px; /* Menor padding en dispositivos móviles */
        width: 100%; /* Aumenté el ancho al 95% en dispositivos móviles */
    }

    .banner-section h3 {
        font-size: 1.5em; /* Reduje el tamaño del título en dispositivos móviles */
    }

    .banner-section p {
        font-size: 1em; /* Reduje el tamaño del texto en dispositivos móviles */
        margin-bottom: 20px; /* Espacio ajustado en dispositivos móviles */
    }

    .btn-danger {
        padding: 10px 20px; /* Botón más pequeño en dispositivos móviles */
    }
}



#directores-section .card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#directores-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

#directores-section .btn-outline-success {
    transition: background-color 0.3s ease, color 0.3s ease;
}

#directores-section .btn-outline-primary:hover,
#directores-section .btn-outline-success:hover {
    background-color: #007bff;
    color: #fff;
}
