body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}


h1 {
    font-weight: 700;
    font-size: 3.5em;
    line-height: 1.1em;
    margin-bottom: 0.2em;
    color: #fff;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}
h2 {
    font-weight: 700;
    font-size: 2.5em;
    line-height: 1.1em;
    margin-bottom: 0.2em;
    color: #fff;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}
p {
    font-weight: 400;
    font-size: 1.4em;
    line-height: 1.1em;
    margin-bottom: 0.2em;
    color: #fff;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}
a {
    color: #fff;
    text-decoration: none;
}

/* VIDEO HEADER */
*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.video {
    height: 100vh;
    position: relative;
}
video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-content {
    position: relative;
    padding-top: 300px;
    color: #fff;
    text-align: center;
}
.video h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.1;
}
.video h2 {
    font-weight: 500;
    font-size: 2.5em;
    line-height: 1.1em;
    margin-bottom: 0.2em;
    color: #fff;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    padding-top: 20px;
}
.video img {
    display: block;
    margin: 0 auto;
    width: 50vh;
    height:auto;
    padding-bottom: 40px;
    padding-top: 60px;
}

/* .video-content button {
    display: block;
    font-size: clamp(14px, 1.5vw, 18px);
    border: 1px solid #f1f1f1;
    border-radius: 5px;
    background: transparent;
    color: #fff;
    margin: 50px auto 0;
    padding: 12px 20px;
    cursor: pointer;
} */

/*FIN VIDEO HEADER */

/*TEXTO FONDO NEGRO */
.eventos {
    background-color: #555554; 
    color: white; 
    padding: 20px; 
    text-align: center; 
    width: 100%; 
    position: relative; 
    left: 0; 
    right: 0; 
    box-sizing: border-box; 
}
.eventos p {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
    border-radius: 10px;
    line-height: 1.6; 
}

/*FIN TEXTO FONDO NEGRO */

/*EVENTO BLANCO */
.evento-blanco {
    background-color: #EDEDED; 
    color: #333; 
    padding: 30px; 
    text-align: center; 
    width: 100%; 
    position: relative; 
    left: 0; 
    right: 0; 
    box-sizing: border-box; 
}
.evento-blanco h2 {
    color: #3973B5;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
    padding-bottom: 50px;
}
#imagenes img {
    transition: transform 0.3s ease;
}
#imagenes img:hover {
    transform: scale(1.05);  
}
/*FIN EVENTO BLANCO */

/*EVENTO GRIS */
.evento-gris {
    background-color: #C6C6C6; 
    color: #333; 
    padding: 30px; 
    text-align: center; 
    width: 100%; 
    position: relative; 
    left: 0; 
    right: 0; 
    box-sizing: border-box; 
}
.evento-gris h2 {
    color: #3973B5;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
    padding-bottom: 50px;
}
/*FIN EVENTO GRIS */

/* INSTALAR */
.instalar {
    display: flex;
    justify-content: center;
    background-color: #C6C6C6; 
    color: #fff;
    padding: 20px 0; 
    box-sizing: border-box;
}

.contenido-instalar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; 
    width: 100%; 
    padding: 0 120px; 
    box-sizing: border-box;
}

.contenido-instalar #titulo-evento, .contenido-instalar #imagenes {
    flex: 1;
    max-width: 50%;
    padding: 10px;
}

.contenido-instalar #titulo-evento h2 {
    color: #3973B5;
    margin: 0;
    padding: 0;
    text-align: right;
}

.contenido-instalar #titulo-evento p {
    color: #3973B5;
    margin: 0 0 20px 0;
    text-align: right;
    padding-top: 30px;
}

.contenido-instalar #imagenes img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
/* FIN INSTALAR */




/* OFICINAS */
.oficinas {
    background-color: #878787; 
    color: #fff; 
    padding: 20px; 
    text-align: center; 
    box-sizing: border-box; 
}

/* Contenedor para las columnas */
.oficinas div {
    display: flex;
    justify-content: space-around; 
    gap: 0.8em; 
    flex-wrap: wrap; 
}

/* Estilo para cada columna */
.oficinas span {
    flex: 1; 
    min-width: 200px; 
    max-width: 300px; 
    padding: 10px; 
    border-radius: 60px; 
    background-color:  rgba(85, 85, 85, 0.5);  /* Fondo de cada columna  */
    padding-top: 40px;
}
/* Estilo para el título principal */
.oficinas > h2 {
    font-weight: 500;
    font-size: 3em; 
    margin-bottom: 20px; 
    color: #fff;
    padding: 20px; 
    padding-bottom: 50px;
}

/* Estilo de los títulos y párrafos dentro de cada columna */
.oficinas span h3 {
    margin: 0;
    color: #fff;
    padding: 10px; 
    padding-bottom: 10px;
}

.oficinas span p {
    font-weight: 300;
    font-size: 1em; 
    margin-bottom: 20px;
    padding: 20px; 
    padding-bottom: 10px;
}

