/* ============================================================
   ALPRIFLY — WELCOME PAGE V5
   StPageFlip Edition · Paginación Vertical · 8 Páginas
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --cyan: #00AEEF;
  --magenta: #EC008C;
  --yellow: #FFF200;
  --key-black: #1A1A1A;
  --white: #ffffff;
  --paper: #F5F0E8;
  --ink: #231F20;
  --gray-100: #F0EDEB;
  --gray-300: #C4BFBA;
  --gray-500: #8A8480;
  --gray-700: #4A4644;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --page-padding: clamp(1.5rem, 3vw, 3rem);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #eef2f5;
  /* Light aluminum CTP */
  height: 100%;
  overflow: hidden;
}

/* ============================================================
   FIX FLASH — Hide pages until StPageFlip initializes
   ============================================================ */
#flipbook .page-content {
  visibility: hidden;
}

#flipbook.--ready .page-content,
.stf__parent .page-content {
  visibility: visible;
}

/* ============================================================
   FLIPBOOK SCENE
   ============================================================ */
.flipbook-scene {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  /* Plancha base oscura, metálica azulada */
  background-image:
    linear-gradient(rgba(0, 175, 239, 0.162) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(0, 175, 239, 0.162) 1.5px, transparent 1.5px),
    linear-gradient(rgba(0, 174, 239, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.15) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-position: center center;
  position: relative;
  overflow: hidden;
}

/* Beautiful Vector Print Marks for the Web Background */
.flipbook-scene::before {
  content: '';
  position: absolute;
  inset: 1.5rem;
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.08);

  background:
    /* --- CORNER CROP MARKS --- */
    /* Top Left */
    linear-gradient(var(--ink), var(--ink)) top -1px left 15px / 1px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top 15px left -1px / 16px 1px no-repeat,
    /* Top Right */
    linear-gradient(var(--ink), var(--ink)) top -1px right 15px / 1px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top 15px right -1px / 16px 1px no-repeat,
    /* Bottom Left */
    linear-gradient(var(--ink), var(--ink)) bottom -1px left 15px / 1px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom 15px left -1px / 16px 1px no-repeat,
    /* Bottom Right */
    linear-gradient(var(--ink), var(--ink)) bottom -1px right 15px / 1px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom 15px right -1px / 16px 1px no-repeat,

    /* --- REGISTRATION TARGETS (All 4 corners) --- */
    /* Top Left */
    radial-gradient(circle, transparent 4px, var(--ink) 4.5px, var(--ink) 5.5px, transparent 6px) top 25px left 25px / 40px 40px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top 44.5px left 10px / 70px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top 10px left 44.5px / 1px 70px no-repeat,

    /* Top Right */
    radial-gradient(circle, transparent 4px, var(--ink) 4.5px, var(--ink) 5.5px, transparent 6px) top 25px right 25px / 40px 40px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top 44.5px right 10px / 70px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top 10px right 44.5px / 1px 70px no-repeat,

    /* Bottom Left */
    radial-gradient(circle, transparent 4px, var(--ink) 4.5px, var(--ink) 5.5px, transparent 6px) bottom 25px left 25px / 40px 40px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom 44.5px left 10px / 70px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom 10px left 44.5px / 1px 70px no-repeat,

    /* Bottom Right */
    radial-gradient(circle, transparent 4px, var(--ink) 4.5px, var(--ink) 5.5px, transparent 6px) bottom 25px right 25px / 40px 40px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom 44.5px right 10px / 70px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom 10px right 44.5px / 1px 70px no-repeat,

    /* --- COLOR & GRAYSCALE TARGETS / BARS --- */
    /* Top Center Color Scale (CMYK) */
    linear-gradient(to right, var(--cyan) 25%, var(--magenta) 25%, var(--magenta) 50%, var(--yellow) 50%, var(--yellow) 75%, var(--ink) 75%) top 15px center / 160px 8px no-repeat,
    /* Center Left Grayscale Ramps */
    linear-gradient(to bottom, #fff 10%, #e6e6e6 10%, #e6e6e6 20%, #cccccc 20%, #cccccc 30%, #b3b3b3 30%, #b3b3b3 40%, #999999 40%, #999999 50%, #808080 50%, #808080 60%, #666666 60%, #666666 70%, #4d4d4d 70%, #4d4d4d 80%, #333333 80%, #333333 90%, #1a1a1a 90%, #1a1a1a 100%) center left 20px / 12px 200px no-repeat,
    /* Center Right RGB/CMYK Blocks */
    linear-gradient(to bottom, var(--cyan) 16.6%, var(--magenta) 16.6%, var(--magenta) 33.3%, var(--yellow) 33.3%, var(--yellow) 50%, #ed1c24 50%, #ed1c24 66.6%, #00a651 66.6%, #00a651 83.3%, #2e3192 83.3%, #2e3192 100%) center right 20px / 12px 180px no-repeat,
    /* Bottom Center Focus Star Base */
    radial-gradient(circle, transparent 4px, var(--ink) 4.5px, var(--ink) 5.5px, transparent 6px) bottom 15px center / 20px 20px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom 24.5px center / 40px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom 5px center / 1px 40px no-repeat,
    /* Left / Right mid registration marks */
    linear-gradient(to right, var(--ink), var(--ink)) center left -5px / 15px 1px no-repeat,
    linear-gradient(to right, var(--ink), var(--ink)) center right -5px / 15px 1px no-repeat;

  z-index: 0;
  opacity: 0.85;
}

.flipbook-scene::after {
  content: '';
  display: none;
}

/* ============================================================
   PAGE CONTENT — each page inside flipbook
   ============================================================ */
.page-content {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   CMYK BAR — Fixed top
   ============================================================ */
.cmyk-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  display: flex;
  z-index: 200;
}

.cmyk-bar span {
  flex: 1;
}

.cmyk-bar span:nth-child(1) {
  background: var(--cyan);
}

.cmyk-bar span:nth-child(2) {
  background: var(--magenta);
}

.cmyk-bar span:nth-child(3) {
  background: var(--yellow);
}

.cmyk-bar span:nth-child(4) {
  background: var(--key-black);
  border-bottom: 0.5px solid #333;
}

/* ============================================================
   NAV DOTS — VERTICAL RIGHT SIDE
   ============================================================ */
.page-nav {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
  padding: 0.6rem 0.4rem;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.page-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-700);
  background: transparent;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  position: relative;
}

.page-nav-dot:hover {
  border-color: #fff;
  transform: scale(1.2);
}

/* Tooltip on hover */
.page-nav-dot::before {
  content: attr(title);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250, 250, 248, 0.95);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-nav-dot:hover::before {
  opacity: 1;
}

.page-nav-dot.active {
  background: var(--cyan);
  border-color: var(--cyan);
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(0, 174, 239, 0.5);
}

/* Page Counter — top right (Moved left of the print mark) */
.page-counter {
  position: fixed;
  top: 45px;
  right: 130px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gray-500);
  z-index: 200;
  mix-blend-mode: normal;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.page-counter .current {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.page-counter-sep {
  margin: 0 2px;
  color: var(--gray-700);
}

.page-counter-total {
  font-size: 0.6rem;
  color: var(--gray-700);
}

/* Scroll Hint — bottom center */
.scroll-hint-global {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 200;
  animation: pulseHint 2.5s ease-in-out infinite;
  pointer-events: none;
  transition: opacity 0.5s;
}

.scroll-hint-global.hidden {
  opacity: 0;
}

.scroll-hint-text {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.scroll-hint-global svg {
  color: var(--cyan);
}

@keyframes pulseHint {

  0%,
  100% {
    opacity: 0.3;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(3px);
  }
}

/* ============================================================
   PRINT MARKS
   ============================================================ */
.print-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}

.pm-crop {
  position: absolute;
  width: 24px;
  height: 24px;
}

.pm-crop--tl {
  top: 10px;
  left: 10px;
  border-top: 1.5px solid;
  border-left: 1.5px solid;
}

.pm-crop--tr {
  top: 10px;
  right: 10px;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
}

.pm-crop--bl {
  bottom: 10px;
  left: 10px;
  border-bottom: 1.5px solid;
  border-left: 1.5px solid;
}

.pm-crop--br {
  bottom: 10px;
  right: 10px;
  border-bottom: 1.5px solid;
  border-right: 1.5px solid;
}

.page--back .pm-crop {
  border-color: rgba(255, 255, 255, 0.2);
}

.page--editorial .pm-crop,
.page--contents .pm-crop,
.page--features .pm-crop,
.page--legal .pm-crop,
.page--cover .pm-crop,
.page--spine .pm-crop {
  border-color: rgba(35, 31, 32, 0.12);
}

/* Registration targets */
.pm-reg-target {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0.18;
}

.pm-reg-target--tm {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.pm-reg-target--bm {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.pm-reg-target--ml {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.pm-reg-target--mr {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.page--back .pm-reg-target line,
.page--back .pm-reg-target circle {
  stroke: #fff;
}

.page--editorial .pm-reg-target line,
.page--editorial .pm-reg-target circle,
.page--contents .pm-reg-target line,
.page--contents .pm-reg-target circle,
.page--features .pm-reg-target line,
.page--features .pm-reg-target circle,
.page--legal .pm-reg-target line,
.page--legal .pm-reg-target circle,
.page--cover .pm-reg-target line,
.page--cover .pm-reg-target circle,
.page--spine .pm-reg-target line,
.page--spine .pm-reg-target circle {
  stroke: var(--ink);
}

/* Color bar */
.pm-color-bar {
  position: absolute;
  display: flex;
  z-index: 15;
}

.pm-color-bar--right {
  right: 8px;
  top: 50px;
  bottom: 50px;
  width: 7px;
  flex-direction: column;
  gap: 1px;
}

.pm-color-bar--bottom {
  bottom: 8px;
  left: 50px;
  right: 50px;
  height: 7px;
  flex-direction: row;
  gap: 1px;
}

.pm-color-bar .cb-c {
  background: var(--cyan);
  flex: 1;
}

.pm-color-bar .cb-m {
  background: var(--magenta);
  flex: 1;
}

.pm-color-bar .cb-y {
  background: var(--yellow);
  flex: 1;
}

.pm-color-bar .cb-k {
  background: var(--key-black);
  flex: 1;
}

.pm-color-bar .cb-cy {
  background: #00838f;
  flex: 0.5;
}

.pm-color-bar .cb-cm {
  background: #8e24aa;
  flex: 0.5;
}

.pm-color-bar .cb-ym {
  background: #ff6d00;
  flex: 0.5;
}

.pm-color-bar .cb-w {
  background: #fff;
  flex: 0.5;
  border: 0.5px solid #ccc;
}

/* Gray wedge */
.pm-gray-wedge {
  position: absolute;
  left: 8px;
  top: 50px;
  bottom: 50px;
  width: 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pm-gray-wedge span {
  flex: 1;
  display: block;
}

/* Process text */
.pm-process-text {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0.06;
  white-space: nowrap;
}

.pm-process-text--left {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.pm-process-text--right {
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
}

.page--back .pm-process-text {
  color: #fff;
}

.page--editorial .pm-process-text,
.page--contents .pm-process-text,
.page--features .pm-process-text,
.page--legal .pm-process-text,
.page--cover .pm-process-text,
.page--spine .pm-process-text {
  color: var(--ink);
  opacity: 0.04;
}

/* ============================================================
   SUTRA DEL DIAMANTE
   ============================================================ */
.sutra-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.sutra-text-vertical {
  font-family: 'Noto Serif SC', 'SimSun', serif;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  line-height: 2.2;
  letter-spacing: 0.5em;
  opacity: 0.35;
  white-space: nowrap;
}

.sutra-label {
  font-family: var(--font-mono);
  font-size: 0.4rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.1;
  position: absolute;
  white-space: nowrap;
}

/* ============================================================
   LETTERPRESS
   ============================================================ */
.letterpress-block {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.type-case {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  opacity: 0.05;
}

.type-case .type-block {
  width: 16px;
  height: 20px;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 900;
  transform: scaleX(-1);
}

.gutenberg-note {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.08;
  margin-top: 4px;
  white-space: nowrap;
}

/* Halftone */
.halftone-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--white) 0.6px, transparent 0.6px);
  background-size: 8px 8px;
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   PAGE 1 — PORTADA
   ============================================================ */
.page--cover {
  background: var(--white);
  color: var(--ink);
  flex-direction: column;
  padding: var(--page-padding);
  padding-top: calc(var(--page-padding) + 5px);
}

.cover-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
  padding: 0.5rem;
}

.cover-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cover-issue {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.cover-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.cover-title-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.cover-brand {
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 0.9vw, 0.65rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gray-500);
  position: relative;
  padding-bottom: 0.6rem;
}

.cover-brand::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 1px;
  background: var(--magenta);
}

.cover-logo-img {
  width: clamp(40px, 6vw, 80px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  mix-blend-mode: screen;
}

.cover-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
  position: relative;
  background: linear-gradient(135deg, var(--white) 0%, var(--cyan) 50%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.2em;
  /* Fixes cut-off letters p and y */
}

.cover-title::after {
  content: 'CRM';
  position: absolute;
  top: -0.5rem;
  right: -1rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  -webkit-text-fill-color: var(--yellow);
  background: none;
  opacity: 0.8;
}

.cover-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.4vw, 1.1rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gray-300);
  max-width: 380px;
  line-height: 1.4;
}

.cover-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.barcode {
  display: flex;
  gap: 1.5px;
  align-items: flex-end;
  height: 30px;
}

.barcode span {
  display: block;
  width: 2px;
  background: var(--white);
  opacity: 0.3;
}

.cover-scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: pulseHint 2s ease-in-out infinite;
}

.cover-scroll-hint .arrow {
  display: inline-block;
  width: 25px;
  height: 1px;
  background: var(--cyan);
  position: relative;
}

.cover-scroll-hint .arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
  transform: rotate(-45deg);
}

.cover-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.cover-deco--circles {
  top: 5%;
  right: 2%;
  width: 220px;
  height: 220px;
}

.cover-deco--circles-bl {
  bottom: 5%;
  left: 2%;
  width: 220px;
  height: 220px;
}

.cover-deco--circles circle,
.cover-deco--circles-bl circle {
  fill: none;
  stroke-width: 0.5;
}

/* ============================================================
   PAGE 2 — EDITORIAL
   ============================================================ */
.page--editorial {
  background: var(--paper);
  color: var(--ink);
  padding: var(--page-padding);
  padding-top: calc(var(--page-padding) + 5px);
}

.editorial-content {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0.8rem 2rem;
}

.editorial-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.5rem;
}

.editorial-header .section-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--magenta);
  line-height: 1;
}

