@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;
}

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;
}

h3 {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

a {
    text-decoration: none;
    color: #004799;
}

.main {
    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;
}

.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);
}

.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;
    }
}

.tabla {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
}

.tabla th, .tabla td {
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 15px 20px;
    vertical-align: middle;
}

.tabla thead th {
    background-color: #cf972f;
    color: white;
    font-weight: bold;
    text-align: left;
    border-bottom: 3px solid #b3822d;
    font-family: "DM Sans", sans-serif;
    font-size: 1.1em;
}

.tabla tbody tr:nth-child(even) {
    background-color: #f7f7f7;
}

.tabla tbody tr:hover {
    background-color: #f0f0f0;
}

.tabla tbody tr:last-child td {
    border-bottom: none;
}

.tabla th:first-child,
.tabla td:first-child {
    width: 50%;
}
.tabla th:last-child,
.tabla td:last-child {
    width: 50%;
}

@media screen and (max-width: 768px) {
    .tabla thead {
        display: none;
    }

    .tabla tr {
        display: block;
        margin-bottom: 0.8rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        background-color: #ffffff;
    }

    .tabla td {
        display: block;
        text-align: right;
        padding: 0.5rem 1rem;
        border-bottom: 1px dashed #eee;
        font-size: 1rem;
        white-space: normal;
        width: 100%;
    }

    .tabla td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        color: #004799;
        padding-right: 10px;
    }

    .tabla tbody tr:nth-child(even) {
        background-color: #ffffff;
    }
    
    .tabla tbody tr:last-child td {
        border-bottom: 1px dashed #eee;
    }

    .tabla tr:last-child {
        margin-bottom: 0.8rem;
    }

    .tabla tr:last-child td:last-child {
        border-bottom: none;
    }

    .tabla th:first-child,
    .tabla td:first-child,
    .tabla th:last-child,
    .tabla td:last-child {
        width: 100%;
    }
}

.specialty-card {
    font-size: 23px;
    padding: 15px;
    border-radius: 10px;
    height: 100%;
}

.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background-color: #002651;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    align-self: flex-start;
}

.sidebar-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.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;
}

.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;
}

.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;
}

.left-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    margin-top: 4.5rem;
}

.insignias-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 1rem;
}

.sidebar-insignia {
    width: 70%;
    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;
    color: white;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.custom-history-button:hover {
    background-color: #65a3e9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.custom-history-button:active {
    background-color: #003d82;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(1px);
}

.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;
}

.carousel-caption-custom {
    padding-top: 70px;
}

.content-after-hero {
    margin-top: 100vh;
    position: relative;
    z-index: 2;
}

.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;
}