@font-face {
    font-family: 'Museo'; /* Name for the font to use in CSS */
    src: url('/fonts/Museo_Sans_300.otf') format('opentype'); /* Path to the OTF file */
    font-weight: normal; /* You can adjust this based on the font’s weight */
    font-style: normal; /* You can set this to italic if the font is italicized */
}

@font-face {
    font-family: 'Museo'; /* Name for the font to use in CSS */
    src: url('/fonts/Museo_Sans_700.otf') format('opentype'); /* Path to the OTF file */
    font-weight: bold; /* You can adjust this based on the font’s weight */
    font-style: normal; /* You can set this to italic if the font is italicized */
}


body {
    font-family: 'Museo', sans-serif; /* Use the font in your CSS */
    margin: 0;
    padding: 0;

}

p {
    font-size: 24px;
}

h1 {
    font-weight: bolder;
}

h2 {
    font-size: 38px;
    line-height: 38px;
    font-weight: bold;
}

#hero {
    background-color: #0AC9D3;
    border: 2px solid transparent;
    text-align: center;
    min-height: 300px;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 50px;

    /* Add background image */
    background-image: url('/img/quienessomos/shine1-min.png');
    background-repeat: no-repeat; /* Prevents the background from repeating */
    background-size: cover; /* Ensures the background covers the entire div */
    background-position: center; /* Centers the background image */

}

#hero h1 {
    color: white;
}


.desc {
    min-height: 300px;
    display: flex;
    flex-direction: row;
    padding-top: 50px;
    padding-bototm: 50px;


}

.desc2 {
    min-height: 300px;
    display: flex;
    flex-direction: row;
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: right;

}

.desci {
    width: 50%;
    display: flex;
    width: 50%;

}

.desci p {
    padding-top: 50px;
    padding-left: 50px;
}

.descd {
    padding-top: 40px;
    width: 50%;
    text-align: center;
}

.descd img {
    max-width: 300px;
}

#bannertriple {
    margin-top: 40px;
    min-height: 400px;
    background: url('/img/quienessomos/fotocategoria.jpg') ;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.encabezado {
    text-align: center;
}

#proposito {
    margin-top: -70px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prop {
    width: 900px;
    height: 500px;
    padding: 50px;
    background: url('/img/quienessomos/Quote.png') ;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.doscolumnas {

    display: flex;
    flex-direction: row;
}

.ci {
    width: 50%;

    text-align: center;
    padding: 20px 50px 0 50px;
}

.ci p, .cd p {
    text-align: left;
}

.cd {

    width: 50%;
    padding: 20px 50px 0 50px;
    text-align: center;
}

.nav-logo {
    top: 0;
}

.footer {
    max-width: 99%!important;
}
/*Aquí Masonry */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: white;
}

.masonry-container {

    margin: 0 auto; /* Center the container */
    margin-left: 8%;
    margin-right: 8%;
    margin-bottom: 200px;

}

.masonry-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: -8px; /* Negative margin to offset item padding */
}

.masonry-item {
    width: 24%; /* Each item takes up 25% of the row */
    box-sizing: border-box; /* Ensure padding/margins are included in width/height */
    padding: 8px; /* Adjust spacing between items */
    margin: 0; /* Remove margins to avoid additional gaps */
    display: flex;
    align-items: flex-start; /* Align items to the start */
}

.masonry-item img {
    width: 100%; /* Image width matches container width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Removes any inline space below the image */
}


.m1 {
    position: relative;
    display: inline-block;
    padding: 8px; /* Match the image padding */
}

.m1 img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
}

.m1::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background-color: #555487;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.m2::before {
    background-color: #F7CF3C;
}

.m3::before {
    background-color: #3E8EDE;
}

.m4::before {
    background-color:#EA7200;
}




.m1:hover::before,
.m1.active::before { /* Apply effect on hover and when active */
    opacity: 1;

}

.m1-content {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    width: 100%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    padding-top: 15px;
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;

}

.m1:hover .m1-content,
.m1.active .m1-content { /* Apply effect on hover and when active */
    opacity: 1;
    padding-top: 15px;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    height: 100%;
}



.m1-header {
    color: black;
    margin: 0;
    font-size: 18px;
    line-height: 17px;
    text-align: center;
    padding: 10px;

}

.m1-text {

    color: white;
    margin: 0;
    font-size: 18px;
}

.m1 .m1-text:nth-of-type(2) {
    /* Your styles for the second .m1-text */
   padding-top: 10px;
}

#m17 {
    margin-left: 18px;
    margin-right: auto;
}

/*Aquí ajustes responsivos */


@media (max-width: 1568px) {

    .m1-header {
        font-size: 17px;

    }

    .m1-text {
        font-size: 17px;
        line-height: 17px;
    }

}

@media (max-width: 1330px) {

    .m1-header {
        font-size: 15px;
        line-height: 15px;

    }

    .m1-text {
        font-size: 15px;
        line-height: 15px;
    }

}


@media (max-width: 1200px) {

.m1-header {
    font-size: 14px;
    line-height: 14px;

}

.m1-text {
    font-size: 14px;
    line-height: 14px;
}

}

@media (max-width: 1100px) {

    .m1-header {
        font-size: 12px;
        line-height: 12px;

    }

    .m1-text {
        font-size: 12px;
        line-height: 12px;
    }

}

@media (max-width: 968px) {

    .masonry-item {
        width: 50%; /* Two items per row on smaller screens */
    }

    .m1-header {
        font-size: 16px;
        line-height: 16px;

    }

    .m1-text {
        font-size: 16px;
        line-height: 16px;
    }
}


@media (max-width: 768px) {

    p {
        font-size: 18px;
    }

    h2 {
        font-size: 20px;
        line-height: 20px;
    }

    .masonry-item {
        width: 50%; /* Two items per row on smaller screens */
    }

    .desc{
        flex-direction: column;
    }

    .desc2 {
        flex-direction: column-reverse;
    }

    .desci {
        width: 100%;

    }

    .descd {
        width: 100%;
    }

    .desci p {
        padding-left: 0;
    }

    .doscolumnas {
        flex-direction: column;
    }

    .ci {
        width: 100%;
        padding: 20px 10px 20px 10px;
    }

    .cd {
        width: 100%;
        padding: 20px 10px 20px 10px;
    }

}


@media screen and (max-width: 679px) {
    .logo-responsive {

        top: -36px;

    }
}

@media (max-width: 650px) {



    .m1-header {
        font-size: 14px;
        line-height: 14px;

    }

    .m1-text {
        font-size: 14px;
        line-height: 14px;
    }


}

@media (max-width: 480px) {
    .masonry-item {
        width: 100%; /* Single item per row on very small screens */
    }
}

@media (max-width: 320px) {



    .m1-header {
        font-size: 13px;
        line-height: 13px;

    }

    .m1-text {
        font-size: 13px;
        line-height: 13px;
    }
}

/* Hover Fix */

/* Test*/

.m1::before {
    opacity: var(--before-opacity, 0); /* Default to 0 if not set */
    transition: opacity 0.3s ease;
}

.m1:hover::before, #m1.active::before {
    opacity: var(--before-opacity, 1); /* Set to 1 when active or hovered */
}

