/*
 * Saez Smart Search — frontend
 * Estilo integrado en el plugin. No requiere CSS personalizado.
 */

.saez-sss,
.saez-sss * {
  box-sizing: border-box;
}

/* Contenedor creado en la cabecera del blog */
.saez-blog-search-outside {
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 6px !important;
  padding-bottom: 28px !important;
}

.saez-sss {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  color: #111827;
}

.saez-sss-auto {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  justify-content: center;
}

.saez-sss__form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
}

.saez-sss__input {
  flex: 1 1 auto;
  width: 100%;
  height: 54px;
  padding: 0 22px;
  border: 1px solid #d8d2c7;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  outline: none;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease;
  appearance: none;
}

.saez-sss__input::placeholder {
  color: #7b756b;
  opacity: 1;
}

.saez-sss__input:focus {
  border-color: #a99573;
  box-shadow:
    0 0 0 4px rgba(169, 149, 115, 0.12),
    0 14px 36px rgba(17, 24, 39, 0.07);
}

.saez-sss__button {
  flex: 0 0 auto;
  height: 54px;
  min-width: 92px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #090909;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.saez-sss__button:hover,
.saez-sss__button:focus {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.saez-sss__button:active {
  transform: translateY(0);
}

/* Resultados: bloque editorial dentro del flujo, no desplegable superpuesto */
.saez-sss__results {
  display: none;
  position: static;
  width: 100%;
  margin: 16px auto 0;
  z-index: auto;
}

.saez-sss--open .saez-sss__results {
  display: block;
}

.saez-sss__panel {
  overflow: hidden;
  border: 1px solid #e4ded4;
  border-radius: 22px;
  background: #ffffff;
  box-shadow:
    0 24px 60px rgba(17, 24, 39, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.saez-sss__section-title {
  padding: 18px 24px 14px;
  margin: 0;
  border-bottom: 1px solid #eee8de;
  background: #fbfaf8;
  color: #7a6d5b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.saez-sss__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.saez-sss__item {
  margin: 0;
  padding: 0;
  border-top: 0;
  border-bottom: 1px solid #eee8de;
  background: #ffffff;
}

.saez-sss__item:last-child {
  border-bottom: 0;
}

.saez-sss__result-link {
  display: block;
  padding: 22px 24px;
  color: #111827;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.saez-sss__result-link:hover,
.saez-sss__result-link:focus {
  background: #fbfaf8;
  text-decoration: none;
}

.saez-sss__result-link strong {
  display: block;
  max-width: 680px;
  margin: 0 0 8px;
  color: #07111f;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.saez-sss__result-link p {
  max-width: 680px;
  margin: 0 0 10px;
  color: #4b5563;
  font-size: 15.5px;
  line-height: 1.58;
}

.saez-sss__result-link span {
  display: inline-flex;
  align-items: center;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.saez-sss__result-link span::after {
  content: "→";
  margin-left: 6px;
}

.saez-sss__service {
  margin: 0;
  padding: 18px 24px;
  border-top: 1px solid #eee8de;
  background: #fcfaf7;
}

.saez-sss__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #7a6d5b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.saez-sss__service-link {
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.saez-sss__service-link:hover,
.saez-sss__service-link:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.saez-sss__cta {
  padding: 18px 24px 22px;
  border-top: 1px solid #eee8de;
  background: #ffffff;
}

.saez-sss__cta p {
  max-width: 680px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
}

.saez-sss__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.saez-sss__cta-primary,
.saez-sss__cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.saez-sss__cta-primary {
  background: #090909;
  color: #ffffff;
}

.saez-sss__cta-secondary {
  border: 1px solid #d8d2c7;
  color: #111827;
  background: #ffffff;
}

.saez-sss__loading,
.saez-sss__empty,
.saez-sss__error {
  margin: 0;
  padding: 22px 24px;
  color: #4b5563;
  font-size: 15.5px;
  line-height: 1.5;
}

.saez-sss__error {
  color: #8a1f1f;
}

@media (max-width: 640px) {
  .saez-blog-search-outside {
    padding-top: 4px !important;
    padding-bottom: 24px !important;
  }

  .saez-sss,
  .saez-sss-auto {
    width: 100%;
  }

  .saez-sss-auto {
    padding-left: 12px;
    padding-right: 12px;
  }

  .saez-sss__form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .saez-sss__input,
  .saez-sss__button {
    width: 100%;
    height: 50px;
  }

  .saez-sss__panel {
    border-radius: 18px;
  }

  .saez-sss__section-title {
    padding: 16px 18px 12px;
  }

  .saez-sss__result-link {
    padding: 18px;
  }

  .saez-sss__result-link strong {
    font-size: 17px;
  }

  .saez-sss__result-link p {
    font-size: 14.5px;
  }

  .saez-sss__service,
  .saez-sss__cta,
  .saez-sss__loading,
  .saez-sss__empty,
  .saez-sss__error {
    padding-left: 18px;
    padding-right: 18px;
  }
}
