/*
 * Hero Search — hero de Nivel 1 con texto + caja buscador (2 cols desktop).
 */

.hero-search {
  position: relative;
}

.hs-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: rgb(var(--brand-primary, 0 48 86));
  margin-bottom: 1.5rem;
}

.hs-emphasis {
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  color: rgb(var(--brand-primary, 0 48 86));
  line-height: 1.3;
  margin-bottom: 1.25rem;
}
.hs-emphasis em {
  font-style: normal;
  font-weight: 700;
  color: rgb(var(--brand-accent, 243 197 0));
}

.hs-body {
  font-size: 1rem;
  color: rgb(var(--neutral-text-muted, 75 85 99));
  line-height: 1.65;
}

/* Caja del buscador */
.hs-form {
  background-color: rgb(var(--neutral-bg, 249 250 251));
  border: 1px solid rgb(229 231 235);
  border-top: 4px solid rgb(var(--brand-accent, 243 197 0));
  border-radius: var(--radius-md, 2px);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
@media (min-width: 640px) {
  .hs-form { padding: 2rem; }
}

.hs-search-title {
  font-size: 1.25rem;
  color: rgb(var(--brand-primary, 0 48 86));
  border-bottom: 1px solid rgb(229 231 235);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}
.hs-search-icon {
  color: rgb(var(--brand-accent, 243 197 0));
}

/* Select con look propio (sustituye apariencia nativa) */
.hs-field-wrap {
  position: relative;
  display: block;
}
.hs-select {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 1rem;
  background: #fff;
  border: 1px solid rgb(229 231 235);
  border-radius: var(--radius-pill, 2px);
  font-family: inherit;
  font-size: 0.95rem;
  color: rgb(var(--brand-primary, 0 48 86));
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.hs-select:hover {
  border-color: rgb(var(--brand-accent, 243 197 0));
}
.hs-select:focus {
  outline: 2px solid rgb(var(--brand-accent, 243 197 0));
  outline-offset: 1px;
}
.hs-select:invalid,
.hs-select option[value=""] {
  color: rgb(107 114 128);
}

.hs-chev {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(156 163 175);
  pointer-events: none;
}

.hs-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgb(var(--brand-accent, 243 197 0));
  color: rgb(var(--on-accent, var(--brand-primary , 0 48 86)));
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  border: 0;
  border-radius: var(--radius-pill, 2px);
  cursor: pointer;
  margin-top: 0.5rem;
  width: 100%;
  transition: background-color 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.hs-submit:hover {
  filter: brightness(0.92);
}
.hs-submit-arrow {
  transition: transform 0.2s;
}
.hs-submit:hover .hs-submit-arrow {
  transform: translateX(4px);
}

/* Skin Terres usa colores propios (azul + olive) */
body.theme-terres .hs-form,
.hero-search.hs-terres .hs-form {
  border-top-color: rgb(var(--brand-accent, 128 186 39));
}
body.theme-terres .hs-search-icon,
.hero-search.hs-terres .hs-search-icon {
  color: rgb(var(--brand-accent, 128 186 39));
}
body.theme-terres .hs-submit,
.hero-search.hs-terres .hs-submit {
  background: rgb(var(--brand-accent, 128 186 39));
  color: #fff;
}
body.theme-terres .hs-submit:hover,
.hero-search.hs-terres .hs-submit:hover {
  background: rgb(var(--brand-primary, 6 115 153));
}
