/* /entrenar page-specific styles (the shared system lives in styles.css). */

/* Hero: HTML recreation of the active-workout screen. Final state is the default;
   the entrance only plays when motion is allowed. */
.app { --done: #16a34a; gap: 8px; padding-top: 7%; font-size: 12.5px; }
.app-head { display: grid; gap: 0; padding: 0 2px; }
.app-head small, .app-card small { font-size: 0.78em; font-weight: 700; letter-spacing: 0.12em; color: #6366f1; }
.app-head b { font-size: 2em; line-height: 1.1; letter-spacing: -0.02em; }
.app-card { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 6px 14px -8px rgba(15, 23, 42, 0.18); display: grid; gap: 2px; }
.app-card small { color: #64748b; }
.app-title { font-size: 1.7em; line-height: 1.1; }
.app-sub { color: #475569; }
.app-bar { height: 7px; border-radius: 99px; background: #e2e8f0; margin-top: 8px; overflow: hidden; }
.app-bar i { display: block; height: 100%; width: 60%; background: #6366f1; border-radius: inherit; transform-origin: left; }
.app-ex { gap: 8px; border: 1px solid #c7d2fe; align-content: start; }
.app-next { display: flex; align-items: center; gap: 9px; opacity: 0.85; }
.ex-ico.dim { background: #e0e7ff; color: #6366f1; }
.dimc { color: #64748b; font-weight: 700; }
.ex-head { display: flex; align-items: center; gap: 9px; }
.ex-ico { width: 34px; height: 34px; border-radius: 10px; background: #6366f1; color: #fff; display: grid; place-items: center; flex: none; }
.ex-ico svg { width: 18px; height: 18px; }
.ex-name { display: grid; flex: 1; min-width: 0; }
.ex-name b { font-size: 1.12em; }
.ex-name small { font-size: 0.95em; color: #475569; letter-spacing: 0; font-weight: 500; }
.ex-count { color: #4f46e5; font-weight: 700; }
.rest-chip { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: #eef2ff; color: #4338ca; font-weight: 700; }
.rest-chip svg { width: 13px; height: 13px; }
.sets { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.set { display: grid; grid-template-columns: 14px 1fr auto 1fr auto 24px; align-items: center; gap: 6px; background: #f1f5f9; border-radius: 11px; padding: 8px 10px; color: #0f172a; }
.set .n, .set .u { color: #475569; }
.set b { font-size: 1.2em; font-variant-numeric: tabular-nums; }
.chk { width: 22px; height: 22px; border-radius: 50%; background: var(--done) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 70% no-repeat; justify-self: end; }
.set.pend .chk { background: transparent; box-shadow: inset 0 0 0 2px #cbd5e1; }
.pr-note { margin: 2px 0 0; color: #b45309; background: #fef3c7; border-radius: 10px; padding: 7px 10px; font-weight: 700; max-width: none; }

/* Rutinas: three ways, plain definition rows */
.rutinas { display: grid; gap: 8px; }
.ways { margin: 0; display: grid; }
.ways > div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.ways > div:last-child { border-bottom: 1px solid var(--line); }
.ways dt { color: var(--text); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.ways dd { margin: 0; color: var(--muted); max-width: 58ch; }

/* Entreno: the session beats as a quiet stack */
.notes-stage { padding: 12px 0; }
.moments { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: min(380px, 100%); }
.moments li { display: grid; gap: 2px; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--hair); }
.moments li:nth-child(2) { margin-left: 28px; }
.moments li:nth-child(3) { margin-left: 8px; }
.moments b { color: var(--text); font-size: 1.05rem; }
.moments span { color: var(--muted); font-size: 0.92rem; }
.moments .pr { background: linear-gradient(160deg, #3a2f12, #2a2410); border-color: rgba(251, 191, 36, 0.4); }
.moments .pr b { color: #fde68a; }
.moments .pr span { color: #e7d6a1; }
.center-sm { margin-top: 22px; }

/* Compartir */
.compartir .head { margin-bottom: 24px; }
.how { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.how li { color: var(--text); font-weight: 600; padding: 2px 0 2px 14px; position: relative; }
.how li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); }

/* Forjita: early access */
.forjita { display: grid; gap: 28px; }
.badge-early { display: inline-block; margin: 0 0 14px; padding: 5px 13px; border-radius: 999px; background: rgba(251, 191, 36, 0.14); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.4); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.forjita .sub { margin-bottom: 1em; }
.ask { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 12px; align-self: start; }
.ask h3 { font-size: 1.3rem; }
.ask ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; color: var(--muted); }
.ask ol::marker, .ask li::marker { color: var(--accent-text); font-weight: 700; }
.ask strong { color: var(--text); }
.ask .fine { font-size: 0.9rem; }
.ask .cta { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.ask .cta:hover { background: var(--accent-strong); box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.6); }

@media (min-width: 860px) {
  .rutinas { grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; }
  .rutinas .head { margin-bottom: 0; }
  .forjita { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
  .ask { padding: 32px 32px 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stage .set { animation: row 0.5s var(--ease) both; animation-delay: calc(0.45s + var(--i) * 140ms); }
  .hero-stage .set:not(.pend) .chk { animation: tick 0.45s var(--ease) both; animation-delay: calc(0.85s + var(--i) * 420ms); }
  @keyframes tick { from { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } to { transform: none; opacity: 1; } }
  .hero-stage .app-bar i { animation: fill 1.4s var(--ease) 0.9s both; }
  @keyframes fill { from { transform: scaleX(0.05); } to { transform: none; } }
  .hero-stage .pr-note { animation: row 0.6s var(--ease) 2.2s both; }
  .hero-stage .rest-chip { animation: row 0.5s var(--ease) 1.6s both; }
}