.btn-contacto {
    width: 150px; 
    cursor: pointer;
    border-radius: 8px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-contacto:hover {
    transform: scale(1.05); 
}

/* FIN OFICINAS */


/*FOOTER */
footer {
    background-color: #3973B5;
    margin: 0;
    padding: 2em 0;
  /*   margin-top: 2em; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer img {
    width: 300px;
    height: auto;
    margin-bottom: 1em; 
}

.footer-links {
    display: inline-flex;
    gap: 1em; 
}

footer a {
    color: #fff;
    text-decoration: none;
    text-align: center;
}

footer a:hover {
    color: #000;
}
/*FIN FOOTER */

/* POPUP */

.popup-news {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.popup-news .wrapper {
    z-index: 1001;
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    max-width: 900px;  
    width: 100%; 
    overflow: hidden; 
    text-align: center; 
}

.popup-news .wrapper > div {
    height: 500px;
}

.popup-news .popup-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 500;
    cursor: pointer;
}

.popup-news img {
    max-width: 100%;
    height: auto; 
    display: block;
    margin: 0 auto; 
}

.popup-news a#closePopupNews {
    height: 20px;
    width: 20px;
    background: url(../images/cerrar.png) no-repeat; 
    background-size: contain; 
    position: absolute;
    top: 10px; 
    right: 10px; 
    cursor: pointer;
    z-index: 1002;
    text-indent: -9999px; 
}
/*ORGANIZACION*/
main {
    margin: 0;
    padding: 0;
}
.txt-fondo-blanco {
    background-color: #fff; 
    align-items: center; 
    justify-content: center; 
    color: #000; 
    padding: 20px; 
    text-align: center; 
    box-sizing: border-box;
    min-height: 300px; 
    max-width: 1200px; 
    margin: 0 auto; 
}
.txt-fondo-blanco > div:first-child {
    margin-top: 40px; 
}
.txt-fondo-blanco h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 2em;
    color: #000;
    font-weight: bolder;
    line-height: 1.1;
}
.txt-fondo-blanco h2 {
    font-weight: 500;
    font-size: 2em;
    line-height: 1.1em;
    margin-bottom: 1.1em;
    color: #000;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}
.txt-fondo-blanco p {
    background-color: #5A7DBE;
    border-radius: 10px 0 10px 0px; 
    padding: 40px;
    color: #ffffff;
    line-height: 1.4;
    font-size: 24px;
}

.logos-fondo-negro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('../images/org-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 150px 0;
    min-height: 600px;
    width: 100%; 
    margin: 0 auto; 
}

.logos-fondo-negro .imagenes {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    max-width: 1200px; 
    width: 100%; 
    gap: 30px; 
    margin: 0 auto; 
}

.logos-fondo-negro .imagenes a {
    display: flex;
    justify-content: center; 
    width: 48%; 
}

.logos-fondo-negro .imagenes img {
    width: 100%; 
    height: auto; 
    max-width: 250px; 
    object-fit: contain; 
}

.logos-fondo-negro .imagenes img {
    margin-bottom: 30px;
    
}

/* Ajustes para la imagen de los países */
#paises {
    margin-top: 100px;
    width: 80%; 
    display: flex;
    justify-content: center;
}

#paises img {
    width: 100%; 
    max-width: 350px; 
    height: auto; 
}


