html {
  scroll-behavior: smooth;
}

:root {
  --primary-blue: #164275;
  --secondary-blue: #84b6d9;
  --text-dark: #333;
  --text-light: #fff;
  --bg-gray: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: var(--text-dark);
}

/* --- HEADER --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  background: #fff;

  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 800px) {
  header {
    padding: 15px;
    height: 54px;
  }
  header nav {
    width: 100%;
  }
  header nav ul {
    gap: unset;
    justify-content: space-between;
  }
  .logo {
    display: none;
  }
  #nuestras-instalaciones.instalaciones {
    padding: 20px 10%;
  }
  #nuestras-instalaciones.instalaciones,
  #servicios.servicios-wrapper,
  #contacto.reservas {
    scroll-margin-top: 54px;
  }
  .servicios-container {
    flex-direction: column;
    gap: 10px;
  }
  .servicios-container .servicio-item img {
    margin-bottom: unset;
  }
  .servicios-container .servicio-item img:hover {
    transform: none;
  }
  .reservas {
    padding: 20px 10% !important;
  }
  #contacto .reservas-title {
    margin-bottom: unset;
  }
  #contacto .contact-info {
    flex-direction: column;
    gap: 10px;
    margin: 15px 0px;
  }

  footer.footer-map .map-container {
    display: none;
  }
}

.logo img {
  height: 80px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.1s ease-in;
}

nav a:hover {
  transform: scale(1.2);
}

/* --- HERO SECTION --- */
.hero {
  /* REEMPLAZAR URL DE FONDO DEL HERO AQUÍ */
  background-image: url('images/banner.jpg');
  background-size: cover;
  background-position: center;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10%;
  color: var(--text-light);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
}

/* --- INSTALACIONES --- */
.instalaciones {
  padding: 50px 10%;
  text-align: center;
  scroll-margin-top: 114px;
}

.section-title {
  color: var(--primary-blue);
  margin-bottom: 40px;
  font-size: 1.8rem;
}

.inst-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.inst-text h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.inst-text ul {
  list-style-position: inside;
  line-height: 1.8;
  font-size: 0.9rem;
}

.inst-image {
  position: relative;
}

.inst-image img {
  width: 400px;
  height: auto;
  border-radius: 5px;
  /* REEMPLAZAR URL DE IMAGEN DE COCINA AQUÍ */
}

.whatsapp-icon {
  position: fixed;
  top: 50%;
  right: 1%;
  background: #25d366;
  color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 29px;
  text-decoration: none;
  z-index: 10;
}

.whatsapp-icon:hover {
  transform: scale(1.2);
}

.dots {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  color: var(--secondary-blue); /* Círculo inactivo */
  transition: color 0.3s ease;
}

.dot-btn.active {
  color: var(--primary-blue); /* Círculo activo */
}

.dot-btn:focus {
  outline: none;
}

/* --- SERVICIOS --- */
.servicios-wrapper {
  position: relative;
  background-color: var(--secondary-blue);
  margin-top: 50px;
  scroll-margin-top: 114px;
}

.wave {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-top {
  top: -45px;
}
.wave-bottom {
  bottom: -45px;
  transform: rotate(180deg);
}

.wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

.wave .shape-fill {
  fill: var(--secondary-blue);
}

.servicios {
  padding: 40px 10%;
  text-align: center;
  color: white;
  background-image: url(images/bienvenidos.jpg);
  background-position: center;
  background-size: cover;
}

.servicios-overlay {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.servicios-overlay h2 {
  padding-top: 15px;
}

.servicios-container {
  display: flex;
  justify-content: space-around;
  margin: 0px auto 0;
  padding: 30px 20px;
}

.servicio-item img {
  max-width: 250px;
  height: auto;
  object-fit: cover;
  border-radius: 20px 20px 20px 20px;
  margin-bottom: 15px;
}

.servicio-item img:hover {
  transform: scale(1.2);
}

.servicio-item h4 {
  font-weight: 600;
  letter-spacing: 1px;
}

/* --- RESERVAS --- */
.reservas {
  padding: 80px 10% 50px;
  text-align: center;
  scroll-margin-top: 114px;
}

.reservas-title {
  color: var(--primary-blue);
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-bottom: 40px;
  color: var(--primary-blue);
  font-weight: 600;
}

.contact-info i {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

.contact-info a {
  color: unset;
  text-decoration: none;
}

.contact-info a:hover {
  transform: scale(1.2);
}

.form-container p {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.full-width {
  grid-column: 1 / -1;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.input-group label span {
  color: red;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #fafafa;
  border-radius: 3px;
}

.btn-enviar {
  background-color: #333;
  color: white;
  padding: 10px 30px;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  border-radius: 3px;
}

/* --- GALERIA MEDIA --- */
.galeria-media {
  text-align: center;
  padding: 20px 10% 60px;
}

.galeria-media img {
  max-width: 70%;
  height: auto;
  border-radius: 20px;
}

.galeria-media img:hover {
  transform: scale(1.2);
}

/* --- FOOTER MAPA --- */
.footer-map {
  background-image: url('images/kiosko.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
}

.footer-overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 50px 10%;
  display: flex;
  justify-content: center;
}

.footer-info {
  flex: 1;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  font-size: 0.8rem;
}

.info-grid h4 {
  margin-bottom: 5px;
  color: #ddd;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-icons a {
  background: white;
  color: #333;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 3px;
}

.map-container {
  flex: 1;
  max-width: 500px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
}

/* --- BOTTOM BAR --- */
.bottom-bar {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.8rem;
}

/* --- */
/* Cuadrícula de miniaturas (2 columnas, 2 filas) */
.inst-gallery-container {
  position: relative;
  width: 400px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.thumb-grid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.thumb-grid img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* Ajuste del botón flotante de WhatsApp sobre la cuadrícula */
.inst-gallery-container .whatsapp-icon {
  position: fixed;
  top: 50%;
  right: 1%;
  z-index: 10;
}

/* --- VENTANA MODAL (LIGHTBOX) --- */
.lightbox {
  display: none; /* Oculta por defecto */
  position: fixed;
  z-index: 9999; /* Por encima de todo, incluyendo el header fijo */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Fondo negro translúcido */
  justify-content: center;
  align-items: center;
}

/* Imagen ampliada */
.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 5px;
  animation: zoomIn 0.3s ease;
}

/* Botón de cierre (X) */
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.lightbox-close:hover {
  color: var(--secondary-blue);
}

/* Animación de apertura suave */
@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
