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;
}
html {
    scroll-behavior: smooth;
}
/* //////////////////// NAVEGADOR - BOTONERA //////////////////// */

.vx-topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    min-height: 90px;
    background: linear-gradient(90deg, #3f72b8 0%, #2f66aa 100%);
    display: flex;
    align-items: center;
}

.vx-topbar__inner {
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 0 22px;
    min-height: 90px;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.vx-topbar__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.vx-topbar__brand img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

.vx-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.vx-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.vx-menu__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.vx-menu__link,
.vx-menu__sublink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    background: none;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.25s ease;
}

.vx-menu__link:hover,
.vx-menu__sublink:hover {
    color: #141a40;
}
.vx-menu__link {
    position: relative;
}

.vx-menu__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #141a40;
    transition: width 0.3s ease;
}

.vx-menu__link:hover::after {
    width: 100%;
}

/* SUBMENU DESPLEGABLE */
.vx-menu__item--about .vx-menu__sublinks {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    z-index: 20;
    padding-top: 6px;
    background: #2f66aa;
}

.vx-menu__item--about:hover .vx-menu__sublinks,
.vx-menu__item--about:focus-within .vx-menu__sublinks {
    display: flex;
}

.vx-menu__sublink {
    width: 110px;
    min-height: 30px;
    padding: 0 14px;
    font-size: 14px;
    justify-content: center;
}
.vx-lang-switch {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vx-lang-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.vx-lang-switch__btn:hover {
    transform: scale(1.06);
}

.vx-lang-switch__btn img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
}
/*Menú hamburguesa*/
.vx-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.vx-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
}

/* VIDEO HEADER */
*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.video {
    height: 80vh;
    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: 10px;
}
.cta-hero-eventos {
    text-align: center;
    margin-top: 25px;
}

.btn-hero-eventos {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: 25px;
}

.btn-hero-eventos:hover {
    background: #fff;
    color: #3973B5;
}

/* .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: 80px 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; 
}
/* TITULO */

#titulo-evento {
    margin-bottom: 50px;   
    text-align: center; 
}

#titulo-evento h2 {
    max-width: 1200px;
    margin: 0 auto;   
    font-size: 2.2em;
    text-align: center;
    padding: 20px; 
    padding-bottom: 50px;
}

/*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 */

/* BOTON SOBRE NOSOTROS */

.cta-sobre-nosotros {
    text-align: center;
    margin-top: 25px;
}


.btn-sobre-nosotros {
    display: inline-block;
    padding: 10px 30px;
    background: #e6e6e6;
    color: #3973B5;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-sobre-nosotros:hover {
    background: #3973B5;
    color: #fff;
}
/*FIN BOTON SOBRE NOSOTROS */
/* 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;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 1.2em;
    align-items: center;
    justify-content: center;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-social a:hover {
    background-color: #fff;
    color: #3973B5;
}
/*FIN FOOTER */

/*FOOTER 4 COLUMNS*/
.footer4col {
    background-color: #3973B5;
    padding: 46px 40px;
}

.footer4col-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.4fr 1fr 1.2fr auto;
    align-items: center;
    column-gap: 60px;
}

.footer4col-logo img {
    width: 320px;
    max-width: 100%;
    height: auto;
    display: block;
}

.footer4col-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer4col-menu a,
.footer4col-contacto a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 400;
}

.footer4col-menu a:hover,
.footer4col-contacto a:hover {
    color: #000;
}

.footer4col-contacto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.footer4col-social {
    display: flex;
    gap: 14px;
}

.footer4col-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    transition: all 0.3s ease;
}

.footer4col-social a:hover {
    background-color: #fff;
    color: #3973B5;
}

.footer4col-certificacion {
    display: flex;
    justify-content: flex-end;
}

.footer4col-certificacion img {
    width: 72px;
    height: auto;
    display: block;
}
/*FIN FOOTER 4 COLUMNS*/

