/* ==============================================================
   DOKIDO TRADUCCIONES · TICKER.CSS
   Cintillo superior como banda de acento con noticias en
   movimiento + reloj local. Estilo moderno suave, color plano.
   ============================================================== */
:root { --ticker-height: 34px; }
@media (max-width: 1023px) { :root { --ticker-height: 30px; } }
@media (max-width: 700px)  { :root { --ticker-height: 28px; } }

.dk-ticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 960;
    height: var(--ticker-height);
    background: var(--accent);
    overflow: hidden;
    display: flex;
    align-items: center;
    user-select: none;
    font-family: var(--font-body);
}

.dk-ticker-inner {
    max-width: 1600px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dk-ticker-viewport {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.dk-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: max-content;
    animation: dkTickerScroll var(--ticker-duration, 40s) linear infinite;
    will-change: transform;
}
.dk-ticker:hover .dk-ticker-track { animation-play-state: paused; }

@keyframes dkTickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.dk-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-right: 30px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
}
.dk-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3.5px 10px;
    border-radius: var(--radius-full);
    background: #fff;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.07em;
    flex-shrink: 0;
}
.dk-ticker-label i {
    font-size: 9px;
    animation: dkTickerPulse 2.6s ease-in-out infinite;
}
@keyframes dkTickerPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.22); opacity: 0.75; }
}
.dk-ticker-texto { color: #fff; font-weight: 500; }
.dk-ticker-texto b { font-weight: 800; letter-spacing: 0.01em; }
.dk-ticker-tomo {
    margin-left: 5px;
    font-weight: 700;
}
.dk-ticker-estado {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}
.dk-ticker-estado::before {
    content: "—";
    margin-right: 7px;
    opacity: 0.75;
    font-weight: 400;
}

/* Las clases por tipo se conservan; dentro de la banda el énfasis
   lo aporta la etiqueta blanca, así el acento personalizado no se
   rompe (la píldora mantiene contraste sobre cualquier color). */
.ticker-crimson .dk-ticker-label,
.ticker-amber .dk-ticker-label,
.ticker-jade .dk-ticker-label,
.ticker-parchment .dk-ticker-label {
    background: #fff;
    color: var(--accent);
}

.dk-ticker-sep {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    margin-right: 30px;
}

.dk-ticker-clock {
    display: none;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.85);
}
.dk-ticker-clock b {
    color: #fff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) { .dk-ticker-clock { display: flex; } }

@media (max-width: 1023px) {
    .dk-ticker-item { font-size: 10.5px; margin-right: 22px; }
    .dk-ticker-sep { margin-right: 22px; }
}
@media (max-width: 700px) {
    .dk-ticker-inner { padding: 0 12px; }
    .dk-ticker-item { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .dk-ticker-track { animation: none !important; }
    .dk-ticker-label i { animation: none; }
}
