/* =========================================================
   MEDPREV · STEPS
   Intros, hero, choice cards, pills, soft boxes, métricas,
   formulario general
========================================================= */

/* =========================================================
   INTRO STEPS 1–5
========================================================= */
#mp-step-1,
#mp-step-2,
#mp-step-3,
#mp-step-4,
#mp-step-5 {
  position: relative;
  overflow: hidden;
  min-height: 560px;
}

.mp-step-content {
  position: relative;
  z-index: 2;
}

.mp-step-intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
  overflow: hidden;
  text-align: center;
  padding: 46px 24px 24px;
}

.mp-step-intro-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.mp-step-intro-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 920px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mp-step-intro-title {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #243447;
  text-align: center;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.22);
}

.mp-step-intro-media {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  width: 460px;
  max-width: 50%;
  transform-origin: center center;
}

.mp-step-intro-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 24px 38px rgba(13, 31, 56, 0.08))
    saturate(1.02);
}

#mp-step-1 .mp-step-intro-overlay::before,
#mp-step-2 .mp-step-intro-overlay::before,
#mp-step-3 .mp-step-intro-overlay::before,
#mp-step-4 .mp-step-intro-overlay::before,
#mp-step-5 .mp-step-intro-overlay::before {
  background:
    radial-gradient(circle at 50% 60%, rgba(15, 111, 178, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88));
}

#mp-step-1 .mp-step-intro-copy {
  margin-bottom: 20px;
}

#mp-step-1 .mp-step-intro-title {
  max-width: 860px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

#mp-step-1 .mp-step-intro-media {
  width: 500px;
  max-width: 54%;
}

#mp-step-2 .mp-step-intro-title {
  max-width: 820px;
}

#mp-step-2 .mp-step-intro-media {
  width: 450px;
  max-width: 48%;
}

#mp-step-3 .mp-step-intro-title,
#mp-step-4 .mp-step-intro-title,
#mp-step-5 .mp-step-intro-title {
  max-width: 780px;
  font-size: clamp(2.05rem, 3.6vw, 2.9rem);
}

#mp-step-3 .mp-step-intro-media,
#mp-step-4 .mp-step-intro-media,
#mp-step-5 .mp-step-intro-media {
  width: 410px;
  max-width: 44%;
}

/* =========================================================
   HERO INTERNO
========================================================= */
.mp-step-hero--textonly {
  display: block;
  margin-bottom: 18px;
}

.mp-step-hero-copy {
  max-width: 820px;
}

.mp-step-title--hero {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.04;
  margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
  max-width: 760px;
}

.mp-step-sub--hero {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.7;
  color: #667085;
  margin-bottom: 0;
}

/* =========================================================
   STEP 1 · CHOICE CARDS
========================================================= */
.mp-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mp-choice-grid--step1 {
  gap: 16px;
}

.mp-choice {
  display: block;
  margin: 0;
  cursor: pointer;
}

.mp-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mp-choice-card {
  min-height: 122px;
  padding: 16px 17px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(15, 111, 178, 0.08);
  box-shadow: 0 8px 20px rgba(12, 23, 38, 0.04);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.mp-choice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(11, 60, 136, 0.08);
}

.mp-choice input:checked + .mp-choice-card {
  border-color: #0f6fb2;
  background: linear-gradient(135deg, rgba(15, 111, 178, 0.07), rgba(42, 193, 125, 0.07));
  box-shadow: 0 14px 30px rgba(15, 111, 178, 0.12);
}

.mp-choice-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 12px;
  background: rgba(15, 111, 178, 0.06);
  color: #0f6fb2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.mp-choice-title {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
  color: #243447;
  margin-bottom: 6px;
}

.mp-choice-desc {
  font-size: 0.93rem;
  line-height: 1.55;
  color: #667085;
  margin-bottom: 0;
}

/* =========================================================
   PILLS / CHECKS
========================================================= */
.mp-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mp-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 111, 178, 0.12);
  color: #314255;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 8px 18px rgba(12, 23, 38, 0.035);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.mp-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 111, 178, 0.08);
  border-color: rgba(15, 111, 178, 0.2);
}

.mp-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mp-pill span {
  display: inline-block;
}

.mp-pill input:checked + span {
  color: #0b4d8b;
}

