.ps-comparador {
  max-width: 1040px;
  margin: 40px auto;
  padding: 0 18px;
  font-family: inherit;
  box-sizing: border-box;
}

.ps-comparador *,
.ps-comparador *::before,
.ps-comparador *::after {
  box-sizing: border-box;
}

.ps-comparador__header {
  text-align: center;
  margin-bottom: 24px;
}

.ps-comparador__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef7f3;
  color: #16784f;
  font-weight: 700;
  font-size: 14px;
}

.ps-comparador__header h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.ps-comparador__header p {
  max-width: 720px;
  margin: 0 auto;
  color: #5c6670;
  font-size: 18px;
  line-height: 1.55;
}

.ps-comparador__box {
  background: #ffffff;
  border: 1px solid #e5e9ef;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  padding: 28px;
  overflow: visible;
}

.ps-progress {
  height: 8px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.ps-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #20b486, #1677ff);
  transition: width .25s ease;
}

.ps-step { display: none; }
.ps-step.is-active { display: block; }

.ps-step h3 {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.25;
}

.ps-step label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 14px 16px;
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.ps-step label:hover {
  border-color: #20b486;
  background: #f7fcfa;
}

.ps-step-note {
  margin: -4px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f0faf6;
  border: 1px solid #d8f1e8;
  color: #425466;
  font-size: 15px;
  line-height: 1.55;
}

.ps-step-note strong { color: #16784f; }

.ps-step input[type="email"] {
  width: 100%;
  max-width: 520px;
  padding: 14px 16px;
  border: 1px solid #dfe6ee;
  border-radius: 14px;
  font-size: 16px;
}

.ps-small,
.ps-disclaimer,
.ps-card__muted {
  color: #667085;
  font-size: 14px;
}

.ps-step.has-error::after {
  content: 'Selecciona una opción para continuar.';
  display: block;
  color: #b42318;
  margin-top: 10px;
  font-weight: 700;
}

.ps-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}

.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: #111827;
  color: #ffffff !important;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
}

.ps-btn--ghost {
  background: #eef2f7;
  color: #111827 !important;
}

.ps-btn--wide {
  width: 100%;
  margin-top: 12px;
}

.ps-link {
  border: 0;
  background: transparent;
  color: #1677ff;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.ps-results__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.ps-results__header h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
}

.ps-results__restart--desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 11px 18px;
  border-radius: 999px;
  background: #eef7f3;
  color: #16784f;
}

.ps-results__footer {
  display: none;
}

.ps-results__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.ps-card {
  position: relative;
  min-width: 0;
  border: 1px solid #e5e9ef;
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  overflow: visible;
}

.ps-card__badge {
  position: absolute;
  right: 16px;
  top: -12px;
  z-index: 5;
  padding: 5px 10px;
  border-radius: 999px;
  background: #20b486;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ps-card__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.ps-card__top > div:first-child {
  min-width: 0;
}

.ps-card__logo {
  max-width: 120px;
  max-height: 44px;
  object-fit: contain;
  display: block;
  margin: 0 0 10px;
}

.ps-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
}

.ps-card p { margin: 8px 0; }
.ps-card ul { padding-left: 18px; margin: 12px 0; }
.ps-card li { margin: 4px 0; }

.ps-card h3,
.ps-card p,
.ps-card li {
  overflow-wrap: anywhere;
}

.ps-price {
  min-width: 86px;
  text-align: center;
  background: #f5f8fb;
  border-radius: 16px;
  padding: 10px;
}

.ps-price span,
.ps-price small {
  display: block;
  color: #667085;
  font-size: 12px;
}

.ps-price strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.ps-card__featured {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 10px 0 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ps-card__featured--green { background: #e8faf3; color: #087252; }
.ps-card__featured--blue { background: #eaf3ff; color: #1159b5; }
.ps-card__featured--orange { background: #fff3e0; color: #9a4b00; }
.ps-card__featured--red { background: #fff0f0; color: #b42318; }

.ps-card__tag {
  margin: 8px 0 0;
  color: #667085;
  font-weight: 700;
}

.ps-empty {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 16px;
  margin: 0;
}

.ps-disclaimer {
  margin-top: 16px;
  text-align: center;
}

@media (max-width: 840px) {
  .ps-comparador {
    width: 100%;
    max-width: 100%;
    margin: 28px auto;
    padding-left: 6px;
    padding-right: 6px;
  }

  .ps-comparador__header {
    margin-bottom: 18px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .ps-comparador__header p {
    font-size: 17px;
  }

  .ps-comparador__box {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border-radius: 22px;
  }

  .ps-results__header {
    display: block;
    margin-bottom: 18px;
    text-align: left;
  }

  .ps-results__header h3 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .ps-results__restart--desktop {
    display: none;
  }

  .ps-results__grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 18px;
    width: 100%;
  }

  .ps-card {
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    padding: 18px;
    border-radius: 20px;
  }

  .ps-card__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
  }

  .ps-price {
    min-width: 78px;
    max-width: 96px;
    padding: 9px;
  }

  .ps-price strong {
    font-size: 28px;
  }

  .ps-card__badge {
    right: 14px;
    top: -8px;
  }

  .ps-card__featured {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 12px 0 10px;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 15px;
  }

  .ps-card__tag {
    font-size: 16px;
    line-height: 1.35;
  }

  .ps-results__footer {
    width: 100%;
    max-width: 480px;
    margin: 20px auto 0;
    display: flex;
    justify-content: center;
  }

  .ps-results__restart--mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #eef7f3;
    color: #16784f;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .ps-comparador {
    padding-left: 2px;
    padding-right: 2px;
  }

  .ps-comparador__box {
    padding: 12px;
    border-radius: 20px;
  }

  .ps-step h3 {
    font-size: 22px;
  }

  .ps-step label {
    padding: 12px 13px;
  }

  .ps-card {
    max-width: 100%;
    padding: 16px;
  }

  .ps-card__top {
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .ps-card__featured {
    font-size: 14px;
    padding: 8px 10px;
  }
}
