/* =============================================================
   Buscador con tabs ([daher_buscador])
   ============================================================= */

.daher-buscador {
  font-family: 'Rubik', sans-serif;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px -16px rgba(1, 27, 68, .25);
  padding: 0;
  overflow: hidden;
}

.daher-buscador__title {
  font-family: 'Rubik', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primario, #011b44);
  padding: 22px 28px 0;
  margin: 0;
}

/* Tabs */
.daher-buscador__tabs {
  display: flex;
  gap: 0;
  background: #f7f8fe;
  padding: 0 14px;
  border-bottom: 1px solid #ecedf3;
}

.daher-buscador__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  border: 0;
  background: transparent;
  font-family: 'Rubik', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  position: relative;
  transition: color .2s ease;
}

.daher-buscador__tab i {
  font-size: 18px;
}

.daher-buscador__tab:hover {
  color: var(--color-primario, #011b44);
}

.daher-buscador__tab.is-active {
  color: var(--color-primario, #011b44);
}

.daher-buscador__tab.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 3px;
  background: var(--color-secundario, #ec0106);
  border-radius: 3px 3px 0 0;
}

/* Panels */
.daher-buscador__panels {
  padding: 22px 24px 24px;
}

.daher-buscador__panel {
  display: none;
  margin: 0;
}

.daher-buscador__panel.is-active {
  display: block;
}

.daher-buscador__fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.daher-buscador__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.daher-buscador__field-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.daher-buscador__select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 46px;
  padding: 0 36px 0 14px;
  border: 1px solid #e6e8f0;
  border-radius: 10px;
  background: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23011b44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #313344;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.daher-buscador__select:focus {
  outline: 0;
  border-color: var(--color-primario, #011b44);
  box-shadow: 0 0 0 3px rgba(1, 27, 68, .12);
}

.daher-buscador__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--color-secundario, #ec0106);
  color: #fff;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(236, 1, 6, .55);
  transition: filter .2s ease, transform .15s ease;
}

.daher-buscador__submit:hover { filter: brightness(.95); }
.daher-buscador__submit:active { transform: scale(.98); }

/* Responsive */
@media (max-width: 991px) {
  .daher-buscador__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .daher-buscador__submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .daher-buscador__title { padding: 18px 18px 0; font-size: 18px; }
  .daher-buscador__tabs { padding: 0 6px; }
  .daher-buscador__tab { padding: 14px 14px; font-size: 14px; }
  .daher-buscador__tab i { font-size: 16px; }
  .daher-buscador__panels { padding: 18px 16px 18px; }
  .daher-buscador__fields {
    grid-template-columns: 1fr;
  }
}


/* =============================================================
   Link de ayuda + Modal "¿Cómo leer tu neumático?"
   ============================================================= */

.daher-buscador__help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
  background: transparent;
  border: 0;
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primario, #011b44);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.daher-buscador__help-link:hover {
  color: var(--color-secundario, #ec0106);
}

/* Modal */
html.daher-help-open,
html.daher-help-open body {
  overflow: hidden;
}

.daher-help[aria-hidden="true"] { display: none; }
.daher-help[aria-hidden="false"] { display: block; }

.daher-help {
  position: fixed;
  inset: 0;
  z-index: 99998;
  font-family: 'Rubik', sans-serif;
}

.daher-help__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 27, 68, .65);
  backdrop-filter: blur(4px);
}

.daher-help__dialog {
  position: relative;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  margin: 32px auto;
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .35);
}

.daher-help__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f7f8fe;
  color: #4e516a;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s ease;
}
.daher-help__close:hover { background: #ecedf3; }

.daher-help__title {
  margin: 0 0 4px;
  font-family: 'Rubik', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primario, #011b44);
}
.daher-help__lead {
  margin: 0 0 18px;
  font-size: 14px;
  color: #6b7280;
}

/* Sample CSS de la medida */
.daher-help__sample {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  background: #111;
  color: #ffd200;
  font-family: 'Rubik', sans-serif;
  font-size: 26px;
  font-weight: 800;
  padding: 22px 14px;
  border-radius: 12px;
  margin: 0 0 18px;
}

.daher-help__chip {
  position: relative;
  padding: 4px 6px;
}
.daher-help__chip::before {
  content: attr(data-letter);
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}
.daher-help__slash {
  color: #fff;
  opacity: .6;
  padding: 0 2px;
}

.daher-help__image {
  background: var(--color-primario, #011b44);
  border-radius: 12px;
  padding: 18px;
  margin: 0 0 18px;
}

.daher-help__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  margin: 0;
}

/* Lista de items */
.daher-help__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.daher-help__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #f7f8fe;
  border-radius: 10px;
}

.daher-help__letter {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-primario, #011b44);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.daher-help__body {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  color: #4e516a;
  font-size: 14px;
}
.daher-help__body strong {
  color: #111827;
  font-weight: 700;
}
.daher-help__value {
  font-style: normal;
  background: #fff;
  border: 1px solid #ecedf3;
  border-radius: 6px;
  padding: 1px 8px;
  font-weight: 700;
  color: var(--color-primario, #011b44);
  font-size: 13px;
}

@media (max-width: 540px) {
  .daher-help__sample { font-size: 20px; padding: 22px 10px 16px; }
  .daher-help__title { font-size: 18px; }
  .daher-help__dialog { padding: 22px 18px 18px; }
}