.editorial-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.1;
}

.editorial-header h2 em {
  font-style: italic;
  color: var(--magenta);
}

.editorial-text {
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 0.85vw, 0.75rem);
  line-height: 1.45;
  color: var(--gray-700);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 0;
  padding-right: 5px;
}

.editorial-text::-webkit-scrollbar {
  display: none;
}

.editorial-text p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3.2em;
  font-weight: 900;
  float: left;
  line-height: 0.8;
  margin-right: 0.06em;
  margin-top: 0.05em;
  color: var(--cyan);
}

.editorial-text p+p {
  margin-top: 0.6rem;
  text-indent: 1.2em;
}

.editorial-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
  border-left: 3px solid var(--magenta);
  padding-left: 1rem;
  position: relative;
}

.pull-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--magenta);
  opacity: 0.12;
  position: absolute;
  top: -1.2rem;
  left: 0.2rem;
  line-height: 1;
}

.cmyk-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.cmyk-info-item {
  text-align: center;
  padding: 0.4rem 0.2rem;
}

.cmyk-info-item .swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin: 0 auto 0.2rem;
}

.cmyk-info-item:nth-child(1) .swatch {
  background: var(--cyan);
}

.cmyk-info-item:nth-child(2) .swatch {
  background: var(--magenta);
}

