/* Pappitas — Pulso en vivo del Dashboard (MASTER y suscriptor) */
.dl { display: grid; grid-template-columns: 330px minmax(0, 1fr) 330px; gap: 22px; align-items: stretch; margin: 0 0 22px; padding: 22px; border-radius: 22px;
  background: var(--bg-card, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--text-primary, #111) 6%, transparent), 0 18px 44px -34px rgba(30,20,70,.4); overflow: hidden; }
.dl:empty { display: none; }

/* anillo */
.dl-orbit { position: relative; height: 330px; display: flex; align-items: center; justify-content: center; }
.dl-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.dl-ring.r1 { width: 300px; height: 300px; border: 1px dashed color-mix(in srgb, var(--brand-primary, #7c3aed) 22%, transparent); animation: dlSpin 120s linear infinite; }
.dl-ring.r2 { width: 236px; height: 236px; background: radial-gradient(circle, color-mix(in srgb, var(--brand-primary, #7c3aed) 7%, transparent) 0, transparent 70%); border: 1px solid color-mix(in srgb, var(--brand-primary, #7c3aed) 14%, transparent); }
.dl-ring.r3 { width: 150px; height: 150px; border: 1px solid color-mix(in srgb, var(--brand-primary, #7c3aed) 10%, transparent); }
.dl-spin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: dlSpin 48s linear infinite; }
.dl-spin--dots { animation-duration: 90s; animation-direction: reverse; }
.dl-slot { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.dl-up { position: absolute; left: 0; top: 0; width: 0; height: 0; animation: dlSpin 48s linear infinite reverse; display: block; }
.dl-pin { position: absolute; left: 0; top: 0; display: block; transform: translate(-50%, -50%); }
.dl-spin--dots .dl-up { animation-duration: 90s; animation-direction: normal; }
.dl-av { position: relative; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--c); color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: 0; box-shadow: 0 0 0 3px var(--bg-card, #fff), 0 8px 18px -8px rgba(20,10,50,.5); }
.dl-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#dl-avs .dl-on { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2.5px var(--bg-card, #fff); }
.dl-flag { position: absolute; left: -4px; bottom: -2px; font-style: normal; font-size: 13px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.dl-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--brand-primary, #7c3aed) 55%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--brand-primary, #7c3aed) 60%, transparent); animation: dlTwinkle 3s ease-in-out infinite; }
.dl-slot:nth-child(3n) .dl-dot { animation-delay: .8s; } .dl-slot:nth-child(3n+1) .dl-dot { animation-delay: 1.6s; }
.dl-core { position: relative; z-index: 2; width: 132px; height: 132px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(145deg, var(--brand-primary, #7c3aed), color-mix(in srgb, var(--brand-primary, #7c3aed) 55%, #db2777)); color: #fff; box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--brand-primary, #7c3aed) 70%, transparent); }
.dl-core b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dl-core span:last-child { margin-top: 4px; font-size: 11.5px; font-weight: 600; opacity: .9; }
.dl-core-pulse { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-primary, #7c3aed) 50%, transparent); animation: dlPulse 2.6s ease-out infinite; }
.dl--quiet .dl-core-pulse { animation-duration: 4s; }
@keyframes dlSpin { to { transform: rotate(360deg); } }
.dl-spin { transform-origin: 0 0; }
.dl-ring.r1 { animation-name: dlSpinC; }
@keyframes dlSpinC { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes dlPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-primary, #7c3aed) 45%, transparent); } 70% { box-shadow: 0 0 0 26px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes dlTwinkle { 50% { opacity: .35; transform: scale(.7); } }

/* centro */
.dl-side { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dl-head h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.015em; color: var(--text-primary, #111); }
.dl-live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 11.5px; font-weight: 700; }
.dl-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: dlBlink 1.6s ease-in-out infinite; }
@keyframes dlBlink { 50% { opacity: .3; } }
.dl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dl-tile { padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--c) 7%, var(--bg-card, #fff)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 14%, transparent); }
.dl-tile b { display: block; font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--c); font-variant-numeric: tabular-nums; }
.dl-tile span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-secondary, #6b7280); font-weight: 500; }
.dl-bump { animation: dlBump .6s ease-out; }
@keyframes dlBump { 30% { transform: scale(1.12); } }
.dl-spark { position: relative; padding: 12px 14px 8px; border-radius: 14px; background: color-mix(in srgb, var(--text-primary, #111) 3%, transparent); }
.dl-spark-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.dl-spark-h b { font-weight: 700; color: var(--text-primary, #111); }
.dl-spark-h span { color: var(--text-muted, #9ca3af); font-size: 12px; }
.dl-spark-h em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: #16a34a; }
#dl-spark { position: relative; }
.dl-svg { display: block; width: 100%; height: 56px; overflow: visible; }
.dl-spark-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--brand-primary, #7c3aed); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary, #7c3aed) 20%, transparent); }
.dl-spark-x { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10.5px; color: var(--text-muted, #9ca3af); font-variant-numeric: tabular-nums; }
.dl-countries { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-countries:empty { display: none; }
.dl-cc { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--text-primary, #111) 4%, transparent); font-size: 12px; color: var(--text-secondary, #6b7280); }
.dl-cc b { font-size: 15px; }
.dl-cc em { font-style: normal; font-weight: 700; color: var(--text-primary, #111); }
.dl-cc i { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--brand-primary, #7c3aed); border-radius: 2px; }

/* actividad */
.dl-feed { min-width: 0; display: flex; flex-direction: column; border-radius: 16px; background: color-mix(in srgb, var(--text-primary, #111) 3%, transparent); padding: 14px 6px 6px 14px; max-height: 330px; }
.dl-feed-h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-primary, #111); margin-bottom: 8px; }
.dl-feed-h .icon { width: 15px; height: 15px; color: var(--brand-primary, #7c3aed); }
.dl-feed ul { list-style: none; margin: 0; padding: 0 8px 0 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.dl-feed li { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; }
.dl-feed li.is-new { animation: dlIn .6s ease-out; background: color-mix(in srgb, var(--brand-primary, #7c3aed) 8%, transparent); }
@keyframes dlIn { from { opacity: 0; transform: translateY(-6px); } }
.dl-fav { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; }
.dl-fav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dl-ft { min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-secondary, #6b7280); line-height: 1.35; }
.dl-ft > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-ft b { font-weight: 650; color: var(--text-primary, #111); }
.dl-ft em { font-style: normal; color: var(--text-primary, #111); }
.dl-ft small { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted, #9ca3af); }
.dl-ft small i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.dl-empty { color: var(--text-muted, #9ca3af); font-size: 12.5px; padding: 10px 6px !important; }

@media (max-width: 1280px) { .dl { grid-template-columns: 300px minmax(0, 1fr); } .dl-feed { grid-column: 1 / -1; max-height: 260px; } .dl-orbit { height: 300px; } .dl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .dl { grid-template-columns: 1fr; padding: 16px; gap: 14px; border-radius: 20px; }
  .dl-orbit { height: 280px; transform: scale(.88); margin: -14px 0; }
  .dl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .dl * { animation: none !important; } }

/* reglas visibles: pastilla del centro, bienvenida, páginas */
.dl-core-pill { margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.2); font-style: normal; font-size: 10.5px; font-weight: 700; }
.dl-core-pill i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.dl-core-pill[hidden] { display: none; }
.dl--empty .dl-core b { display: none; }
.dl--empty .dl-core span:last-of-type, .dl--empty #dl-core-l { margin: 0; padding: 0 14px; font-size: 13px; font-weight: 700; line-height: 1.25; }
.dl-welcome { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary, #7c3aed) 9%, var(--bg-card, #fff)), color-mix(in srgb, #db2777 6%, var(--bg-card, #fff))); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-primary, #7c3aed) 14%, transparent); }
.dl-welcome[hidden], .dl-stats[hidden], .dl-spark[hidden] { display: none; }
.dl-welcome b { font-size: 15px; font-weight: 700; color: var(--text-primary, #111); }
.dl-welcome span { font-size: 13px; line-height: 1.5; color: var(--text-secondary, #6b7280); }
.dl-cta { align-self: flex-start; margin-top: 4px; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border: 0; border-radius: 12px; cursor: pointer; background: var(--brand-primary, #7c3aed); color: #fff; font: inherit; font-size: 13px; font-weight: 700; }
.dl-cta .icon { width: 15px; height: 15px; }
.dl-pg { max-width: 100%; }
.dl-pg > span { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-pg-on { display: inline-flex; align-items: center; gap: 4px; font-size: 11px !important; font-weight: 700; color: #15803d; }
.dl-pg-on i { position: static; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.dl-ft small strong { font-weight: 700; color: #15803d; }
.dl--empty { grid-template-columns: 330px minmax(0, 1fr); }
.dl--empty .dl-feed { display: none; }
.dl--empty .dl-side { justify-content: center; }
@media (max-width: 760px) { .dl--empty { grid-template-columns: 1fr; } }
