
/* Fuente de verdad: interfaz 1.pdf (14 pantallas) */

.pdf-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}
.pdf-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #c0186a;
}
.pdf-page__bg picture,
.pdf-page__bg img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.pdf-page__bg img {
  object-fit: cover;
  object-position: center center;
}
.pdf-page__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(0.5rem, 1.2vw, 1rem) clamp(1.25rem, 3.5vw, 2.75rem)
    clamp(1.5rem, 4vw, 2.5rem);
}

/* Cabecera PDF (ref. interfaz 1): logos arriba; ruta 60% del header completo */
.pdf-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  grid-template-rows: 1fr;
  align-items: center;
  column-gap: clamp(0.35rem, 1.2vw, 0.85rem);
  width: 100%;
  min-height: clamp(5rem, 11vw, 6.75rem);
  margin-bottom: clamp(0.75rem, 2.5vh, 1.5rem);
  flex-shrink: 0;
  overflow: visible;
}
.pdf-header__ruta {
  grid-column: 1 / -1;
  grid-row: 1;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  pointer-events: none;
}
/* Avion+linea.png: avión sobre la curva (despiece), 60% ancho header */
.pdf-header__ruta-combo {
  display: block;
  width: 60%;
  height: auto;
  margin: 0;
  object-fit: contain;
}
.pdf-header__logo-trivia {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  width: clamp(150px, 22vw, 270px);
  height: auto;
  object-fit: contain;
  justify-self: start;
  align-self: center;
}
.pdf-header__marcas-lockup {
  position: relative;
  z-index: 2;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: min(40vw, 400px);
  height: auto;
  object-fit: contain;
}

.pdf-dots-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.pdf-dots-score {
  margin: 0;
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
}
.pdf-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(0.55rem, 1.85vw, 1.05rem);
  width: min(920px, 100%);
  margin: 0.15rem auto 0.35rem;
  padding: 0;
}
.pdf-dots span {
  width: clamp(1.2rem, 2.85vw, 1.75rem);
  height: clamp(1.2rem, 2.85vw, 1.75rem);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}
.pdf-dots span.is-ok,
.pdf-dots span[data-result="ok"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3ecf6e !important;
  color: #fff;
  font-weight: 800;
  font-size: clamp(0.85rem, 1.65vw, 1.2rem);
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.pdf-dots span.is-ok::before,
.pdf-dots span[data-result="ok"]::before {
  content: "✓";
}
.pdf-dots span.is-fail,
.pdf-dots span[data-result="fail"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e21c24 !important;
  color: #fff;
  font-weight: 800;
  font-size: clamp(0.8rem, 1.5vw, 1.05rem);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.pdf-dots span.is-fail::before,
.pdf-dots span[data-result="fail"]::before {
  content: "✕";
}
.pdf-dots span.is-current,
.pdf-dots span[data-result="current"] {
  background: #fff !important;
  box-shadow: 0 0 0 4px #e21c24;
  transform: none;
}

#questions-app.pdf-page {
  min-height: 100dvh;
  height: 100dvh;
}

#questions-app .pdf-page__inner {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(1rem, 3vh, 2rem);
}

#questions-app .pdf-header {
  flex-shrink: 0;
  margin-bottom: 0;
}

.pdf-questions-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding: clamp(0.5rem, 2vh, 1.5rem) 0;
}

#questions-app .pdf-questions-stage .pdf-dots-wrap {
  margin-bottom: 50px;
}

#questions-app .pdf-questions-stage .pdf-glass {
  margin-top: 0;
  margin-bottom: 0;
}

.pdf-glass {
  width: min(920px, 100%);
  margin: auto;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 4vw, 3.25rem) clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}