.cmyk-info-item:nth-child(3) .swatch {
  background: var(--yellow);
  border: 1px solid var(--gray-300);
}

.cmyk-info-item:nth-child(4) .swatch {
  background: var(--key-black);
}

.cmyk-info-item .label {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.cmyk-info-item .value {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.1rem;
}

.editorial-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gray-300);
  padding-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   PAGE 3 — CONTENIDO
   ============================================================ */
.page--contents {
  background: var(--white);
  color: var(--ink);
  padding: var(--page-padding);
  padding-top: calc(var(--page-padding) + 5px);
}

.contents-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contents-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
}

.contents-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.contents-header .vol {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  text-transform: uppercase;
  color: var(--gray-500);
}

.modules-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 0;
}

.modules-grid::-webkit-scrollbar {
  display: none;
}

.module-card {
  position: relative;
  border: 1px solid var(--gray-300);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: all 0.35s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.module-card:nth-child(1)::before {
  background: var(--cyan);
}

.module-card:nth-child(2)::before {
  background: var(--magenta);
}

.module-card:nth-child(3)::before {
  background: var(--yellow);
}

.module-card:nth-child(4)::before {
  background: var(--cyan);
}

.module-card:nth-child(5)::before {
  background: var(--magenta);
}

.module-card:nth-child(6)::before {
  background: var(--yellow);
}

.module-card:hover::before {
  transform: scaleX(1);
}

.module-card:hover {
  background: var(--gray-100);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.module-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.module-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 900;
  color: var(--gray-300);
  line-height: 1;
  transition: color 0.3s;
}

.module-card:nth-child(1):hover .module-number {
  color: var(--cyan);
}

.module-card:nth-child(2):hover .module-number {
  color: var(--magenta);
}

.module-card:nth-child(3):hover .module-number {
  color: var(--yellow);
}

.module-card:nth-child(4):hover .module-number {
  color: var(--cyan);
}

.module-card:nth-child(5):hover .module-number {
  color: var(--magenta);
}

.module-card:nth-child(6):hover .module-number {
  color: var(--yellow);
}

.module-icon {
  width: 20px;
  height: 20px;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.module-card:hover .module-icon {
  opacity: 0.7;
}

.module-icon line,
.module-icon path,
.module-icon rect,
.module-icon circle,
.module-icon polyline {
  stroke: var(--ink);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-card-bottom {
  margin-top: auto;
}

.module-title {
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 1vw, 0.85rem);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.module-desc {
  font-family: var(--font-body);
  font-size: 0.55rem;
  color: var(--gray-500);
  line-height: 1.25;
}

.module-page-ref {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--gray-300);
  margin-top: 0.2rem;
  letter-spacing: 0.1em;
}

/* ============================================================
   PAGE 4 — CARACTERÍSTICAS
   ============================================================ */
.page--features {
  background: var(--paper);
  color: var(--ink);
  padding: var(--page-padding);
  padding-top: calc(var(--page-padding) + 5px);
}

.features-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.features-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.5rem;
  margin-bottom: 0.8rem;
}

.features-header .section-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
}

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.1;
}

