/* ==========================================================================
   PINCIANO — SISTEMA DE DISEÑO EDITORIAL / ARCHIVO INDUSTRIAL
   Tono Base: Azul Mahón Oscuro (Camisa Azul) | Cero bordes redondeados
   ========================================================================== */

@font-face {
  font-family: 'LemonMilk';
  src: url('../assets/fonts/LEMONMILK-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'UltrasLiberi';
  src: url('../assets/fonts/ultrasliberi.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta Azul Mahón Profundo (Inspiración Camisa Azul) */
  --mahon-abyss: #050d1a;
  --mahon-dark: #081529;
  --mahon-camisa: #0c1f3d;
  --mahon-panel: #10284e;
  --mahon-line: #1e3b6b;
  --mahon-line-bright: #2e5799;

  /* Tintas y Acentos */
  --bone: #f4f2ed;
  --bone-muted: #9aaec9;
  --bone-dim: #5d7699;
  --crimson: #d40000;
  --gold: #ffdd55;

  /* Tipografías del usuario */
  --font-lemon: 'LemonMilk', sans-serif;
  --font-ultras: 'UltrasLiberi', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Curvas de animación */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-shutter: cubic-bezier(0.85, 0, 0.15, 1);
}

/* Reset estricto — Cero redondeces */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
  background-color: var(--mahon-abyss);
  color: var(--bone);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  background-color: var(--mahon-abyss);
  background-image: 
    linear-gradient(180deg, rgba(12, 31, 61, 0.55) 0%, rgba(5, 13, 26, 0.95) 100%);
  color: var(--bone);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body.loading {
  overflow: hidden;
}

/* Textura de grano textil en SVG */
.grain-svg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.045;
  pointer-events: none;
  z-index: 9990;
}

/* ==========================================================================
   CURSOR TÁCTICO DE PRECISIÓN
   ========================================================================== */
@media (pointer: fine) {
  .tactical-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-100px, -100px, 0);
    transition: transform 0.04s linear;
    mix-blend-mode: difference;
  }

  .cursor-crosshair {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(244, 242, 237, 0.55);
    position: relative;
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease-expo), height 0.25s var(--ease-expo), border-color 0.25s;
  }

  .tactical-cursor.is-hovering .cursor-crosshair {
    width: 48px;
    height: 48px;
    border-color: var(--gold);
    background: rgba(255, 221, 85, 0.08);
  }

  .ch-h, .ch-v {
    position: absolute;
    background: var(--bone);
  }

  .ch-h {
    width: 8px;
    height: 1px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .ch-v {
    width: 1px;
    height: 8px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .cursor-coords {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    color: var(--gold);
    white-space: nowrap;
    transform: translate(18px, -8px);
    opacity: 0.85;
  }
}

@media (pointer: coarse) {
  .tactical-cursor {
    display: none;
  }
}

/* ==========================================================================
   PRELOADER / TELÓN DE ENTRADA CINÉTICO
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.preloader.is-done {
  pointer-events: none;
}

.preloader-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: var(--mahon-dark);
  border-color: var(--mahon-line);
  transition: transform 1.1s var(--ease-shutter);
}

.preloader-top {
  top: 0;
  border-bottom: 1px solid var(--mahon-line);
}

.preloader-bottom {
  bottom: 0;
  border-top: 1px solid var(--mahon-line);
}

.preloader.is-done .preloader-top {
  transform: translateY(-102%);
}

.preloader.is-done .preloader-bottom {
  transform: translateY(102%);
}

.preloader-content {
  position: relative;
  z-index: 2;
  width: min(540px, 90vw);
  border: 1px solid var(--mahon-line-bright);
  background: var(--mahon-abyss);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-expo);
}

.preloader.is-done .preloader-content {
  opacity: 0;
  transform: scale(0.94);
}

.preloader-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--bone-muted);
  border-bottom: 1px solid var(--mahon-line);
  padding-bottom: 0.75rem;
}

.preloader-emblem {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-p-svg {
  height: 100%;
  width: auto;
}

.preloader-path {
  fill: transparent;
  stroke: var(--bone);
  stroke-width: 65;
  stroke-dasharray: 26000;
  stroke-dashoffset: 26000;
  animation: drawPreloaderP 1.5s var(--ease-expo) forwards;
}

@keyframes drawPreloaderP {
  0% {
    stroke-dashoffset: 26000;
    fill: rgba(244, 242, 237, 0);
  }
  70% {
    stroke-dashoffset: 0;
    fill: rgba(244, 242, 237, 0.1);
  }
  100% {
    stroke-dashoffset: 0;
    fill: rgba(244, 242, 237, 1);
  }
}

.preloader-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--mahon-line);
  padding-top: 0.75rem;
}

.preloader-Brand {
  font-family: var(--font-lemon);
  font-size: 1.2rem;
  letter-spacing: 0.25em;
}

.preloader-counter {
  font-family: var(--font-ultras);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}

/* ==========================================================================
   CABECERA TÉCNICA (STICKY GRID HEADER)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  background: rgba(5, 13, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mahon-line);
}

.header-cell {
  padding: 0.9rem 1.5rem;
  border-right: 1px solid var(--mahon-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-cell:last-child {
  border-right: none;
}

.brand-anchor {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--bone);
}

.nav-monogram {
  height: 30px;
  width: auto;
  fill: var(--bone);
  transition: transform 0.3s var(--ease-expo);
}

.brand-anchor:hover .nav-monogram {
  transform: scale(1.1);
  fill: var(--gold);
}

.nav-brand-text {
  font-family: var(--font-lemon);
  font-size: 1.15rem;
  letter-spacing: 0.22em;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--bone-dim);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.meta-value {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--bone-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.swatch-inline {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #143366;
  border: 1px solid var(--bone);
}

.header-nav {
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  padding: 0 1rem;
}

.nav-link {
  text-decoration: none;
  color: var(--bone);
  font-family: var(--font-lemon);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link span {
  font-family: var(--font-mono);
  color: var(--bone-dim);
  font-size: 0.65rem;
}

.nav-link:hover {
  border-color: var(--mahon-line-bright);
  background: var(--mahon-camisa);
}

.nav-cta {
  background: var(--bone);
  color: var(--mahon-abyss);
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--mahon-abyss);
  border-color: var(--gold);
}

/* ==========================================================================
   HERO SECTION — ARQUITECTURA DE BLOQUE
   ========================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  min-height: calc(100vh - 62px);
  border-bottom: 1px solid var(--mahon-line);
}

.hero-main {
  position: relative;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-right: 1px solid var(--mahon-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: 
    linear-gradient(135deg, rgba(16, 40, 78, 0.35) 0%, rgba(5, 13, 26, 0.1) 100%);
}

.crosshair-mark {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--mahon-line-bright);
  line-height: 1;
  user-select: none;
}

.crosshair-mark.top-left { top: 14px; left: 14px; }
.crosshair-mark.top-right { top: 14px; right: 14px; }

.hero-top-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Barra sutil con los colores de la Z del usuario */
.flag-bar {
  display: inline-block;
  width: 36px;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--crimson) 0%,
    var(--crimson) 33%,
    var(--gold) 33%,
    var(--gold) 66%,
    var(--crimson) 66%,
    var(--crimson) 100%
  );
}

