body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Merriweather', serif;
    font-family: 'Montserrat', sans-serif;
}

.grid-container {
    max-width: 90%;
    margin: auto;
}

.grid-container2 {
    max-width: 100%;
    margin: auto;
}

a {
    text-decoration: none;
    cursor: pointer;
}

/* PANTALLA CARGA */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* MENU */

.menu {
    width: 100%;
    height: 60px;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(2, 50%);
    background-color: #193783;
}

.logo-menu {
    display: grid;
    grid-column: 1/2;
    padding: 10px 50px;
    width: 30px;
}


.nav {
    display: grid;
    grid-column: 2/2;
    align-self: center;
    justify-self: end;
}

nav ul li {
    display: inline-block;
    margin: 0 5px;
}

.nav-menu {
    width: 600px;
    list-style: none;
}

.nav-menu a {
    font-size: 15px;
    margin-right: 20px;
    color: #ffffff;
}

.nav-menu li a:hover {
    color: #ffcc00;
}

.checkbtn {
    font-size: 30px;
    color: #fff;
    float: right;
    line-height: 80px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}


/* BANNER */

.MainBanner {
    align-items: center;
    background: url(/img/Portadas/Portada.jpg) 50% no-repeat;
    background-size: cover;
    display: flex;
    height: 550px;
    justify-content: flex-start;
    max-height: 600px;
    overflow: hidden;
    width: 100%;
}

.MainBanner .content {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    width: 50%;
}

.h1-banner {
    display: none;
    color: #ffffff;
    text-align: center;
    font-size: 34px;
}

.p-banner {
    display: none;
    color: #ffffff;
    text-align: center;
    font-size: 20px;
}

.btn3 {
    display: none;
}

/* CARDS */

.cards-container {
    display: grid;
    width: 100%;
    justify-content: center;
    grid-template-columns: repeat(3, 400px);
    min-height: 330px;
    padding: 50px;
    position: relative;
    gap: 50px;
}

.card-child1 {
    grid-column: 1/2;
    grid-row: 1/2;
}

.card-child2 {
    grid-column: 2/3;
    grid-row: 1/2;
}

.card-child3 {
    grid-column: 3/3;
    grid-row: 1/2;
}

.card {
    display: grid;
    justify-self: center;
    align-self: center;
    transition: 0.3s;
    width: 350px;
    height: 400px;
    border-radius: 5%;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.4);
    transform: scale(1.03);
}

.img-card {
    border-radius: 5%;
}

.container {
    padding: 2px 16px;
}

.card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: width 0.3s ease-in-out;
    z-index: -1;
}

.card:hover:before {
    width: 100%;
}

.card:active {
    transform: scale(0.95);
}

/* FOOTER */

footer {
    width: 100%;
    display: grid;
    justify-content: center;
    grid-template-rows: 1fr 1fr;
    margin-top: 100px;
}

.footer-container {
    display: grid;
    grid-row: 50% 50%;
    justify-items: center;
}

.logo-footer {
    display: flex;
    align-items: center;
    width: 40px;

}


.redes-container {
    display: grid;
    grid-template-columns: repeat(3, 30px);
    gap: 40px;
    height: 40px;
    margin: auto;
}

.face {
    display: flex;
    width: 100%;
    grid-column: 1/2;
}

.insta {
    display: flex;
    width: 100%;
    grid-column: 2/3;
}

.whats {
    display: flex;
    width: 100%;
    grid-column: 3/3;
}

@media (max-width: 1280px) {

    /*CARDS*/

    .cards-container {
        grid-template-columns: auto;
        grid-template-rows: auto;
        width: auto;
    }

    .card-child1 {
        grid-column: 1/2;
        grid-row: 1/1;
    }

    .card-child2 {
        grid-column: 2/2;
        grid-row: 1/1;
    }

    .card-child3 {
        grid-column: 1/2;
        grid-row: 2/2;
    }

    .card-child4 {
        grid-column: 2/2;
        grid-row: 2/2;
    }

    .card-child5 {
        grid-column: 1/2;
        grid-row: 3/3;
    }



}

