:root{
    --azul: #0619A4;
    --azul-oscuro: #020942;
    --blanco: #FFF;
    --celeste: #A4F4FF;
}

* {
    padding: 0;
    margin: 0;
}
  
html {
    font-size: 62.5%; /* 1rem = 10px */
    box-sizing: border-box; /* CSS Box Model */
  }
  
  *,
  *:before,
  *:after {
    box-sizing: inherit; /* CSS Box Model */
  }
  
body {
    font-size: 16px; /* 1rem = 10px */
    font-family: 'Montserrat', sans-serif; /* Font-family general de la página. */
  }
  
img {
    max-width: 100%;
  }

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--azul);
    color: var(--blanco);
    padding: 1rem 0;
  }

header img{
  display: none;
  padding: 1rem 2rem;
}

header source{
  width: 30rem;
  height: 30rem;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    font-size: 1.3rem;
  }

 a {
    color: var(--blanco);
    text-decoration: none;
  }

.webp .portada {
  background-image: url(../img/portada.webp);
  }
  
.no-webp .portada {
  background-image: url(../img/portada.jpg);
  }
  
.portada{
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    height: 52rem;
    color: var(--blanco); 
}

.portada section{
  /*  background-color: rgba(0,0,0,0.7);*/
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
  }

.portada section img{
    width: 20rem;
    height: 20rem;
}
/*
h1{
  font-weight: 400;
  line-height: 3rem;
  font-size: 1.5rem;
  margin-left: 3rem;
  margin-right: 3rem;
  margin-top: 2rem;
  text-align: center;
  max-width: 100rem;
}*/

.descrip{
  color: var(--blanco);
  background-color: var(--azul);
  padding: 0 2rem 2rem 2rem;
  text-align: center;
}

.descrip div{
  padding: 5rem 4rem;
  border-bottom: 1px solid #CCC;
  margin: 0 3rem;
}

.descrip div:last-of-type{
  border-bottom: none;
}

h3{
  color: var(--celeste);
  font-weight: bold;
  margin-bottom: 1rem;
}

.servicios {
  padding: 6rem 0;
  text-align: center;
  background: rgba(250,250,250,1);
  background: -moz-linear-gradient(-45deg, rgba(250,250,250,1) 0%, rgba(237,237,237,1) 64%, rgba(214,214,214,1) 100%);
  background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(250,250,250,1)), color-stop(64%, rgba(237,237,237,1)), color-stop(100%, rgba(214,214,214,1)));
  background: -webkit-linear-gradient(-45deg, rgba(250,250,250,1) 0%, rgba(237,237,237,1) 64%, rgba(214,214,214,1) 100%);
  background: -o-linear-gradient(-45deg, rgba(250,250,250,1) 0%, rgba(237,237,237,1) 64%, rgba(214,214,214,1) 100%);
  background: -ms-linear-gradient(-45deg, rgba(250,250,250,1) 0%, rgba(237,237,237,1) 64%, rgba(214,214,214,1) 100%);
  background: linear-gradient(135deg, rgba(250,250,250,1) 0%, rgba(237,237,237,1) 64%, rgba(214,214,214,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fafafa', endColorstr='#d6d6d6', GradientType=1 );
}

.servicios_titulo{
  margin: 4rem 0 2.5rem 0;
  font-weight: bold;
  color: #4D4D4D;
}

.servicios_items{
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 3rem;
}

.obsoc{
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 3rem;
  list-style-type: none;
}

.obsoc span{
  color:#000;
  font-weight: bold;
  padding: 0.5rem 2rem;
  background-color: var(--celeste);
  border-radius: 4rem 1rem;
  font-size:1.2rem;
}

.item{
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
  align-items: center;
  justify-content: center;
  height: 15rem;
  width: 15rem;
  margin: auto;
  padding: 2rem 2rem;
  border-radius: 2rem;
  -webkit-box-shadow: 0px 0px 36px -11px rgba(92,92,92,0.34);
  -moz-box-shadow: 0px 0px 36px -11px rgba(92,92,92,0.34);
  box-shadow: 0px 0px 36px -11px rgba(92,92,92,0.34);
  background-color: var(--blanco);
  color:#000;
}

.tres{
  grid-column: 1 / 3;
}

h2, h1{
  border-bottom: 3px solid var(--celeste);

  display: inline-block;
}

.nosotros{
  color: var(--blanco);
  background-color: var(--azul);
  text-align: center;
  padding: 4rem 6rem 0rem 6rem;
}

.nuestro_centro{
  background-color: var(--azul);
  color: var(--blanco);
}
.nuestro_centro_descrip{
  padding: 6rem 6rem 6rem 4rem;
}

.nuestro_centro_descrip p{
  color: var(--celeste);
  font-weight: bold;
  margin-top: 4rem;
}

ul{
  margin-top:3rem;
  /*margin-left: 1.5rem; */
  color: var(--celeste);
}

.obsoc ul{
  margin-left: 0;
}

li{
  margin-top: 3rem;
}

li span{
  color: var(--blanco);
}

x-carousel{
	display: block;
	position: relative;
}

x-carousel .x-carousel-content{
    display: flex;
		flex-direction: row;
		scroll-snap-type: x mandatory;
		overflow-x: hidden;
		overflow-y: hidden;
		scrollbar-width: none;
    width:100%;
    height: 100%;
}

.page
{
  width: 100%;
  height: 80vh;
  position: relative;
  object-fit: scale-down;
  background-size: cover;
  background-position: center;
}

.background {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit:cover;
}

.contacto{
  background-color: var(--azul-oscuro);
  padding: 3rem 3rem 0 3rem;
  color: var(--blanco);
}

.contacto h2{
  border: none;
  margin-bottom: 2rem;
}

.contacto_item{
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contacto_item p{
  display: inline;
  margin-left: 1rem;
}

.map {
  padding: 3.2rem 0 0 0;
  position: relative;
  min-height: 30rem;
}

#map {
  width: "calc(100% - 32px)";
  height: 85%;
  background-color: #CCC;
 /* margin-bottom: -64px;*/
  position: absolute;
}

 /*

.whatsapp{
  height: 8rem;
  width: 8rem;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
}
*/

/* Estilos del botón flotante */
    #whatsapp-button {
      position: fixed;
      bottom: 2rem;/*20px; */
      right: 2rem;
      background-color: #25D366;
      color: white;
      border: none;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      font-size: 30px;
      cursor: pointer;
      z-index: 1000;
    }

    /* Estilos del menú desplegable */
    #whatsapp-options {
      display: none;
      position: fixed;
      bottom: 90px;
      right: 20px;
      background-color: white;
      border: 1px solid #ccc;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      z-index: 999;
    }

    .whatsapp-option {
      padding: 12px;
      cursor: pointer;
      border-bottom: 1px solid #eee;
      text-align: left;
    }

    .whatsapp-option:last-child {
      border-bottom: none;
    }

    .whatsapp-option:hover {
      background-color: #f0f0f0;
    }

    .whatsapp-label {
      font-weight: bold;
    }

    .whatsapp-desc {
      font-size: 12px;
      color: #555;
    }
	
	 /*FIN ESTILOS WHATSAPP */
	






