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

/* VARIABLES */
:root {
  --primary: #22c55e;
  --dark: #020617;
  --glass: rgba(255, 255, 255, 0.08);
  --blur: blur(10px);
}

/* BODY */
body {
  background: linear-gradient(135deg, #020617, #022c22);
  color: white;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* NAV */
.header {
  backdrop-filter: var(--blur);
  background: rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  color: var(--primary);
  font-weight: 700;
}

.btn-back {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.btn-back:hover {
  color: var(--primary);
}

/* TITULO */
.gallery {
  text-align: center;
  margin-top: 50px;
}

.gallery h2 {
  font-size: 2.2rem;
}

.subtitle {
  opacity: 0.7;
  margin-top: 10px;
}

/* GRID GALERÍA */
.grid-gallery {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* CARD */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
}

/* IMAGEN */
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: 0.4s;
}

.overlay p {
  font-size: 0.9rem;
}

/* HOVER EFECTO PRO */
.card:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.card:hover .overlay {
  opacity: 1;
}

/* FOOTER */
.footer {
  margin-top: 80px;
  background: var(--dark);
  padding: 40px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer h3 {
  color: var(--primary);
}

.socials a {
  margin-right: 10px;
  color: white;
  transition: 0.3s;
}

.socials a:hover {
  color: var(--primary);
}

.copy {
  text-align: center;
  margin-top: 20px;
  opacity: 0.6;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .gallery h2 {
    font-size: 1.5rem;
  }
}