.serial-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--bone-muted);
}

.hero-title-wrap {
  margin: 2.5rem 0;
}

.line-mask {
  overflow: hidden;
}

.hero-title {
  font-family: var(--font-lemon);
  font-size: clamp(3.6rem, 8.5vw, 7.8rem);
  line-height: 0.94;
  letter-spacing: 0.08em;
  color: var(--bone);
  text-transform: uppercase;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-expo) 0.3s;
}

.hero-subtitle-ultras {
  font-family: var(--font-ultras);
  font-size: clamp(1.35rem, 3vw, 2.5rem);
  letter-spacing: 0.16em;
  color: var(--bone-muted);
  margin-top: 0.85rem;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease-expo) 0.48s;
}

/* Sello Monumental PRÓXIMAMENTE */
.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--mahon-line-bright);
  background: rgba(12, 31, 61, 0.65);
}

.status-square {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  animation: pulseSquare 1.6s steps(2, start) infinite;
}

@keyframes pulseSquare {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.coming-soon-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease-expo) 0.48s;
}

.cs-stamp {
  font-family: var(--font-ultras);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: 0.14em;
  color: var(--mahon-abyss);
  background: var(--gold);
  padding: 0.25rem 1.1rem 0.15rem;
  line-height: 1;
  border: 1px solid var(--gold);
}

.cs-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--bone);
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--mahon-line-bright);
  background: rgba(12, 31, 61, 0.7);
}

.notify-box {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 540px;
}

.notify-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.notify-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
}