hr{
  margin-top: 5rem;
}

x-carousel .x-carousel-content:-webkit-scrollbar{
  width: 0;  /* for vertical scrollbars */
  height: 0; /* for horizontal scrollbars */
}

x-carousel .x-carousel-content:-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

x-carousel .x-carousel-content:-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.5);
}

x-carousel .x-carousel-content > * {
  flex-shrink: 0;
  scroll-snap-align: start;
}

.carousel_picture{
  width:100%;
  height: 100%;
}


.webp .logo_footer {
  background-image: url(../img/logo_footer.webp);
}

.no-webp .logo_footer {
  background-image: url(../img/logo_footer.png);
}

.logo_footer{
  display: none;
  background-size: cover;
  background-repeat: no-repeat;
}

footer{
  background-color: #808080;
  text-align: center;
  color: var(--blanco);
  padding: 0.5rem 0 0.5rem 0;
  font-size: 1rem;
}

footer a{
  text-decoration: underline;
}

@media (min-width: 768px) {

  .obsoc{
    grid-template-columns: 1fr 1fr;
  }

  .obsoc span{
    padding: 0.5rem 3rem;
    font-size: 1.6rem;
  }

  .portada{
    height: 50rem;
    background-position: unset;
  }
  .servicios_items{
    margin: 0 10rem;
  }

  nav a{
    margin: 1rem;
    font-size: 1.6rem;
  }
  
  .nosotros{
    padding: 4rem 12rem 4rem 12rem;
  }
}
@media (min-width: 992px) {
    header{
        flex-direction: row;
        justify-content: space-between;
        padding: 0 4rem;
    }

    header img{
      display: block;
      height: 8rem;
      padding: 0;
    }

    nav{
        width:max-content;
        justify-content: space-between;
        column-gap: 4rem;
    }

    .obsoc{
      grid-template-columns: 1fr 1fr 1fr;
    }

    .portada section{
      padding-top: 0;
      justify-content: center;
    }

    .descrip{
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      padding: 2rem 2rem 5rem 2rem;
    }

    .descrip div{
      border-right: 1px solid #CCC;
      border-bottom: none;
      padding: 2rem 8rem;
      margin: 0;
    }

    .descrip div:last-of-type{
      border-right: none;
    }

    .servicios{
      padding-top: 8rem;
      padding-bottom: 8rem;
    }
    
    .servicios_items{
      text-align: center;
      grid-template-columns: 1fr 1fr 1fr;
    }

    .tres{
      grid-column: unset;
    }

    .item{
      height: 20rem;
      width: 20rem;
      row-gap: 1rem;
    }

    .nuestro_centro{
      display: grid;
      grid-template-columns: 2fr 3fr;
      grid-auto-flow: dense;
    }

    .nuestro_centro_descrip{
      grid-column: 2 / 3;
      padding: 8rem 12rem 8rem 8rem;
    }

    x-carousel {
      grid-column: 1 / 2;
    }

    .contacto{
      display: grid;
      padding: 0;
      grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }

    .map{
      padding: 0;
      grid-column: 4 / 6;
    }

    .logo_footer{
      display: block;
      grid-column: 1 / 2;
      height: 100%;
    }

    .contacto_descrip
    {
      grid-column: 2 / 4;
      padding-left: 5rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    #map{
      height: 100%;
    }

    ul{
      margin-left: 2rem;
    }
}

@media (min-width: 1140px) {
  .servicios_items{
    margin: 0 25rem;
  }

  .logo_footer{
    background-position: right;
  }

  hr{
    display: none;
    margin-top: 0;
  }
}
/*
@media (min-width: 992px) {
  .servicios_items{
    margin: 0 25rem;
  }
}
  */