/* NeoFarma MX · UX y conversión de inicio, octubre 2026 */

/* Un solo logotipo y acciones ordenadas en una fila de marca. */
.home-page .app-header__bar--home {
  width: min(1240px, calc(100% - 40px)) !important;
  min-height: 78px !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: clamp(12px, 2vw, 24px) !important;
  padding: 10px clamp(14px, 2.5vw, 30px) !important;
}

.home-page .app-header__bar--home > .brand.brand--home {
  position: relative !important;
  left: auto !important;
  grid-column: 1 !important;
  justify-self: start !important;
  transform: none !important;
  width: 174px !important;
  margin: 0 !important;
}

.home-page .app-header__bar--home > .brand.brand--home img {
  display: block !important;
  width: 100% !important;
  max-height: 48px !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: drop-shadow(0 4px 9px rgba(20, 118, 135, .09)) !important;
}

.home-page .header-brand-actions {
  grid-column: 2 !important;
  justify-self: end !important;
  gap: clamp(8px, 1.2vw, 18px) !important;
}

/* La navegación ocupa el espacio de sus opciones, no una franja vacía. */
.home-page .neo-premium-nav {
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 52px !important;
  margin: 10px auto 15px !important;
  padding: 5px !important;
  gap: 3px !important;
  border-radius: 15px !important;
  box-shadow: 0 7px 22px rgba(11, 40, 66, .055) !important;
}

.home-page .neo-premium-nav a {
  min-height: 40px !important;
  padding-inline: clamp(12px, 1.5vw, 20px) !important;
  border-radius: 10px !important;
  font-size: .76rem !important;
  transition: color .18s ease, background .18s ease, border-color .18s ease !important;
}

/* Conserva la escena de Farmi y la Catedral; reduce el alto del hero para acercar la búsqueda. */
.home-page .neo-premium-main {
  gap: 16px !important;
}

.home-page .neo-premium-hero {
  min-height: 390px !important;
  padding: 28px clamp(26px, 3.6vw, 44px) !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr) !important;
  gap: 14px !important;
}

.home-page .neo-premium-hero__visual {
  min-height: 320px !important;
}

.home-page .neo-premium-hero h1 {
  font-size: clamp(2.7rem, 4.8vw, 4.05rem) !important;
  line-height: .98 !important;
  letter-spacing: -.065em !important;
}

.home-page .neo-premium-hero__content > p {
  max-width: 520px !important;
  margin-top: 15px !important;
  font-size: .98rem !important;
  line-height: 1.62 !important;
}

.home-page .neo-premium-actions {
  gap: 10px !important;
  margin-top: 20px !important;
}

.home-page .neo-premium-btn {
  min-height: 50px !important;
  padding-inline: 19px !important;
  border-radius: 14px !important;
}

.home-page .neo-premium-search {
  padding: 13px 15px !important;
  border-radius: 22px !important;
}

.home-page .neo-premium-searchbar {
  min-height: 58px !important;
  border-radius: 16px !important;
}

.home-page .neo-premium-searchbar:focus-within {
  border-color: #31aeb0 !important;
  box-shadow: 0 0 0 3px rgba(18, 165, 170, .12), 0 7px 18px rgba(25, 70, 80, .06) !important;
}

/* Las búsquedas sugeridas ahora llevan a resultados reales. */
.home-page .neo-premium-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid #dcebe8;
  border-radius: 999px;
  background: #f5fbf9;
  color: #47717a;
  font-size: .66rem;
  font-weight: 650;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.home-page .neo-premium-chips a:hover {
  transform: translateY(-1px);
  border-color: #a8dcd3;
  background: #effaf7;
  color: #087e83;
}

.home-page .neo-premium-nav a:focus-visible,
.home-page .neo-premium-btn:focus-visible,
.home-page .neo-premium-chips a:focus-visible,
.home-page .header-brand-actions button:focus-visible,
.home-page .header-brand-actions a:focus-visible {
  outline: 3px solid rgba(8, 127, 148, .36) !important;
  outline-offset: 3px !important;
}

@media (max-width: 760px) {
  .home-page .app-header__bar--home {
    width: calc(100% - 20px) !important;
    min-height: 66px !important;
    padding-inline: 10px !important;
    gap: 8px !important;
  }

  .home-page .app-header__bar--home > .brand.brand--home {
    width: 142px !important;
  }

  .home-page .app-header__bar--home > .brand.brand--home img {
    max-height: 42px !important;
  }

  .home-page .header-brand-actions {
    gap: 7px !important;
  }

  .home-page .neo-premium-nav {
    width: min(100%, 440px) !important;
    justify-content: space-around !important;
  }
}

@media (max-width: 480px) {
  .home-page .app-header__bar--home > .brand.brand--home {
    width: 126px !important;
  }

  .home-page .header-signature--right .header-signature__copy {
    display: none !important;
  }

  .home-page .neo-premium-searchbar {
    gap: 8px !important;
    padding-inline: 11px !important;
  }

  .home-page .neo-premium-searchbar input {
    font-size: .74rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .neo-premium-chips a {
    transition: none !important;
  }

  .home-page .neo-premium-chips a:hover {
    transform: none;
  }
}


/* Mantén el orden del hero en pantallas pequeñas. */
@media (max-width: 760px) {
  .home-page .neo-premium-hero {
    min-height: auto !important;
    grid-template-columns: 1fr !important;
    padding: 22px 18px 0 !important;
    gap: 14px !important;
  }

  .home-page .neo-premium-hero__visual {
    min-height: 270px !important;
  }

  .home-page .neo-premium-hero h1 {
    font-size: 2.6rem !important;
  }

  .home-page .neo-premium-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    margin-top: 18px !important;
  }

  .home-page .neo-premium-btn {
    min-height: 48px !important;
    padding-inline: 10px !important;
    font-size: .66rem !important;
  }
}

@media (max-width: 430px) {
  .home-page .neo-premium-hero h1 {
    font-size: 2.35rem !important;
  }

  .home-page .neo-premium-actions {
    grid-template-columns: 1fr !important;
  }
}
