/* =========================================================
   MEDPREV · BASE
   Fondo, landing, modal, progreso, estructura general
========================================================= */

/* =========================================================
   FONDO GENERAL
========================================================= */
.mp-bg {
  min-height: calc(100vh - 120px);
  padding: 40px 0 50px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 30%, rgba(40, 200, 140, 0.16), transparent 45%),
    radial-gradient(circle at 15% 70%, rgba(0, 120, 255, 0.16), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03), transparent 60%),
    linear-gradient(135deg, #0d4f95 0%, #1670b0 38%, #22a88a 70%, #35c58f 100%);
}

.mp-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../../img/plantilla/texture_genetica.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.32;
  mix-blend-mode: soft-light;
}

.mp-bg > * {
  position: relative;
  z-index: 1;
}

/* =========================================================
   LOGO / IDIOMA
========================================================= */
.mp-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.55);
  max-width: 280px;
}

.mp-logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.mp-lang-wrap {
  display: flex;
  justify-content: center;
}

.mp-lang {
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.mp-lang .btn {
  color: rgba(255, 255, 255, 0.88);
  border: 0 !important;
  background: transparent !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: 999px !important;
  transition: all 0.15s ease;
}

.mp-lang .btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff;
}

.mp-lang .btn.active {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0b3c88 !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   LANDING
========================================================= */
.mp-landing {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.mp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.mp-title {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.97);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.40),
    0 6px 18px rgba(0, 0, 0, 0.12);
}

.mp-subtitle {
  max-width: 760px;
  margin: 0 auto 20px;
  font-size: 1.06rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.97);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
}

.mp-landing-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 26px 0 28px;
}

.mp-landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.92rem;
  backdrop-filter: blur(8px);
}

.mp-start-btn {
  min-width: 240px;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  background: #f8f9fa;
  border-color: #f8f9fa;
  color: #212529;
  transform: none;
  filter: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.mp-start-btn:hover,
.mp-start-btn:focus,
.mp-start-btn:active {
  background: #f8f9fa;
  border-color: #f8f9fa;
  color: #212529;
  transform: none;
  filter: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.mp-note {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.mp-footer {
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
  text-align: center;
  margin-top: 18px;
}

/* =========================================================
   OVERLAY + MODAL
========================================================= */
.mp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1055;
  background: rgba(7, 16, 34, 0);
  backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.38s ease,
    visibility 0.38s ease,
    backdrop-filter 0.38s ease,
    background 0.38s ease;
}

.mp-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(7, 16, 34, 0.52);
  backdrop-filter: blur(8px);
}

.mp-modal {
  position: absolute;
  inset: 18px;
  max-width: 1120px;
  margin: auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(34px) scale(0.975);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.mp-overlay.is-open .mp-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.mp-modal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.mp-modal-brand img {
  height: 34px;
  width: auto;
  display: block;
}

.mp-modal-brand-copy {
  min-width: 0;
}

.mp-modal-brand-copy strong {
  display: block;
  color: #233243;
  font-size: 1rem;
  line-height: 1.2;
}

.mp-modal-brand-copy small {
  display: block;
  color: #6b7280;
  line-height: 1.3;
}

.mp-modal-close {
  border: 0;
  background: rgba(11, 60, 136, 0.06);
  color: #0b3c88;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mp-modal-close:hover {
  background: rgba(11, 60, 136, 0.12);
}

.mp-modal-body {
  position: relative;
  padding: 20px 22px 18px;
  overflow: auto;
  flex: 1;
}

body.mp-modal-open {
  overflow: hidden;
}

/* =========================================================
   PROGRESO Y ESTRUCTURA GENERAL
========================================================= */
.mp-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mp-step-label {
  color: #596578;
  font-weight: 700;
}

.mp-progress {
  width: 240px;
  height: 8px;
  background: #e7edf5;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}

.mp-progress-bar {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, #0f6fb2, #1ea88a);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.mp-step {
  display: none;
  opacity: 0;
  transform: translateY(18px) scale(0.995);
  will-change: opacity, transform;
}

.mp-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mp-step-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #243447;
  margin-bottom: 0.45rem;
}

.mp-step-sub {
  color: #667085;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.35rem;
  max-width: 820px;
}

.mp-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

/* =========================================================
   UTILIDADES
========================================================= */
.mp-hidden {
  display: none !important;
}

.mp-muted {
  color: #6b7280;
}

.mp-section-space {
  margin-bottom: 20px;
}

/* =========================================================
   SHARE CARD · LANDING
========================================================= */
.mp-share-card {
  max-width: 920px;
  margin: 26px auto 0;
  padding: 22px 22px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
  text-align: left;
}

.mp-share-head {
  margin-bottom: 16px;
}

.mp-share-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.mp-share-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  font-size: 0.96rem;
}

.mp-share-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.mp-share-main,
.mp-share-qr-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.mp-share-label {
  display: block;
  color: #2b3c4e;
  font-weight: 700;
  margin-bottom: 10px;
}

.mp-share-input-wrap {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 16px;
}

.mp-share-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #d6dee8;
  padding: 0 14px;
  background: #fff;
  color: #2a3441;
  font-size: 0.96rem;
  outline: none;
}