.notify-row input {
  width: 100%;
  padding: 1rem 1.1rem;
  background: var(--mahon-abyss);
  border: 1px solid var(--mahon-line-bright);
  border-right: none;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.notify-row input:focus {
  border-color: var(--gold);
  background: var(--mahon-dark);
}

.notify-btn {
  padding: 1rem 1.4rem;
}

.stage-caption-btns {
  display: flex;
  gap: 0.45rem;
}

.hero-emblem-stage.is-tracing-p .hero-p-solid path {
  fill: rgba(244, 242, 237, 0);
  stroke: var(--gold);
  stroke-width: 55;
  stroke-dasharray: 26000;
  stroke-dashoffset: 26000;
  animation: drawPreloaderP 1.6s var(--ease-expo) forwards;
}

body:not(.loading) .hero-title,
body:not(.loading) .hero-subtitle-ultras,
body:not(.loading) .coming-soon-banner {
  transform: translateY(0);
}

.hero-statement-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
  padding-top: 2rem;
  border-top: 1px solid var(--mahon-line);
}

.statement-num {
  font-family: var(--font-ultras);
  font-size: clamp(3.2rem, 5vw, 4.8rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--mahon-line-bright);
  user-select: none;
}

.statement-lead {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
  color: var(--bone-muted);
  max-width: 58ch;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Botones Industriales con Barrido de Cortina */
.btn-industrial {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem 1.6rem;
  font-family: var(--font-lemon);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.3s var(--ease-expo), border-color 0.3s;
  z-index: 1;
}

.btn-industrial::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-expo);
}

.btn-industrial:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary {
  background: var(--bone);
  color: var(--mahon-abyss);
  border: 1px solid var(--bone);
}

.btn-primary::before {
  background: var(--gold);
}

.btn-outline {
  background: rgba(12, 31, 61, 0.6);
  color: var(--bone);
  border: 1px solid var(--mahon-line-bright);
}

.btn-outline::before {
  background: var(--bone);
}

.btn-outline:hover {
  color: var(--mahon-abyss);
  border-color: var(--bone);
}

.btn-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.75;
}

.hero-bottom-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--mahon-line);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  gap: 1rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-k {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--bone-dim);
}

.spec-v {
  font-family: var(--font-lemon);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--bone);
}

/* Columna Derecha del Hero: Escenario del Monograma */
.hero-emblem-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--mahon-dark);
  overflow: hidden;
  min-height: 480px;
  perspective: 1000px;
}

.stage-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(30, 59, 107, 0.32) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 59, 107, 0.32) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.stage-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--mahon-line);
  background: rgba(5, 13, 26, 0.8);
}

.sc-tl { top: 20px; left: 20px; }
.sc-tr { top: 20px; right: 20px; }
.sc-bl { bottom: 64px; left: 20px; }
.sc-br { bottom: 64px; right: 20px; color: var(--gold); }

.monogram-3d-wrapper {
  position: relative;
  width: min(300px, 60%);
  aspect-ratio: 425 / 638;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.hero-p-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-p-solid path {
  fill: var(--bone);
  stroke: var(--gold);
  stroke-width: 0;
  transition: fill 0.35s ease, stroke-width 0.35s ease;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.75));
}

.hero-p-wireframe {
  transform: translate3d(18px, 18px, -40px);
}

.hero-p-wireframe path {
  fill: none;
  stroke: var(--mahon-line-bright);
  stroke-width: 28;
  opacity: 0.65;
}

/* Estado Modo Trazo en Hero */
.hero-emblem-stage.is-wireframe .hero-p-solid path {
  fill: rgba(12, 31, 61, 0.35);
  stroke: var(--gold);
  stroke-width: 45;
}

.stage-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 1.25rem;
  background: rgba(5, 13, 26, 0.9);
  border-top: 1px solid var(--mahon-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--bone-muted);
}

.wireframe-toggle {
  background: none;
  border: 1px solid var(--mahon-line-bright);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.2s;
}

.wireframe-toggle:hover {
  background: var(--gold);
  color: var(--mahon-abyss);
}

/* ==========================================================================
   CINTAS CINÉTICAS (MARQUEE DOBLE)
   ========================================================================== */
.kinetic-bands {
  border-bottom: 1px solid var(--mahon-line);
  overflow: hidden;
  user-select: none;
}

.marquee-band {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.95rem 0;
}

.band-primary {
  background: var(--bone);
  color: var(--mahon-abyss);
  border-bottom: 1px solid var(--mahon-line);
  font-family: var(--font-lemon);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.16em;
}

.band-secondary {
  background: var(--mahon-camisa);
  color: var(--bone);
  font-family: var(--font-ultras);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  letter-spacing: 0.18em;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  animation: scrollMarquee 26s linear infinite;
}

.marquee-reverse {
  animation-direction: reverse;
  animation-duration: 32s;
}

.marquee-track .sep {
  font-style: normal;
  color: var(--crimson);
  font-weight: bold;
}

.band-secondary .sep {
  color: var(--gold);
}

@keyframes scrollMarquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   CABECERAS DE SECCIÓN COMUNES
   ========================================================================== */