/* 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; 
}

/*SOBRE NOSOTROS */
.header-sobre-nosotros {
    background-image: url('../images/Vertex-About-us-2.png'); /* Asegurate que esté en esa carpeta */
    background-size: cover;
    background-position: center;
    height: 70vh; /* Ajustable */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-sobre-nosotros .overlay {
    background-color: rgba(0, 0, 0, 0.4); /* Leve oscurecido si lo querés */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-sobre-nosotros h1 {
    font-size: clamp(30px, 6vw, 60px);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    text-align: center;
    z-index: 2;
}
.header-sobre-nosotros h2 {
    font-size: clamp(18px, 3vw, 28px);
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    text-align: center;
    z-index: 2;
}
.titulo-seccion {
    color: #3973b5;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 60px;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
}
.subtitulo-historia {
    color: #555;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 600;
    margin-bottom: 40px;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
}

.historia-contenido {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 60px;
}

.historia-col {
    flex: 1;
}

.historia-col p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: 'Open Sans', sans-serif;
    text-align: left;
}
.historia-destacado {
    background-color: #5D72A3;
    max-width: 1150px;
    margin: 60px auto;
    padding: 50px 60px;
    border-radius: 40px;
    color: #fff;
}

.destacado-texto {
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 400;
    text-align: center;
}

.destacado-frase {
    font-size: 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

/* ===================== HISTORIA DESTACADO 2 COL + VIDEO ===================== */
.historia-destacado--2col{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* texto más ancho, video más angosto */
  gap: 40px;
  align-items: center;
}

/* Para que el texto quede alineado prolijo en columna */
.historia-destacado__texto .destacado-texto,
.historia-destacado__texto .destacado-frase{
  text-align: left; /* si lo querés centrado lo cambiamos */
}

/* Video vertical 9:16 */
.video-vertical{
  width: 100%;
  max-width: 320px;   /* ajustable */
  margin-left: auto;  /* lo “pega” al lado derecho */
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

.video-vertical iframe{
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
}

.about-carousel {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 60px;
    overflow: hidden;
}

/* Track */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Cada slide ahora es más chico */
.slide {
    min-width: 25%; /* 4 imágenes visibles en desktop */
    padding: 0 8px;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: 200px;       
    object-fit: cover;   
    border-radius: 6px;
}

/* Flechas */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    color: #000;
    border: none;
    font-size: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}


/* Dots */
.carousel-dots {
    text-align: center;
    margin-top: 15px;
}

.carousel-dots span {
    height: 8px;
    width: 8px;
    margin: 0 4px;
    background-color: #000;
    opacity: 0.3;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-dots .active-dot {
    opacity: 1;
}


/* ===================== LIGHTBOX GALERÍA ===================== */

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.lightbox.is-open{ display:flex; }

.lightbox-content{
  position: relative;
  max-width: min(1100px, 95vw);
  max-height: 85vh;
}

.lightbox-img{
  width: 100%;
  height: auto;
  max-height: 85vh;
  display: block;
  border-radius: 10px;
}

.lightbox-close{
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255,255,255,0.9);
  font-size: 22px;
  line-height: 40px;
  z-index: 3;
}

.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  font-size: 26px;
  cursor: pointer;
  z-index: 3;
}

.lightbox-nav.prev{ left: -60px; }
.lightbox-nav.next{ right: -60px; }
.lightbox-img{
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.seccion-gris {
    background-color: #c6c6c6;
    padding: 80px 20px;
}
.contenedor-seccion {
    max-width: 1100px;
    margin: 0 auto;
}
.texto-mision {
    color: #333;
    font-size: 16px;
    line-height: 1.7;
    max-width: 800px;
    margin: 20px auto 0;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
}
.seccion-gris {
        padding: 60px 20px;
    }

    .texto-mision {
        font-size: 15px;
        text-align: left;
    }

.seccion-gris-claro {
    background-color: #ededed;
    padding: 80px 20px;
}
.bloque-lateral {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 80px;
}
.titulo-lateral {
    flex: 0 0 200px;
    text-align: left;   /* 🔹 sobrescribe el centrado */
}
.texto-lateral {
    flex: 1;
    color: #333;
    font-size: 16px;
    line-height: 1.7;
    font-family: 'Open Sans', sans-serif;
}
.valores .titulo-seccion {
    margin-bottom: 60px;
}
.valores .texto-lateral{
  margin-bottom: 40px;
}
.seccion-gris.valores {
    background-color: #c6c6c6; /* por si algo lo pisa */
}

/* Grid: 6 columnas virtuales */
.valores-grid{
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    align-items: stretch;
}

/* Cada card ocupa 2 columnas => 3 por fila */
.valor-card{
    grid-column: span 2;
    background: #fff;
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    text-align: left;
    
}

/* Centrar la fila de abajo (cards 4 y 5) */
/* .valor-card:nth-child(4){
    grid-column: 2 / span 2;  
}
.valor-card:nth-child(5){
    grid-column: 4 / span 2;  
} */

.valor-icon{
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin-bottom: 18px;
}

.valor-card h3{
    margin: 0 0 12px 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.15;
}

.valor-card p {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
}

/* //////////////////// MEDIA QUERIES ////////////////////  */
/* //////////////////// MEDIA QUERIES ////////////////////  */

@media (max-width: 991px) {
    .vx-topbar__inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .vx-topbar__brand {
        width: 100%;
        justify-content: center;
    }

    .vx-menu {
        width: 100%;
        order: 2;
    }

    .vx-menu__list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .vx-lang-switch {
        order: 3;
    }
    .footer-social {
    gap: 10px;
    margin-top: 1em;
    }

    .footer-social a {
        width: 34px;
        height: 34px;
    }

    .footer-social svg {
        width: 18px;
        height: 18px;
    }
}

/* ====== 900px: tablet / pantallas medianas ====== */
@media (min-width: 769px) and (max-width: 991px){

  /* VALORES: 2 columnas */
  .valores-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  /* Resetea spans del layout desktop */
  .valor-card{
    grid-column: auto;
  }
  .valor-card:nth-child(4),
  .valor-card:nth-child(5){
    grid-column: auto;
  }
  .historia-destacado--2col{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .historia-destacado__texto .destacado-texto,
  .historia-destacado__texto .destacado-frase{
    text-align: center;
  }

  .video-vertical{
    margin: 0 auto;
  }
}

/* ====== 768px: ajustes generales (historia, carousel, misión/visión) ====== */
@media (max-width: 768px) {

  /* HISTORIA */
  .historia-contenido {
    flex-direction: column;
    gap: 20px;
  }

  .historia-col p {
    font-size: 15px;
    line-height: 1.5;
  }

  .historia-destacado {
    padding: 30px 25px;
    border-radius: 25px;
    margin: 40px 20px;
  }

  .destacado-frase {
    font-size: 18px;
  }

  /* CAROUSEL */
  .slide {
    min-width: 100%;
  }

  .slide img {
    height: 200px;
  }

  /* MISIÓN / VISIÓN */
  .bloque-lateral {
    flex-direction: column;
    gap: 20px;
  }

  .titulo-lateral {
    flex: unset;
  }
  /*CARDS VALORES */
  .valores-grid{
    grid-template-columns:1fr;
    gap:30px;
}

.valor-card{
    grid-column:span 1;
}
.eventos .valor-card p{
    color:#666;
}
/* TOPBAR */
.vx-topbar__inner {
    padding: 14px 16px;
    gap: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.vx-topbar__brand {
    width: auto;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.vx-topbar__brand img {
    width: 150px;
    max-width: 100%;
    height: auto;
}
 /* ORDEN HEADER */
    .vx-lang-switch {
        order: 2;
        margin-left: auto;
    }
    .vx-menu-toggle {
        order: 3;
    }

    .vx-menu__list {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .vx-menu__item {
        width: 100%;
        max-width: 280px;
    }

    .vx-menu__link,
    .vx-menu__sublink {
        width: 100%;
    }

    /* MENÚ HAMBURGUESA */
    .vx-menu-toggle {
        display: flex;
    }

    .vx-menu {
        flex: initial;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
        background: #3973B5;
        z-index: 999;
    }

    .vx-menu.active {
        display: block;
    }

    .vx-menu__list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .vx-menu__item {
        width: 100%;
        max-width: 280px;
    }

    .vx-menu__link {
        display: block;
        width: 100%;
        text-align: left;
        background: none;
        color: #fff;
        padding:  12px 0;
        border-radius: 0;
        text-decoration: none;
    }

    .vx-menu__sublinks {
        display: none;
    }
         /* SUBLINKS MOBILE*/
    .vx-menu__item--about .vx-menu__sublinks {
        position: static;
        top: auto;
        left: auto;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding-top: 8px;
        align-items: flex-start;    
        padding-left: 18px;
    }

    .vx-menu__item--about:hover .vx-menu__sublinks,
    .vx-menu__item--about:focus-within .vx-menu__sublinks {
        display: flex;
    }

    .vx-menu__sublink {
        display: block;
        width: 100%;
        max-width: 220px;
        min-height: 42px;
        padding: 12px 0;
        text-align: left;
        border-radius: 0;
        background: none;
        color: #fff;
        font-size: 16px;
    }
    /*footer 4 columnas*/
    .footer4col {
        padding: 40px 24px;
    }

    .footer4col-container {
        grid-template-columns: 1fr;
        row-gap: 28px;
        text-align: center;
        justify-items: center;
    }

    .footer4col-logo img {
        width: 280px;
    }

    .footer4col-menu {
        align-items: center;
        gap: 10px;
    }

    .footer4col-contacto {
        align-items: center;
        gap: 18px;
    }

    .footer4col-social {
        justify-content: center;
    }

    .footer4col-certificacion {
        justify-content: center;
    }

    .footer4col-certificacion img {
        width: 90px;
    }
}

/* ====== 600px: mobile (valores 1 columna) ====== */
@media (max-width: 600px){

  .valores-grid{
    grid-template-columns: 1fr;
  }

  .valor-card,
  .valor-card:nth-child(4),
  .valor-card:nth-child(5){
    grid-column: 1 / -1;
  }
  .eventos .valor-card p{
    color:#666;
}
}

/* ====== 480px: mobile chico (CSS original) ====== */
@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: 10px;
    padding-top: 10px;
  }
  .hero-cta {
        margin-top: 8px;
    }

    .btn-hero-eventos {
        padding: 10px 22px;
        margin-top: 5px;
        font-size: 14px;
    }
  .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;
  }
  .eventos .valor-card p{
    color:#666;
    }
    .footer4col-logo img {
        width: 240px;
    }

    .footer4col-menu a,
    .footer4col-contacto a {
        font-size: 17px;
    }

    .footer4col-social a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .footer4col-certificacion img {
        width: 85px;
    }
}

/* ====== 581px a 932px: rangos originales (tablet grande) ====== */
@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;
  }
  .eventos .valor-card p{
    color:#666;
}
}

/* ====== 933px a 1280px (original) ====== */
@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;
  }
  .eventos .valor-card p{
    color:#666;
}
}

/* ====== 1281px a 1600px (original) ====== */
@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;
  }
  .eventos .valor-card p{
    color:#666;
}
}
