/* PRUEBA_LUZ_VISUAL_ONBOARDING_REAL_V2 */

:root {
  --trial-pink: #e84b9c;
  --trial-pink-light: #ff72b6;
  --trial-purple: #9c4df4;
  --trial-dark: #2b222b;
  --trial-muted: #746773;
  --trial-line: rgba(232, 75, 156, .18);
}

/* =========================================
   PÁGINA DE ACTIVACIÓN
========================================= */

html[data-auth="checking"] body {
  visibility: hidden;
}

body.ba-trial-page {
  margin: 0;
  min-height: 100vh;
  padding: 18px 0 46px;
  box-sizing: border-box;

  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--trial-dark);

  background:
    radial-gradient(
      circle at 15% 4%,
      rgba(232, 75, 156, .19),
      transparent 27%
    ),
    radial-gradient(
      circle at 88% 10%,
      rgba(156, 77, 244, .15),
      transparent 27%
    ),
    linear-gradient(
      180deg,
      #fff4fa 0%,
      #ffffff 52%,
      #fff7fb 100%
    );
}

body.ba-trial-page *,
body.ba-trial-page *::before,
body.ba-trial-page *::after {
  box-sizing: border-box;
}

.ba-trial-shell {
  width: min(392px, calc(100% - 24px));
  margin: 0 auto;
}

.ba-trial-brand {
  margin: 0 0 13px;
  text-align: center;
  color: #b53080;
  font-size: .87rem;
  font-weight: 950;
}

.ba-trial-card {
  position: relative;
  overflow: hidden;

  padding: 22px 18px 19px;

  border: 1px solid var(--trial-line);
  border-radius: 28px;

  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fff7fb 100%
    );

  box-shadow:
    0 22px 54px
    rgba(232, 75, 156, .18);
}

.ba-trial-card::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -100px;
  right: -80px;
  border-radius: 999px;

  background:
    radial-gradient(
      circle,
      rgba(232, 75, 156, .22),
      transparent 68%
    );

  pointer-events: none;
}

.ba-trial-content {
  position: relative;
  z-index: 1;
}

.ba-trial-heart {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 74px;
  height: 74px;
  margin: 2px auto 14px;

  border-radius: 25px;

  color: #fff;
  font-size: 36px;

  background:
    linear-gradient(
      135deg,
      #ff8ac5,
      #e84b9c 54%,
      #9c4df4
    );

  box-shadow:
    0 18px 34px
    rgba(232, 75, 156, .32);
}

.ba-trial-badge {
  display: table;
  margin: 0 auto 13px;
  padding: 6px 11px;

  border: 1px solid var(--trial-line);
  border-radius: 999px;

  color: #b53080;
  background: #fff;

  font-size: .76rem;
  font-weight: 950;

  box-shadow:
    0 8px 18px
    rgba(232, 75, 156, .08);
}

.ba-trial-title {
  margin: 0;

  color: var(--trial-dark);

  font-size: clamp(1.65rem, 8vw, 2.05rem);
  font-weight: 950;
  line-height: 1.06;
  letter-spacing: -.04em;
  text-align: center;
}

.ba-trial-description {
  max-width: 340px;
  margin: 11px auto 18px;

  color: var(--trial-muted);

  font-size: .94rem;
  font-weight: 650;
  line-height: 1.43;
  text-align: center;
}

.ba-trial-benefits {
  display: grid;
  gap: 8px;
  margin: 17px 0;
}

.ba-trial-benefit {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;

  padding: 11px 12px;

  border: 1px solid rgba(232, 75, 156, .11);
  border-radius: 16px;

  background: #fff8fc;
}

.ba-trial-check {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;
  border-radius: 999px;

  color: #fff;
  font-size: .88rem;
  font-weight: 950;

  background:
    linear-gradient(
      135deg,
      #ff72b6,
      #e84b9c 60%,
      #bd48ee
    );

  box-shadow:
    0 9px 18px
    rgba(232, 75, 156, .20);
}

.ba-trial-benefit strong {
  display: block;
  margin-bottom: 2px;

  color: #51444f;
  font-size: .9rem;
  font-weight: 950;
}

.ba-trial-benefit span:last-child {
  display: block;

  color: #806e79;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.34;
}

.ba-trial-status {
  display: none;
  margin: 13px 0 0;
  padding: 12px 13px;

  border-radius: 17px;

  font-size: .85rem;
  font-weight: 800;
  line-height: 1.4;
}

.ba-trial-status.show {
  display: block;
}

.ba-trial-status.ok {
  color: #176441;
  border: 1px solid #bae5ce;
  background: #ebfaf2;
}

.ba-trial-status.error {
  color: #982b4a;
  border: 1px solid #f1c4d1;
  background: #fff0f5;
}