.section-header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--mahon-line);
  background: var(--mahon-dark);
}

.sh-index, .sh-code {
  padding: 1.25rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.sh-index {
  border-right: 1px solid var(--mahon-line);
}

.sh-code {
  border-left: 1px solid var(--mahon-line);
  color: var(--bone-muted);
}

.sh-title {
  padding: 1.25rem 2rem;
  font-family: var(--font-lemon);
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  letter-spacing: 0.14em;
  color: var(--bone);
}

/* ==========================================================================
   SECCIÓN 01: MESA DE CORTE INTERACTIVA (SUDADERA 01)
   ========================================================================== */
.garment-section {
  border-bottom: 1px solid var(--mahon-line);
}

.workbench-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  min-height: 760px;
}

.workbench-controls {
  border-right: 1px solid var(--mahon-line);
  background: rgba(8, 21, 41, 0.85);
  display: flex;
  flex-direction: column;
}

.wb-block {
  padding: 1.6rem 1.75rem;
  border-bottom: 1px solid var(--mahon-line);
}

.wb-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--bone-dim);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.view-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.view-btn {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--mahon-abyss);
  border: 1px solid var(--mahon-line);
  color: var(--bone-muted);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  border-color: var(--mahon-line-bright);
  color: var(--bone);
}

.view-btn.active {
  background: var(--mahon-camisa);
  border-color: var(--bone);
  color: var(--bone);
}

.vb-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
}

.vb-name {
  font-family: var(--font-lemon);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.vb-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--mahon-line-bright);
  color: var(--bone-muted);
}

.view-btn.active .vb-tag {
  background: var(--bone);
  color: var(--mahon-abyss);
  border-color: var(--bone);
}

/* Conmutador de Pecho */
.chest-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sub-toggle {
  padding: 0.75rem 0.6rem;
  background: var(--mahon-abyss);
  border: 1px solid var(--mahon-line);
  color: var(--bone-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
}

.sub-toggle.active {
  background: var(--bone);
  color: var(--mahon-abyss);
  border-color: var(--bone);
  font-weight: bold;
}

/* Botones de Herramientas */
.tool-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(16, 40, 78, 0.4);
  border: 1px solid var(--mahon-line-bright);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.tool-btn:hover,
.tool-btn.is-active {
  background: var(--gold);
  color: var(--mahon-abyss);
  border-color: var(--gold);
}

/* Lista técnica de especificaciones */
.wb-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tech-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed rgba(30, 59, 107, 0.6);
}

.tr-k { color: var(--bone-dim); }
.tr-v { color: var(--bone); text-align: right; }

/* Descargas de producción */
.wb-downloads {
  margin-top: auto;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.file-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--mahon-abyss);
  border: 1px solid var(--mahon-line);
  color: var(--bone);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: all 0.2s;
}

.file-pill small {
  color: var(--gold);
  font-size: 0.64rem;
}

.file-pill:hover {
  border-color: var(--bone);
  background: var(--mahon-camisa);
}

/* VISOR DERECHO DE LA SUDADERA */
.workbench-viewport {
  position: relative;
  background-color: var(--mahon-abyss);
  background-image: 
    radial-gradient(rgba(46, 87, 153, 0.22) 1px, transparent 1px),
    linear-gradient(to right, rgba(30, 59, 107, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 59, 107, 0.18) 1px, transparent 1px);
  background-size: 24px 24px, 96px 96px, 96px 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  perspective: 1200px;
}

.ruler-top {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 2.5rem;
  border-bottom: 1px solid var(--mahon-line);
  background: rgba(5, 13, 26, 0.85);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--bone-dim);
  z-index: 2;
}

.ruler-left {
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 0;
  width: 34px;
  border-right: 1px solid var(--mahon-line);
  background: rgba(5, 13, 26, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--bone-dim);
  writing-mode: vertical-rl;
  z-index: 2;
}

.center-axis-line {
  position: absolute;
  top: 30px;
  bottom: 36px;
  left: 50%;
  width: 1px;
  background: rgba(255, 221, 85, 0.16);
  pointer-events: none;
  z-index: 1;
}

.axis-tag {
  position: absolute;
  top: 12px;
  left: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gold);
  opacity: 0.7;
  white-space: nowrap;
}

.garment-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3rem 2rem 4.5rem;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.garment-view {
  display: none;
  width: 100%;
  max-width: 650px;
  animation: viewFadeIn 0.45s var(--ease-expo) forwards;
}

.garment-view.active {
  display: block;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sweatshirt-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.85));
}

