@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cinzel:wght@400;600;700&family=Manrope:wght@300;500;700;800&display=swap");

.itd-body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background-color: #0e0f12;
  background-image:
    radial-gradient(800px 500px at 10% 0%, rgba(242, 140, 40, 0.25), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(0, 180, 170, 0.18), transparent 60%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
    linear-gradient(200deg, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
  color: #f2f2f2;
  min-height: 100vh;
}

.itv-page {
  padding: 32px 20px 60px;
}

.itv-shell {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 26px;
  padding: 24px;
  background: rgba(18, 19, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.itv-shell::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(242, 140, 40, 0.18), transparent 60%);
  pointer-events: none;
}

.itv-shell::after {
  content: "";
  position: absolute;
  inset: auto auto -45% -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 180, 170, 0.15), transparent 60%);
  pointer-events: none;
}

.itv-hero-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.itv-logo-wrap {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.itv-logo {
  width: 110px;
  max-width: 100%;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
}

.itv-logo-fallback {
  display: none;
  font-family: "Bebas Neue", sans-serif;
  font-size: 52px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 6px;
}

.itv-logo-fallback.is-visible {
  display: flex;
}

.itv-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.itv-title-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.itv-upload-btn.is-hidden {
  display: none;
}

.itv-hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 1.1rem + 2.2vw, 3rem);
  margin: 0.2rem 0 0.4rem;
  letter-spacing: 1px;
}

.itv-lead {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.itv-score-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 14px;
  text-align: left;
}

.itv-score-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.6);
}

.itv-score-value {
  font-size: 2.2rem;
  font-weight: 800;
}

.itv-score-percent {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

.itv-progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 0.5rem;
}

.itv-progress .progress-bar {
  background: linear-gradient(90deg, #f28c28, #ffb357);
}

.itv-score-meta {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.itv-badge,
.itv-cert-badge {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
}

.itv-score-state {
  margin-top: 0.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 1.2rem;
  transform: rotate(-1.5deg);
}

.itd-body .form-control,
.itd-body .form-select {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f2f2f2;
  border-radius: 12px;
}

.itd-body .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.itd-body .form-select option {
  color: #111111;
  background: #ffffff;
}

.itd-body .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
}

.itv-form {
  margin-top: 1rem;
}

.itv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.itv-card {
  grid-column: 1 / -1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
}

.itv-card h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
}

.itv-card-wide {
  grid-column: 1 / -1;
}

.itv-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.itv-dept {
  border-left: 4px solid rgba(242, 140, 40, 0.7);
}

.itv-dept-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.itv-dept-status {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(0, 0, 0, 0.35);
}

