
/*body*/
body {
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;

  }
/*header*/

header{
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px;
  font-family: 'Roboto', sans-serif;
  
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500; 
 
}

header img{
    height: 110px;
    width: 200px;
}
ul li a:hover{
  background-color: rgb(165, 108, 42);
  color: #f7f7f7;

}
header ul li img{
    height: 10px;
    width: 14px;
    margin-left: 10%;
    margin-top: 5%;
}

nav ul {
  float: right;
  
 
}
  
  nav ul li {
    margin-left: 1rem;
    position: relative;
    display: inline-block;
  }
  
  nav ul li:first-child {
    margin-left: 0;
  }
  
  
  nav ul li a {
    text-decoration: none;
    color: rgb(165, 122, 42);
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 14px; 
    display: inline-block;
    padding: 10px 15px;
    transition: all 0.3s ease;
  }
  
  .checkbtn{
  font-size: 30px;
  color: rgb(165, 122, 42);
  float: right;
  line-height: 80px;
  margin-right: 40px;
  cursor: pointer;
  display: none;
}
#check{
  display: none;
}
@media (max-width: 952px){
  .enlace{
      padding-left: 30px;
  }
  nav ul li a{
      font-size: 12px;
  }
}

@media (max-width: 858px){
  .checkbtn{
      display: block;
  }
  nav ul{
      position: fixed;
      
      background: #f7f7f7;
      top: 96px;
      left: -100%;
      text-align: center;
      transition: all .5s;
      
  }
  nav ul li{
      display: block;
      margin: 20px 0;
      line-height: 20px;
  }
  nav ul li a{
      font-size: 18px;
      color: rgb(165, 122, 42);
  }
  li a:hover, li a.active{
      background: none;
      
  }
  #check:checked ~ ul{
      left:0;
  }
}
/*banner*/

