/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 2rem 1rem 1rem; 
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: none;
  background: #222;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #444;
}

/* ---- Gallery ---- */
.gallery {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.grid img {
  width: 100%;
  aspect-ratio: 1 / 1; 
  border-radius: 10px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* ---- Responsividad ---- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .grid {
    grid-template-columns: 1fr 1fr; /
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }

  .grid {
    grid-template-columns: 1fr; 
  }
}