.features-header h2 em {
  font-style: italic;
  color: var(--cyan);
}

.features-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 0;
}

.features-grid::-webkit-scrollbar {
  display: none;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--gray-500);
}

.feature-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.08), rgba(236, 0, 140, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  width: 20px;
  height: 20px;
}

.feature-icon line,
.feature-icon path,
.feature-icon rect,
.feature-icon circle,
.feature-icon polyline {
  stroke: var(--cyan);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 0.95vw, 0.85rem);
  font-weight: 700;
}

.feature-card p {
  font-family: var(--font-body);
  font-size: 0.55rem;
  color: var(--gray-500);
  line-height: 1.3;
}

.features-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gray-300);
  padding-top: 0.4rem;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   PAGE 5 — CTA / ACCESO
   ============================================================ */
.page--back {
  background: linear-gradient(135deg, var(--white) 0%, #f0f0f0 50%, #e8e8e8 100%);
  color: var(--ink);
  padding: var(--page-padding);
}

.back-content {
  max-width: 95%;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  z-index: 5;
  position: relative;
}

.back-deco-circles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  pointer-events: none;
  z-index: 1;
}

.back-deco-circles circle {
  fill-opacity: 0.03;
}

.back-tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cyan);
  z-index: 3;
}

.back-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
}

.back-cta-title span {
  display: block;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.back-description {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  color: var(--gray-700);
  line-height: 1.6;
  max-width: 380px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.8rem;
  background: transparent;
  border: 2px solid var(--magenta);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  transform: translateX(-101%);
  transition: transform 0.5s;
  z-index: -1;
}

.btn-cta:hover::before {
  transform: translateX(0);
}

.btn-cta:hover {
  border-color: var(--cyan);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 174, 239, 0.25);
}

