.novedad-modal[hidden] {
  display: none !important;
}

.novedad-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 9, 18, 0.82);
  opacity: 0;
  transition: opacity 650ms ease;
}

.novedad-modal.visible {
  opacity: 1;
}

.novedad-modal__ventana {
  position: relative;
  width: min(920px, 100%);
  border: 1px solid #1b779b;
  border-radius: 15px;
  background: #071b30;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(38px) scale(.97);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.8,.2,1);
}

.novedad-modal.visible .novedad-modal__ventana {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.novedad-modal__enlace,
.novedad-modal__imagen {
  display: block;
  width: 100%;
}

.novedad-modal__imagen {
  height: auto;
  border-radius: 14px;
}

.novedad-modal__cerrar {
  position: absolute;
  top: -17px;
  right: -17px;
  width: 38px;
  height: 38px;
  border: 1px solid #47c9e8;
  border-radius: 50%;
  background: #08253a;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.novedad-modal__cerrar:hover {
  background: #125371;
}

.novedad-modal :focus-visible {
  outline: 3px solid #21e7a4;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .novedad-modal { padding: 18px; }
  .novedad-modal__cerrar { top: -15px; right: -12px; }
}

@media (prefers-reduced-motion: reduce) {
  .novedad-modal,
  .novedad-modal__ventana {
    transition: none;
  }
}
