
body {
    font-family: 'Calibri', sans-serif;
        overflow-x: hidden;
}
#menu-overlay{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;

  width: 320px;
  max-width: 90%;

  background:#aeb9c9;
  box-shadow:0 10px 30px rgba(0,0,0,.25);

  transform: translateX(100%);
  transition: transform .3s ease, opacity .3s;

  opacity:0;
  z-index:100000;
}

#menu-overlay a{
  color:#3c6f9c;
  font-weight:500;
  text-decoration:none;
}


@keyframes slideMenu{
  from{
    opacity:0;
    transform:translateX(-20px);
  }
  to{
    opacity:1;
    transform:translateX(0);
  }
}

#menu-overlay.show{
  transform: translateX(0);
  opacity:1;
}


.mea1, .mea2, .mea3{
    display:block;
    width:100%;
    color:#ffffff;
    font-size:1.1em;
    cursor:pointer;
    padding:8px 35px 0 20px;
    text-decoration:none;
    position:relative;
    border-bottom:2px solid white;
}

/* fondo hover */
.mea1::before,
.mea3::before{
    content:"";
    position:absolute;
    top:-2px;
    bottom:-2px;
    left:-7px;
    width:0;
    background:white;
    border-radius:10px;
    transition:0.5s;
    z-index:-1;
}
.mea2::before{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:0;
    width:0;
    background:white;

    transition:0.5s;
    z-index:-1;
}

/* animación */
.mea1:hover::before,
.mea3:hover::before{
    width:180%; /* sobresale hacia la derecha */
}
.mea2:hover::before{
    width:100%; /* sobresale hacia la derecha */
}

.mea1:hover,
.mea3:hover{
    color:#3c6f9c !important;
}
.mea2:hover{
    color:#3c6f9c !important;
}
.are{
    background-color: white;text-decoration:none;border-radius:10px;padding:7px;color:#4681b1;font-weight:bold; white-space: nowrap;
}
.are1{
    color:#ffffff;font-weight:bold; white-space: nowrap;text-decoration: none;font-size: 1.2rem;
}
.are1:hover{
 color:#000000;
}
.are:hover{
    background-color: #4681b1;color:white;
}
.a-pie{
  color:#000000;
  text-decoration:none;
  font-size:12px;

}
.a-pie:hover{
   color: #3c6f9c;

}
.tituloV{
      margin:0;
        width:100%;
        font-weight:bold;
        text-align:center;
        text-shadow:0 0 10px rgba(0,0,0,0.7);
        background: rgba(0,0,0,0.7);
        padding: 20px 20px;
         font-size: 2.7em;
    color: #ffffff;
    letter-spacing: 1.5px;
}
.titulo1{
    font-size: 2.7em;
    font-weight: bold;
    color: #ffffff;
    padding: 0;
    margin: 0;
    letter-spacing: 1.5px;
 
}
.texto1{
    font-size: 2.5em;
    color: #000000;
    padding: 0;
    margin: 0;

}
.titulo2{
    color: #3c6f9c;
    padding: 0;
    margin: 0;
    font-size: 1.7em;
    font-weight: bold;

}
.texto2{
    padding: 0;
    margin: 0;
    font-size: 1.2em;

}
.texto3{
    color: #3c6f9c;
    padding: 0;
    margin: 0;
    font-size: 1.3em;
}
.texto4{
 padding: 0;
    margin: 0;
    font-size: 1.3em;

}
.banner-fondo2-bot{
    background-color: white;
    color: rgb(71,129,178);
    border-radius: 10px;
    font-size: 2em;
    padding-right: 30px;
    padding-left: 30px;
border-color: #3c6f9c;


}
.banner-fondo2-bot:hover {
    background-color: rgb(71,129,178);
    color: white;
    transform: scale(1.05);
}
.barras{
    width: 100%;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5); /* Sombra del contenedor */
    
}
.barras-principal{
    font-size: 25px;
    width: auto;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5); 
}
.image-container {
    position: relative;
    display: inline-block;
     
}
.image-container img {
    width: 100%; /* Ajusta el tamaño de la imagen según sea necesario */
    height: auto;
 
}
.image-container, 
.image-container img, 
.barras-principal {
    position: relative;
    z-index: 1; /* más bajo que el menú */
}
.color-cubeA{
    margin-top: 5px;
    margin-right: 5px;
     width: 20px;
  height: 20px;
  background: rgb(71, 129, 178);    /* cambia por el color que prefieras */
   /* opcional */
  display: inline-block;
  flex: 0 0 auto;   
}