.btn-cta .btn-arrow {
  transition: transform 0.3s;
}

.btn-cta:hover .btn-arrow {
  transform: translateX(4px);
}

.back-contact {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  flex-wrap: wrap;
  justify-content: center;
}

.back-contact a {
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.3s;
}

.back-contact a:hover {
  color: var(--cyan);
}

/* ============================================================
   PAGES 6 & 7 — LEGAL PAGES (Privacidad / Términos)
   ============================================================ */
.page--legal {
  background: var(--white);
  color: var(--ink);
  padding: var(--page-padding);
  padding-top: calc(var(--page-padding) + 5px);
}

.page--legal-terms {
  background: var(--paper);
}

.legal-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.5rem;
  margin-bottom: 0.6rem;
}

.legal-header .section-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--magenta);
  line-height: 1;
}

.legal-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.legal-header h2 em {
  font-style: italic;
  color: var(--magenta);
}

.legal-subtitle {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  display: block;
  margin-top: 0.2rem;
}

.legal-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

.legal-body::-webkit-scrollbar {
  width: 3px;
}

.legal-body::-webkit-scrollbar-track {
  background: transparent;
}

.legal-body::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed var(--gray-300);
}

.legal-intro {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 0.9vw, 0.8rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--gray-700);
  margin-bottom: 0.6rem;
}

