/* =========================================================
   SOY MANGO FINDER
   ========================================================= */

.smf-finder,
.smf-finder *,
.smf-finder *::before,
.smf-finder *::after {
  box-sizing: border-box;
}

.smf-finder {
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

/* Bot¨®n de apertura */

.smf-finder .smf-open-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0;
  padding: 0 26px;
  border: 1px solid #111111;
  border-radius: 0;
  outline: none;
  background: #111111;
  color: #ffffff;
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.smf-finder .smf-open-button:hover {
  border-color: #2b2b2b;
  background: #2b2b2b;
  color: #ffffff;
}

.smf-finder .smf-open-button:focus-visible {
  outline: 2px solid #f5a000;
  outline-offset: 3px;
}

/* Modal */

.smf-finder .smf-modal[hidden] {
  display: none !important;
}

.smf-finder .smf-modal {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  font-family: inherit;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.smf-finder .smf-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.smf-finder .smf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 20, 0.68);
  backdrop-filter: blur(2px);
}

.smf-finder .smf-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  min-height: 360px;
  max-height: calc(100vh - 48px);
  margin: 0;
  padding: 42px 48px 48px;
  overflow-y: auto;
  border: 1px solid #dedede;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  font-family: inherit;
  transform: translateY(12px);
  transition: transform 180ms ease;
}

.smf-finder .smf-modal.is-open .smf-modal__dialog {
  transform: translateY(0);
}

/* Cerrar */

.smf-finder .smf-modal__close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid #222222;
  border-radius: 0;
  outline: none;
  background: #ffffff;
  color: #333333;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.smf-finder .smf-modal__close:hover {
  background: #111111;
  color: #ffffff;
}

.smf-finder .smf-modal__close:focus-visible {
  outline: 2px solid #f5a000;
  outline-offset: 3px;
}

/* Encabezado */

.smf-finder .smf-modal__header {
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
}

.smf-finder .smf-modal__eyebrow {
  margin: 0 70px 7px 0;
  padding: 0;
  color: #555b60;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.smf-finder .smf-modal__title {
  margin: 0 70px 0 0;
  padding: 0;
  color: #111111;
  font-family: inherit;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* Progreso */

.smf-finder .smf-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid #eeeeee;
}

.smf-finder .smf-progress__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a0a0a0;
}

.smf-finder .smf-progress__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #bdbdbd;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
}

.smf-finder .smf-progress__item strong {
  font-size: 14px;
  font-weight: 500;
}

.smf-finder .smf-progress__item.is-active {
  color: #111111;
}

.smf-finder .smf-progress__item.is-active span {
  border-color: #111111;
}

.smf-finder .smf-progress__separator {
  color: #c6c6c6;
  font-size: 18px;
}

/* Contenido de cada paso */

.smf-finder .smf-step {
  padding: 26px 0 30px;
}

.smf-finder .smf-step__instruction {
  margin: 0 0 18px;
  color: #555b60;
  font-size: 16px;
  line-height: 1.5;
}

.smf-finder .smf-empty-message {
  grid-column: 1 / -1;
  margin: 24px 0;
  color: #777777;
  text-align: center;
}

/* Categor¨ªas */

.smf-finder .smf-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin: 0 auto;
}

.smf-finder .smf-category-card {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  border-radius: 0;
  background: #f5f5f5;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.smf-finder .smf-category-card:hover {
  border-color: #999999;
  transform: translateY(-2px);
}

.smf-finder .smf-category-card:focus-visible {
  outline: 2px solid #f5a000;
  outline-offset: 3px;
}

.smf-finder .smf-category-card.is-selected {
  border: 2px solid #f5a000;
}

.smf-finder .smf-category-card__image,
.smf-finder .smf-category-card__image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.smf-finder .smf-category-card__image img {
  object-fit: cover;
  object-position: center;
}

.smf-finder .smf-category-card__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #777777;
  font-size: 56px;
  font-weight: 500;
}

.smf-finder .smf-category-card__overlay {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78),
    rgba(0, 0, 0, 0)
  );
}

.smf-finder .smf-category-card__content {
  position: absolute;
  right: 12px;
  bottom: 11px;
  left: 12px;
  z-index: 2;
  color: #ffffff;
}