.color-cubeR{
     margin-top: 5px;
    margin-right: 5px;
     width: 20px;
  height: 20px;
  background: #d1181e;    /* cambia por el color que prefieras */
     /* opcional */
  display: inline-block;
  flex: 0 0 auto;   
}
.color-cubeV{
   margin-top: 5px;
    margin-right: 5px;
     width: 20px;
  height: 20px;
  background: #469439;    /* cambia por el color que prefieras */
  /* opcional */
  display: inline-block;
  flex: 0 0 auto;   
}
.color-cubeG{
    margin-top: 5px;
    margin-right: 5px;
     width: 20px;
  height: 20px;
  background: #959695;    /* cambia por el color que prefieras */
    /* opcional */
  display: inline-block;
  flex: 0 0 auto;   
}
.tit-pag{ 
    padding: 10px 25px;           /* padding más equilibrado */
    border-radius: 10px;
    color: #ffffff;
    font-size: 25px;
    font-weight: bold;
    background-color: rgb(71,129,178);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    
}
.titulo-pag{
    font-size: 2.5em;
    font-weight: bold;
    color: rgb(71,129,178);
}
.titulo3{
    color: black;
    font-size: 1.7rem;
    font-weight: bold;
}
.titulo4{
    color: rgb(71,129,178);
    font-size: 1.5rem;
    font-weight: bold;
}
.titulo-contacto{
    padding: 0;
    margin: 0;
    font-weight: bold;
    font-size: 1.3em;
}
.texto-contacto{
   padding: 0;
   margin: 0;
    font-size: 1.4em;
}
.a-contacto{
    margin: 0;
    padding: 0;
    color: #000000;
    font-size: 1.4em;
    font-weight: 500 !important;
}
.titulo-gen{
    font-size: 3.5rem;
    color: #3c6f9c;

}
.one1{
    font-size: 1.6em;
}
.one2{
    font-size: 1.3em;
}
.texto5{
    font-size: 1.2rem;
}
.texto7{
    font-size: 1.3rem;
}
.mod1{
    color: #3c6f9c;
    font-size: 2rem;
    font-weight: bold;
}
.mod2{
    color: black;font-weight:300 !important;font-size:22px !important;
}
.mod3{
color: #3c6f9c;
font-size: 1.4rem;
}
.mod-texto2{
    font-size: 18px;
    
}
.overlay-text sup {
    font-size: 0.75em; /* Ajusta el tamaño del texto elevado */
    vertical-align: super; /* Asegura que el texto elevado esté en la misma línea */
}
.mod-titulo{
    
    font-size: 30px;
    font-weight: bold;
    color: rgb(71,129,178);
}
.mod-titulo1{
    text-align: center;
    margin-bottom: 15px;
    border-radius: 10px;
    color: white;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5); 
    font-size: 25px;
    font-weight: bold;
    background-color: rgb(71,129,178);
}
.mod-titulo2{
font-size: 22px;
    font-weight: bold;
    color: #3c6f9c;
}
.mod-texto{
    font-size: 22px;
 
    color: rgb(71,129,178);
}
.overlay-text {
    position: absolute;
    top: 100%;
    left: 100%;
    transform: translate(-50%, -50%);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5); /* Sombra del contenedor */
    background-color: white; /* Fondo semitransparente */
    padding: 5px;
    color: rgb(71,129,178);
    border-radius: 8px;
    font-size: 1.5rem; /* Ajusta el tamaño del texto según sea necesario */
    z-index: 9999;
}
.mod-texto2{
    font-size: 18px;
    
}
.overlay-text sup {
    font-size: 0.75em; /* Ajusta el tamaño del texto elevado */
    vertical-align: super; /* Asegura que el texto elevado esté en la misma línea */
}

