/* ── Buscador SuperMaxx ─────────────────────────────────────────────── */

.smx-buscador {
  background: transparent;
  padding: 30px 0;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
}

/* ── Tabs ──────────────────────────────────────────────────────────── */

.smx-buscador__tabs {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 0 13px;
}

.smx-buscador__tab {
  border: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
  border-radius: 10px 10px 0 0;
  border-bottom: 3px solid var(--Color-Black-black-6, #bfbfbf);
  background: var(--Color-Black-black-7, #8c8c8c);
  box-shadow: 0 15px 60px 0 rgba(69, 69, 84, 0.25);
  color: white;
  font-size: 18px;
  font-weight: 800;
  line-height: 111%;
  /* letter-spacing: 1.08px; */
  text-transform: uppercase;
  font-family: Manrope;
  display: flex;
  width: 295px;
  height: 56px;
  padding: 6px 12px;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.smx-buscador__tab svg {
  flex-shrink: 0;
}

.smx-buscador__tab.is-active {
  background: #fcfcfc;
  color: #141414;
  cursor: default;
  border-bottom: 3px solid var(--Color-Red-red-700, #a02c2e);
}

.smx-buscador__tab.is-active svg path {
  fill: #7c2224;
}

.smx-buscador__tab:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ── Panels ────────────────────────────────────────────────────────── */

.smx-buscador__panel[hidden] {
  display: none;
}

/* ── Body ──────────────────────────────────────────────────────────── */

.smx-buscador__body {
  padding: 20px 43px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 15px 60px 0 rgba(143, 144, 188, 0.25);
  backdrop-filter: blur(25px);
}

.smx-buscador__desc {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.5;
  color: #454545;
  text-align: center;
}

.smx-buscador__desc strong {
  font-weight: 600;
}

/* ── Form row ──────────────────────────────────────────────────────── */

.smx-buscador__form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.smx-buscador__field {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.smx-buscador__field--btn {
  flex: 0 0 auto;
}

.smx-buscador__field label {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  letter-spacing: -0.28px;
  line-height: 1.43;
}

.smx-buscador__req {
  color: #e23e41;
  margin-left: 2px;
}

.smx-buscador__field select {
  width: 100%;
  height: 50px;
  padding: 0 32px 0 12px;
  border: 1px solid #bfbfbf;
  border-radius: 6px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.smx-buscador__field select:focus {
  outline: none;
  border-color: #000;
}

.smx-buscador__field select:disabled {
  background-color: #f0f0f0;
  color: #999;
  cursor: not-allowed;
}

/* ── Loading spinner (per-field) ──────────────────────────────────── */

.smx-buscador__field.is-loading {
  position: relative;
}

.smx-buscador__field.is-loading select {
  color: transparent;
  pointer-events: none;
  background-image: none;
}

.smx-buscador__field.is-loading::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 13px;
  width: 18px;
  height: 18px;
  border: 2px solid #d9d9d9;
  border-top-color: #e23e41;
  border-radius: 50%;
  animation: smxSpin 0.6s linear infinite;
  pointer-events: none;
}

@keyframes smxSpin {
  to {
    transform: rotate(360deg);
  }
}

.smx-buscador__field input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.smx-buscador__field input[type="text"]::placeholder {
  color: #999;
}

.smx-buscador__field input[type="text"]:focus {
  outline: none;
  border-color: #e23e41;
}

/* ── Submit ─────────────────────────────────────────────────────────── */

.smx-buscador__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 10px;
  border: none;
  width: 175px;
  border-radius: 10px;
  background: #262626;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    opacity 0.2s ease;
}

.smx-buscador__submit:hover {
  background: #333;
}

.smx-buscador__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.smx-buscador__submit svg {
  flex-shrink: 0;
}

/* ── Responsive: tablet ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .smx-buscador__form {
    flex-wrap: wrap;
  }

  .smx-buscador__field {
    flex: 1 1 calc(50% - 8px);
    min-width: calc(50% - 8px);
  }

  .smx-buscador__field--btn {
    flex: 1 1 100%;
  }

  .smx-buscador__submit {
    margin: 4px auto 0;
    width: 100%;
    max-width: 320px;
  }

  .smx-buscador__body {
    padding: 18px;
  }

  .smx-buscador__desc {
    font-size: 14px;
    margin-bottom: 10px;
  }
}

/* ── Responsive: mobile ─────────────────────────────────────────────── */

@media (max-width: 767px) {
  .smx-buscador {
    padding: 20px 0;
  }

  .smx-buscador__tabs {
    gap: 6px;
  }

  .smx-buscador__tab {
    padding: 10px 0;
    font-size: 12px;
  }

  .smx-buscador__form {
    flex-direction: column;
    gap: 10px;
  }

  .smx-buscador__field {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .smx-buscador__submit {
    width: 100%;
    margin-top: 10px;
  }
}