/* //////////////////// MEDIA QUERIES ////////////////////  */
/* //////////////////// MEDIA QUERIES ////////////////////  */
@media only screen and (max-width: 480px) {
    .video {
        height: 50vh;
        position: relative;
    }
    video {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .video-content {
        position: relative;
        padding-top: 80px;
        color: #fff;
        text-align: center;
    }
    .video h1 {
        font-family: 'Open Sans', sans-serif;
        font-size: clamp(20px, 5vw, 40px);
        line-height: 1.1;
    }
    .video h2 {
        font-weight: 500;
        font-size: 1em;
        line-height: 1.1em;
        margin-bottom: 0.2em;
        color: #fff;
        text-align: center;
        font-family: 'Open Sans', sans-serif;
    }
    .video img {
        display: block;
        margin: 0 auto;
        width: 40vh;
        height:auto;
        padding-bottom: 20px;
        padding-top: 20px;
    }
    .eventos p {
        font-weight: 400;
        font-size: 1em;
        line-height: 1.3em;
        margin-bottom: 0.2em;
        color: #fff;
        text-align: justify;
        font-family: 'Open Sans', sans-serif;
    }
    .evento-gris h2 {
        font-size: 2em;
        color: #3973B5;
        max-width: 882px; 
        margin: 0 auto; 
        padding: 20px; 
        padding-bottom: 50px;
    }
    #imagenes img {
        width: 100%;   
        height: auto;  
        display: block;
        margin: 10px 0;  
    }
    .evento-blanco h2 {
        font-size: 2em;
        color: #3973B5;
        margin: 0 auto; 
        padding: 20px; 
        padding-bottom: 50px;
    }
    .instalar {
        padding: 10px 0; 
    }

    .contenido-instalar {
        flex-direction: column; 
        padding: 0 20px; 
    }

    .contenido-instalar #titulo-evento, .contenido-instalar #imagenes {
        max-width: 100%; 
        text-align: center; 
        padding: 10px 0; 
    }

    .contenido-instalar #titulo-evento h2 {
        text-align: center; 
        font-size: 2em;
        margin-top: 20px;
    }
    .contenido-instalar #titulo-evento p {
        text-align: center;
        font-size: 1em;
        margin-top: 20px;
    }

    .contenido-instalar #imagenes img {
        max-width: 80%; 
    }
    .oficinas h2 {
        font-size: 2em;
    }
    .oficinas p {
        font-size: 1em;
    }
    .oficinas h3 {
        font-size: 1.5em;
    }
    .footer-links {
        display: flex;        
        flex-direction: column; 
        align-items: center;  
        gap: 0.5em;           
    }
    .logos-fondo-negro .imagenes a {
        width: 70%;  
    }

    .logos-fondo-negro .imagenes img {
        max-width: 250px;  
    }
    .txt-fondo-blanco p {
        padding: 20px;
        font-size: 20px;
    }
    .txt-fondo-blanco h2 {
        font-weight: 500;
        font-size: 1.5em;
        line-height: 1.1em;
        padding-top: 1em;
    }

}
@media only screen and (min-width: 581px) and (max-width: 932px) {
    .video {
        height: 90vh;
        position: relative;
    }
    video {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .video-content {
        position: relative;
        padding-top: 80px;
        color: #fff;
        text-align: center;
    }
    .video h1 {
        font-family: 'Open Sans', sans-serif;
        font-size: clamp(20px, 5vw, 40px);
        line-height: 1.1;
    }
    .video h2 {
        font-weight: 500;
        font-size: 1em;
        line-height: 1.1em;
        margin-bottom: 0.2em;
        color: #fff;
        text-align: center;
        font-family: 'Open Sans', sans-serif;
    }
    .video img {
        display: block;
        margin: 0 auto;
        width: 40vh;
        height:auto;
        padding-bottom: 20px;
        padding-top: 20px;
    }
    .eventos p {
        font-weight: 400;
        font-size: 1em;
        line-height: 1.3em;
        margin-bottom: 0.2em;
        color: #fff;
        text-align: justify;
        font-family: 'Open Sans', sans-serif;
    }
    .evento-gris h2 {
        font-size: 2em;
        color: #3973B5;
        max-width: 882px; 
        margin: 0 auto; 
        padding: 20px; 
        padding-bottom: 50px;
    }
    #imagenes img {
        width: 50%;   
        height: auto;  
        display: block;
        margin: 10px auto;  
    }
    .evento-blanco h2 {
        font-size: 2em;
        color: #3973B5;
        margin: 0 auto; 
        padding: 20px; 
        padding-bottom: 50px;
    }
    .instalar {
        padding: 10px 0; 
    }

    .contenido-instalar {
        flex-direction: column; 
        padding: 0 20px; 
    }

    .contenido-instalar #titulo-evento, .contenido-instalar #imagenes {
        max-width: 100%; 
        text-align: center; 
        padding: 10px 0; 
    }

    .contenido-instalar #titulo-evento h2 {
        text-align: center; 
        font-size: 2em;
        margin-top: 20px;
    }
    .contenido-instalar #titulo-evento p {
        text-align: center;
        font-size: 1em;
        margin-top: 20px;
    }

    .contenido-instalar #imagenes img {
        max-width: 80%; 
    }
    .oficinas h2 {
        font-size: 2em;
    }
    .oficinas p {
        font-size: 1em;
    }
    .oficinas h3 {
        font-size: 1.5em;
    }
    .footer-links {
        display: flex;        
        flex-direction: column; 
        align-items: center;  
        gap: 0.5em;           
    }

}
@media only screen and (min-width: 933px) and (max-width: 1280px) {
    .video-content {
        position: relative;
        padding-top: 150px;
        color: #fff;
        text-align: center;
    }
    .video h1 {
        font-family: 'Open Sans', sans-serif;
        font-size: clamp(28px, 5vw, 60px);
        line-height: 1.1;
    }
    .video h2 {
        font-weight: 500;
        font-size: 1.5em;
        line-height: 1.1em;
        margin-bottom: 0.2em;
        color: #fff;
        text-align: center;
        font-family: 'Open Sans', sans-serif;
    }
}

@media only screen and (min-width: 1281px) and (max-width: 1600px) {
    .video-content {
        position: relative;
        padding-top: 150px;
        color: #fff;
        text-align: center;
    }
    .video h1 {
        font-family: 'Open Sans', sans-serif;
        font-size: clamp(28px, 5vw, 60px);
        line-height: 1.1;
    }
    .video p {
        font-size: clamp(18px, 3vw, 30px);
        margin-top: 10px;
    }

}