/*------------------------------------------ALL STYLES-------------------------------------------*/
*{
    padding: 0;
    margin: 0;
}

.titulo {
  position: relative;
}

.titulo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.61) 30%, rgba(10, 25, 47, 0.005) 70%, transparent 100%);
  z-index: 1;
}

.titulo2{
    position: absolute;
    top: 70%;
    left: 15%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 0.6em;
} 

.btnvolver{
    padding: 0.7em;
    margin: 0.5em;
    border-radius: 15px;
    background-color: #0f2547;
    color: #fff;
    text-decoration: none;
}

.btnvolver:hover{
    background-color: rgb(231,76,61,1);
    color: #fff;
}


/*-----------------------------------------To top button-----------------------------------------*/

#scrollToTopBtn{
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: rgb(231,76,61,1);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 20px;
    cursor: pointer;
}

#scrollToTopBtn:hover{
    background-color: #001f3f;
}

/*----------------------------------------------FONTS------------------------------------------------*/

@font-face {
    font-family: 'Neuropol';
    src: url('../font/NEUROPOL.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}

.neuropol{
    font-family: 'Neuropol';
}

.negrita{
    font-weight:500 !important;
}

.bold{
    font-weight: bold;
}

.justify{
    text-align: justify;
}

.leadc{
    font-weight:400;
    font-size: 19px;
}

.leadsm{
    font-weight: 350;
    font-size: 15px;
}

.leadg{
    font-weight:450 !important;
    font-size: 22px;
}

.leadgg{
    font-weight: 500 !important;
    font-size: 23px;
}

.lead{
    font-weight: 350;
}

.small{
    font-size: 14px;
}

.naranjafont{
    color:rgba(231,76,61,1);
    font-size: 29px;
}

.center{
    text-align: center;
}

.azulfont{
    color: #002c57; 
}

.whitefont{
    color: #fff;
}

/*------------------------------------------------APP LAYOUT--------------------------------------------*/
#logo{
    padding-top: 0em;
    width: 7em;
    height: 3em;
    margin: 0.5em 0 0.4em 0;
}

.header{
    background-color: #ffffff;
    z-index: 3;
    width: 100%;
    max-width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 5em 0 8em;
    position: sticky;
    border-bottom: 1.7px solid rgb(231,76,61,1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.header.sticky {
    top: 0;
}

.colored{
    background-color: #fff;
    color: #000000;
}

.header2{
    background-color: #000000a3;
    z-index: 3;
    width: 100%;
    max-width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 5em 0 8em;
    position: absolute;
}

.boton-naranja {
    display: inline-block;
    padding: 0.6em 1.25em;
    background-color: rgb(231,76,61,1);
    color: white;
    text-decoration: none;
    border-radius: 18px;
    border: none;
}

.boton-naranja:hover {
    background-color:#001f3f;
    color: white !important;
}

.boton-azul { 
    margin-top: 1.5rem; 
    padding: 0.75rem 1.5rem; 
    background: #001f3f; 
    color: white; 
    border: none; 
    border-radius: 18px; 
    cursor: pointer; 
    font-size: 1rem; 
}

.boton-azul:hover {
    background-color:rgb(231,76,61,1);
    color: white;
}

.btnder{
    float: right;
}

.navbar-nav a{
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .3s;
    color: #000000 !important;
}

.navbar-nav a:hover{
    background-size: 100% 2px;
    font-weight:450;
}

body.bodyhome div.collapse li:nth-child(1) a,
body.bodyservicios div.collapse li:nth-child(2) a,
body.bodynosotros div.collapse li:nth-child(3) a,
body.bodycertificaciones div.collapse li:nth-child(4) a,
body.bodycontacto div.collapse li:nth-child(5) a
{
    background-size: 100% 2px;
    font-weight:500;
}

/*-----------------------------------------------HOME-----------------------------------------------*/

.hero {
    height: 85vh;
    background: url("../img/fondost/herocut.webp") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 6%;
    color: white;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.388) 30%, rgba(28, 40, 58, 0.2) 70%, transparent 100%);
}

.hero-content {
    position: relative;
    max-width: 600px;
    z-index: 1;
    transform: translateX(-100px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.4s ease-out;
}

.hero-content.visible {
    transform: translateX(0);
    opacity: 1;
    transition-duration: 0.5s;
}

.hero-content.hide {
    transform: translateX(-100px);
    opacity: 0;
    transition-duration: 0.2s;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.apartado1h{
    position: relative;
    overflow: hidden;
}

.c1imgh1{
    border: none;
    margin: 0;
    padding: 0;
}

.titulo1h{
    font-size: 33px;
    font-weight: 800;
}

.c2img1h {
    width: 100%;
    height: 40em;
    object-fit: cover;
    object-position: 0 -9em;
    position: relative;
    top: 0;
}

.c3img2h{
    width: 27em;
    height: 28em;
    border-radius: 10px;
}

.apartado2h{
    padding: 3em 8em 2em 8em;
    display: flex;
}

.apartado2hp1{
    padding: 2em 1em 2em 5em;
}

.apartado2hp2{
    color: #000000;
    padding: 3em 5em 2em 5em;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
    text-align: justify;
}

.apartado2hp2.show {
  opacity: 1;
  transform: translateY(0);
}

.container-apartado3h {
  position: relative;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
}

#bolitasCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.apartado3h{
    padding: 3em 2em 1em 2em;
    position: relative;
    z-index: 1; 
}

.apartado3hp2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
}

.imagen-card {
    position: relative;
    width: 18em;
    height: 27em;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    transition: transform 0.4s ease;
    border-radius: 10px;
}

.imagen-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.imagen-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.imagen-card:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 4
}

.imagen-card:hover .overlay {
  opacity: 1;
}

.overlay p {
  font-size: 1.1em;
  margin-bottom: 0.8em;
  text-align: center;
  padding: 0 1em;
}

.overlay a {
  transition: background 0.3s ease;
  text-decoration: none;
}

