* {
  font-family: 'Ubuntu', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea,
select,
button,
h1 span {
  font-family: 'Open Sans', sans-serif;
  font-weight: 100;
}

ul,
ol {
  list-style: none;
}

a:visited,
a:link,
a:focus,
a:hover,
a:active {
  list-style: none;
  text-decoration: none;
}

.fc-today {
  background: rgba(255, 255, 255, 0) !important;
}

/*============================== HEADER   ===============================*/
header {
  position: fixed;
  top: 0;
  z-index: 3;
}

/*============================ PLANES =========================*/
.planes .grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}

.planes .grid-item {
  position: relative;
  cursor: pointer;
}

.planes .grid-item:nth-child(1) {
  grid-column: 1 / span 3;
}

.planes .grid-item:nth-child(2) {
  grid-column: 4 / span 3;
  height: 320px;
  overflow: hidden;
}

.planes .grid-item:nth-child(3) {
  grid-column: 1 / span 2;
}

.planes .grid-item:nth-child(4) {
  grid-column: 3 / span 2;
}

.planes .grid-item:nth-child(5) {
  grid-column: 5 / span 2;
}

.planes .grid-item figure {
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .7);
  color: white;
}

.planes .grid-item figure h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px !important;
}

/*===========================   HABITACIONES  ============================*/
.habitaciones .row div[class*="col"] figure {
  position: relative;
  overflow: hidden;
}

.habitaciones .row div[class*="col"] figure img {
  transform: scale(1, 1);
  transition: 1s all;
}

.habitaciones .row div[class*="col"] figure img:hover {
  transform: scale(1.1, 1.1);
  transition: 1s all;
}

.habitaciones .row div[class*="col"] figure h1 {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: .3s all;
}

.habitaciones .row div[class*="col"] figure h1:hover {
  filter: invert(100%);
  transition: .3s all;
}

.habitaciones .row div[class*="col"] figure p {
  background: black;
  color: #aaa;
  padding-left: 0;
  padding-right: 0;
}

.habitaciones .row div[class*="col"] figure h3 {
  background: #1C2D51;
}

.habitaciones .row div[class*="col"] figure h5 {
  color: #777;
}

/* Estilos generales para todos los dispositivos */
html {
  scroll-behavior: smooth;
  /* Para un scroll suave */
}

/* Define la altura de tu navbar para escritorio/tablet (ej. 80px) */
/* Asegúrate de que esta variable o el valor directo refleje la altura de tu navbar cuando no está colapsada */
:root {
  --navbar-height-desktop: 80px;
  /* Ajusta esto a la altura real de tu navbar en escritorio */
  --scroll-offset-desktop: calc(var(--navbar-height-desktop) + 15px);
  /* Pequeño espacio extra */
}

/* Aplica el scroll-margin-top para pantallas grandes (escritorio, tablet) */
/* Bootstrap usa 'lg' como breakpoint para ~992px y más grandes */
@media (min-width: 992px) {

  /* Por encima de 992px (típicamente para pantallas de escritorio/tablet) */
  #habitaciones,
  #pueblo,
  #restaurante {
    scroll-margin-top: var(--scroll-offset-desktop);
  }
}

/* Media query para dispositivos móviles (menos de 992px) */
@media (max-width: 991.98px) {

  /* Para pantallas de hasta 991.98px (típicamente móviles y tablets pequeñas) */
  /* Define una altura para tu navbar en móviles (ej. 60px si es más pequeña) */
  /* O simplemente un valor fijo que funcione bien para la mayoría de los móviles */
  :root {
    --navbar-height-mobile: 60px;
    /* Ajusta esto a la altura real de tu navbar en móvil */
    --scroll-offset-mobile: calc(var(--navbar-height-mobile) + 10px);
    /* Espacio extra más pequeño */
  }

  #habitaciones,
  #pueblo,
  #restaurante {
    scroll-margin-top: var(--scroll-offset-mobile);
  }
}

/* OJO: Si tu navbar se expande al hacer click en el botón de hamburguesa,
 el scroll-margin-top no podrá prever esa altura.
 Para ese caso, la solución puede requerir un poco de JavaScript (ver nota abajo). */

/*====================  RECORRIDO PUEBLO ====================*/
.recorridoPueblo .grid-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
}

.recorridoPueblo .grid-item {
  text-align: center;
}


.recorridoPueblo .grid-item:nth-child(1) {
  grid-row: 1 / span 1;
}

.recorridoPueblo .grid-item:nth-child(2) {
  grid-row: 2 / span 1;
}

.recorridoPueblo .grid-item:nth-child(3) {
  grid-row: 1 / span 2;
}


/*===========================  RESTAURANTE  ===========================*/
.fondoRestaurante {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: white;
  background-image: url("../../images/restaurant/restaurant.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.restaurante .grid-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.restaurante .grid-item {
  text-align: center;
  color: white;
}

.restaurante .grid-item:nth-child(2) {
  position: relative;
  z-index: 1;
  top: -60px;
  height: 600px;
  background: #847059;
}

.restaurante .carta div[class*="col"] {
  text-align: center;
}

.restaurante .carta img {
  border: 3px solid white;
}

/*========= SCROLL UP =============================================*/
#scrollUp {
  bottom: 80px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: url(../../images/flecha.jpg);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, background 0.2s;
}

#scrollUp:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  background-color: #14141322;
}

/* Botón flotante de WhatsApp encima del scrollUp */
.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  /* un poco más arriba que #scrollUp */
  right: 25px;
  z-index: 1001;
  background: #25d366;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;
}

.btn-whatsapp:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  background: #1ebe57;
}

/*=============================================
TABLET VERTICAL (MD revisamos en 768px hacia abajo)
=============================================*/

@media (max-width:768px) {

  header .grid-container {
    grid-template-columns: 4fr 1fr;
  }

  .planes .grid-container {
    grid-template-columns: auto;
  }

  .habitaciones .row div[class*="col"] figure p {
    padding-left: 4px;
    padding-right: 4px;
  }

  .recorridoPueblo .grid-container {
    grid-template-columns: 1fr;
  }

  .recorridoPueblo .grid-container h1 {
    font-size: 30px;
  }

  .restaurante .grid-container {
    grid-template-columns: 1fr;
  }

  .restaurante h1 {
    font-size: 30px;
  }

  .restaurante .grid-item:nth-child(2) {
    height: 400px;
    background: rgba(81, 69, 55, .9);
  }


}