/* =========================================================
   MEDPREV · COMPONENTS
   AI hero, resultados, botones, loader, dependencias visuales
========================================================= */

/* =========================================================
   AI HERO / CONSENT / RESULTADOS
========================================================= */
.mp-ai-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(42, 193, 125, 0.10), transparent 26%),
    radial-gradient(circle at left center, rgba(15, 111, 178, 0.08), transparent 28%),
    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 18px 34px rgba(12, 23, 38, 0.05);
}

.mp-ai-copy {
  min-width: 0;
}

.mp-ai-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0b4d8b;
  background: rgba(15, 111, 178, 0.08);
  margin-bottom: 12px;
}

.mp-ai-title {
  font-size: 1.62rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #233243;
  font-weight: 800;
  margin-bottom: 12px;
}

.mp-ai-text {
  color: #617085;
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.mp-ai-points {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.mp-ai-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: #425466;
  font-size: 0.95rem;
  line-height: 1.55;
}

.mp-ai-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #0f6fb2, #1ea88a);
  box-shadow: 0 0 0 5px rgba(15, 111, 178, 0.08);
}

.mp-ai-mini {
  margin-top: 14px;
  color: #708095;
  font-size: 0.9rem;
  line-height: 1.55;
}

.mp-ai-visual {
  display: flex;
  justify-content: center;
}

.mp-ai-visual-card {
  width: 100%;
  max-width: 390px;
  min-height: 260px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.8), transparent 22%),
    linear-gradient(145deg, #0f6fb2 0%, #1b8fa7 52%, #25b88e 100%);
  box-shadow: 0 22px 36px rgba(15, 111, 178, 0.20);
  position: relative;
  overflow: hidden;
}

.mp-ai-visual-card::before,
.mp-ai-visual-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.mp-ai-visual-card::before {
  width: 180px;
  height: 180px;
  top: -40px;
  right: -30px;
}

.mp-ai-visual-card::after {
  width: 140px;
  height: 140px;
  left: -30px;
  bottom: -25px;
}

.mp-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 111, 178, 0.04);
  border: 1px solid rgba(15, 111, 178, 0.08);
}

.mp-consent input[type="checkbox"] {
  margin-top: 4px;
}

.mp-results {
  display: grid;
  gap: 14px;
}

.mp-result-card {
  padding: 18px;
  border-radius: 20px;
  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 12px 28px rgba(12, 23, 38, 0.04);
}

.mp-result-kicker {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 111, 178, 0.08);
  color: #0b4d8b;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.mp-result-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #243447;
  margin-bottom: 6px;
}

.mp-result-text {
  color: #617085;
  line-height: 1.65;
  margin-bottom: 0;
}

/* =========================================================
   BOTONES
========================================================= */
.mp-step .btn-dark {
  background: linear-gradient(135deg, #0f6fb2, #1ea88a);
  border-color: transparent;
}

.mp-step .btn-dark:hover {
  border-color: transparent;
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.mp-step .btn {
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.mp-step .btn-outline-secondary {
  border-radius: 12px;
}

.mp-step .btn-dark {
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(15, 111, 178, 0.14);
}

/* =========================================================
   LOADER
========================================================= */
.mp-step-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  opacity: 0;
}

.mp-step-loader > * {
  position: relative;
  z-index: 2;
}

.mp-step-loader::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 111, 178, 0.08), transparent 68%);
  filter: blur(8px);
}

.mp-step-loader-orb {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 111, 178, 0.14), rgba(42, 193, 125, 0.14));
  box-shadow:
    0 12px 30px rgba(15, 111, 178, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  margin: 0 auto 14px;
}

.mp-step-loader-spinner {
  display: block;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2.5px solid rgba(15, 111, 178, 0.10);
  border-top-color: #0f6fb2;
  border-right-color: rgba(30, 168, 138, 0.95);
  animation: mpSpin 0.85s linear infinite;
  margin: 0;
  flex: 0 0 auto;
}

.mp-step-loader-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #24405f;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.mp-step-loader-sub {
  margin-top: 5px;
  font-size: 0.82rem;
  color: #667085;
  line-height: 1.35;
}

@keyframes mpSpin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   DEPENDENCIAS VISUALES
========================================================= */
.mp-dependent-disabled {
  opacity: 0.55;
  transition: opacity 0.18s ease;
}

.mp-dependent-disabled .form-control {
  background: #f5f7fa;
  cursor: not-allowed;
}