/* Plano CAD vista 03 */
.cad-sheet {
  border: 1px solid var(--mahon-line-bright);
  background: rgba(8, 21, 41, 0.92);
  padding: 1.5rem;
}

.cad-sheet-header, .cad-sheet-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--bone-muted);
  padding: 0.6rem 0;
}

.cad-sheet-header {
  border-bottom: 1px solid var(--mahon-line);
  margin-bottom: 1.5rem;
}

.cad-sheet-footer {
  border-top: 1px solid var(--mahon-line);
  margin-top: 1.5rem;
  color: var(--gold);
}

.cad-direct-svg {
  width: 100%;
  height: auto;
  background: #040a14;
  border: 1px solid var(--mahon-line);
  padding: 1.5rem;
}

/* Animación de Trazado Vectorial en Vivo */
.user-vector-path {
  transition: fill-opacity 0.35s ease, stroke 0.35s ease, stroke-width 0.35s ease;
}

.workbench-viewport.is-xray .user-vector-path {
  fill-opacity: 0.12 !important;
  stroke: var(--gold) !important;
  stroke-width: 0.8px !important;
}

.workbench-viewport.is-tracing .user-vector-path {
  stroke: var(--gold) !important;
  stroke-width: 1px !important;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawVectorLive 1.8s var(--ease-expo) forwards;
}

@keyframes drawVectorLive {
  0% {
    stroke-dashoffset: 900;
    fill-opacity: 0;
  }
  65% {
    stroke-dashoffset: 0;
    fill-opacity: 0.15;
  }
  100% {
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }
}

.viewport-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 1.5rem 0.65rem 3rem;
  border-top: 1px solid var(--mahon-line);
  background: rgba(5, 13, 26, 0.9);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--bone-muted);
  z-index: 2;
}

/* ==========================================================================
   SECCIÓN 02: MANIFIESTO
   ========================================================================== */
.manifesto-section {
  border-bottom: 1px solid var(--mahon-line);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
}

.manifesto-col-left {
  padding: clamp(2rem, 4.5vw, 4rem);
  border-right: 1px solid var(--mahon-line);
  background: var(--mahon-camisa);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.big-stamp-ultras {
  font-family: var(--font-ultras);
  font-size: clamp(3.4rem, 6.5vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0.08em;
  color: var(--bone);
}

.manifesto-seal {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--bone);
  font-family: var(--font-lemon);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.manifesto-col-right {
  display: flex;
  flex-direction: column;
}

.manifesto-pillar {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: clamp(2rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--mahon-line);
  background: rgba(8, 21, 41, 0.5);
  transition: background 0.3s ease;
}

.manifesto-pillar:last-child {
  border-bottom: none;
}

.manifesto-pillar:hover {
  background: rgba(16, 40, 78, 0.65);
}

.pillar-num {
  font-family: var(--font-ultras);
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
}

.pillar-content h3 {
  font-family: var(--font-lemon);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.85rem;
  color: var(--bone);
}

.pillar-content p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--bone-muted);
  max-width: 62ch;
}

.pillar-content strong {
  color: var(--bone);
}

/* ==========================================================================
   SECCIÓN 03: LABORATORIO TIPOGRÁFICO & CROMÁTICO
   ========================================================================== */
.foundry-section {
  border-bottom: 1px solid var(--mahon-line);
}

.foundry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--mahon-line);
}

.font-specimen-card {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-right: 1px solid var(--mahon-line);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  background: rgba(5, 13, 26, 0.7);
  transition: background 0.3s;
}

.font-specimen-card:last-child {
  border-right: none;
}

.font-specimen-card:hover {
  background: rgba(12, 31, 61, 0.65);
}

.fsc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--mahon-line);
  padding-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.fsc-role { color: var(--gold); }
.fsc-file { color: var(--bone-dim); }

.fsc-display {
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0.08em;
  color: var(--bone);
  padding: 1rem 0;
}

.font-lemon { font-family: var(--font-lemon); }
.font-ultras { font-family: var(--font-ultras); }

.fsc-alphabet {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: var(--bone-muted);
  padding: 1rem;
  border: 1px solid var(--mahon-line);
  background: var(--mahon-abyss);
}

.fsc-note {
  font-size: 0.9rem;
  color: var(--bone-muted);
  line-height: 1.55;
}

