/* ==================== RESET ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: #ffffff;
  color: #fff;
  padding-top: var(--nav-h);
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

:root {
  --nav-h: 90px;
}

html,
body {
  overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  /* 👈 margen superior */
  left: 0;
  width: 100vw;
  height: var(--nav-h);
  /* 👈 más alto que 80px */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .75rem;
  background: linear-gradient(90deg,
      rgba(1, 66, 22, 0.6),
      rgba(45, 116, 68, 0.6),
      rgba(8, 182, 48, 0.6));
  z-index: 1000;
  /*border-radius: 0 0 12px 12px; /* 👈 opcional: redondeo abajo */
  /*backdrop-filter: blur(6px);   /* 👈 opcional: efecto glass */
}

.nav__brand {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: .5rem;
}

.logo {
  width: 160px;
  height: 90;
  margin: 0;
  display: flex;
  /* eliminamos margin-right para no forzar salto */
}

.nav__title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

/* ----- Links ----- */

.links {
  display: flex;
  gap: 2rem;
  margin: 0 2rem;
}

.links a {
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  position: relative;
}

/* Rayita debajo */
.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 3px;
  background: #11a051;
  transition: width .3s ease;
  /* box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); /* efecto flotante */
}

/* Hover efecto */
.links a:hover {
  background-color: #ffffff;
  -webkit-background-clip: text;
  /* necesario para Chrome, Edge, Safari */
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* fallback estándar */
  transition: all 0.3s ease;
}

.links a:hover::after {
  width: 100%;
}

/* ==================== BOTÓN CONTACTO ==================== */
.action_btn {
  background: #065c20;
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: .3s ease;
}

.action_btn:hover {
  background: #11a051;
  transform: scale(1.05);
}

.toggle_btn {
  display: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  margin-right: 2rem;
}

.dropdown_menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  display: none;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(90deg,
      rgba(1, 66, 22, 0.6),
      rgba(45, 116, 68, 0.6),
      rgba(8, 182, 48, 0.6));
}

.dropdown_menu.open {
  display: flex;
}

.dropdown_menu li {
  text-align: center;
}

.dropdown_menu a {
  color: #fff;
  font-size: 1.2rem;
}

@media(max-width: 1430px) {

  .links,
  .action_btn {
    display: none;
  }

  .toggle_btn {
    display: block;
  }
}



/* ==================== GALERÍA ==================== */
main {
  padding: 24px 20px;
}

.gallery {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, 1fr);
}

.card {
  grid-column: span 4;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.card img {
  width: 100%;
  height: 100%;
  /*  ahora la imagen ocupa toda la tarjeta */
  max-height: 380px;
  /*  más grande que antes (260px) */
  object-fit: cover;
  /*  se ajusta sin deformarse */
  display: block;
  transition: transform .35s;
}

.card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55));
  color: #fff;
}

.card:hover img {
  transform: scale(1.05);
  transition: .35s;
}

@media(max-width:960px) {
  .card {
    grid-column: span 12
  }

  .card img {
    height: 180px
  }
}

@media(max-width:640px) {
  .card {
    grid-column: span 12
  }

  .card img {
    height: 120px
  }
}

@media (max-width: 768px) {
  .nav__title {
    font-size: 1.6rem;
    /* un poco más pequeño en tablets */
  }
}

@media (max-width: 480px) {
  .nav__title {
    font-size: 0.9rem;
    /* aún más pequeño en móviles */
  }
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  display: none;
  place-items: center;
  z-index: 2000;
}

.lightbox.open {
  display: grid;
}

.lightbox .frame {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  /* 👈 elimina márgenes que achican la img */
}

.lightbox img {
  max-width: 95vw;
  /* casi todo el ancho */
  max-height: 95vh;
  /* casi todo el alto */
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

/* Botones */
.lightbox .close,
.lightbox .nav {
  position: absolute;
  top: 10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(9, 233, 9, 0.65);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.lightbox .close {
  right: 10px;
}

.lightbox .prev {
  left: 10px;
  bottom: 10px;
  top: auto;
}

.lightbox .next {
  right: 10px;
  bottom: 10px;
  top: auto;
}

.lightbox .caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 68px;
  font-size: 14px;
  color: #fff;
}


/* FOOTER */
footer {
  max-width: 1100px;
  margin: 30px auto 60px;
  padding: 0 20px;
  color: #333;
  font-size: 13px;
  text-align: center;
}

#lb-img {
  display: block !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}