/* =========================================================
   RESET BÁSICO
========================================================= */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

/* =========================================================
   HEADER / NAVBAR
========================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: brown;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
  margin-top: -29px;
  margin-bottom: -31px;
}

/* Logo móvil */
@media (max-width: 480px) {
  .logo-img {
    width: 60px;
    height: 60px;
  }
}

/* =========================================================
   NAV DESKTOP
========================================================= */
nav {
  display: flex;
  z-index: 1100;
}

#navMenu {
  gap: 15px;
  align-items: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
}

/* BOTÓN WHATSAPP EN MENÚ */
.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* =========================================================
   NAV MOBILE
========================================================= */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: brown;
    flex-direction: column;
    display: none;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 0;
    padding: 15px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
}

/* =========================================================
   SLIDER / CARRUSEL
========================================================= */
.slider {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  z-index: 1;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* CONTENIDO SLIDE */
.slide-content {
  position: absolute;
  bottom: 20%;
  left: 10%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 30px;
  max-width: 500px;
  border-radius: 5px;
}

.slide-content h1 {
  margin: 0 0 10px;
  color: #fff;
}

.slide-content p {
  margin: 0;
  font-size: 18px;
}

/* CONTROLES */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover,
.next:hover {
  background: rgba(0,0,0,0.8);
}

/* SLIDER MOBILE */
@media (max-width: 768px) {
  .slider {
    height: 65vh;
    min-height: 400px;
  }

  .slide-content {
    left: 5%;
    right: 5%;
    bottom: 15%;
  }
}

/* =========================================================
   CONTENIDO GENERAL
========================================================= */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 40px 0;
}

h1, h2, h3 {
  color: #1f3c88;
}

.titulo-centrado {
  text-align: center;
}

.contenedor {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  gap: 30px;
  padding: 0 20px;
}

.bloque {
  flex: 1;
}

.texto p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.mapa iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
}

/* CONTENIDO MOBILE */
@media (max-width: 768px) {
  .contenedor {
    flex-direction: column;
  }

  .mapa iframe {
    min-height: 300px;
  }
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  background: #1f3c88;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* =========================================================
   WHATSAPP FLOAT
========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}







/* ===== MENÚ BASE ===== */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu a {
  color: white;
  text-decoration: none;
  padding: 10px 12px;
  display: block;
}

/* ===== SUBMENÚ ===== */
.has-submenu {
  position: relative;
}

.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: brown;
  min-width: 200px;
  display: none;
  padding: 0;
  margin: 0;
  z-index: 1200;
}

/* SUB-SUBMENÚ */
.submenu .submenu {
  left: 100%;
  top: 0;
}

/* HOVER DESKTOP */
@media (min-width: 769px) {
  .has-submenu:hover > .submenu {
    display: block;
  }
}

/* LINKS */
.submenu a {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
  }

  .submenu {
    position: static;
    display: none;
  }

  .has-submenu.open > .submenu {
    display: block;
  }
}



.logo-img {
  display: block;                /* Necesario para que margin funcione */
  margin: 20px auto;             /* Centra horizontalmente + espacio arriba/abajo */
  width: 200px;                  /* O el tamaño que quieras */
  height: auto;
}
















/* ===== GALERÍA ===== */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.galeria-item {
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  background: #fff;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Hover bonito */
.galeria-item:hover img {
  transform: scale(1.1);
}

/* Mobile */
@media (max-width: 600px) {
  .galeria {
    padding: 20px;
    gap: 15px;
  }
}






/* ===== GALERÍA AUTOMÁTICA ===== */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

.galeria-item {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.galeria-item:hover img {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 600px) {
  .galeria {
    padding: 20px;
    gap: 15px;
  }
}


.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}
