/* =============================================================
   EasyPro Plus — Solución (animación)
   F1 · Player chrome + chips + dark cinema container
   ============================================================= */

/* Reuse tokens from main styles.css; this file only adds player-specific UI. */

.sol-page {
  background: #fafafa;
  min-height: 100vh;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif);
  color: #1d1d1f;
  padding: 60px 0 120px;
}

.sol-page .back-bar {
  width: min(100% - 48px, 1240px);
  margin: 0 auto 24px;
  font-size: 13px;
}
.sol-page .back-bar a {
  color: #6e6e73;
  text-decoration: none;
}
.sol-page .back-bar a:hover { color: #007AFF; }

.sol-head {
  width: min(100% - 48px, 1240px);
  margin: 0 auto 40px;
  text-align: center;
}
.sol-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, ui-monospace, "SF Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #007AFF;
  background: #f0f7ff;
  border: 1px solid #e0ecff;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.sol-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
  color: #1d1d1f;
}
.sol-head h2 .grad {
  background: linear-gradient(120deg, #7a3cff 0%, #5a6dff 45%, #2257ff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.sol-head .lede {
  font-size: 17px;
  color: #6e6e73;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ─── Cinema container (full-bleed) ─────────────────────── */
.sol-cinema {
  width: 100%;
  background: radial-gradient(ellipse at 50% 30%, #1a1a1f 0%, #0a0a0c 70%);
  padding: 36px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.sol-cinema::before {
  /* subtle vignette */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.sol-stage-wrap {
  width: 100%;
  max-width: 1320px;
  position: relative;
  z-index: 1;
}

/* ─── Canvas frame ──────────────────────────────────────── */
.sol-canvas-shell {
  width: 100%;
  aspect-ratio: 1280 / 720;
  max-height: 720px;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.sol-canvas {
  position: absolute;
  inset: 0;
  background: #fafafa;
  transform-origin: top left;
}

/* ─── Chips bar (5 actos) ───────────────────────────────── */
.sol-chips {
  width: 100%;
  max-width: 1320px;
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.sol-chip {
  flex: var(--span, 1) 1 110px; /* basis 110px so short acts (Onboarding) still fit their label */
  min-width: 110px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.55);
  transition: color 200ms, background 200ms, transform 200ms;
  user-select: none;
  padding: 0 12px;
}
.sol-chip:hover { background: rgba(255, 255, 255, 0.1); color: rgba(255,255,255,0.85); }
.sol-chip.active { color: #fff; }

.sol-chip .fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--c, #007AFF) 80%, transparent),
    var(--c, #007AFF));
  border-radius: inherit;
  z-index: 0;
  transition: width 80ms linear;
}
.sol-chip .num {
  position: relative;
  z-index: 1;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 10px;
  opacity: 0.75;
}
.sol-chip .nm {
  position: relative;
  z-index: 1;
  letter-spacing: -0.005em;
}

/* ─── Playback controls row ─────────────────────────────── */
.sol-controls {
  width: 100%;
  max-width: 1320px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.7);
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 12px;
}
.sol-controls .btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 120ms;
  padding: 0;
}
.sol-controls .btn:hover { background: rgba(255, 255, 255, 0.12); }
.sol-controls .btn.primary {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.92);
  color: #1d1d1f;
  border-color: transparent;
}
.sol-controls .btn.primary:hover { background: #fff; }
.sol-controls .time {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  opacity: 0.75;
  letter-spacing: 0;
}
.sol-controls .spacer { flex: 1; }
.sol-controls .lang {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  font-family: inherit;
  font-size: 11px;
}
.sol-controls .lang button {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.6);
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: ui-monospace, "SF Mono", monospace;
}
.sol-controls .lang button.on {
  background: #fff;
  color: #1d1d1f;
}

/* ─── End screen ────────────────────────────────────────── */
.sol-end-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms;
}
.sol-end-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.sol-end-overlay .replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #1d1d1f;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ─── F1 placeholder watermark ──────────────────────────── */
.sol-stub-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.02) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.02) 0 1px, transparent 1px 80px);
  pointer-events: none;
}
.sol-stub-watermark {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11px;
  color: #c7c7cf;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.6);
  padding: 4px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* ─── Global keyframes (used across scenes/mockups) ─────── */
@keyframes sol-spin { to { transform: rotate(360deg); } }
@keyframes sol-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes sol-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Cross-fill banner (Zoom Bloque 11) — attention magnet ─ */
/* Combo: shimmer sweep + floating sparkles + pulsing yellow border */
.sol-cross-fill-zoom {
  animation: sol-cross-pulse-border 1.8s ease-in-out infinite;
}
@keyframes sol-cross-pulse-border {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(252, 211, 77, 0),
      0 0 14px rgba(252, 211, 77, 0.0);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(252, 211, 77, 0.28),
      0 0 28px rgba(252, 211, 77, 0.55);
  }
}
.sol-cross-fill-shimmer {
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.85) 50%, transparent 100%);
  pointer-events: none;
  animation: sol-cross-shimmer 2.4s ease-in-out infinite;
}
@keyframes sol-cross-shimmer {
  0%   { left: -45%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}
.sol-cross-fill-sparkle {
  position: absolute;
  pointer-events: none;
  font-size: 13px;
  opacity: 0;
  animation: sol-cross-sparkle 2.6s ease-out infinite;
  filter: drop-shadow(0 0 6px rgba(252, 211, 77, 0.8));
}
@keyframes sol-cross-sparkle {
  0%   { opacity: 0; transform: translateY(4px) scale(0.4); }
  20%  { opacity: 1; transform: translateY(-4px) scale(1); }
  60%  { opacity: 1; transform: translateY(-20px) scale(0.95); }
  100% { opacity: 0; transform: translateY(-34px) scale(0.5); }
}

/* ─── Cross-fill banner (Cascada dashboard) — attention magnet ───
   Dark purple banners that float over blocks. Pulse + shimmer + sparkles. */
.sol-cross-fill-cascade {
  animation: sol-cross-cascade-border 1.9s ease-in-out infinite;
}
@keyframes sol-cross-cascade-border {
  0%, 100% {
    box-shadow:
      0 10px 32px rgba(139, 92, 246, 0.48),
      0 0 0 1px rgba(139, 92, 246, 0.45),
      0 0 0 0 rgba(167, 139, 250, 0);
  }
  50% {
    box-shadow:
      0 12px 38px rgba(139, 92, 246, 0.65),
      0 0 0 1px rgba(167, 139, 250, 0.85),
      0 0 0 6px rgba(167, 139, 250, 0.2),
      0 0 32px rgba(167, 139, 250, 0.6);
  }
}
.sol-cross-cascade-shimmer {
  position: absolute;
  top: 0; bottom: 0;
  width: 35%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(167, 139, 250, 0.35) 40%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(167, 139, 250, 0.35) 60%,
    transparent 100%);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: sol-cross-cascade-shimmer 2.8s ease-in-out infinite;
}
@keyframes sol-cross-cascade-shimmer {
  0%   { left: -40%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}
.sol-cross-cascade-spark {
  position: absolute;
  pointer-events: none;
  font-size: 11px;
  opacity: 0;
  animation: sol-cross-cascade-spark 2.4s ease-out infinite;
  filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.85));
}
@keyframes sol-cross-cascade-spark {
  0%   { opacity: 0; transform: translateY(3px) scale(0.4); }
  25%  { opacity: 1; transform: translateY(-3px) scale(1); }
  65%  { opacity: 1; transform: translateY(-14px) scale(0.95); }
  100% { opacity: 0; transform: translateY(-22px) scale(0.5); }
}

