/* ============================================================
   Minuto Últimas Noticias — Timeline moderna v2.1 — Paleta Azul
   MinutoCórdoba.ar
   ============================================================ */

:root {
  --mu-azul:        #1565C0;   /* azul primario */
  --mu-azul-vivo:   #1E88E5;   /* azul brillante */
  --mu-azul-claro:  #90CAF9;   /* azul pastel */
  --mu-azul-suave:  #E3F2FD;   /* fondo hover */
  --mu-acento:      #0288D1;   /* azul acento / live dot */
  --mu-negro:       #111111;
  --mu-gris-oscuro: #444444;
  --mu-gris:        #888888;
  --mu-linea:       #e0e0e0;
  --mu-dot-size:    10px;
  --mu-pulse-size:  22px;
  --mu-font:        inherit;
  --mu-radio:       6px;
}

/* ── Animaciones ── */
@keyframes mu-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(2.6); opacity: 0;   }
  100% { transform: scale(1);   opacity: 0;   }
}

@keyframes mu-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

@keyframes mu-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

@keyframes mu-dot-pop {
  0%   { transform: scale(0.5); opacity: .5; }
  65%  { transform: scale(1.3);              }
  100% { transform: scale(1);   opacity: 1; }
}

/* ── Wrapper ── */
.mu-wrapper {
  font-family: var(--mu-font);
  max-width: 100%;
  padding: 0;
  color: #111111;
}

/* ── Encabezado ── */
.mu-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2.5px solid var(--mu-azul);
}

.mu-titulo {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--mu-negro);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  flex: 1;
}

/* Punto parpadeante "en vivo" junto al título */
.mu-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--mu-acento);
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  animation: mu-blink 1.4s ease-in-out infinite;
}

.mu-ver-mas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--mu-azul);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  border-radius: 50%;
  text-decoration: none;
  line-height: 1;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.mu-ver-mas:hover {
  background: var(--mu-azul-vivo);
  transform: scale(1.12);
}

/* ── Etiqueta autor ── */
.mu-autor-label {
  font-size: .72rem;
  color: var(--mu-gris);
  margin-bottom: 14px;
  padding-left: 28px;
  letter-spacing: .2px;
}

/* ── Timeline ── */
.mu-timeline {
  position: relative;
  padding-left: 28px;
}

.mu-linea-vertical {
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: linear-gradient(
    to bottom,
    var(--mu-azul) 0%,
    var(--mu-linea) 100%
  );
  border-radius: 2px;
}

/* ── Ítem ── */
.mu-item {
  position: relative;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mu-linea);
  animation: mu-fadeIn .4s ease both;
  transition: background .2s, border-radius .2s, padding-left .2s, margin-left .2s;
}
.mu-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Aparición escalonada */
.mu-item:nth-child(2)  { animation-delay: .06s; }
.mu-item:nth-child(3)  { animation-delay: .12s; }
.mu-item:nth-child(4)  { animation-delay: .18s; }
.mu-item:nth-child(5)  { animation-delay: .24s; }

/* Hover en el ítem completo */
.mu-item:hover {
  background: #1565C0;
  border-radius: var(--mu-radio);
  margin-left: -8px;
  padding-left: 8px;
}
.mu-item:hover .mu-titulo-nota,
.mu-item:hover .mu-titulo-nota a,
.mu-item:hover .mu-hora,
.mu-item:hover .mu-categoria {
  color: #ffffff !important;
  background: transparent !important;
  border-color: rgba(255,255,255,0.4) !important;
}

/* ── Contenedor del punto animado ── */
.mu-dot-wrap {
  position: absolute;
  left: -25px;
  top: 4px;
  width: var(--mu-pulse-size);
  height: var(--mu-pulse-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Onda de pulso que se expande */
.mu-dot-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--mu-azul);
  border-radius: 50%;
  opacity: 0;
  animation: mu-pulse 2.4s cubic-bezier(.4,0,.6,1) infinite;
}

/* Primer ítem: pulso rápido y vivo */
.mu-item:first-child .mu-dot-wrap::before {
  animation-duration: 1.6s;
  background: var(--mu-acento);
}