@media (max-width:1572px){
    .tituloV{
        font-size: 2.5em !important;
        padding: 17px 17px !important;
    }
    .texto1{
        font-size: 2.3em !important;
    }
    .texto4{
        font-size: 1.2em !important;
    }
    .titulo-gen{
        font-size: 3em !important;

    }

}
@media (max-width:1446px){
     .tituloV{
        font-size: 2.3em !important;
        padding: 15px 15px !important;
    }
    .texto1{
        font-size: 2.1em !important;
    }
    .texto4{
        font-size: 1.1em !important;
    }


}
@media (max-width:1412px){
    .tituloV{
        font-size: 2em !important;
        padding: 12px 12px !important;
    }
    .texto1{
        font-size: 1.8em !important;
    }
    .sidebar-desktop{
        width: 370px !important;
    }
    .main-content{
        margin-left: 370px !important;
    }


}
@media (max-width:1399px){
    .texto4{
        font-size: 1.4em !important;
    }
    .caja3{
        margin-right:50px !important;
        margin-left:50px !important;
    }
      .titulo-gen{
        font-size: 2.5em !important;

    }
   
}

@media (max-width:1285px){
   .cajalogo{
     flex-direction: column !important;
        gap: 20px !important;
   }
   .caja2{
    flex-direction: row !important;
   }
   .mod-texto{
    font-size: 20px;
   }
   .mod-titulo1{
    font-size: 22px;
   }
}
@media (max-width:1265px){
.tituloV{
        font-size: 1.8em !important;
        padding: 10px 10px !important;
    }
    .texto1{
        font-size: 1.6em !important;
    }
    .caja3{
        margin-right:30px !important;
        margin-left:30px !important;
    }
    .sidebar-desktop{
        width: 330px !important;
    }
    .main-content{
        margin-left: 330px !important;
    }
}

@media (max-width:1150px){
 .tituloV{
    font-size: 1.6em !important;
 }
 .texto1{
    font-size: 1.4em !important;
 }
 .esp{
    padding-left: 0px !important;
    padding-right: 0px !important;
 }
 .titulo-contacto{
    font-size: 1.2em !important;
 }
 .texto-contacto{
    font-size: 1.3em !important;
 }
 .a-contacto{
    font-size: 1.2em !important;
 }
}
@media (max-width:1123px){
   .texto5{
    font-size: 1.1rem;
}
.tituloV{
    font-size: 1.4em !important;
}
}
@media (max-width:1033px){
.titulo-contacto{
    font-size: 1.1em !important;
 }
 .texto-contacto{
    font-size: 1.1em !important;
 }
 .a-contacto{
    font-size: 1.1em !important;
 }
 .mod1{
    font-size: 1.5rem !important;
}
}
@media (max-width:991px){
   .texto5{
    font-size: 1.1rem;
}
.texto1{
    font-size: 1.3em !important;
}
.caja3{
    margin-right:20px !important;
    margin-left:20px !important;
}

}
@media (max-width:950px){
     .texto5{
    font-size: 1rem;
}
    .titulo-gen{
        font-size: 2.5rem !important;
    }
    .mod-titulo1{
        font-size: 18px !important;
    }
    .mod-texto{
        font-size: 17px !important; 
    }
    .titulo1{
        font-size: 1.4em !important;
    }
    .texto1{
        font-size: 1.2em !important;
    }
    .tituloV{
        font-size: 1.2em !important;
        padding: 8px 8px !important;
    }
    .sidebar-desktop{
        width: 300px !important;
    }
    .main-content{
        margin-left: 300px !important;
    }
    .cajaI1{
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    .texto4{
        font-size: 1em !important;
    }
}
@media (max-width:870px){
    .texto1{
        font-size: 1em !important;
    }
}
@media (max-width:852px){
    .tituloV{
        font-size: 1.2em !important;
    }
    
    .sidebar-desktop{
        width: 270px !important;
    }
    .main-content{
        margin-left: 270px !important;
    }
    
}
@media (max-width:810px){
    .tituloV{
        font-size: 1em !important;
    }
    .texto1{
        font-size: 1em !important;
    }
    }

@media (min-width:768px){
#menu-overlay{
  position:fixed;
  transform:none;
  opacity:1;          /* ✅ CLAVE */
  right:auto;
   width: 50%;
  height:auto;
  display:none;       /* ✅ controlado por JS */
}
.sidebar-desktop{
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    overflow-y:auto;
    z-index:1000;
}
.sidebar-movil{
    display: none !important;

}

}

