/* Stress scoring: maqueta de la pantalla de la app, con el score bajando a lo
   largo de cuatro semanas. Usa los colores de Framer que ya trae la página. */

.lv-stress {
  margin: 48px auto 0;
  max-width: 372px;
  width: 100%;
}

.lv-stress__phone {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: 34px;
  background: linear-gradient(180deg, #06214f 0%, #031c4c 62%, #02133a 100%);
  border: 1px solid rgba(27, 170, 255, .18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .06);
  font-family: "Outfit", "Outfit Placeholder", sans-serif;
  color: #f3f1f0;
}

/* Muesca superior, para que se lea como pantalla de móvil */
.lv-stress__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .16);
}

.lv-stress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.lv-stress__app {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(243, 241, 240, .55);
}

.lv-stress__chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(27, 170, 255, .14);
  border: 1px solid rgba(27, 170, 255, .26);
  color: #7fd0ff;
}

.lv-stress__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 2px;
}

.lv-stress__day {
  font-size: 13px;
  color: rgba(243, 241, 240, .5);
  margin-bottom: 6px;
}

/* Arco + número */
.lv-stress__gauge {
  position: relative;
  margin: 0 auto;
  width: 210px;
}

.lv-stress__gauge svg { display: block; width: 100%; height: auto; }

.lv-stress__arc-bg { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 11; stroke-linecap: round; }

.lv-stress__arc {
  fill: none;
  stroke: #f24e4e;
  stroke-width: 11;
  stroke-linecap: round;
  transition: stroke .6s ease;
}

.lv-stress__num {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  text-align: center;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.lv-stress__estado {
  position: absolute;
  left: 0;
  right: 0;
  top: 104px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f24e4e;
  transition: color .6s ease;
}

/* Gráfica diaria */
.lv-stress__chart { margin-top: 14px; }
.lv-stress__chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.lv-stress__bar { fill: rgba(27, 170, 255, .30); transition: fill .5s ease; }
.lv-stress__bar.is-hoy { fill: #1baaff; }
.lv-stress__linea { fill: none; stroke: #ff7450; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lv-stress__weeks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(243, 241, 240, .45);
}
.lv-stress__weeks span { flex: 1; text-align: center; }
.lv-stress__weeks span.is-hoy { color: #7fd0ff; }

/* Eventos de estrés: se van tachando conforme se trabajan */
.lv-stress__eventos {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lv-stress__evento {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(242, 78, 78, .12);
  border: 1px solid rgba(242, 78, 78, .3);
  color: #ffb3b3;
  transition: background-color .5s ease, border-color .5s ease, color .5s ease, opacity .5s ease;
}
.lv-stress__evento.is-hecho {
  background: rgba(39, 184, 140, .12);
  border-color: rgba(39, 184, 140, .32);
  color: #7fe0c0;
}
.lv-stress__evento.is-hecho::before { content: "✓ "; }

.lv-stress__delta {
  margin-top: 16px;
  text-align: center;
  font-size: 13.5px;
  color: #27b88c;
  opacity: 0;
  transition: opacity .5s ease;
}
.lv-stress__delta.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .lv-stress__arc,
  .lv-stress__estado,
  .lv-stress__bar,
  .lv-stress__evento,
  .lv-stress__delta { transition: none; }
}
