/* Shared layout for machine fichas. Model copy stays in the page generator. */
.machine-page .q-section--night {
  background: radial-gradient(700px 340px at 88% 8%, rgba(23, 58, 100, .2), transparent 70%), linear-gradient(180deg, #081321 0%, #07111d 100%);
}
.machine-page .q-section--blue {
  background: radial-gradient(720px 380px at 8% 22%, rgba(26, 73, 117, .3), transparent 68%), linear-gradient(135deg, #0b1b31 0%, #0a192b 100%);
}
.machine-page .q-strip-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scrollbar-color: rgba(243, 179, 1, .4) transparent;
  scroll-snap-type: x proximity;
}
.machine-page .q-strip-card {
  display: grid;
  grid-template-rows: 150px auto;
  overflow: hidden;
  border: 1px solid var(--q-line);
  background: linear-gradient(145deg, #173a66 0%, #0b1c30 62%, #07111e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 24px 58px -42px rgba(0, 0, 0, .9);
  scroll-snap-align: start;
  text-decoration: none;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.machine-page .q-strip-card:nth-child(2) { background: linear-gradient(145deg, #1b466f 0%, #0d233c 62%, #081523 100%); }
.machine-page .q-strip-card:nth-child(3) { background: linear-gradient(145deg, #123452 0%, #0a192a 62%, #07111e 100%); }
.machine-page .q-strip-card:hover,
.machine-page .q-strip-card:focus-visible {
  border-color: rgba(243, 179, 1, .48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 64px -42px rgba(0, 0, 0, .95);
  transform: translateY(-3px);
}
.machine-page .q-strip-card img { width: 100%; height: 150px; object-fit: cover; filter: saturate(.78); }
.machine-page .q-strip-card > div { padding: 16px 18px 18px; }
.machine-page .q-strip-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--q-yellow);
  font: 500 10px var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.machine-page .q-strip-card h3 { margin: 0 0 12px; color: var(--q-ivory); font: 400 24px/1.05 var(--display); letter-spacing: -.02em; }
.machine-page .q-strip-card p { margin: 0 0 14px; color: var(--q-steel); font-size: 13px; line-height: 1.6; }
.machine-page .q-strip-card .q-link { margin-top: 0; }

.machine-page .q-teoria {
  display:grid;
  grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr);
  gap:clamp(28px,4.5vw,64px);
  align-items:center;
  margin-top:6px;
}
.machine-page .q-teoria-media {
  position:relative;
  min-height:340px;
  overflow:hidden;
  background:transparent;
  border:1px solid rgba(243,240,232,.12);
  box-shadow:inset 0 0 0 1px rgba(243,179,1,.08),0 30px 56px -44px rgba(0,0,0,.95);
}
.machine-page .q-teoria-media img {
  width:100%;
  height:100%;
  min-height:340px;
  object-fit:contain;
  filter:drop-shadow(0 22px 30px rgba(0,0,0,.45));
}
.machine-page .q-teoria-media::after {
  content:'';
  position:absolute;
  inset:14px;
  border:1px solid rgba(243,179,1,.16);
  pointer-events:none;
}
.machine-page .q-teoria-copy {
  position:relative;
  padding-left:clamp(0px,2vw,28px);
}
.machine-page .q-teoria-copy::before {
  content:'ENGINEERING NOTE';
  display:block;
  margin-bottom:22px;
  color:var(--q-yellow);
  font:600 9px/1 var(--mono);
  letter-spacing:.18em;
}
.machine-page .q-teoria-copy p {
  max-width:58ch;
  margin:0 0 14px;
  color:var(--q-steel);
  font-size:15px;
  line-height:1.7;
}
.machine-page .q-teoria-list {
  display:grid;
  gap:14px;
  margin:24px 0 0;
  padding:0;
  list-style:none;
}
.machine-page .q-teoria-list li {
  margin:0;
  color:#d2d9e3;
  font-size:14px;
  line-height:1.6;
}
.machine-page #specs .spec-table {
  border-top:1px solid rgba(243,240,232,.12);
  box-shadow:none;
}
.machine-page #specs .spec-row { transition:background .3s ease; }
.machine-page #specs .spec-row:hover { border-left:0; background:rgba(243,240,232,.035); }
.machine-page #specs .spec-row > span:last-child { font-variant-numeric:tabular-nums; }

@media (max-width:700px) {
  .machine-page .q-strip-track { grid-auto-columns: minmax(220px, 1fr); }
  .machine-page .q-teoria { grid-template-columns:1fr; }
  .machine-page .q-teoria-media,
  .machine-page .q-teoria-media img { min-height:240px; height:240px; }
  .machine-page .q-teoria-copy { padding-left:0; }
  .machine-page .q-teoria-media::after { inset:10px; }
}

@media (prefers-reduced-motion:reduce) {
  .machine-page .q-strip-track { scroll-snap-type: none; }
  .machine-page #specs .spec-row { transition:none; }
}
