.cajabusqueda {
  padding: 36px 0 44px;
}

.cajabusqueda__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 420px;
  padding: 36px;
  border-radius: 24px;
  overflow: hidden;
  font-family: "Segoe UI", Arial, sans-serif;
  background-image:
    linear-gradient(115deg, rgba(15, 15, 15, 0.7) 0%, rgba(80, 10, 18, 0.62) 48%, rgba(0, 0, 0, 0.45) 100%),
    url("../imagenes/fondocaja.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.cajabusqueda__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.cajabusqueda__panel {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.cajabusqueda__eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.cajabusqueda__title {
  margin: 0 0 14px;
  max-width: 620px;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.04;
  color: #ffffff;
}

.cajabusqueda__text {
  margin: 0 0 24px;
  max-width: 620px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.cajabusqueda__box {
  max-width: 680px;
}

.cajabusqueda__box * {
  transition: all 0.25s ease;
}

.cajabusqueda__search {
  display: flex;
  align-items: stretch;
  min-height: 66px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.cajabusqueda__search:focus-within {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95),
    0 0 0 7px rgba(255, 255, 255, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.16);
}

.cajabusqueda__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 18px 20px;
  font-size: 1rem;
  color: #18212f;
  background: transparent;
  font-family: "Segoe UI", Arial, sans-serif;
}

.cajabusqueda__input::placeholder {
  color: #6b7280;
}

.cajabusqueda__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 0 22px;
  border: none;
  background: linear-gradient(180deg, #b5121b 0%, #8f141b 100%);
  color: #ffffff;
  cursor: pointer;
}

.cajabusqueda__button:hover,
.cajabusqueda__button:focus {
  background: linear-gradient(180deg, #980f17 0%, #731016 100%);
}

.cajabusqueda__button svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .cajabusqueda__inner {
    min-height: 360px;
    padding: 24px;
  }

  .cajabusqueda__panel {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .cajabusqueda {
    padding: 24px 0 32px;
  }

  .cajabusqueda__inner {
    min-height: auto;
    padding: 18px;
    border-radius: 18px;
  }

  .cajabusqueda__panel {
    padding: 18px;
    border-radius: 16px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .cajabusqueda__title {
    font-size: 2rem;
  }

  .cajabusqueda__text {
    font-size: 0.96rem;
  }

  .cajabusqueda__search {
    min-height: 58px;
    border-radius: 14px;
  }

  .cajabusqueda__input {
    padding: 14px 15px;
    font-size: 0.96rem;
  }

  .cajabusqueda__button {
    min-width: 58px;
    padding: 0 16px;
  }
}