.teco-pdf-v61,
.teco-pdf-v61 * { box-sizing: border-box; }
.teco-pdf-v61 h3 { margin: 0; padding: 0; }
.teco-pdf-v61[hidden] { display: none; }
.teco-pdf-v61 :is(button, a, [tabindex]):focus-visible {
  outline: 2px solid var(--teco-green-soft, #c7ce66);
  outline-offset: 4px;
}

/* ==========================================================
   VISOR PDF · FUERA DEL WRAPPER DE DIVI, PERO NAMESPACED.
========================================================== */

.teco-pdf-v61 {
  --teco-green: #a6b013;
  --teco-green-soft: #c7ce66;
  --teco-gray: #333333;
  --teco-white: #ffffff;

  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "Manrope", Arial, sans-serif;
}

.teco-pdf-v61.is-open {
  display: flex;
}

.teco-pdf-v61__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
  touch-action: none;
  background: rgba(12, 14, 12, .84);
  backdrop-filter: blur(10px);
}

.teco-pdf-v61__dialog {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  height: min(calc(100dvh - 40px), 880px);
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  color: var(--teco-white);
  background: #272925;
  box-shadow: 0 36px 100px rgba(0, 0, 0, .48);
  animation:
    tecoPdfV61DialogIn
    .28s
    cubic-bezier(.2, .75, .2, 1)
    both;
}

.teco-pdf-v61__header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 22px 17px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: #2e302c;
}

.teco-pdf-v61__kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teco-green-soft);
}

.teco-pdf-v61__header h3 {
  overflow-wrap: anywhere;
  font-family: "Newsreader", Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 500 !important;
  line-height: 1.05;
  color: var(--teco-white);
}

.teco-pdf-v61__close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  color: var(--teco-white);
  background: rgba(255, 255, 255, .035);
  transition:
    border-color .2s ease,
    background-color .2s ease,
    transform .2s ease;
}

.teco-pdf-v61__toolbar {
  min-height: 51px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: #272925;
}

.teco-pdf-v61__nav {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  cursor: pointer;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .84);
  background: transparent;
}

.teco-pdf-v61__nav:last-child {
  justify-self: end;
}

.teco-pdf-v61__nav:disabled {
  opacity: .28;
  cursor: default;
}

.teco-pdf-v61__page-indicator {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, .55);
}

.teco-pdf-v61__page-indicator strong {
  color: var(--teco-white);
}

.teco-pdf-v61__viewer {
  position: relative;
  min-height: 0;
  display: flex;
  justify-content: center;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 3vw, 34px);
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-user-select: none;
  background: #1c1e1b;
}

.teco-pdf-v61__page {
  position: relative;
  width: fit-content;
  height: fit-content;
  margin: auto;
  overflow: hidden;
  background: var(--teco-white);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .34);
}

.teco-pdf-v61__canvas {
  display: block;
  max-width: 100%;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.teco-pdf-v61__watermark {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 80%;
  transform: translate(-50%, -50%) rotate(-28deg);
  pointer-events: none;
  text-align: center;
  font-size: clamp(13px, 2.2vw, 23px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .08em;
  color: rgba(70, 75, 40, .095);
}

.teco-pdf-v61__loading {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, .72);
  background: #1c1e1b;
}

.teco-pdf-v61__loading[hidden],
.teco-pdf-v61__error[hidden] {
  display: none;
}

.teco-pdf-v61__spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, .15);
  border-top-color: var(--teco-green-soft);
  border-radius: 50%;
  animation: tecoPdfV61Spin .8s linear infinite;
}

.teco-pdf-v61__error {
  margin: auto;
  max-width: 400px;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .76);
}

.teco-pdf-v61__footer {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 24px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .43);
  background: #292b27;
}

.teco-pdf-v61__secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.teco-pdf-v61__secure span {
  color: var(--teco-green-soft);
}

@media (hover: hover) and (pointer: fine) {
  .teco-pdf-v61__close:hover {
    transform: rotate(4deg);
    border-color: rgba(199, 206, 102, .55);
    background: rgba(166, 176, 19, .1);
  }
}

@media (max-width: 767px) {
  .teco-pdf-v61 {
    padding: 0;
  }

  .teco-pdf-v61__dialog {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .teco-pdf-v61__header {
    min-height: 70px;
    padding: 14px 16px;
  }

  .teco-pdf-v61__toolbar {
    padding-inline: 16px;
  }

  .teco-pdf-v61__nav-label {
    display: none;
  }

  .teco-pdf-v61__viewer {
    padding: 12px;
  }

  .teco-pdf-v61__footer {
    padding-inline: 16px;
  }
}

@keyframes tecoPdfV61Spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tecoPdfV61DialogIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .teco-pdf-v61__dialog,
  .teco-pdf-v61__close,
  .teco-pdf-v61__spinner {
    animation: none !important;
    transition: none !important;
  }
}

.teco-pdf-v61__alternative {
  color: var(--teco-green-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
