/* Estilos específicos de la landing. */

/* Header landing: desktop limpio + hamburguesa móvil. */
/* Logo y navegación principal. Estilos críticos propios para no depender solo de Tailwind. */
.landing-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  color: #0f172a;
  text-decoration: none;
}
.landing-brand-mark {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #0f75bc;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 18px 45px rgba(22, 136, 216, 0.24);
}
.landing-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.05;
}
.landing-brand-title {
  display: block;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}
.landing-brand-subtitle {
  display: block;
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}
.landing-desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: #334155;
}
.landing-desktop-nav a:hover {
  color: #0f75bc;
}
.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.landing-search-cta {
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: #0f75bc;
  padding: 0.7rem 1.05rem;
  font-size: 0.875rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 18px 45px rgba(22, 136, 216, 0.18);
}
.landing-search-cta:hover {
  background: #0b5f99;
}
.landing-login-button {
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: #07111f;
  padding: 0.7rem 1.05rem;
  font-size: 0.875rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}
.landing-login-button:hover {
  background: #1e293b;
}
.landing-mobile-menu {
  position: relative;
}
.landing-mobile-menu summary {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.landing-mobile-menu summary::-webkit-details-marker {
  display: none;
}
.landing-mobile-menu summary span {
  display: block;
  width: 1.1rem;
  height: 0.14rem;
  border-radius: 999px;
  background: #0f172a;
}
.landing-mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  z-index: 90;
  min-width: 15.5rem;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.98);
  padding: 0.5rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.landing-mobile-menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.95rem;
  padding: 0.85rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 850;
  color: #334155;
}
.landing-mobile-menu-panel a:hover {
  background: #f1f5f9;
  color: #0f75bc;
}
.landing-mobile-menu-panel .landing-mobile-login {
  margin-top: 0.25rem;
  justify-content: center;
  background: #07111f;
  color: #fff;
}
.landing-mobile-menu-panel .landing-mobile-login:hover {
  background: #1e293b;
  color: #fff;
}

.page-landing .hero-bg {
  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(22, 136, 216, 0.18),
      transparent 32%
    ),
    radial-gradient(
      circle at 20% 88%,
      rgba(14, 165, 233, 0.1),
      transparent 28%
    ),
    radial-gradient(
      circle at 86% 80%,
      rgba(245, 158, 11, 0.08),
      transparent 26%
    ),
    linear-gradient(180deg, #f8fbff 0%, #eef8ff 42%, #ffffff 100%);
}
.search-card {
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(226, 232, 240, 0.8);
}
.search-card:focus-within {
  box-shadow:
    0 28px 80px rgba(22, 136, 216, 0.18),
    0 0 0 1px rgba(22, 136, 216, 0.36);
}
.suggestions-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  max-height: 360px;
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.suggestions-panel[hidden] {
  display: none;
}

/* Layout explícito del formulario. El botón Buscar queda siempre visible. */
.landing-search-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) minmax(210px, 0.9fr) minmax(230px, 1fr) minmax(132px, 142px);
  gap: 0.75rem;
  align-items: stretch;
}
.landing-search-field,
.landing-search-field-query,
.landing-search-field-category,
.landing-search-field-location,
.landing-actions {
  min-width: 0;
}
.landing-actions {
  display: flex !important;
  align-items: stretch;
  justify-content: stretch;
}
.landing-submit-button,
#landingSubmitButton {
  display: inline-flex !important;
  width: 100%;
  min-width: 132px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #0f75bc;
  color: #fff;
  font-weight: 950;
  white-space: nowrap;
  opacity: 1 !important;
  visibility: visible !important;
}
.landing-submit-button:hover,
#landingSubmitButton:hover {
  background: #0b5f99;
}
@media (max-width: 1040px) {
  .landing-search-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.9fr);
  }
  .landing-search-field-location {
    grid-column: 1 / 2;
  }
  .landing-actions {
    grid-column: 2 / 3;
  }
}
@media (max-width: 640px) {
  .landing-search-grid {
    grid-template-columns: 1fr;
  }
  .landing-search-field-location,
  .landing-actions {
    grid-column: auto;
  }
  .landing-submit-button,
  #landingSubmitButton {
    min-width: 0;
  }
}
.landing-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.25rem 0.125rem;
}
.landing-active-filters[hidden] {
  display: none;
}
.landing-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  padding: 0.45rem 0.7rem;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}
.landing-filter-chip strong {
  color: #0f172a;
}
.landing-filter-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-weight: 900;
  line-height: 1;
}
.landing-filter-chip button:hover {
  background: #cbd5e1;
  color: #0f172a;
}
.landing-filter-chip-clear-all {
  border-color: transparent;
  background: transparent;
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 768px) {
  .landing-desktop-nav {
    display: flex;
  }
  .landing-search-cta,
  .landing-login-button {
    display: inline-flex;
  }
  .landing-mobile-menu {
    display: none;
  }
}
@media (max-width: 480px) {
  .landing-mobile-menu-panel {
    right: -0.25rem;
    min-width: min(17rem, calc(100vw - 2rem));
  }
  .search-card {
    border-radius: 1.5rem;
  }
  .landing-active-filters {
    padding-top: 0.65rem;
  }
  .landing-filter-chip {
    width: 100%;
    justify-content: space-between;
  }
}


.category-strip {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.featured-strip {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card,
.featured-card {
  min-width: 0;
}

@media (max-width: 1024px) {
  .category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .featured-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .category-strip,
  .featured-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .category-card {
    flex: 0 0 min(76vw, 280px);
    scroll-snap-align: start;
  }
  .featured-card {
    flex: 0 0 min(86vw, 360px);
    scroll-snap-align: start;
  }
}
