.drive-frame.is-review iframe {
  display: block;
  height: 100%;
  pointer-events: auto;
  overflow: auto;
}

.drive-frame.is-review .document-lock {
  display: none;
}

.drive-frame.is-review::after {
  content: "Vista de revision · descarga bloqueada";
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 9px 13px;
  border: 1px solid #b9cdec;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #17457e;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(23, 58, 104, 0.13);
  pointer-events: none;
}

.drive-frame.is-review {
  height: clamp(760px, 88vh, 1100px);
  min-height: 760px;
  overflow: hidden;
  background: #fff;
}

@media (max-width: 800px) {
  .drive-frame.is-review {
    height: 82dvh;
    min-height: 640px;
  }
}

.receipt-field {
  padding: 13px;
  border: 1px dashed #9fb9dc;
  border-radius: 13px;
  background: #f7fbff;
}

.receipt-field input[type="file"] {
  padding: 8px;
  background: #fff;
}

.receipt-field small {
  color: #6a7f99;
  font-weight: 500;
  line-height: 1.4;
}

.payment-tabs button {
  cursor: pointer;
}

.payment-tabs button:focus-visible {
  outline: 3px solid #b9d5fb;
  outline-offset: 2px;
}

.admin-payment-report a {
  width: max-content;
  color: #0d5fd1;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-check {
  padding: 13px;
  border: 1px solid #bfd7f5;
  border-radius: 13px;
  background: #f3f8ff;
}

.laboratory-card {
  overflow: hidden;
  position: relative;
  color: #eaf3ff;
  border-color: #174f9b;
  background:
    radial-gradient(circle at 92% 4%, rgba(61, 220, 185, .32), transparent 9rem),
    linear-gradient(145deg, #071a3d, #0d4e9e);
}

.laboratory-card::after {
  content: "";
  width: 150px;
  height: 150px;
  position: absolute;
  right: -68px;
  bottom: -78px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(255, 255, 255, .04), 0 0 0 42px rgba(255, 255, 255, .025);
}

.laboratory-card .kicker { color: #6ee7d3; }
.laboratory-card h3 { color: #fff; }
.laboratory-card p { color: #c7d8ee; }

.laboratory-button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #071a3d;
  border: 0;
  background: #fff;
}

.laboratory-button span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #1261d8, #0d9488);
  font: 800 13px "IBM Plex Mono", monospace;
}

.laboratory-card .form-message { color: #a9f2e5; }

.secure-form textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 132px;
  border: 1px solid #c7d7ea;
  border-radius: 13px;
  background: #fafdff;
  padding: 14px 15px;
  color: #071a3d;
  font: inherit;
  line-height: 1.45;
  outline: none;
}

.secure-form textarea:focus {
  border-color: #1769db;
  box-shadow: 0 0 0 4px #e3efff;
}

.quote-panel {
  margin: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid #cfe0f4;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.quote-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.quote-panel-head h2,
.quote-scope h3 {
  margin: 5px 0 0;
  color: #0b2d63;
}

.quote-panel-head span {
  padding: 8px 11px;
  border: 1px solid #bad1ef;
  border-radius: 999px;
  color: #1261d8;
  font: 800 12px "IBM Plex Mono", monospace;
}

.quote-scope ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 20px;
  padding-left: 20px;
  color: #405a7a;
  line-height: 1.55;
}

.cost-breakdown,
.quote-steps {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #d9e6f5;
  border-radius: 16px;
  background: #fff;
}

.cost-breakdown h3,
.quote-steps h3 {
  margin: 0 0 12px;
  color: #0b2d63;
}

.cost-breakdown dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.cost-breakdown dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f8;
}

.cost-breakdown dl div:last-child {
  border-bottom: 0;
}

.cost-breakdown dt,
.cost-breakdown dd {
  margin: 0;
}

.cost-breakdown dt {
  color: #536c8c;
  font-weight: 800;
}

.cost-breakdown dd {
  color: #0b2d63;
  font: 900 16px "IBM Plex Mono", monospace;
}

.cost-breakdown p {
  margin: 12px 0 0;
  color: #647996;
  font-size: 13px;
  line-height: 1.55;
}

.quote-steps {
  background: #f8fbff;
}

.quote-steps ol {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: quote-step;
}

.quote-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  color: #405a7a;
  line-height: 1.45;
  counter-increment: quote-step;
}