.mu-item:nth-child(2)  .mu-dot-wrap::before { animation-delay: .5s;  animation-duration: 2.8s; }
.mu-item:nth-child(3)  .mu-dot-wrap::before { animation-delay: 1.0s; animation-duration: 3.2s; }
.mu-item:nth-child(4)  .mu-dot-wrap::before { animation-delay: 1.5s; animation-duration: 3.6s; }
.mu-item:nth-child(5)  .mu-dot-wrap::before { animation-delay: 2.0s; animation-duration: 4.0s; }

/* Punto central sólido */
.mu-dot {
  width: var(--mu-dot-size);
  height: var(--mu-dot-size);
  background: var(--mu-azul);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--mu-azul);
  z-index: 1;
  position: relative;
  transition: transform .2s, background .2s, box-shadow .2s;
  animation: mu-dot-pop .5s cubic-bezier(.34,1.56,.64,1) both;
}

.mu-item:first-child .mu-dot {
  background: var(--mu-acento);
  box-shadow: 0 0 0 1.5px var(--mu-acento);
}

.mu-item:hover .mu-dot {
  transform: scale(1.5);
  background: var(--mu-azul-vivo);
  box-shadow: 0 0 0 2px var(--mu-azul-vivo);
}

/* ── Contenido ── */
.mu-contenido {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── Meta ── */
.mu-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  flex-wrap: wrap;
}

.mu-hora {
  font-size: .68rem;
  font-weight: 800;
  color: #1565C0 !important;
  letter-spacing: .6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mu-separador {
  width: 3px;
  height: 3px;
  background: var(--mu-gris);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .5;
}

.mu-categoria {
  font-size: .62rem;
  font-weight: 700;
  color: var(--mu-azul);
  background: var(--mu-azul-suave);
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  border: 1px solid var(--mu-azul-claro);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

/* ── Título de la nota ── */
.mu-titulo-nota {
  margin: 2px 0 0;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111111 !important;
}

.mu-titulo-nota a {
  color: #111111 !important;
  text-decoration: none;
  transition: color .2s;
}
.mu-titulo-nota a:hover {
  color: #ffffff !important;
  text-decoration: none;
}

/* ── Sin noticias ── */
.mu-sin-noticias {
  color: var(--mu-gris);
  font-size: .85rem;
  padding-left: 28px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .mu-titulo      { font-size: 1.05rem; }
  .mu-titulo-nota { font-size: .84rem;  }
  .mu-categoria   { max-width: 90px;   }
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --mu-negro:      #f2f2f2;
    --mu-gris:       #777777;
    --mu-linea:      #2c2c2c;
    --mu-azul-suave: #0d253f;
  }
  .mu-dot {
    border-color: #1c1c1c;
  }
  .mu-categoria {
    background: #0d253f;
    border-color: #1a4a7a;
    color: var(--mu-azul-claro);
  }
  .mu-item:hover {
    background: #0d253f;
  }
}

/* ── Panel de selección de categorías en el widget (admin) ── */
.mu-cat-checkboxes {
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 8px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mu-cat-checkboxes label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
}
.mu-cat-checkboxes input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}

/* ============================================================
   OVERRIDE FORZADO — máxima especificidad contra temas externos
   Si el tema sigue pisando, estos selectores ganan siempre
   ============================================================ */

body .mu-wrapper .mu-timeline .mu-item .mu-contenido .mu-titulo-nota,
body .mu-wrapper .mu-timeline .mu-item .mu-contenido .mu-titulo-nota a,
body .widget .mu-wrapper .mu-titulo-nota,
body .widget .mu-wrapper .mu-titulo-nota a,
body .sidebar .mu-titulo-nota a,
body .mu-titulo-nota a {
  color: #111111 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: #111111 !important;
}

body .mu-wrapper .mu-timeline .mu-item:hover .mu-contenido .mu-titulo-nota,
body .mu-wrapper .mu-timeline .mu-item:hover .mu-contenido .mu-titulo-nota a,
body .widget .mu-wrapper .mu-item:hover .mu-titulo-nota,
body .widget .mu-wrapper .mu-item:hover .mu-titulo-nota a,
body .mu-item:hover .mu-titulo-nota a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

body .mu-wrapper .mu-item:hover {
  background: #1565C0 !important;
}

body .mu-hora {
  color: #1565C0 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #1565C0 !important;
}

body .mu-item:hover .mu-hora {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