.textocard{
    position: absolute;
    top: 75%;
    left: 40%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 21px;
    font-weight: bold;
    z-index: 3;
    transition: opacity 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.imagen-card:hover .textocard {
  opacity: 0;
}

.bolita3h{
    border-radius: 50%;
    width: 7.5em;
    height: 7.5em;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgb(0, 0, 0);
}

.bolita3hp1{
    width: 7.5em;
    height: 7.5em;
    padding: 0.5em;
}

.apartado4h{ 
    padding: 2em 1em 2em 1em;
    background-color: #f6faff;
}

.apartado4h1{
    max-width: 90%;
    margin: 40px auto;
    text-align: justify;  
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.apartado4ht{
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    position: relative;
}

.apartado4ht:hover{
    transform: scale(1.05) translateY(-6px);
}


.apartado4ht .icono{
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin: 15px;
}

.apartado4ht .toggle {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    transition: transform .2s;
}

.apartado4ht .contenido {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    margin-top: 10px;
}

.apartado4ht.open .contenido {
    max-height: 200px;
}

.apartado4ht.open .toggle {
    transform: rotate(180deg);
}

.formaciona4h{
    display: flex;
    gap: 1.5em;
}

.mantenimientoa4h{
    display: flex;
    gap: 1.5em;
}

.ingenieriaa4h{
    display: flex;
    gap: 1.5em;
}

.automatizaciona4h{
    display: flex;
    gap: 1.5em;
}

.apartado4hp1{
    width: 25em;
    height:10em;
    border-radius: 10%;
    text-align: center;
}

.img4h{
    width: 16em;
    height: 15em;
}

.aparecer {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.aparecer.visible {
  opacity: 1;
  transform: translateY(0);
}

/*----------------------------------------------ESPECIALIDAD 1----------------------------------------*/
.titulo .imge1{
    display: block;
    width: 100%;
    height: 17em;
    object-fit: cover;
    object-position: 0em -15em;
    filter: brightness(70%);
}

.titulo-hero .tituloe {
    transform: translateY(-50%) translateX(0.4rem);
}

.tituloe {
    position: absolute;
    top: 70%;
    left: 9%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0.6em;
    text-align: center;
}

.apartado1e1{
    padding: 4em 7em 3em 7em;
}

.apartado2e1{
    background-color: #dbe1eb;
    width: 80%;
    height: 5em;
    margin: 0 auto 4em;
    padding: 1.5em;
    border-radius: 5px;
}

/*----------------------------------------------ESPECIALIDAD 2----------------------------------------*/

.titulo .imge2{
    display: block;
    width: 100%;
    height: 17em;
    object-fit: cover;
    object-position: 0em -35em;
    filter: brightness(70%);
}

.apartado1e2{
    padding: 4em 7em 3em 7em;
}

/*----------------------------------------------ESPECIALIDAD 3----------------------------------------*/

.titulo .imge3{
    display: block;
    width: 100%;
    height: 17em;
    object-fit: cover;
    object-position: 0em -18em;
    filter: brightness(70%);
}

.apartado1e3{
    padding: 4em 7em 3em 7em;
}

/*----------------------------------------------ESPECIALIDAD 4----------------------------------------*/

.titulo .imge4{
    display: block;
    width: 100%;
    height: 17em;
    object-fit: cover;
    object-position: 0em -35em;
    filter: brightness(70%);
}

.apartado1e4{
    padding: 4em 7em 3em 7em;
}

/*-----------------------------------------------SERVICIOS------------------------------------------*/

.titulo .imgs{
    display: block;
    width: 100%;
    height: 17em;
    object-fit: cover;
    object-position: 0em -27em;
    filter: brightness(70%);
}

.ttexts{
    padding: 0 2em 2em 41%;
    text-align: justify;
}

.apartado2s{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    padding: 1em 4em 1em 4em;
}

.serbtn{
    padding: 1em;
}

.links{
    text-decoration: none;
    color: #000000;
}

.links:hover{
   color: rgba(231,76,61,1);
   transform:scale(1.1);
}

.servicio1{
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    border-radius: 10px;
    overflow: hidden;
    height: 15em;
}

.imgss1{
    background-image: url('../img/galeria/servicio1.jpg');
    width: 100%;
    height: 10em;
    background-position: 0em -4em;
    background-size:cover;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3), 
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.servicio2{
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    border-radius: 10px;
    overflow: hidden;
    height: 15em;
}

.imgss2{
    background-image: url('../img/galeria/teachingcompas/teaching10.jpeg');
    width: 100%;
    height: 10em;
    background-position: 0em -11em;
    background-size:cover;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3), 
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.servicio3{
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    border-radius: 10px;
    overflow: hidden;
    height: 15em;
}

.imgss3{
    background-image: url('../img/galeria/jatco/jatco6.jpeg');
    width: 100%;
    height: 10em;
    background-position: 0em -11em;
    background-size:cover;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3), 
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.servicio4{
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    border-radius: 10px;
    overflow: hidden;
    height: 15em;
}

.imgss4{
    background-image: url('../img/galeria/estructuras/estructuraf2.jpeg');
    width: 100%;
    height: 10em;
    background-position: 0em -5em;
    background-size:cover;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3), 
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.servicio5{
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    border-radius: 10px;
    overflow: hidden;
    height: 15em;
}

.imgss5{
    background-image: url('../img/galeria/coherix/coherix4.jpg');
    width: 100%;
    height: 10em;
    background-position: 0em -5em;
    background-size:cover;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3), 
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.servicio6{
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    border-radius: 10px;
    overflow: hidden;
    height: 15em;
}

.imgss6{
    background-image: url('../img/galeria/teachingcompas/teaching7.jpeg');
    width: 100%;
    height: 10em;
    background-position: 0em -9em;
    background-size:cover;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3), 
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.apartado3sp2{
    display: flex;
    gap: 1em;
    padding: 1em;
    text-align: center;
    justify-content: center;
}

.apartado3sp2 > div {
    width: 13em;
}

.c1imgs1{
    margin: 1em;
    width: 6em;
    height: 6em;
    -webkit-mask-image: linear-gradient(to bottom, rgb(0, 0, 0), rgba(0, 0, 0, 0.264));
    mask-image: linear-gradient(to bottom, rgb(0, 0, 0), rgba(0, 0, 0, 0.252));
}

/*----------------------------------------------SERVICIOS 1--------------------------------------------*/
.titulo .imgs1{
    display: block;
    width: 100%;
    height: 19em;
    object-fit: cover;
    object-position: 0em -14em;
    filter: brightness(70%);
}

.titulos1{
    position: absolute;
    top: 70%;
    left: 37%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 0.6em;
    text-align: center;
} 

.apartado1s1{
    padding: 4em 6em 3em 6em;
    display: flex;
    gap: 2em;
    align-items: center; 
}

.apartado1s1p1{
    width: 7em;
    height: 7em;
    background-color: #0a192f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;  
}

.imglogosb{
    display: block;
}

.collage{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 9.3em;
    grid-gap: 0.7em;
    padding: 0em 5em 4em 5em;
}

.collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0.3em;
    border-radius: 10px;
}

.collage img:hover {
    transform:scale(1.1);
}

.collage img:nth-child(1) {
    grid-row-start: span 2;
    object-position: 0em -1em;
}

.collage img:nth-child(3) {
    grid-row-start: span 2;
    object-position: 0em -2em;
}

.collage img:nth-child(5) {
    object-position: 0em -5em;
}

.collage img:nth-child(6) {
    object-position: 0em -5em;
}

.apartado2s1{
    display: flex;
    padding: 4em;
    position: relative;
}

.apartado2s1p1{
    padding: 2em;
    background-color: #dbe1eb;
    align-self: flex-start;
    margin-right: -3em;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    border-radius: 15px;
}

.apartado2s1 img {
    z-index: 1; 
    width: 35em;
    height: 35em;
    border-radius: 15px;
}

/*----------------------------------------------SERVICIOS 2--------------------------------------------*/
.titulo .imgs2{
    display: block;
    width: 100%;
    height: 19em;
    object-fit: cover;
    object-position: 0em -48em;
    filter: brightness(70%);
}

.titulos2{
    position: absolute;
    top: 70%;
    left: 31%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 0.6em;
    text-align: center;
} 

.apartado1s2{
    padding: 4em 6em 3em 6em;
    display: flex;
    gap: 2em;
    align-items: center; 
}

.apartado1s2p1{
    width: 7em;
    height: 7em;
    background-color: #0a192f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;  
}

.collage2 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 9.3em;
    grid-gap: 0.7em;
    padding: 0em 5em 4em 5em;
}

.collage2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0.3em;
    border-radius: 10px;
}

