@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;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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;
    font-size: 30px;
}

a {
    text-decoration: none;
    color: #004799;
}

.main {
    padding-top: 3rem;
    padding-bottom: 3rem;
    flex-grow: 1;
}

.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);
}

.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;
    }
}

.teacher-profile-alt {
    background-color: #003470;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 10px solid #E2A415;
    height: 100%;
}

.teacher-profile-alt:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 71, 153, 0.15);
}

.teacher-img-alt {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #e9ecef;
    flex-shrink: 0;
}

.teacher-details-alt {
    margin-left: 1.5rem;
}

.teacher-role-alt {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.teacher-name-alt {
    font-family: "Oswald", sans-serif;
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    
    .teacher-profile-alt {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .teacher-img-alt {
        width: 100px;
        height: 100px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10px;
    }

    .teacher-details-alt {
        margin-left: 0;
    }
    
    .teacher-role-alt {
        font-size: 1.3rem;
    }
    
    .teacher-name-alt {
        font-size: 1rem;
    }

    .container.main .col-md-12 p {
        font-size: 18px !important;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-profile {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out forwards;
}

.animated-profile:nth-child(1) {
    animation-delay: 0.1s;
}
.animated-profile:nth-child(2) {
    animation-delay: 0.2s;
}
.animated-profile:nth-child(3) {
    animation-delay: 0.3s;
}
.animated-profile:nth-child(4) {
    animation-delay: 0.4s;
}
.animated-profile:nth-child(5) {
    animation-delay: 0.5s;
}
.animated-profile:nth-child(6) {
    animation-delay: 0.6s;
}

.swiper {
    width: 100%;
    padding: 20px 0;
}

.swiper-slide {
    text-align: center;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    transition: transform 0.3s ease;
    cursor: pointer;
    width: 100%;
    height: 250px; 
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .swiper-slide img {
        height: 180px;
    }
}

.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;
}

@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;
}

.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;
}