/* Estilos exclusivos de la sección y visor de Novedades. */
body.portal-publico .novedades-home {
  animation: none;
  opacity: 1;
  transform: none;
}
.novedades-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.novedad { min-width: 0; }
.novedad:only-child {
  grid-column: 1 / -1;
  width: min(100%, 420px);
  justify-self: center;
}
body.portal-publico .novedades-home .novedad-abrir,
body.portal-publico .novedades-home .novedad-contenido > :is(span, time),
body.portal-publico .novedades-home .novedades-todas,
body.portal-publico .novedad-visor .novedad-cerrar {
  font-family: 'Segoe UI', Arial, sans-serif !important;
}
body.portal-publico .novedades-home .novedad-contenido > .novedad-titulo {
  font-family: 'New York', Georgia, 'Times New Roman', serif !important;
}
body.portal-publico button.novedad-abrir {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(198,161,91,.35);
  border-radius: 22px;
  background: rgba(255,255,255,.65);
  box-shadow: 0 6px 24px rgba(41,16,62,.06);
  color: #29103e;
  text-align: left;
  cursor: pointer;
  font-family: 'Segoe UI', Arial, sans-serif !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.novedad-imagen { display: block; background: #eee6d9; }
.novedad-imagen img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.novedad-contenido { display: grid; gap: 12px; padding: 26px; }
.novedad-categoria {
  color: #795d25;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .08em;
  font-weight: 600;
}
.novedad-titulo {
  font-family: 'New York', Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.15;
}
.novedad-subtitulo { font-size: 16px; line-height: 1.5; }
body.portal-publico .novedad time {
  font-family: 'Segoe UI', Arial, sans-serif !important;
  color: #62586a;
  font-size: 14px;
  line-height: 1.5;
}
.novedad-accion { margin-top: 8px; font-size: 15px; font-weight: 600; }
body.portal-publico button.novedad-abrir:hover {
  border-color: #c6a15b;
  box-shadow: 0 8px 28px rgba(41,16,62,.12);
}
.novedades-pie { text-align: center; margin-top: 32px; }
body.portal-publico .novedades-todas {
  padding: 14px 24px;
  min-height: 48px;
  border: 1px solid #c6a15b;
  border-radius: 24px;
  background: transparent;
  color: #59475f;
  font: 15px 'Segoe UI', Arial, sans-serif !important;
}
.novedades-pie p { margin: 8px 0 0; font-size: 14px; color: #62586a; }
dialog.novedad-visor {
  width: min(1000px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: 94dvh;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(198,161,91,.6);
  border-radius: 16px;
  background: #21102e;
  color: #fff9ef;
  overflow: auto;
}
.novedad-visor::backdrop { background: rgba(10,4,16,.86); }
.novedad-visor-contenido { padding: 20px; }
body.portal-publico .novedad-cerrar {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px auto;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #c6a15b;
  border-radius: 24px;
  background: #29103e;
  color: #fff9ef;
  cursor: pointer;
  font: 16px 'Segoe UI', Arial, sans-serif !important;
}
body.portal-publico #visor-novedad-titulo {
  color: #fff9ef;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  margin: 0 0 16px;
  text-align: center;
}
.novedad-ampliada {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65dvh;
  object-fit: contain;
}
.novedad-estado { text-align: center; font: 16px/1.5 'Segoe UI', Arial, sans-serif; }
body.portal-publico :is(.novedad-abrir, .novedad-cerrar):focus-visible {
  outline: 3px solid #c6a15b;
  outline-offset: 4px;
}
@media (max-width: 1000px) {
  .novedades-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .novedades-grid { grid-template-columns: minmax(0, 1fr); }
  .novedad-contenido { padding: 22px; }
  .novedad-visor-contenido { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body.portal-publico button.novedad-abrir { transition: none; }
}