.collage2 img:hover {
    transform:scale(1.1);
}

.collage2 img:nth-child(1) {
    grid-column-start: span 2;
    object-position: 0em -8em;
}

.collage2 img:nth-child(3) {
    grid-column-start: span 2;
    object-position: 0em -16em;
}

.collage2 img:nth-child(4) {
    object-position: 0em -5em;
}

.collage2 img:nth-child(5) {
    grid-column-start: span 2;
    object-position: 0em -10em;
}

.collage2 img:nth-child(6) {
    object-position: 0em -2em;
}

.apartado2s2{
    display: flex;
    padding: 4em;
    position: relative;
}

.apartado2s2p1{
    padding: 2em 5em 2em 2em;
    background-color: #dbe1eb;
    align-self: flex-start;
    margin-right: -2em;
    box-shadow: 0 10px 20px rgba(0,0,0,0.22); 
    border-radius: 15px;
}

.apartado2s2 iframe {
    z-index: 2; 
    height:100%;
    width:100%;
    border-radius: 15px;
}

.video-s2{
    width: 35em;
    height: 28em;
}

/*----------------------------------------------SERVICIOS 3-------------------------------------------*/
.titulo .imgs3{
    display: block;
    width: 100%;
    height: 19em;
    object-fit: cover;
    object-position: 0em -45em;
    filter: brightness(70%);
}

.titulos3{
    position: absolute;
    top: 70%;
    left: 37%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 0.6em;
    text-align: center;
} 

.apartado1s3{
    padding: 4em 6em 3em 6em;
    display: flex;
    gap: 2em;
    align-items: center; 
}

.apartado1s3p1{
    width: 7em;
    height: 7em;
    background-color: #0a192f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;  
}

.collage3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 9.3em;
    grid-gap: 0.7em;
    padding: 0em 5em 4em 5em;
}

.collage3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0.3em;
    border-radius: 10px;
}

.collage3 img:hover {
    transform:scale(1.1);
}

.collage3 img:nth-child(1) {
    object-position: 0em -7em;
}

.collage3 img:nth-child(2) {
    grid-row-start: span 2;
    object-position: 0em -8em;
}

.collage3 img:nth-child(3) {
    object-position: 0em -15em;
}

.collage3 img:nth-child(4) {
    grid-row-start: span 2;
    object-position: 0em -2em;
}

.collage3 img:nth-child(5) {
    object-position: 0em -6em;
}

.apartado2s3{
    display: flex;
    padding: 4em;
    position: relative;
}

.apartado2s3p1{
    padding: 2em;
    background-color: #dbe1eb;
    align-self: flex-start;
    margin-right: -3em;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    border-radius: 15px;
}

.apartado2s3 img {
    z-index: 1; 
    width: 35em;
    height: 35em;
    border-radius: 15px;
}

/*----------------------------------------------SERVICIOS 4-------------------------------------------*/

.titulo .imgs4{
    display: block;
    width: 100%;
    height: 19em;
    object-fit: cover;
    object-position: 0em -30em;
    filter: brightness(70%);
}

.titulos4{
    position: absolute;
    top: 70%;
    left: 37%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 0.6em;
    text-align: center;
} 

.apartado1s4{
    padding: 4em 6em 3em 6em;
    display: flex;
    gap: 2em;
    align-items: center; 
}

.apartado1s4p1{
    width: 7em;
    height: 7em;
    background-color: #0a192f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;  
}

.collage4 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 9.3em;
    grid-gap: 0.7em;
    padding: 0em 5em 4em 5em;
}

.collage4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0.3em;
    border-radius: 10px;
}

.collage4 img:hover {
    transform:scale(1.1);
}

.collage4 img:nth-child(2) {
    grid-column-start: span 2;
    object-position: 0em -5em;
}

.collage4 img:nth-child(5) {
    grid-column-start: span 2;
    object-position: 0em 0em;
}

.collage4 img:nth-child(7) {
    grid-column-start: span 2;
    object-position: 0em 0em;
}

.apartado2s4{
    display: flex;
    padding: 4em;
    position: relative;
}

.apartado2s4p1{
    padding: 2em;
    background-color: #dbe1eb;
    align-self: flex-start;
    margin-right: -3em;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    border-radius: 15px;
}

.apartado2s4 img {
    z-index: 1; 
    width: 35em;
    height: 35em;
    border-radius: 15px;
}
/*----------------------------------------------SERVICIOS 5--------------------------------------------*/

.titulo .imgs5{
    display: block;
    width: 100%;
    height: 19em;
    object-fit: cover;
    object-position: 0em -28em;
    filter: brightness(70%);
}

.titulos5{
    position: absolute;
    top: 70%;
    left: 27%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 0.6em;
    text-align: center;
} 

.apartado1s5{
    padding: 4em 6em 3em 6em;
    display: flex;
    gap: 2em;
    align-items: center; 
}

.apartado1s5p1{
    width: 7em;
    height: 7em;
    background-color: #0a192f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;  
}

.collage5 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 9.3em;
    grid-gap: 0.7em;
    padding: 0em 5em 4em 5em;
}
  
.collage5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0.3em;
    border-radius: 10px;
}

.collage5 img:hover {
    transform:scale(1.1);
}

.collage5 img:nth-child(1) {
    grid-row-start: span 2;
    object-position: 0em -4em;
}

.collage5 img:nth-child(2) {
    object-position: 0em -7em;
}

.collage5 img:nth-child(3) {
    grid-row-start: span 2;
    object-position: 0em 0em;
}

.collage5 img:nth-child(5) {
    object-position: 0em -4em;
}

.apartado2s5{
    display: flex;
    padding: 4em;
    position: relative;
}

.apartado2s5p1{
    padding: 2em 5em 2em 2em;
    background-color: #dbe1eb;
    align-self: flex-start;
    margin-right: -2em;
    box-shadow: 0 10px 20px rgba(0,0,0,0.22); 
}

