body {
    position: relative;
    background-color: #141414;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.img {
    position: absolute;
}

.LogoMPInicio {
    max-width: 277px;
    max-height: 115px;
    margin-top: 25px;
    border-radius: 6%;
    animation: tracking-in-expand 1.8s linear both;
}

.custom-nav {
    display: flex;
    background-color: #0A3D62;
    border-radius: 10px;
    padding: 5px 10px;
    animation: tracking-in-expand 1.8s linear both;
}

.custom-nav .nav-item {
    flex: 1;
    text-align: center;
    border-right: 2px solid #00000031;
}

.custom-nav .nav-item:last-child {
    border-right: none;
}

.custom-nav .nav-link {
    color: white;
    text-align: center;
    font-size: 15px;
}

.custom-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


.wrap-section1,
.wrap-section2,
.wrap-section3 {
    width: 100%;
    background-position: center;
    background-size: cover;
    filter: brightness(90%);
}


.wrap-section1 {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: url(/images/Fondo1.webp) no-repeat;
    background-size: cover;
}


.wrap-section2 {
    min-height: 90vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: start;
    background: url(/images/FondoMP2.webp) no-repeat;
    padding: 20px;
}


.wrap-section3 {
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    background: url(/images/FondoMP3.webp) no-repeat;
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.wrap-section4 ,.wrap-section6 {
    position: relative;
    min-height: auto;
    height: auto;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: start;
    padding: 20px;
}

.wrap-section4::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/images/FondoMP4.webp) no-repeat;
    background-position: center;
    background-size: cover;
    filter: brightness(75%);
    z-index: -1;
}

.wrap-section6::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/images/FondoMP6.webp) no-repeat;
    background-position: center;
    background-size: cover;
    filter: brightness(50%);
    z-index: -1;
}

.wrap-section5 {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    background: url(/images/FondoMP5.webp) no-repeat;
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.wrap-section-final {
    min-height: 60vh;
    background: url(/images/SeccionFinalMP.webp) no-repeat;
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.ContenedorHeader {
    position: absolute;
    top: 0;
    width: 100%;
    padding-top: 10px;
    z-index: 10;
}

.ContenedorSeccion5 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    width: 100%;
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}


.contenedorTexto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #292D32;
    padding: 20px;
    border-radius: 10px;
    height: 65vh;
    width: 43vh;
}

.contenedorTexto p:first-child {
    flex-direction: column;
    justify-content: start;
    text-align: center;
    height: 60vh;
}

.contenedorTexto p:last-child {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 40vh;
}


.contenedorTexto p {
    color: white;
    font-size: 23.5px;
    font-family: "Afacad", sans-serif;
    font-weight: 400;
    text-shadow: 1px 1px 2px black;
}

.imagen {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.imagen img {
    height: 100%;
    max-height: 550px;
    width: auto;
    border-radius: 10px;
}

.wrap-text {
    text-align: center;
    color: white;
    z-index: 5;
    animation: tracking-in-expand 1.8s linear both;
    font-size: 25px;
    font-family: "Oswald";
    -webkit-text-stroke-width: 0.5px;
    -webkit-text-stroke-color: black;
    text-shadow: 1px 1px 2px black;

}

.sub {
    text-shadow: 1px 1px 2px black;
    width: 47%;
    text-align: center;
    color: white;
    font-size: 25px;
    font-family: "Oswald";
    z-index: 5;
    animation: tracking-in-expand 1.8s linear both;
    text-shadow: 1px 1px 2px black;
}

.wrap-text {
    width: 50%;
    margin-top: 100px;

}

.wrap-text h1,
.section1 h1 {
    font-family: "Oswald";
    font-weight: 400;
    margin-bottom: 25px;

}

.wrap-text h1 {
    font-size: 80px;
}

.titleSection h1 {
    font-size: 80px;
    color: #DDE5D5;
    font-family: "Afacad";
    font-weight: 700;

}

.section1 h1 {
    font-size: 80px;
    color: #F3E9D2;
}

.textSection p,
.textSection2 p {
    font-size: 25px;
    color: #DDE5D5;
    font-family: "Afacad";
    font-style: normal;
    margin: 6px 0 20px;
    letter-spacing: 2px;
}

.textSectionSeccion2 li,
.containerTextSeccion2 li {
    font-size: 30px;
    color: #FFFFFF;
    font-family: "Afacad";
    font-weight: 400;
    font-style: normal;
    letter-spacing: 5%;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(0, 0, 0, 0.281);
    margin-top: 3px;
    text-align: left;
}

.textSectionSeccion2 {
    margin-top: 5%;
    margin-bottom: 3%;
}

.containerTextSeccion2 {
    margin-top: 6%;
    margin-bottom: 4%;
}

.containerText h1 {
    color: #69B7EB;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
    margin-top: 10px;
    font-family: "Afacad";
    font-weight: 400;
    text-shadow: 1px 1px 2px black;

}

.title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.textoSeccion {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 80%;
}

.sub-title-section {
    font-size: 27px;
    color: white;
    font-family: "Oswald";
    font-weight: 200;
}

.section2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 30vh;
}