.mp-pill:has(input:checked) {
  background: linear-gradient(135deg, rgba(15, 111, 178, 0.08), rgba(42, 193, 125, 0.08));
  border-color: rgba(15, 111, 178, 0.28);
  box-shadow: 0 14px 28px rgba(15, 111, 178, 0.10);
}

.mp-pill.is-checked {
  background: linear-gradient(135deg, rgba(15, 111, 178, 0.08), rgba(42, 193, 125, 0.08));
  border-color: rgba(15, 111, 178, 0.28);
  box-shadow: 0 14px 28px rgba(15, 111, 178, 0.10);
}

/* =========================================================
   CAJAS SUAVES / MÉTRICAS
========================================================= */
.mp-soft-box {
  border-radius: 18px;
  margin-bottom: 20px;
}

.mp-soft-box--info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 111, 178, 0.045), rgba(42, 193, 125, 0.055));
  border: 1px solid rgba(15, 111, 178, 0.08);
  box-shadow: 0 10px 24px rgba(12, 23, 38, 0.035);
}

.mp-soft-box-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 111, 178, 0.08);
  color: #0f6fb2;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.mp-soft-box-copy {
  min-width: 0;
}

.mp-soft-box-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #243447;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.mp-soft-note {
  color: #5f6b7a;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.mp-metrics-card {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,253,0.98));
  border: 1px solid rgba(15, 111, 178, 0.08);
  box-shadow: 0 14px 30px rgba(12, 23, 38, 0.045);
}

.mp-metrics-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.mp-metrics-card-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 111, 178, 0.08);
  color: #0f6fb2;
  font-size: 1rem;
}

.mp-metrics-card-copy {
  min-width: 0;
}

.mp-metrics-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #243447;
  margin-bottom: 4px;
}

.mp-metrics-card-sub {
  color: #667085;
  font-size: 0.95rem;
  line-height: 1.6;
}

.mp-metrics-hint {
  min-height: 46px;
  border-radius: 14px;
  padding: 11px 14px;
  background: rgba(15, 111, 178, 0.05);
  border: 1px dashed rgba(15, 111, 178, 0.16);
  color: #33516e;
  font-size: 0.91rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.mp-metrics-note {
  min-height: calc(2.3rem + 12px);
  display: inline-flex;
  align-items: center;
  color: #5f6f82;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0 2px;
}

.mp-metrics-note i {
  color: #0f6fb2;
  opacity: 0.9;
}

/* =========================================================
   FORMULARIO
========================================================= */
.mp-step .form-group label,
.mp-step label.font-weight-bold {
  color: #2f4154;
}

.mp-step .form-control,
.mp-step select.form-control {
  height: calc(2.3rem + 12px);
  border-radius: 14px;
  border: 1px solid #d9e3ee;
  padding-left: 14px;
  padding-right: 14px;
  box-shadow: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.mp-step textarea.form-control {
  min-height: 108px;
  height: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  border-radius: 16px;
  resize: vertical;
}

.mp-step .form-control:focus,
.mp-step select.form-control:focus {
  border-color: rgba(15, 111, 178, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(15, 111, 178, 0.08);
}

.mp-step .form-row {
  margin-left: -8px;
  margin-right: -8px;
}

.mp-step .form-row > .col,
.mp-step .form-row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}


/* =========================================================
   STEP 6 · CIERRE IA / CONSENTIMIENTO
========================================================= */

#mp-step-6 {
  padding-top: 4px;
}

.mp-step6-shell {
  max-width: 1020px;
  margin: 0 auto;
}

.mp-step6-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
}

.mp-step6-copy,
.mp-step6-visual-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 111, 178, 0.08);
  box-shadow: 0 18px 40px rgba(12, 23, 38, 0.05);
}

.mp-step6-copy {
  padding: 26px 26px 24px;
  background:
    radial-gradient(circle at top left, rgba(15, 111, 178, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,250,253,0.98));
}

.mp-step6-kicker {
  margin-bottom: 14px;
}

#mp-step-6 .mp-ai-title {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #213243;
  margin-bottom: 14px;
  max-width: 700px;
}

#mp-step-6 .mp-ai-text {
  font-size: 0.99rem;
  line-height: 1.75;
  color: #607082;
  max-width: 720px;
  margin-bottom: 14px;
}

.mp-step6-visual {
  display: flex;
}