.banner {
    background-image: url('../img/barra1.jpg');
    background-size: cover;
    height: 700px;
    display: flex;
    justify-content: center;
    background-position: center;
    align-items: center;
    color: #f7f7f7;
    
  }

  .linea1{
    background-color: rgb(165, 122, 42);
    height: 7px;
    position: relative;
    bottom: 2.1%;
    
  }
  .linea2{
    max-width: 70%;
  }

  /* DESCRIPCIÓN*/

  .container {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    top: 130px;
    margin-right: 20px;
  }
  
  .text-container {
    flex: 1;
    padding-right: 20px;
    text-align: center;
    position: relative;
    left: 40px;
  }

  .text-container h2{
    margin-bottom: 10px;
  }

  .text-container h3{
    margin-bottom: 40px;
  }

  .text-container h3,h2{
    color: rgb(165, 122, 42);
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  }
  
  .image-container {
    flex: 1;
  }
  
  .image-container img {
    width: 500px;
    height: 300px;
    position: relative;
    left: 40px;
    top: 25px
   
   /* border: solid 5px rgb(165, 122, 42) ;*/
  }
  
  .text-container p {
    font-size: 14px;
  
  }

  .text1{
    margin-bottom: 45px;
  }

  @media screen and (max-width: 768px) {
    .image-container img {
      max-width: 90%;
    }
    .text-container {
     max-width: 80%;  
    }
  }
  /*FOTOS*/
  
  .contenedor-imagenes {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    align-items: center;
    position: relative;
    top: 50px;
   
    margin-bottom: 30%;

  }

  .contenedor-imagenes figure img {
    height: 200px;
    width: 250px;
    transition: all 0.3s ease;
  }

  .contenedor-imagenes figure:hover img {
    transform: scale(0.9);
    
  }

  .gale{
    text-align: center;
    position: relative;
    top: 50px;
  }
  @media (max-width: 768px) {
    .contenedor-imagenes {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
  }

 /*ESPECIALIDADES*/
 .especialidades {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background-color: rgb(165, 122, 42);
  padding: 5%;
}

.especialidades figure {
  flex-basis: 25%;
  max-width: 25%;
  margin-bottom: 20px;
  text-align: center;
}

.especialidades figure img {
  width: 100%;
  height: auto;
  max-height: 200px;
}

.especialidades figure h2 {
  margin-top: 10px;
  color: #f7f7f7;
}

  .esp{
    text-align: center;
   
    color: rgb(165, 122, 42);
    margin-bottom: 10%;
    margin-top: 10%;
  }

  @media screen and (max-width: 768px) {
    .especialidades figure {
      flex-basis: 20%;
      max-width: 20%;
    }
  }
  
  @media screen and (max-width: 480px) {
    .especialidades figure {
      flex-basis: 50%;
      max-width: 100%;
    }
    .esp{
      margin-bottom: 80%;
    }
    
  }
/*CARTA*/
.container {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    align-items: center;
    top: 130px;
    margin-bottom: 30%;
  }
  
  .text-container {
    flex: 1;
    padding-right: 20px;
    text-align: center;
    position: relative;
    left: 40px;
   
  }

  .text-container h2{
    margin-bottom: 10px;
  }

  .image-container2 {
    flex: 1;
  }

  @media (max-width: 480px) {
    .container {
      flex-direction: column;
    }

    .image-container2 {
      margin-top: 0;
    }

    .image-container2 img {
      max-width: 90%;
    }

    .text-container {
     
      max-width: 90%;
    }

    .imagen-con-texto .capa {
      width: 100%; /* Cambiado a un valor relativo */
      height: 100%;
    }
  }

  @media (max-width: 768px) {
    .container {
      flex-direction: column;
    }

    .image-container2 {
      margin-top: 0;
    }

    .image-container2 img {
      max-width: 90%;
    }

    .text-container {
     
      max-width: 90%;
    }

    .imagen-con-texto .capa {
      width: 100%; /* Cambiado a un valor relativo */
      height: 100%;
    }
  }
 
  .image-container2 img {
    width: 500px;
    height: 300px;
    position: relative;
    left: 40px;
    margin-bottom: 10%;
   
   /* border: solid 5px rgb(165, 122, 42) ;*/
  }

  .imagen-con-texto {
    position: relative;
  }
  
  
  .imagen-con-texto img {
    height: 200px;
    width: 90%;
    transition: all 0.3s ease;
  }
  
  .imagen-con-texto:hover img {
   
    display: block;
  }
  
  
  .imagen-con-texto:hover button {
  opacity: 1;
  }
  
  .imagen-con-texto img {
    width: 100%;
    height: auto;
  }
  .imagen-con-texto .capa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Cambiado a un valor relativo */
    height: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .imagen-con-texto:hover .capa {
    display: block;
   
    background-color: rgb(165, 122, 42);
  }
  
  
  .capa-boton {
    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid white;
    padding: 10px 20px;
    background-color: transparent;
    color: white;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  .capa-boton a {
    text-decoration: none;
    color: #f7f7f7;
    }

 /*UBICACION*/
  .ubicacion{
    margin-top: 10%;

  }
  .map-container{
    width: auto;
  }
  .ubicacion h2{
    text-align: center;
    margin-bottom: 5%;
  }

  

  .ubi h2{
   
    color: #f7f7f7;
    text-align: center;


  }

  .telf h2{
   
    color: #f7f7f7;
    text-align: center;

  }
  
  .text-container a{
    color:rgb(165, 122, 42) ;
    text-decoration: none;

  }
  .telf p{
     color: #f7f7f7;
    text-align: center;
  }

  .horario h2{
   
    color: #f7f7f7;
    text-align: center;

  }

  .fot {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    
    background-color: rgb(165, 122, 42);
    
    color: #f7f7f7;
  }
  footer{
      background-color: rgb(165, 122, 42);
      padding: 5px;
      color: #f7f7f7;
   }
  /* Estilos CSS para el footer */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(165, 122, 42);
  padding: 10px;
  color: #f7f7f7;
  

}

.left-content {
  display: flex;
  align-items: center;
  margin-left: 5%;
}

.left-content h3 {
  margin-right: 10px;
}

.redes-sociales {
  list-style: none;
  padding: 10px;
  margin-right: 5%;
  display: flex;
}

.left-content a img{
  width: 24px;
  height: 24px;
}
.redes-sociales li {
  margin-left: 10px;
  
}

.rss-icon {
  display: inline-block;
  width: 24px;;
  height: 24px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.rss-icon:hover {
  background-color: #e0e0e0;
}
