/* FINVERZ V2.8.2 — Ajuste visual de cotización JPG / PDF */

.v27-quote-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 16px 16px;
  padding: 15px;
  border: 1px solid #b9d5f2;
  border-radius: 13px;
  background: linear-gradient(135deg, #f7fbff, #edf6ff);
}

.v27-quote-launch > div {
  display: grid;
  gap: 4px;
}

.v27-quote-launch strong {
  color: #0a2d59;
  font-size: .92rem;
}

.v27-quote-launch small {
  color: #5d7188;
  font-size: .76rem;
  line-height: 1.45;
}

.v27-quote-launch .button {
  min-height: 42px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.v27-quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 10150;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 24px 18px;
  background: rgba(4, 22, 43, .82);
  backdrop-filter: blur(7px);
}

.v27-quote-modal {
  width: min(1320px, 100%);
  overflow: hidden;
  border: 1px solid rgba(219, 227, 238, .8);
  border-radius: 22px;
  background: #f3f7fb;
  box-shadow: 0 35px 110px rgba(0, 0, 0, .38);
}

.v27-quote-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 25px;
  border-bottom: 1px solid #dce5ef;
  background: #fff;
}

.v27-quote-head h2 {
  margin: 4px 0 5px;
  color: #0a2d59;
  font-size: clamp(1.3rem, 2.2vw, 1.72rem);
}

.v27-quote-head p {
  margin: 0;
  color: #65778b;
  font-size: .86rem;
}

.v27-quote-layout {
  display: grid;
  grid-template-columns: minmax(300px, .68fr) minmax(0, 1.32fr);
  gap: 18px;
  padding: 18px;
}

.v27-quote-controls,
.v27-quote-preview-wrap {
  min-width: 0;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #fff;
}

.v27-quote-controls {
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 18px;
  position: sticky;
  top: 0;
}

.v27-quote-control-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1e8f0;
}

.v27-quote-control-title strong {
  color: #0a2d59;
}

.v27-quote-control-title span {
  color: #718196;
  font-size: .7rem;
}

.v27-quote-controls .field > span {
  display: block;
  margin-bottom: 7px;
  color: #334f70;
  font-size: .76rem;
  font-weight: 800;
}

.v27-quote-controls input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd7e5;
  border-radius: 10px;
  background: #fff;
  color: #153759;
  font: inherit;
  padding: 10px 12px;
  outline: none;
}

.v27-quote-controls input:focus {
  border-color: #1769c2;
  box-shadow: 0 0 0 3px rgba(23, 105, 194, .13);
}

.v27-quote-memory {
  margin: -4px 0 0;
  color: #6d7e91;
  font-size: .7rem;
  line-height: 1.45;
}

.v27-quote-source {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  background: #dce5ef;
}

.v27-quote-source div {
  min-width: 0;
  padding: 10px;
  background: #f8fbff;
}

.v27-quote-source dt {
  color: #718196;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.v27-quote-source dd {
  margin: 4px 0 0;
  overflow: hidden;
  color: #0a2d59;
  font-size: .8rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v27-quote-message {
  min-height: 18px;
  color: #5f7288;
  font-size: .72rem;
  line-height: 1.4;
}

.v27-quote-message.error {
  color: #a31d2c;
}

.v27-quote-message.success {
  color: #14713a;
}

.v27-quote-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.v27-quote-actions .button {
  min-height: 42px;
  padding-inline: 10px;
  font-size: .76rem;
}

.v27-quote-actions [data-quote-share] {
  grid-column: 1 / -1;
}

.v27-quote-preview-wrap {
  overflow: hidden;
  padding: 14px;
  background: #edf2f7;
}

.v27-quote-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 2px 12px;
  color: #6a7b90;
  font-size: .7rem;
}

.v27-quote-preview-toolbar strong {
  color: #17395e;
}

.v27-quote-preview {
  display: grid;
  min-height: 560px;
  place-items: center;
  overflow: auto;
  border: 1px solid #d5dee8;
  border-radius: 12px;
  background: #dfe6ee;
  padding: 16px;
}

.v27-quote-preview img {
  display: block;
  width: min(680px, 100%);
  height: auto;
  border: 1px solid #d8e0e8;
  background: #fff;
  box-shadow: 0 18px 48px rgba(12, 35, 64, .18);
}

.v27-quote-rendering {
  color: #61758b;
  font-size: .82rem;
}

@media (max-width: 980px) {
  .v27-quote-layout {
    grid-template-columns: 1fr;
  }

  .v27-quote-controls {
    position: static;
  }
}

@media (max-width: 720px) {
  .v27-quote-launch {
    align-items: stretch;
    flex-direction: column;
  }

  .v27-quote-launch .button {
    width: 100%;
    white-space: normal;
  }

  .v27-quote-overlay {
    padding: 0;
  }

  .v27-quote-modal {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .v27-quote-head {
    padding: 16px;
  }

  .v27-quote-layout {
    gap: 12px;
    padding: 12px;
  }

  .v27-quote-controls,
  .v27-quote-preview-wrap {
    border-radius: 13px;
  }

  .v27-quote-preview {
    min-height: 360px;
    padding: 8px;
  }
}

@media (max-width: 430px) {
  .v27-quote-source,
  .v27-quote-actions {
    grid-template-columns: 1fr;
  }

  .v27-quote-actions [data-quote-share] {
    grid-column: 1;
  }

  .v27-quote-preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