.legal-section {
  margin-bottom: 0.5rem;
}

.legal-section h4 {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 0.85vw, 0.75rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--cyan);
}

.page--legal-terms .legal-section h4 {
  border-left-color: var(--magenta);
}

.legal-section p {
  font-family: var(--font-body);
  font-size: clamp(0.55rem, 0.75vw, 0.65rem);
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 0.15rem;
}

.legal-section ul {
  list-style: none;
  padding-left: 0;
}

.legal-section ul li {
  font-family: var(--font-body);
  font-size: clamp(0.55rem, 0.75vw, 0.65rem);
  color: var(--gray-700);
  line-height: 1.45;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.1rem;
}

.legal-section ul li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.4rem;
  top: 0.15rem;
}

.page--legal-terms .legal-section ul li::before {
  color: var(--magenta);
}

.legal-section ul li strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gray-300);
  padding-top: 0.4rem;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   PAGE 8 — LOMO / CONTRAPORTADA
   ============================================================ */
.page--spine {
  background: var(--white);
  color: var(--ink);
}

.spine-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  width: 100%;
  height: 100%;
}

.spine-logo {
  width: 45px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  mix-blend-mode: screen;
}

.spine-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
  color: var(--gray-500);
}

.spine-year {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--gray-700);
}

.spine-copyright {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  color: var(--gray-700);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  max-width: 160px;
  line-height: 1.8;
}