.ba-trial-date {
  display: none;
  margin-top: 11px;
  padding: 12px 13px;

  border: 1px dashed rgba(232, 75, 156, .28);
  border-radius: 17px;

  color: #725d69;
  background: #fff8fc;

  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.ba-trial-date.show {
  display: block;
}

.ba-trial-date strong {
  display: block;
  margin-top: 4px;

  color: #b53080;
  font-size: .93rem;
  font-weight: 950;
}

.ba-trial-actions {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.ba-trial-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 52px;
  padding: 13px 17px;

  border-radius: 999px;

  font-family: inherit;
  font-size: .96rem;
  font-weight: 950;
  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    transform .16s ease,
    box-shadow .16s ease,
    opacity .16s ease;
}

.ba-trial-button:active {
  transform: scale(.985);
}

.ba-trial-button.primary {
  border: 0;
  color: #fff;

  background:
    linear-gradient(
      135deg,
      #ff72b6,
      #e84b9c 55%,
      #bb45ee
    );

  box-shadow:
    0 16px 28px
    rgba(232, 75, 156, .28);
}

.ba-trial-button.secondary {
  border: 1px solid var(--trial-line);
  color: #9b2d70;
  background: #fff;
  box-shadow: none;
}

.ba-trial-button:disabled {
  opacity: .62;
  cursor: wait;
}

.ba-trial-fine {
  margin: 14px 4px 0;

  color: #8a7883;

  font-size: .71rem;
  font-weight: 650;
  line-height: 1.42;
  text-align: center;
}

/* =========================================
   DASHBOARD: MISMO BOTÓN DEL ONBOARDING
========================================= */

#pruebaLuzDashboardCard {
  border:
    1px solid
    rgba(232, 75, 156, .18) !important;

  border-radius: 24px !important;

  background:
    linear-gradient(
      180deg,
      #fff 0%,
      #fff7fb 100%
    ) !important;

  box-shadow:
    0 18px 42px
    rgba(232, 75, 156, .13) !important;
}

#pruebaLuzDashboardCard
.prueba-luz-dashboard-button {
  min-height: 48px !important;
  padding: 12px 16px !important;

  border-radius: 999px !important;

  font-size: .92rem !important;
  font-weight: 950 !important;

  text-decoration: none !important;
}

#pruebaLuzDashboardCard
.prueba-luz-dashboard-button.primary {
  border: 0 !important;
  color: #fff !important;

  background:
    linear-gradient(
      135deg,
      #ff72b6,
      #e84b9c 55%,
      #bb45ee
    ) !important;

  box-shadow:
    0 15px 27px
    rgba(232, 75, 156, .27) !important;
}

#pruebaLuzDashboardCard
.prueba-luz-dashboard-button.secondary {
  color: #9b2d70 !important;
  background: #fff !important;

  border:
    1px solid
    rgba(232, 75, 156, .20) !important;

  box-shadow: none !important;
}

@media (max-width: 460px) {
  body.ba-trial-page {
    padding-top: 10px;
  }

  .ba-trial-shell {
    width: calc(100% - 18px);
  }

  .ba-trial-card {
    padding: 19px 14px 17px;
    border-radius: 24px;
  }

  .ba-trial-heart {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    font-size: 32px;
  }
}

/* PRUEBA_LUZ_COMPACTA_MOVIL_V3_INICIO */

/*
 * Ajuste compacto:
 * conserva el diseño del onboarding,
 * pero reduce la escala visual en móvil.
 */

body.ba-trial-page {
  padding-top: 8px;
  padding-bottom: 28px;
}

.ba-trial-shell {
  width: min(354px, calc(100% - 20px));
}

.ba-trial-brand {
  margin-bottom: 8px;
  font-size: .78rem;
}

.ba-trial-card {
  padding: 16px 14px 15px;
  border-radius: 23px;

  box-shadow:
    0 16px 38px
    rgba(232, 75, 156, .15);
}

.ba-trial-card::before {
  width: 145px;
  height: 145px;
  top: -78px;
  right: -62px;
}

.ba-trial-heart {
  width: 58px;
  height: 58px;

  margin:
    0 auto 9px;

  border-radius: 19px;

  font-size: 28px;

  box-shadow:
    0 12px 25px
    rgba(232, 75, 156, .27);
}

.ba-trial-badge {
  margin-bottom: 9px;
  padding: 5px 9px;

  font-size: .68rem;
}

.ba-trial-title {
  max-width: 310px;
  margin: 0 auto;

  font-size:
    clamp(
      1.38rem,
      6.4vw,
      1.68rem
    );

  line-height: 1.08;
  letter-spacing: -.035em;
}

