/* Novedades a la vista (propuesta 65A): la campanita de la barra, el cartel que pasa y la lista. Usa los colores de estilos.css. */

.nv-campana { position: relative; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .45); color: #fff;
  border-radius: 10px; padding: 6px 12px; font-size: 18px; min-height: 0; line-height: 1.2; box-shadow: none; cursor: pointer; }
.nv-campana b { position: absolute; top: -7px; right: -7px; background: #E84132; color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 6px; font-weight: 700; }
.nv-campana.nv-hay span { display: inline-block; animation: nv-sacudir 2.4s ease-in-out 2; }
@keyframes nv-sacudir { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }

/* El cartel: una franja fina debajo de la barra, con lo nuevo pasando de derecha a izquierda. Se frena al pasar el mouse o al tocarlo. */
.nv-cartel { display: flex; align-items: center; gap: 10px; background: var(--amarillo-fondo); color: var(--amarillo-texto);
  border-bottom: 1px solid color-mix(in srgb, var(--amarillo-texto) 25%, transparent); padding: 6px 16px; font-size: 14px; }
.nv-titulo { font-weight: 700; flex: none; white-space: nowrap; }
.nv-ventana { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.nv-cinta { display: flex; width: max-content; animation: nv-pasar var(--nv-segundos, 24s) linear infinite; }
.nv-cinta > .nv-copia { display: flex; }
.nv-ventana:hover .nv-cinta, .nv-ventana:focus-within .nv-cinta { animation-play-state: paused; }
@keyframes nv-pasar { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.nv-paso { background: none; border: 0; box-shadow: none; min-height: 0; padding: 2px 28px 2px 0; margin: 0; color: inherit; font: inherit; white-space: nowrap; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; }
.nv-paso.nv-fija { font-weight: 700; }
/* Quien prefiere sin movimiento: el cartel queda quieto y se desliza con el dedo. */
@media (prefers-reduced-motion: reduce) {
  .nv-cinta { animation: none; }
  .nv-cinta > .nv-copia { display: none; }
  .nv-ventana { overflow-x: auto; mask-image: none; }
  .nv-campana.nv-hay span { animation: none; }
}

/* La lista de la campanita: se baja con el dedo si hay muchas. */
.nv-panel { position: absolute; right: 16px; top: calc(100% + 6px); width: min(420px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto;
  overscroll-behavior: contain; background: var(--tarjeta); color: var(--texto, inherit); border: 1px solid var(--borde); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2); padding: 12px; z-index: 30; }
.nv-panel-cabeza { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.nv-panel-cabeza h2 { margin: 0; font-size: 17px; }
.nv-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nv-item { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; width: 100%; text-align: left; background: none; border: 0; box-shadow: none;
  border-radius: 8px; padding: 8px 6px; min-height: 0; color: inherit; font: inherit; font-size: 14px; cursor: pointer; }
.nv-item:hover, .nv-item:focus-visible { background: color-mix(in srgb, var(--verde) 8%, var(--tarjeta)); }
.nv-nueva .nv-item { background: var(--verde-suave); font-weight: 600; }
.nv-fija .nv-item { background: var(--amarillo-fondo); color: var(--amarillo-texto); font-weight: 700; }
.nv-texto { min-width: 0; overflow-wrap: anywhere; }
.nv-hora { font-size: 12px; opacity: .75; white-space: nowrap; }
.nv-pie { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; }

/* Con el diseño Luz Latina todos los botones son teclas verdes: estos no (son renglones y enlaces). */
html.estilo-luzlatina .nv-paso, html.estilo-luzlatina .nv-item { background: none; color: inherit; box-shadow: none; border: 0; border-radius: 8px; transform: none;
  margin-bottom: 0; font-weight: inherit; letter-spacing: normal; }
html.estilo-luzlatina .nv-item:hover, html.estilo-luzlatina .nv-item:focus-visible { background: color-mix(in srgb, var(--verde) 8%, var(--tarjeta)); transform: none; filter: none; }
html.estilo-luzlatina .nv-nueva .nv-item { background: var(--verde-suave); font-weight: 600; }
html.estilo-luzlatina .nv-fija .nv-item, html.estilo-luzlatina .nv-paso.nv-fija { font-weight: 700; }
html.estilo-luzlatina .nv-fija .nv-item { background: var(--amarillo-fondo); color: var(--amarillo-texto); }
html.estilo-luzlatina .nv-paso:hover { transform: none; filter: none; }
html.estilo-luzlatina .nv-campana { --b: #0E5743; --tecla: 4px; min-height: 36px; padding: 6px 12px; border-radius: 11px; margin-bottom: 4px; }

/* Lo que se abre desde una novedad queda resaltado un momento. */
.nv-resaltar { outline: 3px solid var(--naranja, #E97C0D); outline-offset: 2px; border-radius: 8px; transition: outline-color 1.5s; }

/* "¿Lo mandaste?" en Mi día › Avisame de la web. */
.av-confirmar { background: var(--amarillo-fondo); color: var(--amarillo-texto); border-left: 5px solid #F2A900; border-radius: 10px; padding: 10px 12px; margin: 6px 0; list-style: none; }
.av-confirmar p { margin: 0 0 8px; }

@media (max-width: 640px) {
  .nv-campana { padding: 5px 9px; font-size: 16px; }
  .nv-cartel { padding: 6px 10px; font-size: 13px; }
  .nv-titulo { display: none; }
  .nv-panel { right: 8px; left: 8px; width: auto; }
}

/* 65B: "Avisos en este equipo", al pie de la lista de la campanita. */
.nv-push { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--borde); font-size: 14px; }
.nv-push p { margin: 0 0 6px; }
.nv-push-titulo { font-weight: 700; }
.nv-pasos { margin: 4px 0 0; padding-left: 20px; }
.nv-pasos li { margin-bottom: 3px; }
.en-fila-horas { display: flex; align-items: center; gap: 6px; }
.en-fila-horas input { width: 4.5em; }
/* Sin activar: arriba de la lista, como un cartel verde. */
.nv-push.nv-push-arriba { margin: 0 0 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--verde-suave); }
.nv-push.nv-push-arriba button:not(.link) { width: 100%; }

/* Propuesta 66: "¿Lo mandaste?" al lado del botón de WhatsApp que se tocó, y en la campanita. */
.wa-confirmar { display: block; background: var(--amarillo-fondo); color: var(--amarillo-texto); border-left: 5px solid #F2A900; border-radius: 10px;
  padding: 10px 12px; margin: 8px 0; font-size: 14px; text-align: left; white-space: normal; }
.wa-confirmar p { margin: 0 0 8px; }
.wa-botones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wa-error { color: var(--rojo); font-weight: 600; }
.wa-confirmar.wa-flotante { position: fixed; z-index: 40; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin: 0 auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.nv-wa { padding: 4px 6px 8px 34px; }
.nv-wa .wa-botones button:not(.link) { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.wa-historial { margin: 10px 0; }
.wa-historial summary { cursor: pointer; font-weight: 700; }
.wa-historial ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.wa-historial .nv-wa { padding-left: 0; margin-top: 4px; }