.spine-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--cyan), var(--magenta), var(--yellow), var(--key-black));
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .editorial-content {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .editorial-sidebar {
    flex-direction: row;
    gap: 0.8rem;
  }

  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }

  .back-contact {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sutra-decoration,
  .letterpress-block {
    display: none;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  html {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
  }

  body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
  }

  /* Show pages immediately on mobile */
  #flipbook .page-content {
    visibility: visible !important;
  }

  .flipbook-scene {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    background: var(--key-black);
  }

  .flipbook-scene::before {
    display: none;
  }

  #flipbook {
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .page-content {
    width: 100% !important;
    height: auto !important;
    min-height: 100vh;
    position: relative !important;
    transform: none !important;
    flex-direction: column;
  }

  .page-nav,
  .page-counter,
  .scroll-hint-global {
    display: none;
  }

  .print-marks,
  .sutra-decoration,
  .letterpress-block,
  .cover-scroll-hint {
    display: none;
  }

  .cover-content {
    height: auto;
    min-height: 90vh;
    padding: 1.5rem 0;
  }

  .editorial-content {
    height: auto;
    min-height: 90vh;
    grid-template-columns: 1fr;
    padding: 1.5rem 0;
  }

  .editorial-sidebar {
    flex-direction: column;
  }

  .contents-layout {
    height: auto;
    min-height: 100vh;
    padding: 1.5rem 0;
  }

  .modules-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .features-layout {
    height: auto;
    min-height: 100vh;
    padding: 1.5rem 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .legal-layout {
    height: auto;
    min-height: 100vh;
    padding: 1.5rem 0;
  }

  .back-content {
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .spine-content {
    height: auto;
    min-height: 50vh;
    padding: 1.5rem 0;
  }

  .spine-title {
    writing-mode: horizontal-tb;
  }
}

@media (max-width: 480px) {
  :root {
    --page-padding: 1rem;
  }

  .cover-title {
    font-size: 2.5rem;
  }

  .cover-title::after {
    font-size: 0.4rem;
    top: -0.3rem;
    right: -0.3rem;
  }
}

@media print {
  .flipbook-scene {
    width: 100%;
    height: auto;
  }

  .page-content {
    width: 100%;
    height: auto;
    min-height: 100vh;
    page-break-after: always;
    visibility: visible !important;
  }

  .page-nav,
  .page-counter,
  .scroll-hint-global,
  .cover-scroll-hint {
    display: none;
  }
}

/* SCENE OVERLAYS (INTRO & VIDEO)
   ============================================================ */
.scene-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  /* Transicion ultra rapida y suave para desaparecer */
  transition: opacity 0.25s ease-in, transform 0.25s ease-in;
}

.scene-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 10;
  /* Transición fluida y moderada al mostrarse */
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

/* INTRO OVERLAY (Left Half) */
.scene-overlay--intro {
  left: 0;
  transform: translateX(-40px);
}

/* VIDEO OVERLAY (Right Half) */
.scene-overlay--video {
  right: 0;
  transform: translateX(40px);
}

.technical-dashboard {
  width: 360px;
  padding: 2.2rem;
  border: 1px solid var(--ink);
  /* Borde técnico negro */
  background: var(--white);
  /* Fondo sólido blanco */
  font-family: var(--font-mono);
  color: var(--ink);
  position: relative;
  border-radius: 0;
  /* Bordes duros técnicos */
  box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.05);
  /* Sombra plana (offsets) */
}

