/* Home — hero, búsqueda y categorías */

.page-home .hero {
  /* Compensa padding-top de main para seguir llenando el viewport */
  min-height: calc(min(92svh, 880px) - var(--nav-height, 4.5rem));
  min-height: calc(min(92dvh, 880px) - var(--nav-height, 4.5rem));
  scroll-margin-top: var(--nav-height, 4.5rem);
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 163, 90, 0.08), transparent 55%),
    linear-gradient(180deg, #faf8f5 0%, #ffffff 55%, #ffffff 100%);
}

.page-home .hero .hero-logo img,
.page-home .hero-logo-img {
  max-width: 200px;
  width: 100%;
  height: auto;
}

.page-home .hero-title {
  letter-spacing: 0.04em;
}

.page-home .hero-subtitle {
  max-width: 36rem;
  margin-inline: auto;
}

.page-home .search-section {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
}

.page-home .search-container {
  max-width: 720px;
  margin-inline: auto;
}

.page-home .search-title {
  text-align: center;
  margin-bottom: 1rem;
}

.page-home .search-form .search-input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.page-home .search-input,
.page-home .search-select {
  flex: 1 1 160px;
  min-height: 48px;
}

.page-home .search-btn {
  flex: 0 0 auto;
  min-height: 48px;
}

.page-home .search-subtitle {
  text-align: center;
  margin-top: 0.75rem;
  font-size: var(--text-sm, 0.875rem);
}

.page-home .category-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .category-card:hover {
    transform: translateY(-4px);
  }
}

.page-home .social-links {
  gap: 1rem;
}

.page-home .social-link {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

@media (max-width: 768px) {
  .page-home .hero {
    min-height: min(85svh, 700px);
  }

  .page-home .search-form .search-input-group {
    flex-direction: column;
  }

  .page-home .search-btn {
    width: 100%;
  }
}
