/* Ventana de novedades. Los colores, tamaños y encuadres se editan aquí. */
html.novedad-abierta,
html.novedad-abierta body { overflow: hidden; }

.novedad-dialog {
    width: min(880px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid #dbe4ec;
    border-radius: 20px;
    background: #fff;
    color: #17212b;
    box-shadow: 0 24px 90px #0005;
}
.novedad-dialog::backdrop { background: #081522b8; backdrop-filter: blur(5px); }
.novedad-dialog,
.novedad-dialog * { cursor: auto; }
.novedad-dialog button { cursor: pointer; }
.novedad-layout { display: grid; grid-template-columns: .9fr 1.1fr; }
.novedad-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px 28px;
    background: #eaf1f5;
    border-right: 1px solid #dbe4ec;
}
.novedad-visual img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #fff; }
.novedad-imagen-nota { color: #526478; font-size: 12px; text-align: center; }
.novedad-contenido { position: relative; padding: 46px 36px 32px; }
.novedad-cerrar {
    position: absolute; top: 12px; right: 12px;
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 50%; color: #526478; font-size: 28px; line-height: 1;
}
.novedad-cerrar:hover { background: #eaf1f5; }
.novedad-etiqueta { color: #1668a8; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.novedad-titulo { margin-top: 12px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -.035em; font-weight: 800; }
.novedad-descripcion { margin-top: 16px; color: #526478; font-size: 14px; line-height: 1.7; }
.novedad-datos { margin: 24px 0; border-top: 1px solid #dbe4ec; }
.novedad-datos > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #dbe4ec; font-size: 12px; }
.novedad-datos dt { color: #526478; }
.novedad-datos dd { font-weight: 600; overflow-wrap: anywhere; }
.novedad-cotizar { width: 100%; min-height: 48px; }
.novedad-nota { margin-top: 14px; color: #526478; font-size: 11px; line-height: 1.6; }
.novedad-dialog button:focus-visible { outline: 3px solid #3095d5; outline-offset: 3px; }
.novedad-form-status { padding: 12px 16px; border-left: 3px solid #1668a8; border-radius: 6px; background: #eaf1f5; color: #234d6d; font-size: 13px; line-height: 1.6; }
.novedad-recordatorio {
    position: fixed; top: 96px; right: 24px; z-index: 70;
    display: flex; align-items: center; gap: 12px;
    width: min(310px, calc(100% - 32px)); padding: 12px;
    border: 1px solid #dbe4ec; border-radius: 12px;
    background: #fff; color: #17212b; text-align: left;
    box-shadow: 0 8px 28px #17212b26;
}
.novedad-recordatorio:hover { border-color: #1668a8; }
.novedad-recordatorio:focus-visible { outline: 3px solid #3095d5; outline-offset: 3px; }
.novedad-recordatorio img { width: 56px; height: 56px; flex-shrink: 0; border-radius: 8px; object-fit: contain; background: #fff; }
.novedad-recordatorio-texto { min-width: 0; flex: 1; }
.novedad-recordatorio-texto strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.novedad-recordatorio-texto > span { display: block; margin-top: 4px; color: #1668a8; font-size: 11px; font-weight: 600; }

.dark .novedad-dialog { background: #17212b; border-color: #3a4a5b; color: #f1f5f9; }
.dark .novedad-visual { background: #0d1924; border-color: #3a4a5b; }
.dark .novedad-etiqueta { color: #7dd3fc; }
.dark .novedad-descripcion,
.dark .novedad-nota,
.dark .novedad-imagen-nota,
.dark .novedad-datos dt,
.dark .novedad-cerrar { color: #bdcbd8; }
.dark .novedad-datos,
.dark .novedad-datos > div { border-color: #3a4a5b; }
.dark .novedad-cerrar:hover { background: #2a3b4b; }
.dark .novedad-form-status { background: #183447; color: #d1e9f9; }
.dark .novedad-recordatorio { background: #17212b; border-color: #3a4a5b; color: #f1f5f9; }
.dark .novedad-recordatorio-texto > span { color: #7dd3fc; }

@media (max-width: 650px) {
    .novedad-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 16px; }
    .novedad-layout { grid-template-columns: 1fr; }
    .novedad-visual { padding: 18px 52px 14px; gap: 8px; border-right: 0; border-bottom: 1px solid #dbe4ec; }
    .novedad-visual img { height: 150px; aspect-ratio: auto; }
    .novedad-contenido { position: static; padding: 24px; }
    .novedad-cerrar { background: #fff; color: #17212b; }
    .dark .novedad-cerrar { background: #17212b; color: #f1f5f9; }
    .novedad-titulo { font-size: 26px; }
    .novedad-datos { margin: 18px 0; }
    .novedad-recordatorio { top: 88px; right: 12px; width: min(260px, calc(100% - 24px)); gap: 10px; padding: 10px; }
    .novedad-recordatorio img { width: 44px; height: 44px; }
}
@media print { .novedad-dialog, .novedad-recordatorio { display: none; } }