.smf-finder .smf-category-card__content strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.smf-finder .smf-category-card__content small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  line-height: 1.2;
}

.smf-finder .smf-category-card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f5a000;
  color: #111111;
  font-size: 14px;
  font-weight: 700;
}

.smf-finder .smf-category-card.is-selected .smf-category-card__check {
  display: flex;
}

/* Tallas */

.smf-finder .smf-size-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 620px;
  margin: 38px auto 60px;
}

.smf-finder .smf-size-option {
  appearance: none;
  -webkit-appearance: none;
  min-height: 96px;
  margin: 0;
  padding: 18px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  box-shadow: none;
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.smf-finder .smf-size-option:hover {
  border-color: #777777;
}

.smf-finder .smf-size-option.is-selected {
  border: 2px solid #f5a000;
  background: #111111;
  color: #ffffff;
}

.smf-finder .smf-size-option:focus-visible {
  outline: 2px solid #f5a000;
  outline-offset: 3px;
}

/* Colores */

.smf-finder .smf-color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-height: 330px;
  margin: 24px 0 34px;
  padding-right: 6px;
  overflow-y: auto;
}

.smf-finder .smf-color-option {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #dddddd;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.smf-finder .smf-color-option:hover {
  border-color: #888888;
}

.smf-finder .smf-color-option.is-selected {
  border: 2px solid #f5a000;
  background: #f7f7f7;
}

.smf-finder .smf-color-option:focus-visible {
  outline: 2px solid #f5a000;
  outline-offset: 3px;
}

.smf-finder .smf-color-option__swatch {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid #bdbdbd;
  border-radius: 50%;
  background: #d9d9d9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.smf-finder .smf-color-option__swatch.is-any {
  background: conic-gradient(
    #111111,
    #f5a000,
    #ffffff,
    #777777,
    #111111
  );
}

/* Botones inferiores */

.smf-finder .smf-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #e8e8e8;
}

.smf-finder .smf-actions__back,
.smf-finder .smf-actions__continue {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  margin: 0;
  padding: 0 24px;
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.smf-finder .smf-actions__back {
  border: 0;
  background: transparent;
  color: #777777;
}

.smf-finder .smf-actions__back:hover:not(:disabled) {
  color: #111111;
}

.smf-finder .smf-actions__continue {
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
}

.smf-finder .smf-actions__continue:hover:not(:disabled) {
  border-color: #2b2b2b;
  background: #2b2b2b;
}

.smf-finder .smf-actions__back:disabled,
.smf-finder .smf-actions__continue:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

body.smf-modal-open {
  overflow: hidden !important;
}

/* M¨®vil */

@media (max-width: 700px) {
  .smf-finder .smf-modal {
    align-items: flex-end;
    padding: 0;
  }

  .smf-finder .smf-modal__dialog {
    width: 100%;
    min-height: 78vh;
    max-height: 94vh;
    padding: 34px 22px 36px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .smf-finder .smf-modal__close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .smf-finder .smf-modal__eyebrow {
    margin-right: 54px;
  }

  .smf-finder .smf-modal__title {
    margin-right: 54px;
    font-size: 31px;
  }

  .smf-finder .smf-progress {
    gap: 8px;
    overflow-x: auto;
  }

  .smf-finder .smf-progress__item {
    flex: 0 0 auto;
  }

  .smf-finder .smf-progress__item strong {
    font-size: 12px;
  }

  .smf-finder .smf-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .smf-finder .smf-category-card__content {
    right: 9px;
    bottom: 9px;
    left: 9px;
  }

  .smf-finder .smf-size-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 28px auto 50px;
  }

  .smf-finder .smf-color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    margin-bottom: 48px;
  }

  .smf-finder .smf-color-option {
    min-height: 54px;
    padding: 9px 11px;
    font-size: 13px;
  }

  .smf-finder .smf-actions {
    position: sticky;
    bottom: -36px;
    z-index: 5;
    margin: 0 -22px -36px;
    padding: 14px 22px 18px;
    background: #ffffff;
  }
}

@media (max-width: 420px) {
  .smf-finder .smf-color-grid {
    grid-template-columns: 1fr;
  }
}