*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: white;
  color: #000000;
  line-height: 1.2;
}

h2 {
  text-align: center;
  font-family: 'Ysabeau Office', sans-serif;
  color: #83A8BB;
  font-size: 40px;
  padding-top: 40px;
  font-weight: 600;
}

html {
  scroll-behavior: smooth;
}

/* barra */
#navbar {
  background-color: white;
  padding: 20px 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#navbar .logo img {
  width: 150px;
}

/* botón menú responsive */
.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: black;
  cursor: pointer;
}

.navlinks ul {
  display: flex;
  list-style: none;
}

.navlinks li {
  margin-left: 30px;
}

.navlinks a {
  color: black;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
  font-family: 'Ysabeau SC', sans-serif;
  font-weight: 600;
}

.navlinks a:hover {
  color: #83A8BB;
}

/* pop-up de menú */
.popup-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  justify-content: center;
  align-items: center;
  display: none;
}

.popup-content {
  background-color: white;
  width: 80%;
  padding: 20px;
  text-align: center;
  border-radius: 0%;
}

.popup-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popup-content li {
  margin: 15px 0;
}

.popup-content a {
  text-decoration: none;
  color: black;
  font-size: 18px;
  font-weight: bold;
}

.popup-content a:hover {
  color: #83A8BB;
}

/* home */
.homepage {
  height: 100vh;
  background-image: url('../../images/home.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
  text-align: center;
  color: #D49573;
}

.homepage h1, .homepage h3 {
  margin: 0;
  padding: 0;
}

.homepage h1 {
  font-size: 50px;
  font-family: 'Ysabeau SC', sans-serif;
  font-weight: 600;
  margin-bottom: -15px;
}

.homepage h3 {
  font-size: 35px;
  font-family: 'Ysabeau Office', sans-serif;
  font-weight: 400;
}

/* iconos */
.iconos {

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  padding-top: 60px;
  justify-items: center;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.iconos img {
  width: 100px;
  height: auto;
}

/* previsualización galería */
.fotos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-top: 60px;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 1000px;
  margin: 0 auto;
}

.fotoizq img {
  width: 610px;
  height: auto;
  border-radius: 15px 0 0 15px;
  transition: opacity 0.3s ease;
}

.fotoizq img:hover {
  opacity: 80%;
}

.fotoder {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-top: -5px;
}

.fotoder img {
  width: 300px;
  height: auto;
  transition: opacity 0.3s ease;
}

.fotoder img:hover {
  opacity: 80%;
}

#abajo {
  border-radius: 0 0 15px 0;
}

#arriba {
  border-radius: 0 15px 0 0;
}

.ver-mas {
  text-align:right;
  margin-top: 15px;
  padding-right: 65px;
}

.btn-ver-mas {
  display: inline-block;
  padding: 10px 20px;
  background-color: #83A8BB;
  color: white;
  text-decoration: none;
  font-size: 14px;
  border-radius: 20px;
  transition: background-color 0.3s;
}

.btn-ver-mas:hover {
  background-color: rgb(7, 119, 163);
}

/* blog */
.prevblog {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 80px;
  padding-top: 30px;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 30px;
}

 .prevblog img {
  width: 300px;
  height: auto;
 }

.prev {
  width: 300px;
  border: 1px solid #EDDED9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  background-color: #EDDED9;
  transition: transform 0.3s ease;
}

.prev:hover {
  transform: scale(1.1);
}

.previmg img {
width: 100%;
height: auto;
display: block;
}

.prevtxt {
padding: 20px;
background-color: #F7F2F0;
position: relative;
text-align: center;
}

.prevtxt h4 {
font-size: 20px;
margin-bottom: 10px;
font-family: 'Ysabeau SC', sans-serif;
font-weight: 600;
}

.prevtxt p {
  font-size: 14px;
  color: black;
  margin-bottom: 30px;
}

.readmore {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 8px 15px;
  background-color: #83A8BB;
  color: white;
  text-decoration: none;
  font-size: 14px;
  border-radius: 20px;
  transition: background-color 0.3s;
}

.readmore:hover {
  background-color: rgb(7, 119, 163);
}

/* contacto */
.contacto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.mapa {
  flex: 1;
  margin-right: 20px;
}

.mapa iframe {
  width: 500px;
  height: 300px;
  border: 0;
  border-radius: 15px;
}

.infocontacto {
  flex: 1;
  text-align: right;
}

.infocontacto p {
  font-size: 16px;
  margin: 10px 0;
}

.infocontacto a {
  text-decoration: none;
  color: black;
  transition: color 0.3s;
}

.infocontacto a:hover {
  color: #83A8BB;
}

/* apartado galería */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 60px 0px;
  justify-items: center;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery img {
  width: 300px;
  cursor: pointer;
}

.gallery img:hover {
  opacity: 80%;
}

/* lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox-img {
  max-width: 80%;
  max-height: 80%;
  margin: auto;
  display: block;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.previous,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  border: none;
}

.previous {
  left: 20px;
}

.next {
  right: 20px;
}

/* páginas blogs */
.cabecera {
  padding: 60px 0;
  text-align: center;
  
}

.cabecera img {
  width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.blogtext {
  text-align: justify;
  margin: 0px 200px 60px 200px;
}

/* pie de página */
.footer {
  background-color: #83A8BB;
  color: white;
  text-align: center;
  padding: 15px 0px;
  font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  /* menú */
  #navbar {
    flex-direction: row;
    align-items: center;
  }

  .hamburger {
    display: block;
    color: #000000;
  }

  .navlinks {
    display: none;
  }

  /* home */
  .homepage {
    padding: 10px;
    text-align: center;
    line-height: 1;
  }
  .homepage h1 {
    font-size: 30px;
  }
  .homepage h3 {
    font-size: 20px;
    padding-top: 15px;
  }

  /* iconos */
  .iconos {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .iconos img {
    width: 80px;
  }

  /* prev galería */
  .fotos {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .fotoizq img,
  .fotoder img {
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  #arriba, #abajo {
    border-radius: 0;
  }

  .ver-mas {
    text-align: center;
    padding: 10px 0;
  }

  /* blog */
  .prevblog {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .prev {
    width: 80%;
  }

  /* contacto */
  .contacto {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mapa iframe {
    width: 100%;
    max-width: 400px;
  }

  .infocontacto {
    text-align: center;
    margin-top: 20px;
  }

  /* apartado galería */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gallery img {
    width: 100%;
  }

  /* páginas blogs */
  .blogtext {
    margin: 20px;
    font-size: 16px;
    line-height: 1.5;
  }

  .cabecera img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* pie de página */
  .footer {
    font-size: 12px;
    padding: 10px;
  }
}