/* VIASA Virtual Airlines — anuncios modal v2.0 */

.v-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, .72);
  pointer-events: auto;
}

.v-modal-window {
  position: relative;
  width: min(100%, 560px);
  max-height: min(82vh, 760px);
  padding: 24px;
  box-sizing: border-box;
  overflow: auto;
  color: #fff;
  background: rgba(0, 47, 108, .98);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .65);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.v-modal-window.v-animate-in {
  animation: vModalIn .35s ease-out both;
}

.v-modal-overlay.v-modal-hide {
  animation: vModalOut .25s ease-in both;
  pointer-events: none;
}

@keyframes vModalIn {
  from { opacity: 0; transform: translateY(-12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes vModalOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.v-modal-title {
  margin: 0 0 10px;
  color: #ffcc00;
  font-size: 1.35rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-shadow: 0 0 6px rgba(0, 0, 0, .4);
}

.v-modal-message {
  margin-bottom: 14px;
  color: #f5f5f5;
  font-size: .98rem;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.v-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.v-modal-btn,
.v-modal-close {
  display: inline-block;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .25s ease;
}

.v-modal-btn {
  background: linear-gradient(90deg, #0047a8, #0078d7);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .35);
}

.v-modal-close {
  background: rgba(255, 255, 255, .20);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}

.v-modal-btn:hover,
.v-modal-btn:focus-visible,
.v-modal-close:hover,
.v-modal-close:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid rgba(255, 255, 255, .75);
  outline-offset: 2px;
}

.v-modal-btn:hover,
.v-modal-btn:focus-visible {
  background: linear-gradient(90deg, #006fe6, #0099ff);
}

.v-modal-close:hover,
.v-modal-close:focus-visible {
  background: rgba(255, 255, 255, .30);
}

.v-modal-window[data-type="success"] { box-shadow: 0 0 20px rgba(0, 255, 140, .35); }
.v-modal-window[data-type="warning"] { box-shadow: 0 0 20px rgba(255, 200, 0, .35); }
.v-modal-window[data-type="alert"] { box-shadow: 0 0 20px rgba(255, 60, 60, .38); }
.v-modal-window[data-type="promo"],
.v-modal-window[data-type="event"] { box-shadow: 0 0 20px rgba(180, 120, 255, .38); }

@media (max-width: 600px) {
  .v-modal-overlay { padding: 12px; }
  .v-modal-window { padding: 18px 16px 15px; max-height: 88vh; }
  .v-modal-title { font-size: 1.2rem; }
  .v-modal-message { font-size: .95rem; }
  .v-modal-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .v-modal-window.v-animate-in,
  .v-modal-overlay.v-modal-hide {
    animation-duration: .01ms;
  }
}
