/* ---------- GLOBAL ---------- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
}

/* ---------- HEADER ---------- */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #8bfe3f;
  padding: 20px 0;
  gap: 15px;
}

header .logo img {
  max-width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ---------- MENÚ ---------- */
header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center; /* Asegura centrado vertical */
}

header nav a {
  font-size: 0.85rem;
  text-decoration: none;
  color: #222;
  font-weight: bold;
  padding: 3px 6px;
  border: 2px solid #6cc82b;
  border-radius: 8px;
  background-color: #8bfe3f;
  transition: all 0.3s ease;
  display: inline-block;
  line-height: 1;
  text-transform: uppercase;
}

/* Hover de los enlaces del menú */
header nav a:hover,
header nav a:focus {
  background-color: #6cc82b;
  color: #fff;
  border-color: #57941f;
}

/* ---------- BOTÓN INSTAGRAM ---------- */
.btn-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #E1306C;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  border: none;
  box-shadow: 0 2px 6px rgba(225, 48, 108, 0.6);
  transition: background-color 0.3s ease;
  padding: 0;
}

.btn-instagram i {
  display: block;
}

.btn-instagram:hover,
.btn-instagram:focus {
  background-color: #C13584;
  outline: none;
}

/* ---------- IMAGEN INICIO ---------- */
.inicio-img {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.inicio-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- GALERÍA ---------- */
.gallery {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery img {
  width: 30%;
  cursor: pointer;
  border-radius: 8px;
}

/* ---------- FORMULARIO ---------- */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: auto;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 20px;
  background: #8bfe3f;
  font-weight: bold;
}

/* ---------- LIGHTBOX ---------- */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox.hidden {
  display: none;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.8);
}

/* Botón cerrar */
#lightbox #close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: color 0.2s;
}

#lightbox #close:hover {
  color: #ff4444;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  header .logo {
    margin-bottom: 10px;
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
    padding-bottom: 1rem;
    align-items: center; /* centra elementos también en móvil */
  }

  .gallery img {
    width: 90%;
  }
}