.itv-question {
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.itv-question:last-of-type {
  border-bottom: none;
}

.itv-question-text {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.itv-question-sub {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.35rem;
}

.itv-question-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.35rem;
}

.itv-question-score-label {
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
}

.itv-options {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.itv-options.itv-options-scale {
  gap: 0.35rem;
}

.itv-options.itv-options-scale label {
  flex: 0 1 60px;
  justify-content: center;
  font-size: 0.78rem;
  padding: 0.25rem 0.4rem;
  gap: 0.35rem;
}

.itv-options.itv-options-scale input[type="radio"] {
  margin: 0;
}

.itv-followup {
  margin-top: 0.4rem;
}

.itv-options label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 0.86rem;
  flex: 1 1 220px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.itv-options label.is-good {
  background: rgba(31, 201, 122, 0.18);
  border-color: rgba(31, 201, 122, 0.6);
  box-shadow: 0 6px 14px rgba(31, 201, 122, 0.12);
}

.itv-options label.is-bad {
  background: rgba(255, 77, 77, 0.18);
  border-color: rgba(255, 77, 77, 0.6);
  box-shadow: 0 6px 14px rgba(255, 77, 77, 0.12);
}

.itv-options input[type="radio"] {
  accent-color: #f28c28;
}

.itv-verdict {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.itv-verdict-label {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.itv-verdict-option {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  opacity: 0.5;
}

.itv-verdict-option.is-active {
  opacity: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.itv-verdict-pass.is-active {
  background: rgba(31, 201, 122, 0.2);
  border-color: rgba(31, 201, 122, 0.6);
}

.itv-verdict-fail.is-active {
  background: rgba(255, 77, 77, 0.2);
  border-color: rgba(255, 77, 77, 0.6);
}

.itv-final-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.itv-signature {
  margin-top: 0.8rem;
}

.itv-signature-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
}

.itv-signature-box {
  background: #f7f3ee;
  border-radius: 12px;
  border: 2px solid rgba(242, 140, 40, 0.45);
  padding: 6px;
}

#signaturePad {
  width: 100%;
  height: 140px;
  display: block;
  touch-action: none;
}

#evaluatorSignaturePad {
  width: 100%;
  height: 160px;
  display: block;
  touch-action: none;
}

.itv-signature-hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.itv-cert-zone {
  margin-top: 1.2rem;
}

.itv-actions {
  background: rgba(255, 255, 255, 0.04);
}

.itv-cert-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.itv-action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.itv-page .btn-warning {
  background: linear-gradient(135deg, #f28c28, #ffb357);
  border: none;
  color: #111;
  font-weight: 700;
}

.itv-mini-btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.itv-modalidad-add .form-control {
  min-height: 40px;
}

.itv-certificate {
  background: #ffffff;
  color: #111;
}

.itv-certificate-inner {
  position: relative;
  padding: 26px 30px 32px;
  border-radius: 16px;
  border: 3px double rgba(210, 160, 70, 0.9);
  background: radial-gradient(circle at top, #fff6e6 0%, #ffffff 55%, #fffefb 100%);
  font-family: "Cinzel", serif;
  box-shadow: inset 0 0 0 1px rgba(210, 160, 70, 0.2);
}

.itv-certificate-inner::before,
.itv-certificate-inner::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(210, 160, 70, 0.35);
  border-radius: 50%;
  opacity: 0.4;
}

.itv-certificate-inner::before {
  top: 18px;
  right: 30%;
}

.itv-certificate-inner::after {
  bottom: 18px;
  left: 12%;
}

.itv-cert-brand img {
  width: 72px;
  height: auto;
}

.itv-cert-title {
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.itv-cert-subtitle {
  color: #6b5b44;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.itv-cert-status {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(210, 160, 70, 0.18);
  border: 1px solid rgba(210, 160, 70, 0.6);
}

.itv-cert-body {
  margin-top: 1.2rem;
  max-width: 70%;
}

.itv-cert-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #6b5b44;
}

.itv-cert-name {
  font-family: "Cinzel", serif;
  font-size: 2.1rem;
  margin: 0.3rem 0;
}

.itv-cert-name.is-placeholder {
  color: #a09a90;
  font-style: italic;
}

.itv-cert-text {
  color: #4f4537;
}

.itv-cert-footer {
  margin-top: 1.2rem;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  color: #3f372b;
  font-weight: 600;
}

.itv-cert-label {
  color: #8a7b64;
  font-weight: 600;
}

.itv-cert-notes {
  margin-top: 0.8rem;
  max-width: 70%;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px dashed rgba(210, 160, 70, 0.5);
  background: rgba(210, 160, 70, 0.08);
  font-family: "Manrope", sans-serif;
}

.itv-cert-notes.is-empty {
  display: none;
}

.itv-cert-notes-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8a7b64;
  margin-bottom: 0.25rem;
}

.itv-cert-notes-text {
  color: #3f372b;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre-line;
}

.itv-cert-photo-frame {
  position: absolute;
  top: 110px;
  right: 24px;
  width: 180px;
  height: 230px;
  border: 2px solid rgba(120, 100, 60, 0.45);
  border-radius: 14px;
  overflow: hidden;
  background: #f6f0e6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.itv-cert-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.itv-photo-placeholder {
  width: 100%;
  text-align: center;
  color: #8a7b64;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}

.itv-final-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.itv-signature-actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-end;
}

.itv-cert-seal {
  position: absolute;
  bottom: 36px;
  right: 36px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(210, 160, 70, 0.9);
  color: #8a6b2d;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 1.4px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 236, 200, 0.9), rgba(210, 160, 70, 0.2));
  box-shadow: inset 0 0 0 6px rgba(210, 160, 70, 0.15), 0 10px 25px rgba(0, 0, 0, 0.12);
  transform: rotate(-8deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.itv-cert-seal.is-visible {
  opacity: 1;
}

.itv-cert-signature {
  display: grid;
  gap: 0.35rem;
  max-width: 280px;
}

.itv-cert-signatures {
  margin-top: 1.2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.itv-cert-signature-evaluator {
  margin-left: auto;
}

.itv-cert-signature-line {
  border-bottom: 2px solid rgba(120, 100, 60, 0.5);
  height: 2px;
}

.itv-cert-signature-label {
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a7b64;
}

.itv-cert-signature-image {
  min-height: 50px;
  display: flex;
  align-items: center;
  color: #a09a90;
  font-size: 0.72rem;
}

.itv-cert-signature-image img {
  max-height: 60px;
  display: none;
}

.itv-cert-signature.is-hidden {
  display: none;
}

.itv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.itv-overlay.is-open {
  display: flex;
}

.itv-overlay.is-download .itv-send-step-doc,
.itv-overlay.is-download #sendDocOptions {
  display: none;
}

.itv-overlay-card {
  width: min(520px, 100%);
  background: rgba(18, 19, 23, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.itv-profile-card {
  width: min(640px, 100%);
}

.itv-profile-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.itv-profile-item {
  display: flex;
  gap: 0.8rem;
  padding: 0.6rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.itv-profile-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.itv-profile-placeholder {
  padding: 0 0.35rem;
  text-align: center;
}

.itv-profile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.itv-profile-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.itv-profile-name {
  font-weight: 700;
}

.itv-profile-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

.itv-profile-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.itv-profile-file {
  display: none;
}

.itv-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.itv-overlay-body {
  display: grid;
  gap: 0.6rem;
}

.itv-send-options {
  display: grid;
  gap: 0.6rem;
}

.itv-send-options .btn {
  width: 100%;
}

.itv-send-options .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.itv-send-step {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
}

.itv-send-user-list {
  display: grid;
  gap: 0.5rem;
}

.itv-send-user {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  color: #f2f2f2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.itv-send-user.is-active {
  border-color: rgba(242, 140, 40, 0.9);
  background: rgba(242, 140, 40, 0.12);
  box-shadow: 0 8px 18px rgba(242, 140, 40, 0.18);
}

.itv-send-user:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.itv-send-user-title {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.itv-send-user-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.itv-send-user-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}

.itv-send-user-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.itv-send-user-placeholder {
  padding: 0 0.25rem;
  text-align: center;
}

.itv-send-user-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

.itv-send-user-status {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.itv-send-empty {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.itv-overlay-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.6rem;
}

@media (max-width: 992px) {

  .itv-final-grid {
    grid-template-columns: 1fr;
  }

  .itv-cert-body {
    max-width: 100%;
  }

  .itv-cert-notes {
    max-width: 100%;
  }

  .itv-cert-photo-frame {
    position: static;
    margin-top: 1.2rem;
  }
}

@media print {
  body {
    background: #ffffff !important;
  }

  .itv-hero,
  .itv-form,
  .itv-actions,
  .itv-score-card {
    display: none !important;
  }

  .itv-shell {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .itv-certificate {
    border: none;
    box-shadow: none;
  }
}