.apartado2s5 video {
    z-index: 2; 
    height:100%;
    width:100%;
}

.apartado2s5p2 video{
    border-radius: 15px;
}

.apartado2s5p2 {
    z-index: 1;
}

.video-s5{
  width: 35em;
  height: 19em;
  overflow: hidden;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-s5 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/*----------------------------------------------SERVICIOS 6-------------------------------------------*/

.titulo .imgs6{
    display: block;
    width: 100%;
    height: 19em;
    object-fit: cover;
    object-position: 0em -40em;
    filter: brightness(70%);
}

.titulos6{
    position: absolute;
    top: 70%;
    left: 28%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 0.6em;
    text-align: center;
} 

.apartado1s6{
    padding: 4em 6em 3em 6em;
    display: flex;
    gap: 2em;
    align-items: center; 
}

.apartado1s6p1{
    width: 7em;
    height: 7em;
    background-color: #0a192f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;  
}

.collage6 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 9.3em;
    grid-gap: 0.7em;
    padding: 0em 5em 4em 5em;
}

.collage6 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0.3em;
    border-radius: 10px;
}

.collage6 img:hover {
    transform:scale(1.1);
}

.collage6 img:nth-child(1) {
    grid-column-start: span 2;
    object-position: 0em -8em;
}

.collage6 img:nth-child(2) {
    object-position: 0em -2em;
}

.collage6 img:nth-child(3) {
    grid-column-start: span 2;
    object-position: 0em -15em;
}

.collage6 img:nth-child(4) {
    object-position: 0em -3em;
}

.collage6 img:nth-child(5) {
    grid-column-start: span 2;
    object-position: 0em -7em;
}

.collage6 img:nth-child(6) {
    object-position: 0em -9em;
}

.collage6 img:nth-child(7) {
    object-position: 0em -5em;
}

.apartado2s6{
    display: flex;
    padding: 4em;
    position: relative;
}

.apartado2s6p1{
    padding: 2em;
    background-color: #dbe1eb;
    align-self: flex-start;
    margin-right: -3em;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    border-radius: 15px;
}

.apartado2s6 img {
    z-index: 1; 
    width: 35em;
    height: 30em;
    border-radius: 15px;
}
/*----------------------------------------------NOSOTROS---------------------------------------------*/

.titulo .imgn{
    display: block;
    width: 100%;
    height: 17em;
    object-fit: cover;
    object-position: 0em -21em;
    filter: brightness(70%);
}

.contenedorn {
    position: relative;
    padding: 3em 7em;

    background-image: url('../img/otrosi/nosotrosimg.png');
    background-size: cover;
    background-position: center -120px;
    background-repeat: no-repeat;
}

.apartado1nimg{
    display: flex;
}

.img1n{
    width: 25em;
    height: 25em;
    padding: 1em 1em 0 0;
}

.apartado1n div {
    position: relative;
    z-index: 2;
}

.apartado2n{
    position: relative;
    width: 100%;
    min-height: 80vh;
    padding: 3em;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
}

#bolitasCanvasn {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.apartado2n h4,
.apartado2n h5,
.apartado2n p,
.apartado2n ul {
    position: relative;
    z-index: 2;
}

.linea-izq {
    border-left: 3px solid #20608d; 
    padding-left: 10px;            
}

.apartado1np2{
    padding: 0 3em 3em 3em;
    text-align: justify;
}

/*----------------------------------------------CERTIFICACIONES-------------------------------------*/

.titulo .imgce{
    display: block;
    width: 100%;
    height: 17em;
    object-fit: cover;
    object-position: 0em -15em;
    filter: brightness(70%);
}

.apartado1ce{
    padding: 4em;
}

.apartado2ce{
    text-align: center;
    justify-content: center;
    display: flex;
    gap: 1.5em;
}

.imgcer{
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
    object-fit: cover;
}

.cajace{
    width: 30%;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    text-align: center;
}

.cajace:hover {
    transform: scale(1.03);
    transition: 0.2s ease;
}


/*----------------------------------------------CONTACTO--------------------------------------------*/

.titulo .imgc{
    display: block;
    width: 100%;
    height: 17em;
    object-fit: cover;
    object-position: 0em -15em;
    filter: brightness(70%);
}

.formulario{
    flex: 1; 
    width: 45em;
    background: #f9f9f9; 
    padding: 2rem; 
    border-radius: 12px; 
    box-shadow: 0 0 20px 0 rgba(0,0,0,0.2);
}

.formulario label{ 
    display: block; 
    margin-top: 1rem; 
    margin-bottom: 0.5rem; 
    font-weight: bold; 
}

.formulario input, .formulario textarea { 
    width: 100%; 
    padding: 0.75rem; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
}

.formulario button { 
    margin-top: 1.5rem; 
    padding: 0.75rem 1.5rem; 
    background: #001f3f; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 1rem; 
    width: 100%;
}

.formulario button:hover { 
    background: rgba(231,76,61,1); 
}

#honeypot{
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.c1c{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap:1em;
    padding: 2em 3em 4em 3em;
}

.apartado1c{
    padding: 3em 0 1em 0;
}

.apartado2c{
    padding: 1em 1em 1em 6em;
}

.apartado3c{
    padding: 1em 5em 1em 7em;
}

.apartado3cp1 { 
    margin-bottom: 1rem; 
    color: #001f3f; 
}

.horario{
    border: 1px solid #ccc;
    padding: 1em;
    border-radius: 8px;
}

/*----------------------------------------------TERMINOS---------------------------------------------*/

.titulo .imgt{
    display: block;
    width: 100%;
    height: 17em;
    object-fit: cover;
    object-position: 0em -22em;
    filter: brightness(70%);
}

.titulost{
    position: absolute;
    top: 70%;
    left: 20%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 0.6em;
    text-align: center;
} 

.apartado1t{
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 3em 7em 5em 7em;
    margin: 5em;
    border-radius: 2em;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.363);
    overflow: hidden;  
}

.apartado1t::before,
.apartado1t::after {
    content: "";
    position: absolute;
    width: 30em;
    height: 30em;
    background: rgba(32, 96, 141, 0.13);
    border-radius: 50% 40% 60% 50%;
    opacity: 0.6;
    z-index: 1;
}

.apartado1t::before {
    top: -50px;
    left: -100px;
    animation: aparecerIzqt 1.2s ease-out forwards;
}

.apartado1t::after {
    bottom: -50px;
    right: -100px;
    background: rgba(32, 96, 141, 0.205);
    animation: aparecerDer 1.2s ease-out forwards;
}

@keyframes aparecerIzqt {
  0% { transform: translateX(-100px) scale(0); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 0.6; }
}

@keyframes aparecerDer {
  0% { transform: translateX(100px) scale(0); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 0.6; }
}