.quote-steps li::before {
  content: counter(quote-step);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1261d8;
  font: 900 13px "IBM Plex Mono", monospace;
}

.quote-steps strong,
.quote-steps span {
  display: block;
}

.quote-steps strong {
  color: #0b2d63;
}

.quote-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.quote-totals div {
  padding: 14px;
  border: 1px solid #d8e5f4;
  border-radius: 15px;
  background: #fff;
}

.quote-totals dt,
.quote-totals dd {
  margin: 0;
}

.quote-totals dt {
  color: #647996;
  font-size: 12px;
  font-weight: 800;
}

.quote-totals dd {
  margin-top: 6px;
  color: #0b2d63;
  font-size: 20px;
  font-weight: 900;
}

.quote-note {
  margin: 16px 0 0;
  color: #647996;
  font-size: 13px;
  line-height: 1.55;
}

.quote-download {
  margin-top: 16px;
  border: 0;
  cursor: pointer;
}

.project-command {
  margin: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid #c9dcef;
  border-radius: 22px;
  background: #fff;
}

.project-command.is-active {
  background:
    linear-gradient(180deg, rgba(245, 250, 255, .92), #fff 42%),
    #fff;
}

.project-command.is-locked {
  opacity: .82;
}

.project-command-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.project-command-head h2 {
  margin: 5px 0 6px;
  color: #0b2d63;
}

.project-command-head p {
  margin: 0;
  color: #5e7491;
  line-height: 1.55;
}

.project-command-head > span {
  height: max-content;
  padding: 9px 12px;
  border: 1px solid #b9d2ef;
  border-radius: 999px;
  color: #1261d8;
  background: #f6fbff;
  font: 900 12px "IBM Plex Mono", monospace;
  white-space: nowrap;
}

.timeline-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d8e5f4;
  border-radius: 18px;
  background: #071a3d;
  color: #dcecff;
}

.timeline-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  font-size: 12px;
}

.timeline-labels strong {
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.timeline-labels span:last-child {
  text-align: right;
}

.timeline-track {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}

.timeline-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6ee7d3, #60a5fa, #facc15);
  transition: width .4s ease;
}

.intake-form {
  display: grid;
  gap: 13px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d8e5f4;
  border-radius: 18px;
  background: #f8fbff;
}

.intake-form h3,
.intake-history h3 {
  margin: 0;
  color: #0b2d63;
}

.intake-form p {
  margin: 0;
  color: #607894;
  line-height: 1.55;
}

.intake-form label {
  display: grid;
  gap: 7px;
  color: #344f70;
  font-size: 12px;
  font-weight: 900;
}

.intake-form input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px dashed #9db9dc;
  border-radius: 12px;
  background: #fff;
  color: #344f70;
}

.intake-form button {
  border: 0;
  cursor: pointer;
}

.intake-form button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.intake-history {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.intake-empty {
  padding: 14px;
  border: 1px solid #d8e5f4;
  border-radius: 14px;
  color: #607894;
  background: #fbfdff;
}

.intake-files {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intake-files li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #d8e5f4;
  border-radius: 14px;
  background: #fff;
}

.intake-files strong {
  color: #0b2d63;
}

.intake-files span {
  color: #647996;
  font-size: 13px;
}

@media (max-width: 800px) {
  .quote-totals {
    grid-template-columns: 1fr;
  }

  .cost-breakdown dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .project-command-head,
  .timeline-labels {
    grid-template-columns: 1fr;
  }

  .timeline-labels strong,
  .timeline-labels span:last-child {
    text-align: left;
  }
}
