*{
  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: 22px;
  background: none;
  border: 2px solid #d6e8f0;
  border-radius: 8px;
  color: #5a8ba0;
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.hamburger:hover,
.hamburger.is-open {
  background: #d6e8f0;
  color: #5a8ba0;
}

.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;
}

/* ── Drawer ── */
.popup-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: white;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 28px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.popup-menu.open {
  transform: translateX(0);
}

/* ── Drawer header (injected by JS) ── */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 2px solid #d6e8f0;
  background: white;
  position: sticky;
  top: 0;
  z-index: 1;
}
.drawer-logo {
  height: 38px;
  width: auto;
}
.drawer-close {
  background: none;
  border: 2px solid #d6e8f0;
  border-radius: 8px;
  color: #83A8BB;
  font-size: 16px;
  cursor: pointer;
  padding: 5px 9px;
  line-height: 1;
  transition: background 0.2s;
}
.drawer-close:hover {
  background: #d6e8f0;
}

/* ── Drawer nav links ── */
.popup-content {
  flex: 1;
  padding: 10px 0 24px;
}
.popup-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.popup-content li {
  margin: 0;
}
.popup-content a {
  display: flex;
  align-items: center;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Ysabeau SC', sans-serif;
  color: #2d3748;
  text-decoration: none;
  border-bottom: 1px solid #f0f6f9;
  transition: background 0.18s, color 0.18s, padding-left 0.18s;
}
.popup-content a:hover {
  background: #f0f6f9;
  color: #5a8ba0;
  padding-left: 30px;
}

/* "Reservar" CTA link */
.popup-content a.nav-cta {
  margin: 16px 20px 0;
  background: #83A8BB;
  color: white;
  border-radius: 10px;
  border-bottom: none;
  justify-content: center;
  padding: 13px 24px;
  box-shadow: 0 4px 12px rgba(131, 168, 187, 0.4);
}
.popup-content a.nav-cta:hover {
  background: #5a8ba0;
  color: white;
  padding-left: 24px;
}

/* 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: flex;
    align-items: center;
    justify-content: center;
  }

  .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;
  }
}