/*----------------------------------------------POLITICAS-------------------------------------------*/
.titulo .imgp{
    display: block;
    width: 100%;
    height: 17em;
    object-fit: cover;
    object-position: 0em -18em;
    filter: brightness(70%);
}

.titulosp{
    position: absolute;
    top: 70%;
    left: 23%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 0.6em;
    text-align: center;
} 

.apartado1p{
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 3em 7em 5em 7em;
    margin: 5em;
    border-radius: 2em;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.363);
    overflow: hidden;  
}

.apartado1p::before,
.apartado1p::after {
    content: "";
    position: absolute;
    width: 30em;
    height: 30em;
    background: rgba(32, 96, 141, 0.13);
    border-radius: 50% 40% 60% 50%;
    opacity: 0.6;
    z-index: 1;
}

.apartado1p::before {
    top: -50px;
    left: -100px;
    animation: aparecerIzqt 1.2s ease-out forwards;
}

.apartado1p::after {
    bottom: -50px;
    right: -100px;
    background: rgba(32, 96, 141, 0.205);
    animation: aparecerDer 1.2s ease-out forwards;
}

@keyframes aparecerIzqt {
  0% { transform: translateX(-100px) scale(0); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 0.6; }
}

@keyframes aparecerDer {
  0% { transform: translateX(100px) scale(0); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 0.6; }
}
/*----------------------------------------------FOOTER----------------------------------------------*/

.colorf{
    background-color: rgba(0, 0, 0, 0.010);
}

.c1f{
    margin-left: 3em;
}

.redesf{
    text-decoration: none;
}

.logof{
    width: 10em;
    height: 5em;
}

.mapaf{
    height: 17em;
    width: 19em;
}

.c2f{
    padding: 0em 2em 0 2em;
}

.c3f{
    display: flex;
}

.c4f{
    margin: 1em 1em 1em 1em;
}

.c5f{
    list-style: none;
    display: flex;
    margin: 1em;
}

.c6f{
    padding: 0 1em 0 1em;
    margin: 0;
}

