/* GLOBAL */
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  color: #111;
}

/* CABECERA */
.hero {
  height: 350px;
  background: url("https://picsum.photos/1600/900?photographer") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3); /* ligera luz sobre imagen */
}

.hero-content {
  position: relative;
  text-align: center;
  color: #111;
}

.hero h1 {
  font-size: 3rem;
  margin: 0;
}

.hero p {
  font-size: 1.3rem;
  margin-top: 10px;
}

/* GRID CATEGORÍAS */
.categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

/* TARJETA CATEGORÍA */
.category-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: #fff;
  height: 250px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card .category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.category-card .category-overlay h2 {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 600;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .category-card { height: 220px; }
  .category-card .category-overlay h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero { height: 250px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.9rem; }
  .category-card { height: 180px; }
  .category-card .category-overlay h2 { font-size: 1.2rem; }
}
