
.hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

/* Texto hero */
.hero-text {
  max-width: 450px;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  background: #222;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn:hover {
  background: #444;
  transform: translateY(-2px);
}

/* ---- Imágenes hero ---- */
.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-images img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-images img:hover {
  transform: scale(1.05);
}

/* Alturas distintas */
.hero-images img:nth-child(1) {
  height: 300px;
}

.hero-images img:nth-child(2) {
  height: 500px;
}

/* ---- Gallery inferior ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
  padding: 0 1rem 3rem;
}

.gallery-item {
  text-align: center;
}

.gallery-item .number {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  color: #888;
  margin-bottom: 0.7rem;
}

.gallery-item img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* ---- Responsivo ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    margin: auto;
  }

  .hero-images {
    grid-template-columns: 1fr; 
  }

  .hero-images img:nth-child(1),
  .hero-images img:nth-child(2) {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 200px;
  }
}