/* ─── Sophia callout attention pulse ─────────────────────── */
.sol-callout-attention {
  animation: sol-callout-pulse 1.7s ease-in-out infinite;
}
@keyframes sol-callout-pulse {
  0%, 100% {
    box-shadow:
      0 22px 50px rgba(0,0,0,0.55),
      0 0 30px rgba(139, 92, 246, 0.22),
      inset 0 1px 0 rgba(255,255,255,0.06);
  }
  50% {
    box-shadow:
      0 22px 50px rgba(0,0,0,0.55),
      0 0 0 4px rgba(167, 139, 250, 0.25),
      0 0 48px rgba(167, 139, 250, 0.7),
      inset 0 1px 0 rgba(255,255,255,0.06);
  }
}
.sol-callout-avatar-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.7);
  animation: sol-callout-avatar-ring 1.7s ease-out infinite;
  pointer-events: none;
}
@keyframes sol-callout-avatar-ring {
  0%   { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ── EvidenciaDrop redesign — JP Fase 3 ───────────────────────── */

/* +1 HEREDADO bouncy pop-in */
@keyframes sol-heredado-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  55%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Mini sparkle burst on +1 HEREDADO */
@keyframes sol-mini-sparkle {
  0%   { transform: translate(0, 0) scale(0); opacity: 0; }
  30%  { transform: translate(0, -2px) scale(1.2); opacity: 1; }
  100% { transform: translate(8px, -16px) scale(0.5); opacity: 0; }
}

/* Progress card pulse when complete (7/7) */
.sol-progress-card-complete {
  border-color: #86efac !important;
  box-shadow:
    0 0 0 0 rgba(52, 199, 89, 0.55),
    0 6px 22px rgba(52, 199, 89, 0.18);
  animation: sol-progress-complete-pulse 2s ease-out infinite;
}
@keyframes sol-progress-complete-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.55), 0 6px 22px rgba(52, 199, 89, 0.18); }
  50%  { box-shadow: 0 0 0 10px rgba(52, 199, 89, 0.0),  0 6px 22px rgba(52, 199, 89, 0.18); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.0),  0 6px 22px rgba(52, 199, 89, 0.18); }
}

/* Progress digit count-up bump on change (uses key={settledCount} re-mount) */
.sol-progress-digit {
  animation: sol-digit-bump 360ms cubic-bezier(.34,1.56,.64,1);
}
@keyframes sol-digit-bump {
  0%   { transform: translateY(6px) scale(0.92); opacity: 0; }
  60%  { transform: translateY(-1px) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Printer status dot blink (used in PrintOutputs "Imprimiendo · 4 outputs") */
@keyframes sol-printer-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.78); }
}