@media (max-width: 980px) {

    .nav-menu {
        width: 350px;
        height: 100vh;
        list-style: none;
        justify-content: center;
        align-items: center;
        z-index: 4;
    }

    .fas {
        z-index: 6;
    }

    .checkbtn {
        display: grid;
        justify-self: end;
        align-self: center;
    }

    ul {
        position: fixed;
        justify-self: center;
        width: 100%;
        height: 100vh;
        background: #193783;
        left: -100%;
        margin-top: -15px;
        text-align: center;
        transition: all .5s;
        z-index: 6;
    }

    nav ul li {
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }

    nav ul li a {
        font-size: 20px;
    }

    li a:hover,
    li a.active {
        background: none;
        color: #ffffff;
    }

    #check:checked~ul {
        left: 0;
    }

    .grid-container {
        grid-template-columns: 100%;
        grid-template-rows: 2fr;
    }

    /*BANNER */

    .MainBanner {
        background: url(/img/Portadas/Portada.jpg) 50% no-repeat;
        background-size: cover;
        justify-content: center;
    }

    /*CARDS*/

    .cards-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        width: auto;
    }

    .card-child1 {
        grid-column: 1/2;
        grid-row: 1/2;
    }

    .card-child2 {
        grid-column: 1/2;
        grid-row: 2/3;
    }

    .card-child3 {
        grid-column: 1/2;
        grid-row: 3/4;
    }

    .card-child4 {
        grid-column: 1/2;
        grid-row: 4/5;
    }

    .card-child5 {
        grid-column: 1/2;
        grid-row: 5/5;
    }

}

@media (max-width: 750px) {

    .nav-menu {
        width: 90.5%;
        height: 100vh;
        list-style: none;
        justify-content: center;
        align-items: center;
        z-index: 4;
    }

    ul {
        position: fixed;
        justify-self: center;
        width: 100%;
        height: 100vh;
        background: #193783;
        left: -130%;
        margin-top: -15px;
        text-align: center;
        transition: all .5s;
        z-index: 6;
    }

    .MainBanner {
        background: url(/img/Portadas/Portada.jpg) 50% no-repeat;
        background-size: cover;
        justify-content: center;
    }

    .MainBanner {
        height: 370px;
    }

    .h1-banner {
        color: #ffffff;
        text-align: center;
        font-size: 24px;
    }

    .p-banner {
        color: #ffffff;
        text-align: center;
        font-size: 18px;
    }

}

/* ===== OFERTA ACADÉMICA MEJORADA ===== */

.oferta-hero {
    position: relative;
    min-height: 420px;
    height: 72vh;
    max-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    overflow: hidden;
    background:
        linear-gradient(rgba(7, 27, 54, 0.45), rgba(7, 27, 54, 0.68)),
        url("../img/Oferta-Academica/Media.jpg") center 22% / cover no-repeat;
    background-color: #0b2f57;
}

.oferta-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
}

.oferta-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.oferta-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.4px;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

.oferta-title {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.oferta-subtitle {
    color: #f3f4f6;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto;
}

.oferta-intro,
.oferta-extra-info {
    padding: 55px 20px 20px;
    background: #f7f9fc;
}

.oferta-extra-info {
    padding-top: 30px;
    padding-bottom: 70px;
}

.oferta-intro-box,
.oferta-extra-box {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 35px 30px;
    box-shadow: 0 12px 35px rgba(8, 30, 61, 0.08);
    border: 1px solid rgba(14, 55, 95, 0.08);
}

.oferta-intro-box h2,
.oferta-extra-box h2 {
    font-size: 2rem;
    color: #0b2f57;
    margin-bottom: 14px;
}

.oferta-intro-box p,
.oferta-extra-box p {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1rem;
}

.oferta-section {
    background: #f7f9fc;
    padding: 30px 20px 30px;
}

.oferta-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.oferta-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(11, 47, 87, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(11, 47, 87, 0.08);
}

.oferta-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(11, 47, 87, 0.18);
}

.oferta-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.oferta-card-image-box {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.oferta-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.oferta-card:hover .oferta-card-image {
    transform: scale(1.08);
}

.oferta-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28));
}

.oferta-card-body {
    padding: 24px 22px 26px;
}

.oferta-card-body h3 {
    font-size: 1.6rem;
    color: #0b2f57;
    margin-bottom: 12px;
    font-weight: 800;
}

.oferta-card-body p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 20px;
    min-height: 115px;
}

.oferta-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0b2f57, #145a9c);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 20px rgba(20, 90, 156, 0.22);
}

.oferta-card-image-box {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #eef2f7;
}

.oferta-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.45s ease;
    display: block;
}

.oferta-card:hover .oferta-card-image {
    transform: scale(1.05);
}

/* Ajuste fino por tarjeta para mostrar mejor los rostros */
.oferta-card:nth-child(1) .oferta-card-image {
    object-position: center 12%;
}

.oferta-card:nth-child(2) .oferta-card-image {
    object-position: center 10%;
}

.oferta-card:nth-child(3) .oferta-card-image {
    object-position: center 10%;
}