/* Tira de Muestras de Color */
.palette-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.swatch-box {
  padding: 2.2rem 1.25rem 1.25rem;
  border-right: 1px solid var(--mahon-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.swatch-box:last-child { border-right: none; }

.swatch-mahon-abyss { background: #050d1a; color: var(--bone); }
.swatch-mahon-camisa { background: #0b1d3a; color: var(--bone); }
.swatch-mahon-acero { background: #1e3b6b; color: var(--bone); }
.swatch-bone { background: #f4f2ed; color: #050d1a; }
.swatch-crimson { background: #d40000; color: #ffffff; }
.swatch-gold { background: #ffdd55; color: #050d1a; }

/* ==========================================================================
   SECCIÓN 04: TALLAS Y HOJA DE RESERVA (DROP 00)
   ========================================================================== */
.drop-register-section {
  border-bottom: 1px solid var(--mahon-line);
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.sizing-module {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-right: 1px solid var(--mahon-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.size-selector-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
}

.size-btn {
  padding: 1.25rem 0.5rem;
  background: var(--mahon-dark);
  border: 1px solid var(--mahon-line-bright);
  color: var(--bone);
  font-family: var(--font-lemon);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
}

.size-btn:hover {
  background: var(--mahon-camisa);
  border-color: var(--bone);
}

.size-btn.active {
  background: var(--bone);
  color: var(--mahon-abyss);
  border-color: var(--bone);
}

.size-readout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--mahon-line);
  background: var(--mahon-dark);
}

.sr-cell {
  padding: 1.4rem 1.1rem;
  border-right: 1px solid var(--mahon-line);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sr-cell:last-child { border-right: none; }

.sr-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--bone-dim);
  letter-spacing: 0.12em;
}

.sr-val {
  font-family: var(--font-ultras);
  font-size: 2rem;
  color: var(--gold);
}

.sizing-advice {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--bone-muted);
  padding: 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(12, 31, 61, 0.4);
}

/* Formulario de Registro */
.form-module {
  padding: clamp(2rem, 4vw, 3.5rem);
  background: rgba(8, 21, 41, 0.6);
}

.industrial-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--mahon-line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--bone-muted);
}

#selectedSizeBadge {
  background: var(--gold);
  color: var(--mahon-abyss);
  padding: 0.25rem 0.65rem;
  font-weight: bold;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-row label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--bone-muted);
}

.field-row input,
.field-row select {
  width: 100%;
  padding: 0.95rem 1rem;
  background: var(--mahon-abyss);
  border: 1px solid var(--mahon-line-bright);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field-row input:focus,
.field-row select:focus {
  border-color: var(--gold);
  background: var(--mahon-dark);
}

.btn-submit {
  width: 100%;
  background: var(--bone);
  color: var(--mahon-abyss);
  border: 1px solid var(--bone);
  margin-top: 0.5rem;
}

.btn-submit::before {
  background: var(--gold);
}

.stamp-confirmation {
  display: none;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gold);
  background: rgba(255, 221, 85, 0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.stamp-confirmation.is-visible {
  display: block;
  animation: viewFadeIn 0.35s var(--ease-expo) forwards;
}

/* ==========================================================================
   FOOTER MONUMENTAL
   ========================================================================== */
.site-footer {
  background: var(--mahon-abyss);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--mahon-line);
}

.ft-cell {
  padding: 1.75rem;
  border-right: 1px solid var(--mahon-line);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ft-cell:last-child { border-right: none; }

.ft-val {
  font-family: var(--font-lemon);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
}

.ft-links {
  display: flex;
  gap: 1rem;
}

.ft-links a {
  color: var(--bone);
  text-decoration: none;
  font-family: var(--font-lemon);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--gold);
}

.footer-giant-word {
  font-family: var(--font-lemon);
  font-size: clamp(4rem, 15.5vw, 16rem);
  line-height: 0.82;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  color: rgba(244, 242, 237, 0.07);
  -webkit-text-stroke: 1px rgba(46, 87, 153, 0.55);
  user-select: none;
  overflow: hidden;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 1.75rem;
  border-top: 1px solid var(--mahon-line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
}

/* ==========================================================================
   RETÍCULA TÁCTIL MÓVIL Y REVELADO POR SCROLL (SCROLL REVEAL)
   ========================================================================== */
.touch-reticle-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.touch-reticle {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0.95;
  pointer-events: none;
  animation: touchReticleBurst 0.55s var(--ease-expo) forwards;
}

.touch-reticle::before,
.touch-reticle::after {
  content: "";
  position: absolute;
  background: var(--gold);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.touch-reticle::before {
  width: 10px;
  height: 1px;
}

.touch-reticle::after {
  width: 1px;
  height: 10px;
}

@keyframes touchReticleBurst {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.45);
    opacity: 0;
  }
}

/* Animación de entrada al hacer scroll (móvil y escritorio) */
.reveal-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
  will-change: opacity, transform;
}

.reveal-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Barra rápida móvil del visor (oculta en escritorio >1080px) */
.mobile-quick-bar {
  display: none;
}

/* En pantallas táctiles: flotación 3D autónoma + respuesta táctil inmediata */
@media (pointer: coarse) {
  .monogram-3d-wrapper:not(.is-touching) {
    animation: mobileFloat3D 5.5s ease-in-out infinite;
  }

  .garment-stage:not(.is-touching) {
    animation: mobileGarmentFloat 6.5s ease-in-out infinite;
  }

  .btn-industrial:active::before {
    transform: scaleX(1);
    transform-origin: left;
  }

  .btn-outline:active {
    color: var(--mahon-abyss);
    border-color: var(--bone);
  }
}

@keyframes mobileFloat3D {
  0%, 100% {
    transform: rotateX(5deg) rotateY(-12deg) translateY(0);
  }
  50% {
    transform: rotateX(-6deg) rotateY(12deg) translateY(-6px);
  }
}

@keyframes mobileGarmentFloat {
  0%, 100% {
    transform: rotateX(2deg) rotateY(-4deg);
  }
  50% {
    transform: rotateX(-2deg) rotateY(4deg);
  }
}

/* ==========================================================================
   RESPONSIVE OPTIMIZADO (TABLET & TELÉFONOS MÓVILES)
   ========================================================================== */
@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .header-coords,
  .header-color-spec {
    display: none;
  }

  .header-nav {
    justify-content: flex-end;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .header-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-grid,
  .workbench-grid,
  .manifesto-grid,
  .foundry-grid,
  .register-grid {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .workbench-controls,
  .manifesto-col-left,
  .font-specimen-card,
  .sizing-module {
    border-right: none;
    border-bottom: 1px solid var(--mahon-line);
  }

  /* En móvil/tablet ponemos el visor de la sudadera PRIMERO y los controles debajo */
  .workbench-grid {
    min-height: auto;
  }

  .workbench-viewport {
    order: 1;
    min-height: 540px;
    border-bottom: 1px solid var(--mahon-line);
  }

  .workbench-controls {
    order: 2;
    border-bottom: none;
  }

  /* Mostrar la barra táctica rápida encima de la sudadera en móvil */
  .mobile-quick-bar {
    display: flex;
    flex-direction: column;
    background: var(--mahon-dark);
    border-bottom: 1px solid var(--mahon-line);
    z-index: 5;
  }

  .mqb-views {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--mahon-line);
  }

  .mqb-btn {
    padding: 0.85rem 0.4rem;
    background: var(--mahon-abyss);
    border: none;
    border-right: 1px solid var(--mahon-line);
    color: var(--bone-muted);
    font-family: var(--font-lemon);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
  }

  .mqb-btn:last-child {
    border-right: none;
  }

  .mqb-btn.active {
    background: var(--bone);
    color: var(--mahon-abyss);
  }

  .mqb-chest {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--mahon-line);
  }

  .mqb-sub {
    padding: 0.65rem 0.5rem;
    background: rgba(12, 31, 61, 0.7);
    border: none;
    border-right: 1px solid var(--mahon-line);
    color: var(--bone-muted);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    cursor: pointer;
  }

  .mqb-sub:last-child {
    border-right: none;
  }

  .mqb-sub.active {
    background: var(--gold);
    color: var(--mahon-abyss);
    font-weight: bold;
  }

  .mqb-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .mqb-tool {
    padding: 0.7rem 0.5rem;
    background: rgba(16, 40, 78, 0.55);
    border: none;
    border-right: 1px solid var(--mahon-line);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s;
  }

  .mqb-tool:last-child {
    border-right: none;
  }

  .mqb-tool.is-active,
  .mqb-tool:active {
    background: var(--gold);
    color: var(--mahon-abyss);
  }

  .section-header-bar {
    grid-template-columns: auto 1fr;
  }

  .sh-index {
    padding: 0.9rem 1.1rem;
  }

  .sh-title {
    padding: 0.9rem 1.2rem;
  }

  .sh-code {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--mahon-line);
    padding: 0.55rem 1.1rem;
    font-size: 0.65rem;
  }

  .palette-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .swatch-box {
    border-bottom: 1px solid var(--mahon-line);
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ft-cell {
    border-bottom: 1px solid var(--mahon-line);
  }
}

@media (max-width: 640px) {
  /* Cabecera móvil con barra de navegación deslizable horizontalmente */
  .site-header {
    grid-template-columns: 1fr;
  }

  .header-brand {
    padding: 0.7rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--mahon-line);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-monogram {
    height: 24px;
  }

  .nav-brand-text {
    font-size: 1rem;
  }

  .header-nav {
    justify-content: flex-start;
    padding: 0.4rem 0.6rem;
    gap: 0.35rem;
    background: rgba(8, 21, 41, 0.95);
  }

  .nav-link {
    font-size: 0.65rem;
    padding: 0.5rem 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-cta {
    margin-left: auto;
  }

  /* Hero compacto y contundente en pantallas de teléfono */
  .hero-grid {
    min-height: auto;
  }

  .hero-main {
    padding: 1.5rem 1.15rem 1.75rem;
  }

  .serial-tag {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .hero-title-wrap {
    margin: 1.5rem 0;
  }

  .hero-title {
    font-size: clamp(2.75rem, 13.5vw, 4.2rem);
  }

  .hero-subtitle-ultras {
    font-size: clamp(1.1rem, 5.2vw, 1.55rem);
    letter-spacing: 0.12em;
  }

  .hero-statement-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-top: 1.25rem;
  }

  .statement-num {
    font-size: 2.4rem;
  }

  .statement-lead {
    font-size: 0.94rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.65rem;
  }

  .notify-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .notify-row input {
    border-right: 1px solid var(--mahon-line-bright);
  }

  .notify-btn {
    width: 100%;
    justify-content: center;
  }

  .coming-soon-pill {
    font-size: 0.62rem;
    padding: 0.4rem 0.7rem;
  }

  .cs-stamp {
    font-size: clamp(1.75rem, 8.5vw, 2.5rem);
    padding: 0.25rem 0.85rem 0.15rem;
  }

  .cs-tag {
    font-size: 0.66rem;
    padding: 0.45rem 0.75rem;
  }

  .hero-actions .btn-industrial {
    width: 100%;
    padding: 0.95rem 1.15rem;
  }

  .hero-bottom-specs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.6rem;
    padding-top: 1.15rem;
  }

  .spec-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(30, 59, 107, 0.5);
    padding-bottom: 0.45rem;
  }

  .spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .hero-emblem-stage {
    min-height: 360px;
    touch-action: pan-y;
  }

  .monogram-3d-wrapper {
    width: min(210px, 54%);
  }

  .stage-corner {
    font-size: 0.58rem;
    padding: 0.25rem 0.45rem;
  }

  .sc-tl { top: 12px; left: 12px; }
  .sc-tr { top: 12px; right: 12px; }
  .sc-bl { bottom: 52px; left: 12px; }
  .sc-br { bottom: 52px; right: 12px; }

  .stage-caption {
    padding: 0.65rem 0.85rem;
    font-size: 0.6rem;
  }

  /* Visor de la sudadera en teléfono móvil */
  .workbench-viewport {
    min-height: 440px;
    touch-action: pan-y;
  }

  .ruler-top {
    padding: 0.35rem 0.75rem;
    font-size: 0.55rem;
  }

  .ruler-top span:nth-child(even) {
    display: none;
  }

  .ruler-left {
    width: 22px;
    font-size: 0.5rem;
    top: 118px;
  }

  .garment-stage {
    padding: 1.1rem 0.65rem 1.1rem 1.85rem;
  }

  .cad-sheet {
    padding: 0.85rem;
  }

  .cad-sheet-header,
  .cad-sheet-footer {
    font-size: 0.58rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .cad-direct-svg {
    padding: 0.65rem;
  }

  .viewport-statusbar {
    padding: 0.55rem 0.85rem;
    font-size: 0.58rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  /* Ocultar en móvil los selectores duplicados del panel inferior para no repetir */
  .workbench-controls .wb-block:nth-child(1),
  .workbench-controls .wb-block:nth-child(2),
  .workbench-controls .wb-block:nth-child(3) {
    display: none;
  }

  /* Manifiesto y Laboratorio en móvil */
  .manifesto-pillar {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1.5rem 1.15rem;
  }

  .pillar-num {
    font-size: 2.1rem;
  }

  .font-specimen-card {
    padding: 1.5rem 1.15rem;
  }

  .fsc-alphabet {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    word-break: break-all;
  }

  .palette-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .swatch-box {
    padding: 1.4rem 0.9rem 0.9rem;
    font-size: 0.64rem;
  }

  /* Tallas y formulario en móvil (16px en inputs evita auto-zoom en iOS Safari) */
  .sizing-module,
  .form-module {
    padding: 1.5rem 1.15rem;
  }

  .size-btn {
    padding: 0.95rem 0.25rem;
    font-size: 1rem;
  }

  .sr-cell {
    padding: 0.95rem 0.65rem;
  }

  .sr-val {
    font-size: 1.45rem;
  }

  .field-row input,
  .field-row select {
    font-size: 16px;
    padding: 0.85rem 0.9rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .ft-cell {
    padding: 1.15rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.15rem;
    font-size: 0.62rem;
  }
}