@media (max-width:767px){
 #menu-overlay{
     width: 300px;         /* ancho del menú */
    max-width: 90%;       /* opcional para pantallas muy pequeñas */
    height: auto;         /* quitar altura fija */
    max-height: 90vh;     /* opcional: límite de altura */
    overflow: visible;    /* ❌ quitar scroll interno */
    position: fixed;
    top: 0;
    right: 0;
    background: #aeb9c9;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s;
    z-index: 100000;
  }
  .image-container img {
    width: 100% !important;
  }

  #menu-overlay.show{
    transform: translateX(0);
  }
  html, body {
    overflow-x: hidden;  /* ❌ ya lo tienes, perfecto */
    width: 100%;         /* asegurarte que no hay ancho extra */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sidebar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:auto;
    z-index: 1000;
    
}
.sidebar-desktop{
    display: none !important;
}
.main-content {
    margin-left: 0 !important; /* Sin margen para móviles */
    
}
.cuerpo{
    padding-top: 145px;
}
.tituloV{
    font-size: 1.6em !important;
}
.texto1{
    font-size: 1.4em !important;
}
}
@media (max-width:689px){
    .tituloV{
        font-size: 1.4em !important;
    }
    .texto1{
        font-size: 1.2em !important;
    }
}
@media (max-width:650px){
    .cuerpo{
        padding-top: 195px !important;
    }
    .menu2{
             display: flex;
        flex-direction: column !important;
        align-items: center !important;
    }
     .menu2 .d-flex{
        margin-top: 10px !important;

    }
    .menu3{
        display: flex;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        width: 100%; /* 👈 CLAVE */
    }
    .titulo-gen{
        font-size: 2rem !important;
    }
  
}
@media (max-width:616px){
    .tituloV{
        font-size: 1.2em !important;
    }
   
    .texto4{
        font-size: 1em !important;
    }

}
@media (max-width:576px){
    .caja3{
        margin-right: 50px !important;
        margin-left: 50px !important;
    }
    .mod1{
    font-size: 1.2rem !important;
}
.mod2{
    font-size: 1rem !important;
}
}
@media (max-width:558px){

    .tituloV{
        font-size: 1em !important;
    }
    .texto1{
        font-size: 1em !important;
    }
}
@media (max-width:510px){
    .cuerpo{
        padding-top: 187px !important;
    }
}
@media (max-width:467px){
     .cuerpo{
        padding-top: 180px !important;
    }
    .tituloV{
        font-size: 0.9em !important;
    }
    .texto1{
        font-size: 0.9em !important;
    }
    .titulo-gen{
        font-size: 1.5rem !important;
    }
    .texto-contacto{
   
    font-size: 1.1em !important;
}
.caja1{
    padding: 10px !important;
}
}
@media (max-width:428px){
     .tituloV{
        font-size: 0.7em !important;
    }
     .texto1{
        font-size: 0.8em !important;
    }
    .cuerpo{
        padding-top: 172px !important;
    }
}
@media (max-width:410px){
    .cuerpo{
        padding-top: 168px !important;
    }
}
@media (max-width:390px){
    .cuerpo{
        padding-top: 165px !important;
    }
    .tituloV{
        font-size: 0.7em !important;
    }
    .texto1{
        font-size: 0.7em !important;
    }
    .titulo2{
        font-size: 1.5em !important;
    }
    .texto4{
        font-size: 0.8em !important;
    }

}
@media (max-width:352px){
    .tituloV{
        font-size: 0.6em !important;
    }
    .texto1{
        font-size: 0.6em !important;
    }
}

