/* Landing pública del portal (home /) — estética editorial. */

.home-hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: -5.5rem;
  padding-top: 5.5rem;
  color: #fff;
  background: #0b1220;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-hero__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.35) 0%, rgba(11, 18, 32, 0.55) 45%, rgba(11, 18, 32, 0.92) 100%),
    linear-gradient(115deg, #152a45 0%, #1e3a5f 42%, #254a73 78%, #3d6b9e 100%);
}

.home-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(197, 212, 41, 0.35) 0%, transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(220, 232, 243, 0.2) 0%, transparent 26%),
    radial-gradient(circle at 70% 78%, rgba(61, 107, 158, 0.35) 0%, transparent 32%);
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1rem 3.5rem;
}

@media (min-width: 640px) {
  .home-hero__inner {
    padding: 5.5rem 1.5rem 4.5rem;
  }
}

.home-hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c5d429;
}

.home-hero__title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #f8fafc;
}

.home-hero__title-accent {
  color: rgba(248, 250, 252, 0.78);
}

.home-hero__subtitle {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.88);
}

@media (min-width: 640px) {
  .home-hero__subtitle {
    font-size: 1.175rem;
  }
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.home-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.home-hero__btn:hover {
  transform: translateY(-1px);
}

.home-hero__btn--primary {
  background: #c5d429;
  color: #152a45;
}

.home-hero__btn--primary:hover {
  background: #d4e157;
}

.home-hero__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.home-hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* —— Secciones —— */
.home-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4.5rem 1rem;
}

@media (min-width: 640px) {
  .home-section {
    padding: 6rem 1.5rem;
  }
}

.home-section--promos {
  border-bottom: 1px solid #eef2f7;
}

.home-section--shoppings {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.home-section--shoppings > .home-section__header,
.home-section--shoppings > .home-search-panel,
.home-section--shoppings > .home-shopping-grid,
.home-section--shoppings > .home-empty {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .home-section--shoppings > .home-section__header,
  .home-section--shoppings > .home-search-panel,
  .home-section--shoppings > .home-shopping-grid,
  .home-section--shoppings > .home-empty {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.home-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.home-section__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.home-section__title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #0f172a;
}

.home-section__subtitle {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #64748b;
}

.home-section__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e3a5f;
  text-decoration: none;
}

.home-section__link:hover {
  color: #152a45;
}

.home-section__link svg {
  transition: transform 0.15s ease;
}

.home-section__link:hover svg {
  transform: translateX(3px);
}

/* —— Buscador shoppings —— */
.home-search-panel {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}

@media (min-width: 640px) {
  .home-search-panel {
    padding: 1.75rem 2rem;
  }
}

.home-search-panel__label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.home-search-panel__row {
  position: relative;
}

.home-search-panel__input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.15rem;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  background: #f8fafc;
  font-size: 1rem;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.home-search-panel__input:focus {
  outline: none;
  border-color: #3d6b9e;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(61, 107, 158, 0.15);
}

.home-search-panel__hint {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.home-search-panel__results {
  min-height: 1.5rem;
  margin-top: 1rem;
}

.home-search-panel__empty,
.home-search-panel__hint-text {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

.home-empty {
  padding: 2.5rem 1.5rem;
  border: 1px dashed #cbd5e1;
  border-radius: 1.25rem;
  text-align: center;
  color: #64748b;
  background: #fff;
}

/* —— Grid shoppings —— */
.home-shopping-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .home-shopping-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .home-shopping-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-shopping-grid--search {
  margin-top: 0.5rem;
}