.ba-trial-description {
  max-width: 305px;

  margin:
    8px auto 12px;

  font-size: .84rem;
  line-height: 1.37;
}

.ba-trial-benefits {
  gap: 6px;
  margin: 12px 0;
}

.ba-trial-benefit {
  grid-template-columns: 29px 1fr;

  gap: 8px;

  padding: 8px 9px;

  border-radius: 13px;
}

.ba-trial-check {
  width: 27px;
  height: 27px;

  font-size: .75rem;

  box-shadow:
    0 6px 13px
    rgba(232, 75, 156, .18);
}

.ba-trial-benefit strong {
  margin-bottom: 1px;
  font-size: .79rem;
}

.ba-trial-benefit span:last-child {
  font-size: .69rem;
  line-height: 1.27;
}

.ba-trial-status {
  margin-top: 9px;
  padding: 9px 10px;

  border-radius: 14px;

  font-size: .76rem;
}

.ba-trial-date {
  margin-top: 8px;
  padding: 9px 10px;

  border-radius: 14px;

  font-size: .73rem;
}

.ba-trial-date strong {
  margin-top: 2px;
  font-size: .82rem;
}

.ba-trial-actions {
  gap: 7px;
  margin-top: 12px;
}

.ba-trial-button {
  min-height: 44px;
  padding: 10px 14px;

  font-size: .84rem;

  box-shadow:
    0 11px 21px
    rgba(232, 75, 156, .23);
}

.ba-trial-fine {
  margin-top: 10px;

  font-size: .63rem;
  line-height: 1.35;
}

@media (max-width: 380px) {
  .ba-trial-shell {
    width: calc(100% - 14px);
  }

  .ba-trial-card {
    padding: 14px 11px;
    border-radius: 21px;
  }

  .ba-trial-title {
    font-size: 1.32rem;
  }

  .ba-trial-description {
    font-size: .8rem;
  }
}

/* PRUEBA_LUZ_COMPACTA_MOVIL_V3_FIN */

/* PRUEBA_LUZ_DASHBOARD_COMPACTO_V4_INICIO */

/*
 * Compactación exclusiva de la tarjeta
 * Luz Naciente dentro del Dashboard.
 */

#pruebaLuzDashboardCard {
  margin: 12px 0 16px !important;
  padding: 14px !important;

  border-radius: 20px !important;

  box-shadow:
    0 12px 28px
    rgba(232, 75, 156, .11) !important;
}

#pruebaLuzDashboardCard::before {
  width: 110px !important;
  height: 110px !important;
  top: -58px !important;
  right: -46px !important;
}

#pruebaLuzDashboardCard::after {
  top: 3px !important;
  right: 8px !important;

  font-size: 38px !important;
  opacity: .10 !important;
}

#pruebaLuzDashboardCard
.prueba-luz-dashboard-badge {
  min-height: 25px !important;
  padding: 5px 9px !important;

  font-size: .68rem !important;
}

#pruebaLuzDashboardCard
.prueba-luz-dashboard-title {
  margin: 8px 0 4px !important;

  font-size: 1.08rem !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em !important;
}

#pruebaLuzDashboardCard
.prueba-luz-dashboard-text {
  margin: 0 !important;

  font-size: .80rem !important;
  line-height: 1.35 !important;
}

#pruebaLuzDashboardCard
.prueba-luz-dashboard-progress {
  margin-top: 8px !important;

  font-size: .82rem !important;
  line-height: 1.30 !important;
}

#pruebaLuzDashboardCard
.prueba-luz-dashboard-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;

  gap: 8px !important;
  margin-top: 10px !important;
}

#pruebaLuzDashboardCard
.prueba-luz-dashboard-button {
  width: 100% !important;
  min-height: 40px !important;

  padding: 8px 9px !important;
  border-radius: 999px !important;

  font-size: .78rem !important;
  line-height: 1.15 !important;

  box-shadow:
    0 8px 17px
    rgba(232, 75, 156, .18) !important;
}

#pruebaLuzDashboardCard
.prueba-luz-dashboard-button.secondary {
  box-shadow: none !important;
}

@media (max-width: 380px) {
  #pruebaLuzDashboardCard {
    padding: 12px !important;
  }

  #pruebaLuzDashboardCard
  .prueba-luz-dashboard-title {
    font-size: 1rem !important;
  }

  #pruebaLuzDashboardCard
  .prueba-luz-dashboard-text {
    font-size: .76rem !important;
  }

  #pruebaLuzDashboardCard
  .prueba-luz-dashboard-button {
    min-height: 38px !important;
    padding: 7px 7px !important;
    font-size: .73rem !important;
  }
}

/* PRUEBA_LUZ_DASHBOARD_COMPACTO_V4_FIN */