/* Outer Crop Marks para el Panel */
.technical-dashboard::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  pointer-events: none;
  background:
    /* Top Left Crop */
    linear-gradient(var(--ink), var(--ink)) top left / 20px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top left / 1.5px 20px no-repeat,
    /* Top Right Crop */
    linear-gradient(var(--ink), var(--ink)) top right / 20px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) top right / 1.5px 20px no-repeat,
    /* Bottom Left Crop */
    linear-gradient(var(--ink), var(--ink)) bottom left / 20px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom left / 1.5px 20px no-repeat,
    /* Bottom Right Crop */
    linear-gradient(var(--ink), var(--ink)) bottom right / 20px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) bottom right / 1.5px 20px no-repeat;
}

.tech-header {
  font-size: 0.75rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.8rem;
  letter-spacing: 0.1em;
}

.tech-value.blink {
  animation: blink 1.5s infinite;
  color: var(--cyan);
}

.tech-title {
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
}

.tech-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.tech-list li {
  font-size: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.1);
  padding-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.tech-list .t-label {
  color: var(--gray-500);
}

.tech-list .cyan {
  color: var(--cyan);
  font-weight: bold;
}

.tech-list .magenta {
  color: var(--magenta);
  font-weight: bold;
}

.tech-list .yellow {
  color: var(--yellow);
  font-weight: bold;
}

.tech-list .key {
  color: var(--ink);
  font-weight: bold;
}

.tech-footer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-barcode {
  height: 35px;
  background: repeating-linear-gradient(90deg, var(--ink), var(--ink) 2px, transparent 2px, transparent 4px, var(--ink) 4px, var(--ink) 5px, transparent 5px, transparent 8px);
  opacity: 0.5;
}

.tech-instruction {
  font-size: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-700);
  background: rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
}

.tech-arrow {
  color: var(--magenta);
  font-weight: bold;
  animation: bounceX 2s infinite;
}

/* NEW FINAL QA PANEL (Sleek Minimal Design) */
.final-qa-panel {
  width: 320px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  padding: 2.5rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1), inset 0 1px 0px rgba(255, 255, 255, 1);
  border-left: 2px solid var(--cyan);
  border-right: 2px solid var(--magenta);
}

.qa-badge {
  width: 48px;
  height: 48px;
  background: rgba(0, 174, 239, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  box-shadow: 0 0 20px rgba(0, 174, 239, 0.2);
}

.qa-badge svg {
  width: 24px;
  height: 24px;
  animation: strokeDash 1s ease-out forwards;
}

@keyframes strokeDash {
  from {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
  }

  to {
    stroke-dasharray: 40;
    stroke-dashoffset: 0;
  }
}

.qa-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}

.qa-desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.4;
}

.qa-desc strong {
  color: var(--magenta);
}

.qa-bar {
  height: 3px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-top: 1rem;
}

.qa-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
  animation: fillProgress 1.5s ease-out;
}

@keyframes fillProgress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

.qa-metrics {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gray-500);
}

.qa-metrics span:last-child {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 174, 239, 0.4);
}

@keyframes rollSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes paperPass {
  0% {
    left: -250px;
  }

  35% {
    left: 50%;
    transform: translateX(-50%);
  }

  65% {
    left: 50%;
    transform: translateX(-50%);
  }

  100% {
    left: 100%;
    transform: translateX(50px);
  }
}

@keyframes printAppear {

  0%,
  30% {
    opacity: 0;
  }

  50%,
  100% {
    opacity: 1;
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes bounceX {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(5px);
  }
}

/* Responsive Overlays */
@media (max-width: 1024px) {
  .scene-overlay {
    display: none !important;
    /* Hide on smaller screens where single-page view is active */
  }
}