.section2 h1 {
    font-size: 80px;
    color: #F3E9D2;
    font-family: "Oswald";
    font-weight: 400;
}

.section1Final h1 {
    font-size: 80px;
    color: #ffffff;
    font-family: "afacad";
}

.MisionVision {
    font-size: 3rem;
    color: #3b7255;
    margin-bottom: 10px;
    font-family: "afacad";
}

.MisionDesc, .VisionDesc {
    font-size: 30px;
    line-height: 1.5;
    max-width: 70%;
    margin: 0 auto 30px;
    color: #ffffff;
    font-family: "afacad";
    margin-top: 50px;
}

.contenedorContacta h1{
    margin-top: 25px;
    font-family: 'afacad';
    font-size: 400;
    font-size: 80px;
    color: #FFFFFF;
}

.contenedorContacta p{
    margin-top: 10px;
    font-family: 'afacad';
    font-size: 400;
    font-size: 36px;
    color: #FFFFFF;
}

.card-custom {
    width: 100%;
    max-width: 550px;
    height: 360px;
    perspective: 1000px;
}

.card-custom:hover .card-inner {
    transform: rotateY(180deg);
}

.card-body-custom {
    padding: 10px;
    text-align: center;
    background-color: #1E1E1E;
    color: white;
    border-radius: 0 0 5px 5px;
}

.card-img-top-custom {
    height: 100%;
    object-fit: cover;
    width: 100%;
    border-radius: 5px 5px 0 0;
}

.card-back-content {
    padding: 20px;
}

.sub-texto {
    font-size: 14px;
}

.card-title-custom {
    color: #FFFFFF;
    font-family: "Afacad";
    font-size: 1.3rem;
    text-align: center;
    padding: 10px;
    font-weight: 400;
}


.card-container {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    justify-content: center;
    align-items: center;
}


.card {
    height: 500px;
    width: 100%;
    max-width: 350px;
    text-decoration: none;
    border-radius: 5px;
    background-color: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;

}

.card-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-img-top {
    height: 65%;
    object-fit: cover;
}

.card-body {
    height: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-title {
    color: #FFFFFF;
    font-family: "Oswald";
    font-size: 1.5rem;
    text-align: center;
    padding: 10px;
}


.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 5px;
    
}

.card-front {
    background-color: #1E1E1E;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-back p:first-child {
    margin-bottom: 30px;
    font-size: 21px;
    font-family: 'Oswald';
}

.card-back p:last-child {
    font-size: 18px;
    font-family: 'Afacad';
    justify-content: center;
    align-items: center;
}

.card-back {
    background-color: #1E1E1E;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotateY(180deg);
    padding: 20px;
    text-align: center;
    border-radius: 5px;
}

.contenedorInfo {
    display: flex;
    align-items: center; 
}

.contenedorInfo p {
    color: #ffffff;
    font-size: 40px;
    font-family: 'Afacad';
}

.contenedorInfo img {
    margin-right: 10px; 
    width: 65px;
    height: 65px; 
}

.imgenFooter {
    width: 15%;
    height: auto; 
    border-radius: 5px;
    margin-top: 10px;
}

.footerText{
    color: #ffffff;
    font-size: 25px;
    font-family: 'Afacad';
    margin-top: 10px;
}

footer .container {
    display: flex;
    justify-content: flex-start; 
}