footer{
    background-image:  url("../img/otrosi/footerimg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 1.7px solid rgba(231,76,61,1) !important;
    box-shadow: 0em -0.2em 0.3em rgba(0, 0, 0, 0.2);
    z-index: 1;
    color: #000000;
}

.borde-arriba{
    border-top: 1.5px solid #001f3f !important;
}

.borde-abajo{
    border-bottom: 1.5px solid #001f3f !important;
}

.footer-link-active {
    font-weight: bold !important;
}

/*------------------------------------------------RESPONSIVIDAD-------------------------------------------------*/

@media (min-width: 1400px) {
  .imagen-card {
    width: 19em;
    height: 29em;
  }

  .textocard {
    font-size: 24px;
  }

  .apartado4h1 {
    max-width: 90%;
    gap: 30px;
  }

  .apartado4ht {
    padding: 30px;
  }

  .apartado4ht .icono {
    width: 80px;
    height: 80px;
  }

  .apartado4ht.open .contenido {
        max-height: 220px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.3rem;
    }

    .apartado2h {
        padding: 4em 10em;
        align-items: center;
    }

    .c3img2h {
        width: 32em;
        height: 33em;
    }
}

/*----------------------------------------------------PANTALLA 1200PX---------------------------------------------*/
@media (max-width: 1200px) {
    .hero-content {
        max-width: 600px;
    }

    .apartado2h {
        padding: 3em 4em;
    }

    .c3img2h {
        width: 24em;
        height: 25em;
    }
}

/*--------------------------------------------------PANTALLA 992PX----------------------------------------------*/
@media (max-width: 992px) {
  .apartado4h1 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 95%;
  }

  .apartado4ht {
    padding: 25px;
  }

  .hero {
    justify-content: center;
    padding-left: 0;
    text-align: center;
  }

  .hero-content {
    max-width: 90%;
    transform: translateX(0);
  }

  .hero-content.visible,
  .hero-content.hide {
    transform: translateX(0);
  }

  .apartado2h {
    flex-direction: column;
    padding: 3em 2em;
    gap: 2em;
  }

  .apartado2hp1,
  .apartado2hp2 {
    padding: 0;
    text-align: center;
  }

  .c3img2h {
    width: 100%;
    height: auto;
    max-width: 26em;
  }

  .btnder {
    float: none;
  }

  .header {
    padding: 0 1.5em;
    flex-wrap: wrap;
  }

  .navbar {
    width: 100%;
  }

  .navbar-toggler {
    border: none;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-collapse {
    background: #fff;
    padding: 1em 0;
  }

  .navbar-nav {
    align-items: center;
    gap: 0.5em;
  }

  .navbar-nav .nav-link,
  .navbar-nav .boton-naranja {
    width: 100%;
    text-align: center;
  }

  .titulo2 {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
  }

  .ttexts {
    padding: 1em 0 0 0;
    text-align: center;
  }

  .apartado2s {
    grid-template-columns: repeat(2, 1fr);
    padding: 1em 2em;
  }

   .apartado3sp2 {
    flex-wrap: wrap;
    gap: 2em;
  }
  
  body.bodyservicios .titulo {
    position: relative;
  }

  body.bodyservicios .titulo .imgs {
    height: 14em;
    object-position: center;
  }

  body.bodyservicios .titulo2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

  body.bodyservicios .ttexts {
    padding: 0;
    text-align: center;
  }

  body.bodyservicios .titulo {
    position: relative;
  }

  body.bodyservicios .titulo .imgs1 {
    height: 14em;
    object-position: center;
  }

  body.bodyservicios .titulos1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

   body.bodyservicios .apartado1s1 {
    flex-direction: column;
    padding: 3em 2em;
    text-align: center;
  }

  body.bodyservicios .apartado1s1p1 {
    margin-bottom: 1.5em;
  }

   body.bodyservicios .collage {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 2em 3em;
  }

   body.bodyservicios .apartado2s1 {
    flex-direction: column;
    padding: 3em 2em;
    gap: 2em;
  }

  body.bodyservicios .apartado2s1p1 {
    margin-right: 0;
  }

  body.bodyservicios .apartado2s1 img {
    width: 100%;
    height: auto;
  }

  body.bodyservicios .titulo {
    position: relative;
  }

  body.bodyservicios .titulo .imgs2 {
    height: 14em;
    object-position: center;
  }

  body.bodyservicios .titulos2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

   body.bodyservicios .apartado1s2 {
    flex-direction: column;
    padding: 3em 2em;
    text-align: center;
  }

  body.bodyservicios .apartado1s2p1 {
    margin-bottom: 1.5em;
  }

   body.bodyservicios .collage2 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto; /* 🔑 */
  }

  body.bodyservicios .collage2 img {
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto;
    object-position: center !important;
  }

  body.bodyservicios .collage2 img:nth-child(1),
  body.bodyservicios .collage2 img:nth-child(3),
  body.bodyservicios .collage2 img:nth-child(5) {
    grid-column-start: auto;
  }

  body.bodyservicios .apartado2s2 {
    flex-direction: column;
    padding: 3em 2em;
    gap: 2em;
  }

  body.bodyservicios .apartado2s2p1 {
    margin-right: 0;
  }

  body.bodyservicios .video-s2 {
    width: 100%;
    height: 20em;
  }

  body.bodyservicios .titulo {
    position: relative;
  }

  body.bodyservicios .titulo .imgs3 {
    height: 14em;
    object-position: center;
  }

  body.bodyservicios .titulos3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

  body.bodyservicios .apartado1s3 {
    flex-direction: column;
    padding: 3em 2em;
    text-align: center;
  }

  body.bodyservicios .apartado1s3p1 {
    margin-bottom: 1.5em;
  }

   body.bodyservicios .collage3 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    padding: 0 2em 3em;
  }

  body.bodyservicios .collage3 img {
    grid-row: auto !important;
    height: auto;
    object-position: center !important;
  }

  body.bodyservicios .collage3 img:nth-child(2),
  body.bodyservicios .collage3 img:nth-child(4) {
    grid-row-start: auto;
  }

  body.bodyservicios .apartado2s3 {
    flex-direction: column;
    padding: 3em 2em;
    gap: 2em;
  }

  body.bodyservicios .apartado2s3p1 {
    margin-right: 0;
  }

  body.bodyservicios .apartado2s3 img {
    width: 100%;
    height: auto;
  }

  body.bodyservicios .titulo {
    position: relative;
  }

  body.bodyservicios .titulo .imgs4 {
    height: 14em;
    object-position: center;
  }

  body.bodyservicios .titulos4 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

   body.bodyservicios .apartado1s4 {
    flex-direction: column;
    padding: 3em 2em;
    text-align: center;
  }

  body.bodyservicios .apartado1s4p1 {
    margin-bottom: 1.5em;
  }

   body.bodyservicios .collage4 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto; /* 🔑 */
    padding: 0 2em 3em;
  }

  body.bodyservicios .collage4 img {
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto;
    object-position: center !important;
  }

  body.bodyservicios .collage4 img:nth-child(2),
  body.bodyservicios .collage4 img:nth-child(5),
  body.bodyservicios .collage4 img:nth-child(7) {
    grid-column-start: auto;
  }

  body.bodyservicios .apartado2s4 {
    flex-direction: column;
    padding: 3em 2em;
    gap: 2em;
  }

  body.bodyservicios .apartado2s4p1 {
    margin-right: 0;
  }

  body.bodyservicios .apartado2s4 img {
    width: 100%;
    height: auto;
  }

  body.bodyservicios .titulo {
    position: relative;
  }

  body.bodyservicios .titulo .imgs5 {
    height: 14em;
    object-position: center;
  }

  body.bodyservicios .titulos5 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

  body.bodyservicios .apartado1s5 {
    flex-direction: column;
    padding: 3em 2em;
    text-align: center;
  }

  body.bodyservicios .apartado1s5p1 {
    margin-bottom: 1.5em;
  }

   body.bodyservicios .collage5 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    padding: 0 2em 3em;
  }

  body.bodyservicios .collage5 img {
    grid-row: auto !important;
    height: auto;
    object-position: center !important;
  }

  body.bodyservicios .collage5 img:nth-child(1),
  body.bodyservicios .collage5 img:nth-child(3) {
    grid-row-start: auto;
  }

   body.bodyservicios .apartado2s5 {
    flex-direction: column;
    padding: 3em 2em;
    gap: 2em;
  }

  body.bodyservicios .apartado2s5p1 {
    margin-right: 0;
  }

  body.bodyservicios .titulo {
    position: relative;
  }

  body.bodyservicios .titulo .imgs6 {
    height: 14em;
    object-position: center;
  }

  body.bodyservicios .titulos6 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

  body.bodyservicios .apartado1s6 {
    flex-direction: column;
    padding: 3em 2em;
    text-align: center;
  }

  body.bodyservicios .apartado1s6p1 {
    margin-bottom: 1.5em;
  }

   body.bodyservicios .collage6 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    padding: 0 2em 3em;
  }

  body.bodyservicios .collage6 img {
    grid-column: auto !important;
    grid-row: auto !important;
    height: auto;
    object-position: center !important;
  }

  body.bodyservicios .collage6 img:nth-child(1),
  body.bodyservicios .collage6 img:nth-child(3),
  body.bodyservicios .collage6 img:nth-child(5) {
    grid-column-start: auto;
  }

  body.bodyservicios .apartado2s6 {
    flex-direction: column;
    padding: 3em 2em;
    gap: 2em;
  }

  body.bodyservicios .apartado2s6p1 {
    margin-right: 0;
  }

  body.bodyservicios .apartado2s6 img {
    width: 100%;
    height: auto;
  }

  body.bodynosotros .titulo {
    position: relative;
  }

  body.bodynosotros .titulo .imgn {
    height: 14em;
    object-position: center;
  }

  body.bodynosotros .titulo2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

   body.bodynosotros .contenedorn {
    padding: 3em 2em;
    background-position: center;
  }

  body.bodynosotros .apartado1nimg {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body.bodynosotros .img1n {
    width: 18em;
    height: auto;
    padding: 0;
    margin-bottom: 1.5em;
  }

  body.bodynosotros .apartado1np2 {
    padding: 0 1em 2em;
  }

   body.bodynosotros .apartado2n {
    padding: 2em;
    min-height: auto;
  }

  body.bodycertificaciones .titulo {
    position: relative;
  }

  body.bodycertificaciones .titulo .imgce {
    height: 14em;
    object-position: center;
  }

  body.bodycertificaciones .titulo2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

   body.bodycertificaciones .apartado1ce {
    padding: 3em 2em;
  }

   body.bodycertificaciones .apartado2ce {
    flex-wrap: wrap;
    gap: 2em;
    padding: 0 2em;
  }

  body.bodycertificaciones .cajace {
    width: 45%;
  }

  footer section.d-flex {
    justify-content: center !important;
    text-align: center;
  }

  footer .row {
    justify-content: center;
    gap: 2em;
  }

  footer .col-md-1,
  footer .col-md-2,
  footer .col-md-4 {
    flex: 0 0 45%;
    max-width: 45%;
    text-align: center;
  }

  .logof {
    width: 8em;
    height: auto;
    margin: 0 auto;
    display: block;
  }

   .mapaf {
    width: 100%;
    max-width: 320px;
    height: 220px;
    margin: 0 auto;
    display: block;
  }

  .c3f {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .c5f {
    padding: 0;
    margin: 0.5em 0 0 0;
    justify-content: center;
  }

  .c6f {
    padding: 0 0.5em;
  }

   body.bodycontacto .titulo {
    position: relative;
  }

  body.bodycontacto .titulo .imgc {
    height: 14em;
    object-position: center;
  }

  body.bodycontacto .titulo2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

   body.bodycontacto .c1c {
    grid-template-columns: 1fr;
    padding: 2em;
    gap: 2.5em;
  }

  body.bodycontacto .apartado2c {
    padding: 1.5em;
    text-align: left;
  }

   body.bodycontacto .formulario {
    width: 100%;
    padding: 1.5em;
  }

  body.bodycontacto .apartado3c {
    padding: 0;
  }

   body.bodyesp1 .titulo {
    position: relative;
  }

  body.bodyesp1 .titulo .imge1 {
    height: 14em;
    object-position: center;
  }

  body.bodyesp1 .tituloe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

  body.bodyesp1 .apartado1e1 {
    padding: 3em 2em;
  }

  body.bodyesp1 .apartado2e1 {
    width: 90%;
    height: auto;
    padding: 1.5em 1.2em;
    text-align: center;
  }

  body.bodyesp2 .titulo {
    position: relative;
  }

  body.bodyesp2 .titulo .imge2 {
    height: 14em;
    object-position: center;
  }

  body.bodyesp2 .tituloe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

   body.bodyesp2 .apartado1e2 {
    padding: 3em 2em;
  }

   body.bodyesp2 .apartado2e1 {
    width: 90%;
    height: auto;
    padding: 1.5em 1.2em;
    text-align: center;
  }

   body.bodyesp3 .titulo {
    position: relative;
  }

  body.bodyesp3 .titulo .imge3 {
    height: 14em;
    object-position: center;
  }

  body.bodyesp3 .tituloe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

  body.bodyesp3 .apartado1e3 {
    padding: 3em 2em;
  }

   body.bodyesp3 .apartado2e1 {
    width: 90%;
    height: auto;
    padding: 1.5em 1.2em;
    text-align: center;
  }

   body.bodyesp4 .titulo {
    position: relative;
  }

  body.bodyesp4 .titulo .imge4 {
    height: 14em;
    object-position: center;
  }

  body.bodyesp4 .tituloe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

  body.bodyesp4 .apartado1e4 {
    padding: 3em 2em;
  }

  body.bodyesp4 .apartado2e1 {
    width: 90%;
    height: auto;
    padding: 1.5em 1.2em;
    text-align: center;
  }

   body.bodyservicios .video-s5 {
    width: 100%;
    height: auto;
    max-height: 22em;
  }

  body.bodyservicios .video-s5 img {
    height: auto;
  }

  body.terminoshome .titulo {
    position: relative;
  }

  body.terminoshome .titulo .imgt{
    height: 14em;
    object-position: center;
  }

  body.terminoshome .titulost{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

  body.terminoshome .apartado1t{
    margin: 3em 2em;
    padding: 3em 2.5em 4em;
  }

    
  body.politicashome .titulo{
    position: relative;
  }

  body.politicashome .titulo .imgp{
    height: 14em;
    object-position: center;
  }

  body.politicashome .titulosp{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
  }

  body.politicashome .apartado1p{
    margin: 3em 2em;
    padding: 3em 2.5em 4em;
  }
}

/*------------------------------------------------PANTALLA 576PX-------------------------------------------*/
@media (max-width: 576px) {
  .apartado4h1 {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .apartado4ht {
    padding: 20px;
  }

  .apartado4ht .icono {
    width: 70px;
    height: 70px;
  }

  .hero {
    height: auto;
    padding: 4em 1.5em;
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
    transform: none;
    opacity: 1;
  }

  .hero-content.visible,
  .hero-content.hide {
    transform: none;
    opacity: 1;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .boton-naranja {
    display: inline-block;
    margin-top: 1em;
  }

  .apartado2h {
    padding: 2em 1.5em;
  }

  .c3img2h {
    width: 100%;
    max-width: 100%;
  }

  .apartado2hp2 h2 {
    font-size: 1.6rem;
  }

  .apartado2hp2 p {
    font-size: 0.95rem;
  }

  .boton-naranja {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-top: 1.5em;
  }

  .apartado2s {
    grid-template-columns: 1fr;
    padding: 1em 1.5em;
  }

  .servicio1,
  .servicio2,
  .servicio3,
  .servicio4,
  .servicio5,
  .servicio6 {
    height: auto;
  }

  .apartado3sp2 > div {
    width: calc(50% - 1em);
  }

   body.bodyservicios .titulo .imgs {
    height: 12em;
  }

  body.bodyservicios .titulo2 {
    width: 95%;
  }

  body.bodyservicios .titulo2 h1 {
    font-size: 1.7rem;
  }

  body.bodyservicios .ttexts {
    font-size: 0.95rem;
  }

   body.bodyservicios .titulo .imgs1 {
    height: 12em;
  }

  body.bodyservicios .titulos1 h1 {
    font-size: 1.7rem;
  }

     body.bodyservicios .collage2 {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  body.bodyservicios .collage2 img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  body.bodyservicios .apartado2s1 {
    padding: 2em 1.5em;
  }

  body.bodyservicios .apartado2s1p1 {
    padding: 1.5em;
  }

    body.bodyservicios .titulo .imgs2 {
    height: 12em;
  }

  body.bodyservicios .titulos2 h1 {
    font-size: 1.7rem;
  }

   body.bodyservicios .collage2 {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    padding: 0 1.5em 2em;
  }

  body.bodyservicios .collage2 img {
    grid-column: auto !important;
    height: auto;
  }

  body.bodyservicios .collage2 img:nth-child(1),
  body.bodyservicios .collage2 img:nth-child(3),
  body.bodyservicios .collage2 img:nth-child(5) {
    grid-column-start: auto;
  }

   body.bodyservicios .apartado2s2 {
    padding: 2em 1.5em;
  }

  body.bodyservicios .apartado2s2p1 {
    padding: 1.5em;
  }

  body.bodyservicios .video-s2 {
    height: 10em;
  }

   body.bodyservicios .titulo .imgs3 {
    height: 12em;
  }

  body.bodyservicios .titulos3 h1 {
    font-size: 1.7rem;
  }

  body.bodyservicios .collage3 {
    grid-template-columns: 1fr;
    gap: 1.5em;
    padding: 0 1.5em 2em;
  }

  body.bodyservicios .collage3 img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

   body.bodyservicios .apartado2s3 {
    padding: 2em 1.5em;
  }

  body.bodyservicios .apartado2s3p1 {
    padding: 1.5em;
  }

   body.bodyservicios .titulo .imgs4 {
    height: 12em;
  }

  body.bodyservicios .titulos4 h1 {
    font-size: 1.7rem;
  }

   body.bodyservicios .collage4 {
    grid-template-columns: 1fr;
    gap: 1.5em;
    padding: 0 1.5em 2em;
  }

  body.bodyservicios .collage4 img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  body.bodyservicios .apartado2s4 {
    padding: 2em 1.5em;
  }

  body.bodyservicios .apartado2s4p1 {
    padding: 1.5em;
  }

   body.bodyservicios .titulo .imgs5 {
    height: 12em;
  }

  body.bodyservicios .titulos5 h1 {
    font-size: 1.7rem;
  }

   body.bodyservicios .collage5 {
    grid-template-columns: 1fr;
    gap: 1.5em;
    padding: 0 1.5em 2em;
  }

  body.bodyservicios .collage5 img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  body.bodyservicios .apartado2s5 {
    padding: 2em 1.5em;
  }

  body.bodyservicios .apartado2s5p1 {
    padding: 1.5em;
  }

 body.bodyservicios .titulo .imgs6 {
    height: 12em;
  }

  body.bodyservicios .titulos6 h1 {
    font-size: 1.7rem;
  }

   body.bodyservicios .collage6 {
    grid-template-columns: 1fr;
    gap: 1.5em;
    padding: 0 1.5em 2em;
  }

  body.bodyservicios .collage6 img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  body.bodyservicios .apartado2s6 {
    padding: 2em 1.5em;
  }

  body.bodyservicios .apartado2s6p1 {
    padding: 1.5em;
  }

  body.bodynosotros .titulo .imgn {
    height: 12em;
  }

  body.bodynosotros .titulo2 h1 {
    font-size: 1.8rem;
  }

    body.bodynosotros .contenedorn {
    padding: 2em 1.5em;
  }

   body.bodynosotros .img1n {
    width: 100%;
    max-width: 280px;
  }

  body.bodynosotros .apartado1np2 {
    padding: 0;
  }

  body.bodynosotros .apartado2n {
    padding: 1.5em;
  }

  body.bodycertificaciones .titulo .imgce {
    height: 12em;
  }

  body.bodycertificaciones .titulo2 h1 {
    font-size: 1.8rem;
  }

  body.bodycertificaciones .apartado1ce {
    padding: 2em 1.5em;
  }

   body.bodycertificaciones .apartado2ce {
    flex-direction: column;
    padding: 0 1.5em;
  }

  body.bodycertificaciones .cajace {
    width: 100%;
  }

  body.bodycertificaciones .imgcer {
    max-height: 280px;
    object-fit: contain;
  }

  footer section.d-flex {
    flex-direction: column;
    gap: 0.5em;
  }

  footer .row {
    gap: 1.5em;
  }

  footer .col-md-1,
  footer .col-md-2,
  footer .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }

  .logof {
    width: 9em;
    margin: 0 auto;
  }

  .mapaf {
    width: 100%;
    max-width: 100%;
    height: 200px;
    margin: 0 auto;
  }

  .c3f {
    flex-direction: column;
    gap: 0.5em;
  }

  .c5f {
    flex-direction: column;
    padding: 0;
    margin: 0;
    gap: 0.3em;
  }

  .c6f {
    padding: 0;
  }
  
   body.bodycontacto .titulo .imgc {
    height: 12em;
  }

  body.bodycontacto .titulo2 h1 {
    font-size: 1.8rem;
  }

  body.bodycontacto .c1c {
    padding: 1.5em;
  }

  body.bodycontacto .formulario {
    padding: 1.2em;
  }

  body.bodycontacto .apartado1c {
    padding: 2em 1em 1em;
  }

  body.bodycontacto .apartado1c h4 {
    font-size: 1.1rem;
  }

  body.bodycontacto .horario {
    padding: 0.8em;
    font-size: 0.95rem;
  }

  body.bodyesp1 .titulo .imge1 {
    height: 12em;
  }

  body.bodyesp1 .tituloe h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

   body.bodyesp1 .apartado1e1 {
    padding: 2em 1.5em;
  }

  body.bodyesp1 .apartado2e1 {
    width: 95%;
    padding: 1.2em;
  }

  body.bodyesp1 .apartado2e1 h4 {
    font-size: 1.1rem;
  }

   body.bodyesp2 .titulo .imge2 {
    height: 12em;
  }

  body.bodyesp2 .tituloe h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  body.bodyesp2 .apartado1e2 {
    padding: 2em 1.5em;
  }

   body.bodyesp2 .apartado2e1 {
    width: 95%;
    padding: 1.2em;
  }

  body.bodyesp2 .apartado2e1 h4 {
    font-size: 1.1rem;
  }

   body.bodyesp3 .titulo .imge3 {
    height: 12em;
  }

  body.bodyesp3 .tituloe h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  body.bodyesp3 .apartado1e3 {
    padding: 2em 1.5em;
  }

  body.bodyesp3 .apartado2e1 {
    width: 95%;
    padding: 1.2em;
  }

  body.bodyesp3 .apartado2e1 h4 {
    font-size: 1.1rem;
  }

   body.bodyesp4 .titulo .imge4 {
    height: 12em;
  }

  body.bodyesp4 .tituloe h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  body.bodyesp4 .apartado1e4 {
    padding: 2em 1.5em;
  }

  body.bodyesp4 .apartado2e1 {
    width: 95%;
    padding: 1.2em;
  }

  body.bodyesp4 .apartado2e1 h4 {
    font-size: 1.1rem;
  }
  
    body.bodyservicios .video-s5 {
    width: 100%;
    height: auto;
  }

  body.bodyservicios .video-s5 img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  body.terminoshome .titulo .imgt{
    height: 12em;
    object-position: center;
  }

  body.terminoshome .titulost{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    text-align: center;
  }

  body.terminoshome .titulost h1{
    font-size: 1.7rem;
    line-height: 1.2;
  }

  body.terminoshome .apartado1t{
    margin: 2em 1.5em;
    padding: 2em 1.5em 3em;
    border-radius: 1.5em;
  }

  body.terminoshome .apartado1t::before,
  body.terminoshome .apartado1t::after{
    width: 18em;
    height: 18em;
    opacity: 0.35;
  }

  body.politicashome .titulo .imgp{
    height: 12em;
    object-position: center;
  }

  body.politicashome .titulosp{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    text-align: center;
  }

  body.politicashome .titulosp h1{
    font-size: 1.7rem;
    line-height: 1.2;
  }

  body.politicashome .apartado1p{
    margin: 2em 1.5em;
    padding: 2em 1.5em 3em;
    border-radius: 1.5em;
  }

  body.politicashome .apartado1p::before,
  body.politicashome .apartado1p::after{
    width: 18em;
    height: 18em;
    opacity: 0.35;
  }
}

/*----------------------------------------------PANTALLA 400PX----------------------------------------*/
@media (max-width: 400px) {

  .apartado3sp2 > div {
    width: 100%;
  }

}