.mp-step6-visual-card {
  width: 100%;
  min-height: 100%;
  padding: 22px 20px 18px;
  background:
    radial-gradient(circle at 50% 18%, rgba(42, 193, 125, 0.10), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(15, 111, 178, 0.09), transparent 42%),
    linear-gradient(180deg, #f8fbfd 0%, #eef6fb 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mp-step6-visual-glow {
  position: absolute;
  inset: auto auto 12% 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 111, 178, 0.12), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

#mp-step-6 .mp-ia-img {
  position: relative;
  z-index: 2;
  width: min(100%, 250px);
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 24px 34px rgba(15, 70, 120, 0.16));
}

#mp-step-6 .mp-ai-mini {
  position: relative;
  z-index: 2;
  max-width: 290px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #4f6276;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 111, 178, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 12px 24px rgba(12, 23, 38, 0.04);
}

.mp-step6-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.mp-step6-points-card,
.mp-step6-note-card {
  border-radius: 22px;
  border: 1px solid rgba(15, 111, 178, 0.08);
  box-shadow: 0 14px 30px rgba(12, 23, 38, 0.045);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,253,0.98));
}

.mp-step6-points-card {
  padding: 20px 20px 18px;
}

.mp-step6-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.mp-step6-card-icon,
.mp-step6-note-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 111, 178, 0.08);
  color: #0f6fb2;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.mp-step6-card-title,
.mp-step6-note-title {
  font-size: 1rem;
  font-weight: 800;
  color: #243447;
  margin-bottom: 4px;
}

.mp-step6-card-sub,
.mp-step6-note-text {
  color: #667085;
  font-size: 0.95rem;
  line-height: 1.65;
}

.mp-ai-points--card {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.mp-ai-points--card li {
  position: relative;
  padding: 14px 14px 14px 48px;
  border-radius: 16px;
  background: rgba(15, 111, 178, 0.045);
  border: 1px solid rgba(15, 111, 178, 0.08);
  color: #314255;
  font-size: 0.95rem;
  line-height: 1.6;
}

.mp-ai-points--card li::before {
  content: "\f058";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 15px;
  top: 15px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #0f6fb2;
  font-size: 1rem;
  border-radius: 0;
}

.mp-step6-note-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(42, 193, 125, 0.09), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,251,249,0.98));
}

.mp-step6-note-icon {
  margin-bottom: 14px;
}

.mp-consent-box--final {
  margin-top: 2px;
  margin-bottom: 2px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(15, 111, 178, 0.05), rgba(42, 193, 125, 0.055));
  border: 1px solid rgba(15, 111, 178, 0.10);
  box-shadow: 0 12px 28px rgba(12, 23, 38, 0.04);
}

.mp-consent-check {
  display: block;
  margin: 0;
  cursor: pointer;
}

.mp-consent-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mp-consent-ui {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mp-consent-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1.5px solid rgba(15, 111, 178, 0.24);
  background: rgba(255,255,255,0.95);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease,
    box-shadow 0.16s ease;
  margin-top: 2px;
}

.mp-consent-copy {
  display: block;
  min-width: 0;
}

.mp-consent-copy strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #243447;
  font-weight: 700;
}

.mp-consent-copy small {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 0.89rem;
  line-height: 1.55;
}

.mp-consent-check input:checked + .mp-consent-ui .mp-consent-icon {
  background: linear-gradient(135deg, #0f6fb2, #1ea88a);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 111, 178, 0.18);
  transform: scale(1.03);
}

.mp-consent-check input:focus + .mp-consent-ui .mp-consent-icon {
  box-shadow:
    0 0 0 0.2rem rgba(15, 111, 178, 0.08),
    0 10px 20px rgba(15, 111, 178, 0.10);
}

.mp-consent-error {
  margin-top: 10px;
  padding-left: 42px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #c0392b;
}

.mp-step6-card-icon--ok,
.mp-step6-note-icon--ok {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(44, 193, 133, 0.14), rgba(21, 116, 214, 0.08));
  border: 1px solid rgba(44, 193, 133, 0.20);
  box-shadow: 0 10px 24px rgba(16, 86, 64, 0.08);
}

.mp-step6-card-icon--ok i,
.mp-step6-note-icon--ok i {
  font-size: 1.35rem;
  color: #24b47e;
}