:root {
  --bg-dark: #121212;
  --bg-card: #1c1c1c;
  --bg-light: #2a2a2a;
  --text-main: #f0f0f0;
  --text-muted: #b0b0b0;
  --border-color: #333333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navegación */
.navbar {
  background-color: #000;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../img/hero-bh.jpg') center/cover no-repeat;
  filter: grayscale(100%);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 0.8rem 1.8rem;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn:hover {
  background: #ccc;
}

/* Galería */
.section {
  padding: 4rem 0;
}

.section-title {
  display: block;
  width: fit-content;
  margin: 0 auto 2rem;
  text-align: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.4s, filter 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%); /* Opcional: revela el color original al pasar el mouse */
}

.overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  width: 100%;
  padding: 0.8rem;
  text-align: center;
  color: var(--text-main);
}

/* Footer & Redes */
.footer {
  background-color: #080808;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.3s;
  line-height: 1;
  font-size: 18px;
}

.social-links a:hover {
  background: #555;
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  font-size: 0.9rem;
}

/* Modal Lightbox */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 4px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Responsive Menu */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background: #000;
    padding: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* Layout de Contacto y Mapa */
.contacto-section {
  background-color: #161616;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.info-card {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.info-card h3 {
  font-size: 1.6rem;
  color: #ffffff;
}

.sub-nombre {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.info-item i {
  font-size: 1.2rem;
  color: #ffffff;
  margin-top: 0.2rem;
}

.info-item a {
  color: var(--text-main);
  text-decoration: none;
}

.info-item a:hover {
  text-decoration: underline;
}

/* Botón directo a Google Maps */
.btn-mapa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: #000000;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin: 1rem 0 2rem 0;
  transition: background-color 0.3s;
}

.btn-mapa:hover {
  background-color: #cccccc;
}

/* Sección de Redes Sociales */
.redes-sociales h4 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s, color 0.3s;
}

.social-btn:hover {
  background-color: #444444;
  color: #ffffff;
}

/* Contenedor e integración del Mapa iframe en escala de grises */
.mapa-container {
  height: 600px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.mapa-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  filter: grayscale(100%) invert(90%) contrast(90%); /* Aplica estilo oscuro/gris al mapa */
  transition: filter 0.3s;
}

.mapa-container:hover iframe {
  filter: grayscale(0%); /* Muestra el mapa a color al pasar el cursor */
}

/* Adaptación a dispositivos móviles */
@media (max-width: 768px) {
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  
  .mapa-container {
    height: 300px;
  }
}
/* Restablecer estilos base para los botones del modal */
.modal button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 2010;
}

/* Mejora del botón cerrar existente */
.close-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2.5rem;
  font-weight: bold;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #bbb;
}

/* Botones de navegación (Anterior / Siguiente) */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  padding: 15px; /* Área de toque amplia para móviles */
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  user-select: none;
  transition: background-color 0.3s, color 0.3s;
}

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Clase para bloquear el scroll del body cuando el modal está abierto */
.no-scroll {
  overflow: hidden;
}

/* Ajustes responsivos para móviles */
@media (max-width: 768px) {
  .nav-btn {
    font-size: 1.5rem;
    padding: 10px;
  }
  .close-modal {
    top: 10px;
    right: 15px;
    font-size: 2rem;
  }
}
