@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

body {
    margin: 0;
    padding-top: 80px;
}


.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-left.is-visible {
    transform: translateX(0);
}

p {
  font-family: "Sansation", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: justify;
}

h1 {
    font-family: "Outfit", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    font-size: 40px;
    margin-bottom: 20px;
}

.navbar-custom-bg {
    background: linear-gradient(to right, #0479ff, #002651) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.show .nav-link {
    background-color: #ffffff;
    color: #004799 !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #004799;
        padding: 1rem;
        border-bottom-left-radius: 0.5rem;
        border-bottom-right-radius: 0.5rem;
    }

    .navbar-nav .dropdown-menu {
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        display: block;
        transform: none;
        box-shadow: none;
        position: static;
        float: none;
        width: auto;
        margin-top: 0.5rem;
        padding-top: 0;
        padding-bottom: 0;
        background-color: transparent;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .navbar-nav .dropdown-menu.show {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .navbar-collapse.collapsing .dropdown-menu.show {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.main {
    /* background-color: #f8f9fa; */
    /* Eliminado para que el fondo del body sea visible */
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.main .shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main .shadow:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .2) !important;
}

.swiper {
    width: 100%;
    padding: 20px 0;
}

.swiper-slide {
    
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card.h-100 {
    display: flex;
    flex-direction: column;
}

.card.h-100 .card-img-top {
    flex-grow: 1;
    height: auto;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    top: 0;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


.swiper-slide img {
    transition: transform 0.3s ease;
    cursor: pointer;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.lightbox-trigger {
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0.7);
        opacity: 0;
    }
}

.lightbox-img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.lightbox.show {
    opacity: 1;
}

.lightbox.show .lightbox-img {
    animation: zoomIn 0.3s ease forwards;
}

.lightbox.hide .lightbox-img {
    animation: zoomOut 0.3s ease forwards;
}

/* Ajusta la posición del texto del carrusel para que no quede oculto por la navbar transparente */
.carousel-caption-custom {
    padding-top: 70px;
    /* Empuja el contenido hacia abajo por la altura de la navbar */
}

/* Contenedor para el contenido que viene después del carrusel */
.content-after-hero {
    margin-top: 100vh;
    /* Empuja el contenido hacia abajo por la altura completa del carrusel */
    position: relative;
    /* Asegura que se apile correctamente sobre el carrusel */
    z-index: 2;
    /* Por encima del carrusel */
}

.footer {
    background-color: #dbe4f1;
    color: #3b4c73;
    padding: 40px 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.columna {
    margin: 0 20px;
}

.columna h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.columna ul {
    list-style: none;
    padding: 0;
}

.columna ul li {
    margin-bottom: 10px;
}

.columna a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.columna a:hover {
    text-decoration: underline;
}

.icono a {
    display: inline-block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

h3 {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

.specialty-card {
    font-size: 23px;

    padding: 15px;
    border-radius: 10px;
    height: 100%;
}


a {
    text-decoration: none;
    color: #004799;
}

.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    max-height: calc(115vh - 140px);
    overflow-y: none;
    /* Permite scroll interno si el contenido de la sidebar es largo */
    background-color: #002651;
    /* Fondo azul oscuro */
    padding: 1.5rem 1rem;
    border-radius: 15px;
    /* Bordes suaves */
    align-self: flex-start;
    /* Asegura que la sidebar se alinee arriba en su contenedor flex */


}


        /* Estilo 6: Pulso suave */
       .borde-pulso{
            border: 5px solid #74b9ff;
            box-shadow: 0 0 10px rgba(116, 185, 255, 0.5);
            animation: brilloPulso 3s ease-in-out infinite;
        }

        @keyframes brilloPulso {
            0%, 100% { 
                border-color: #74b9ff;
                box-shadow: 0 0 10px rgba(116, 185, 255, 0.5);
            }
            25% { 
                border-color: #392de4;
                box-shadow: 0 0 15px rgba(8, 162, 223, 0.6);
            }
            50% { 
                border-color: #3d93d1;
                box-shadow: 0 0 20px rgba(121, 253, 253, 0.7);
            }
            75% { 
                border-color: #ddcc96;
                box-shadow: 0 0 15px rgba(158, 148, 115, 0.6);
            }
        }

        

/* Títulos dentro de la Sidebar */
.sidebar-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Sidebar Navigation Accordion */
.sidebar-nav .accordion-item {
    background-color: transparent;
    border: none;
}

.sidebar-nav .accordion-button {
    background-color: transparent;
    color: #e0e0e0;
    font-weight: 500;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav .accordion-button:not(.collapsed) {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: none;
}

.sidebar-nav .accordion-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.sidebar-nav .accordion-button:focus {
    box-shadow: none;
}

/* Icono del acordeón (flecha) */
.sidebar-nav .accordion-button::after {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.sidebar-nav .accordion-body {
    padding: 0;
    background-color: transparent;
}

.sidebar-nav .accordion-body ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.sidebar-nav .accordion-body li a {
    display: block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: #b0c4de;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav .accordion-body li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
}

/* Estilos para las tarjetas de Comunicados */
.sidebar-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    transition: background-color 0.2s ease;
}

.sidebar-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-card a {
    color: #b0c4de;
    text-decoration: none;
}

.sidebar-card a:hover {
    color: #ffffff;
}

/* Estilos para la nueva sidebar izquierda */
.left-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    margin-top: 4.5rem;
    /* Añadido para bajar la sidebar */
}

.insignias-container {
    display: flex;
    flex-direction: column;
    /* Cambiado para apilar verticalmente */
    align-items: center;
    /* Centra las insignias horizontalmente */
    gap: 15px;
    margin-top: 1rem;
}

.sidebar-insignia {
    width: 70%;
    /* Reducido para que se vean más pequeñas */
    height: auto;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px;
    transition: transform 0.2s ease-in-out;
}

.custom-history-button {
    background-color: #0056b3;
    /* Un azul más oscuro para mayor contraste */
    color: white;
    padding: 12px 25px;
    /* Aumenta el padding para hacerlo más grande */
    font-size: 1.1rem;
    /* Aumenta ligeramente el tamaño de la fuente */
    border-radius: 5px;
    /* Bordes ligeramente redondeados */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    /* Añade una ligera sombra */
    transition: all 0.3s ease;
    /* Transición suave para los efectos hover */
    border: none;
    /* Elimina el borde por defecto */
}

.custom-history-button:hover {
    background-color: #65a3e9;
    /* Azul más oscuro al pasar el ratón */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    /* Aumenta la sombra en hover */
    transform: translateY(-2px);
    /* Ligeramente elevado en hover */
}

.custom-history-button:active {
    background-color: #003d82;
    /* Un azul más oscuro al hacer clic */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    /* Reduce la sombra al hacer clic */
    transform: translateY(1px);
    /* Ligeramente presionado al hacer clic */
}


.tabla {
  border-collapse: collapse;
  width: 100%;
  background-color: white;
  font-family: "Times New Roman", serif;
  text-align: center;
}

/* Bordes */
.tabla th, .tabla td {
  border: 1px solid black;
  padding: 15px 25px; /* <-- agrega espacio interno */
}

/* Más separación entre columnas */
.tabla th:first-child,
.tabla td:first-child {
  width: 55%; /* primera columna más ancha */
}

.tabla th:last-child,
.tabla td:last-child {
  width: 45%;
}

/* Opcional: línea divisoria más notoria entre columnas */
.tabla th + th,
.tabla td + td {
  border-left: 3px solid #000000; /* azul institucional */
}

/* Estilo de encabezados */
.tabla th {
  background-color: #cf972f;
  color: white;
  font-weight: bold;
}

@media (max-width: 768px) {
    .swiper-slide img {
        height: 180px; 
        width: 100%;
    }
}

.modal-square {
    width: 90vw;
    max-width: 500px;
}

.modal-square .modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.modal-square .modal-body {
    text-align: center;
}