.mp-share-input:focus {
  border-color: #35c58f;
  box-shadow: 0 0 0 0.18rem rgba(53, 197, 143, 0.14);
}

.mp-share-copy-btn {
  flex: 0 0 auto;
  min-width: 126px;
  height: 48px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, #a8cf45 0%, #8cc63f 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(140, 198, 63, 0.22);
}

.mp-share-copy-btn:hover,
.mp-share-copy-btn:focus {
  color: #fff;
  filter: brightness(1.03);
}

.mp-share-actions-label {
  display: block;
  color: #405164;
  font-weight: 700;
  margin-bottom: 10px;
}

.mp-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none !important;
  border: 1px solid #e5ebf2;
  background: #f8fbfd;
  color: #2f4153;
  font-weight: 700;
  transition: all 0.16s ease;
  cursor: pointer;
}

.mp-share-btn:hover,
.mp-share-btn:focus {
  transform: translateY(-1px);
  text-decoration: none !important;
  color: #223243;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.mp-share-btn i {
  font-size: 1.05rem;
}

.mp-share-btn--wa i {
  color: #25d366;
}

.mp-share-btn--fb i {
  color: #1877f2;
}

.mp-share-btn--x i {
  color: #111827;
}

.mp-share-btn--more i {
  color: #8cc63f;
}

.mp-share-note {
  margin-top: 14px;
  color: #5a6978;
  line-height: 1.6;
  font-size: 0.92rem;
}

.mp-share-qr-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mp-share-qr-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mp-share-qr-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(53, 197, 143, 0.14), rgba(22, 112, 176, 0.10));
  border: 1px solid rgba(53, 197, 143, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1ca386;
  font-size: 1.1rem;
}

.mp-share-qr-title {
  color: #243447;
  font-weight: 800;
  line-height: 1.2;
}

.mp-share-qr-sub {
  color: #667085;
  font-size: 0.9rem;
  line-height: 1.4;
}

.mp-share-qr-box {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #e5edf4;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.mp-share-qr-img {
  width: 100%;
  max-width: 210px;
  height: auto;
  display: block;
  border-radius: 12px;
}

@media (max-width: 991.98px) {
  .mp-share-grid {
    grid-template-columns: 1fr;
  }

  .mp-share-card {
    padding: 18px;
  }
}

@media (max-width: 575.98px) {
  .mp-share-input-wrap {
    flex-direction: column;
  }

  .mp-share-copy-btn {
    width: 100%;
    min-width: 0;
  }

  .mp-share-btn {
    width: 100%;
    justify-content: center;
  }
}