.pdf-glass--registro {
  width: min(92vw, 560px);
  max-width: 560px;
  margin: clamp(0.35rem, 2.2vh, 1.25rem) auto clamp(1rem, 4vh, 2.5rem);
  box-sizing: border-box;
}
.pdf-page--form .pdf-page__inner {
  justify-content: flex-start;
  padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
}
.pdf-glass--wide { max-width: min(1000px, 100%); }
.pdf-glass__title {
  margin: 0 0 clamp(1.25rem, 3vh, 1.75rem);
  text-align: center;
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pdf-form-error,
.pdf-field-error {
  margin: 0.35rem 0 0;
  color: #ffe8e8;
  font-size: 0.9rem;
  line-height: 1.35;
}
.pdf-form-error {
  margin: 0 0 1rem;
  text-align: center;
  font-weight: 600;
}

.pdf-field { margin-bottom: clamp(0.85rem, 2vh, 1.15rem); }
.pdf-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  color: #fff;
}
.pdf-field input,
.pdf-input {
  width: 100%;
  padding: 0.82rem 1.35rem;
  border: none;
  border-radius: 999px;
  text-align: left;
  font: inherit;
  font-size: 1.05rem;
  color: #2b2b2b;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.pdf-field input:focus,
.pdf-input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.pdf-btn-continuar {
  display: block;
  width: min(420px, 88%);
  margin: clamp(1.25rem, 3vh, 1.75rem) auto 0;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #e21c24, #a80f6e);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  opacity: 1;
  pointer-events: auto;
}

.pdf-btn-continuar:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pdf-glass--registro .pdf-btn-continuar:not(:disabled) {
  opacity: 1;
}

.pdf-glass--pregunta {
  position: relative;
  padding-top: clamp(2.25rem, 4.5vh, 3rem);
}

.pdf-glass--pregunta .pdf-q-badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  margin: 0;
  transform: translate(-50%, -50%);
  width: clamp(2.85rem, 5vw, 3.35rem);
  height: clamp(2.85rem, 5vw, 3.35rem);
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.pdf-glass--pregunta .pdf-q-timer {
  position: absolute;
  top: clamp(0.55rem, 1.4vh, 0.85rem);
  right: clamp(0.85rem, 2.2vw, 1.35rem);
  z-index: 3;
  margin: 0;
  min-width: 4.25rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.pdf-q-timer.is-urgent {
  background: #fff3f3;
  color: #c0182e;
  animation: pdf-timer-pulse 0.9s ease-in-out infinite;
}
@keyframes pdf-timer-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.pdf-q-badge {
  width: 3rem;
  height: 3rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-weight: 700;
  font-size: 1.1rem;
  border: 3px solid rgba(255,255,255,.6);
}
.pdf-glass--pregunta .pdf-q-text {
  margin-top: 0.25rem;
}

.pdf-q-text {
  background: rgba(255,255,255,.92);
  color: #222;
  border-radius: 18px;
  padding: clamp(1rem, 2.2vh, 1.35rem) clamp(1.15rem, 2.5vw, 1.5rem);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.25rem;
}
.pdf-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.65rem, 1.5vw, 0.85rem);
}
.pdf-answer {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  padding: clamp(0.6rem, 1.4vh, 0.75rem) clamp(1rem, 2vw, 1.25rem);
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #222;
  font: inherit;
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  cursor: pointer;
  text-align: left;
  min-height: 2.85rem;
}
.pdf-answer > span:last-child {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.pdf-answer--full { grid-column: 1 / -1; width: min(52%, 100%); justify-self: center; }
.pdf-answer__letter {
  width: clamp(1.85rem, 3vw, 2.1rem);
  height: clamp(1.85rem, 3vw, 2.1rem);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #e21c24, #b91062);
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
}
.pdf-answer.is-selected {
  background: linear-gradient(90deg, #e21c24, #9e1068);
  color: #fff;
}
.pdf-answer.is-disabled,
.pdf-answer:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.pdf-answer.is-selected .pdf-answer__letter {
  background: #fff;
  color: #c0182e;
}

.pdf-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.52);
  padding: 1rem;
}
.pdf-end-score {
  margin: 0 0 1.5rem;
  color: #fff;
  font-size: 1.15rem;
}
.pdf-table-wrap { overflow-x: auto; }
.pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  color: #fff;
}
.pdf-table th,
.pdf-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  text-align: left;
}
.pdf-table th { font-weight: 700; }

.pdf-feedback .pdf-glass { max-width: 760px; text-align: center; color: #111; background: rgba(255,255,255,.88); }
.pdf-feedback h2 { margin: 0 0 .35rem; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800; color: #111; }
.pdf-feedback p { margin: 0 0 1.25rem; color: #222; font-size: 1.05rem; }
.pdf-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem;
  padding: 1rem .25rem .5rem;
  margin-top: .5rem;
}
.pdf-track::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 8%;
  top: 50%;
  height: 4px;
  background: rgba(255,255,255,.8);
  z-index: 0;
}
.pdf-track__node {
  position: relative;
  z-index: 1;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ddd;
  flex-shrink: 0;
}
.pdf-track__node.is-ok { background: #3ecf6e; border-color: #3ecf6e; }
.pdf-track__node.is-fail { background: #e21c24; border-color: #e21c24; }
.pdf-track__node.is-active { background: #fff; border-color: #e21c24; box-shadow: 0 0 0 3px rgba(226, 28, 36, 0.35); }
.pdf-track__plane {
  position: absolute;
  z-index: 2;
  width: clamp(5.75rem, 14vw, 7.5rem);
  height: auto;
  transform: translate(-50%, -78%);
  top: 50%;
  pointer-events: none;
}
.pdf-track__trophy { font-size: 1.75rem; z-index: 1; }

/* Breakpoints móvil detallados: interfaz-mobile.css */

.hidden { display: none !important; }
