:root {
  --ink: #131b20;
  --light: #f4f6f5;
  --line: #cbd1d1;
  --gutter: clamp(1.15rem,5vw,6rem);
  font: 100%/1.5 Arial, Helvetica, sans-serif;
  background: var(--light);
  color: var(--ink);
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a, button, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #1288ae; outline-offset: 3px; }
button, select, textarea { font: inherit; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 8; padding: .8rem; background: white; }
.skip:focus { top: .5rem; }
header { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; min-height: 4.5rem; padding-inline: var(--gutter); background: #11191e; color: white; }
.signature { justify-self: start; display: grid; align-items: center; max-width: 100%; background: #f8f9f6; padding: .38rem .55rem; border-radius: .35rem; }
.signature img { display: block; width: clamp(4rem,10vw,8.5rem); max-width: 100%; height: auto; }
.brands { grid-column: 2; display: flex; padding: 3px; border: 1px solid #ffffff38; border-radius: 2rem; }
.brands a { display: grid; place-items: center; min-height: 44px; padding-inline: clamp(.5rem,1.6vw,1.5rem); font-size: .86rem; border-radius: inherit; text-decoration: none; }
.brands [aria-current] { background: #e3edef; color: var(--ink); }
.intro-panel { position: relative; isolation: isolate; display: flex; align-items: end; padding: clamp(2rem,5vw,5rem) var(--gutter); overflow: hidden; background: #111b23; color: white; }
.intro-copy { max-width: 46rem; }
.label { font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; }
h1,h2,h3 { font-weight: 550; line-height: 1; letter-spacing: -.055em; }
h1 { font-size: clamp(4.5rem,10vw,10rem); margin: .45rem 0; }
.intro { font-size: clamp(1.3rem,2.5vw,2.3rem); margin-bottom: 1.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 44px; padding: .65rem 1rem; border-radius: 2rem; font-weight: 600; font-size: .9rem; text-decoration: none; }
.button { background: white; color: var(--ink); }
[hidden] { display: none !important; }
.chapters { position: sticky; top: 0; z-index: 2; display: flex; gap: clamp(.4rem,2vw,2rem); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); background: #f4f6f5f5; }
.chapters a { display: grid; place-items: center; min-height: 48px; border-bottom: 2px solid transparent; padding-inline: .45rem; font-size: .9rem; text-decoration: none; }
.chapters [aria-current] { border-color: currentColor; }
section[id] { scroll-margin-top: 3rem; }
.showroom, .entry { padding: clamp(2.6rem,6vw,6rem) var(--gutter); }
.showroom-title,.entry { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.showroom-title { align-items: end; margin-bottom: 2rem; }
h2 { font-size: clamp(2.5rem,5vw,5rem); }
.showroom-title p, .entry p { max-width: 45ch; }
.machines { display: grid; gap: 1rem; }
.machine { background: white; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; min-width: 0; }
.machine-stage { position: relative; width: 100%; aspect-ratio: 4/3; background: #cfd0d2; overflow: hidden; }
.machine-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.machine-photo { background: white; }
.machine-copy { flex: 1; display: flex; flex-direction: column; align-items: start; padding: clamp(1rem,2vw,2rem); }
.machine-copy h3 { font-size: clamp(1.65rem,2.4vw,2.8rem); margin: .65rem 0 1rem; }
.machine-copy p { line-height: 1.55; }
.machine-copy details { margin: 1rem 0; width: 100%; border-block: 1px solid var(--line); }
summary, .machine-copy details a { padding-block: .75rem; }
summary { cursor: pointer; font-weight: 600; }
.machine-copy details a, .machine-copy small { display: block; }
.source-note { margin: 1.4rem 0 0; max-width: 85ch; color: #49545a; font-size: .85rem; }
.catalogue { background: white; padding: clamp(2.6rem,6vw,6rem) var(--gutter); }
.entry .label { margin-bottom: 1rem; }
.resource,.channel,.by-phone a { display: flex; align-items: center; gap: .5rem; width: fit-content; min-height: 44px; }
.resource { margin-top: 1rem; font-weight: bold; }
.contact { background: #142027; color: white; }
.contact .by-phone { margin-top: 2rem; }
.by-phone a { font-size: 1.6rem; }
.contact label { display: block; margin-bottom: .45rem; }
.contact select, .contact textarea { width: 100%; border: 1px solid var(--line); border-radius: .35rem; padding: .8rem; margin-bottom: 1.25rem; background: white; color: var(--ink); }
.contact textarea { resize: vertical; }
.note { margin-top: 1rem; font-size: .85rem; }
footer { display: flex; justify-content: space-between; padding: 2rem var(--gutter); font-size: .9rem; }
@media(max-width:760px) {
  header { padding-inline: .5rem; }
  .signature { width: min(6rem,calc(100% - .25rem)); padding: .3rem; }
  .brands a { padding-inline: clamp(.45rem,2vw,.8rem); font-size: .78rem; }
  .showroom-title,.entry { grid-template-columns: 1fr; gap: 1rem; }
  .machine { display: flex; flex-direction: column; align-items: stretch; }
  .machine-stage { aspect-ratio: 1.75; }
}
@media(prefers-reduced-motion:no-preference) {
  html { scroll-behavior: smooth; }
}



.intro-panel { min-height: clamp(28rem,64svh,50rem); background: #111; }
#film, .intro-panel::after { position: absolute; inset: 0; width: 100%; height: 100%; }
#film { object-fit: cover; z-index: -2; }
.intro-panel::after { content: ''; z-index: -1; background: linear-gradient(90deg,#000b,transparent 72%),linear-gradient(0deg,#0006,transparent 45%); }
.brand-mark { display: block; width: clamp(7.5rem,12vw,11rem); height: auto; filter: invert(1); }
h1 { font-size: clamp(3.4rem,7.5vw,8rem); margin: 1.2rem 0 1.6rem; line-height: .94; }
h2 { margin: .55rem 0 0; }
#playback { position: absolute; right: var(--gutter); bottom: 1rem; min-height: 44px; padding: .5rem 1rem; border: 1px solid #fffa; border-radius: 2rem; color: white; background: #161616bc; cursor: pointer; }
.machine-stage, .machine-photo { background: #f5f5f5; }
.machine-copy h3 span { display: block; font-size: .54em; line-height: 1.5; letter-spacing: 0; margin-top: .3rem; }
.machine-copy dl { width: 100%; margin: .25rem 0; }
.machine-copy dt { margin-top: .55rem; font-size: .8rem; }
.machine-copy dd { margin: 0; font-weight: 650; }
.families { align-items: start; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.65rem,1.5vw,1.5rem); }
.family > summary { display: grid; grid-template-columns: 40% 1fr; align-items: center; background: #f5f5f5; text-decoration: none; color: #171717; }
.family img { width: 100%; height: auto; }
.family-name { padding: .6rem; }
.family strong,.family small { display: block; }
.family strong { font-size: clamp(1rem,1.5vw,1.4rem); letter-spacing: -.035em; }
.family small { margin-top: .3rem; font-size: .8rem; line-height: 1.3; }
.family summary:hover strong, .family summary:focus-visible strong { text-decoration: underline; }
@media(max-width:760px) {
  .intro-panel { display: block; min-height: 0; padding: 0; background: #090c14; }
  #film { position: relative; display: block; aspect-ratio: 1.8; height: auto; object-position: 73% center; }
  .intro-panel::after { display: none; }
  .intro-copy { padding: 1.3rem var(--gutter) 1.6rem; }
  .intro-copy h1 { font-size: clamp(2.2rem,8.5vw,3.5rem); margin: .65rem 0 1.1rem; }
  .intro-copy h1 br { display: none; }
  .brand-mark { width: 6.5rem; }
  #playback { top: .5rem; left: .65rem; right: auto; bottom: auto; font-size: .8rem; }
  .families { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .family > summary { display: flex; flex-direction: column; align-items: stretch; }
  .family img { aspect-ratio: 1.55; object-fit: contain; }
  .family-name { padding: .65rem .8rem 1rem; }
}

/* La fotografía permanece en escena mientras avanza la ficha de cada equipo. */
.showroom {
  --chapter-height: 49px;
  --model-nav-height: 48px;
  --stage-top: calc(var(--chapter-height) + var(--model-nav-height));
}
.model-nav {
  position: sticky; top: var(--chapter-height); z-index: 1;
  display: flex; border-block: 1px solid var(--line); background: var(--light);
}
.model-nav a {
  flex: 1; padding: .75rem .3rem; text-align: center; min-height: 46px;
  color: #455258; text-decoration: none; border-bottom: 2px solid transparent;
}
.model-nav a[aria-current] { color: var(--ink); border-bottom-color: currentColor; font-weight: 650; }
.model-stage { display: none; }
.machine { scroll-margin-top: calc(var(--stage-top) + .75rem); }
@media (min-height: 550px) and (prefers-reduced-motion: no-preference) {
  .with-stage { --stage-height: calc(100svh - var(--stage-top)); }
  .with-stage .model-journey {
    display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); background: white;
  }
  .with-stage .model-stage {
    display: block; position: sticky; top: var(--stage-top); height: var(--stage-height);
    overflow: hidden; background: #f5f5f5;
  }
  .model-stage img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
    opacity: 0; will-change: opacity, transform;
  }
  .with-stage .model-nav::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 2px;
    width: calc(100% / var(--model-count)); background: var(--ink);
    transform: translateX(var(--indicator-x,0%)); pointer-events: none;
  }
  .with-stage .model-nav [aria-current] { border-bottom-color: transparent; }
  .with-stage .machines { display: block; }
  .with-stage .machine { display: flex; flex-direction: column; align-items: stretch; min-height: var(--stage-height); justify-content: center; border-bottom: 1px solid var(--line); }
  .with-stage .machine-stage { display: none; }
  .with-stage .machine-copy { flex: none; padding: clamp(1.5rem,4vw,4.5rem); }
  .with-stage .machine-copy h3 { font-size: clamp(2.8rem,5.4vw,5.5rem); }
  .with-stage .machine-copy h3 span { font-size: .4em; }
}
@media (max-width: 760px) and (min-height: 550px) and (prefers-reduced-motion: no-preference) {
  .with-stage { --photo-height: clamp(10rem,32svh,19rem); }
  .with-stage .model-journey { display: block; }
  .with-stage .model-stage { z-index: 1; height: var(--photo-height); pointer-events: none; }
  .with-stage .machine {
    min-height: calc(var(--stage-height) - var(--photo-height));
    scroll-margin-top: calc(var(--stage-top) + var(--photo-height) + .5rem);
  }
  .with-stage .machine-copy { padding: 1.4rem; }
  .with-stage .machine-copy h3 { font-size: 2.7rem; }
}

.machine-copy .tech-list { margin: 1rem 0 0; }
.tech-list > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
  padding: .5rem 0; border-bottom: 1px solid var(--line);
}
.machine-copy .tech-list dt { margin: 0; color: #435158; }
.tech-list dd { text-align: right; }
.machine-copy .installation { border-top: 0; margin: 0 0 1.2rem; }
.machine-copy .installation .tech-list { margin: 0 0 .75rem; }
.family { background: #f5f5f5; min-width: 0; }
.family > summary { position: relative; padding: 0 1rem 0 0; cursor: pointer; list-style: none; }
.family > summary::-webkit-details-marker { display: none; }
.family > summary::after { content: '+'; position: absolute; top: .3rem; right: .5rem; font-size: 1.2rem; font-weight: 400; }
.family[open] > summary::after { content: '−'; }
.family-info { padding: .9rem 1rem 1rem; border-top: 1px solid var(--line); font-size: .93rem; }
.family-info p + p { margin-top: .65rem; }
@media(max-width:760px) { .family > summary { padding: 0; } }
@media(max-width:540px) {
  .families { grid-template-columns: 1fr; }
  .family > summary { display: grid; grid-template-columns: 32% 1fr; align-items: center; }
  .family > summary img { aspect-ratio: 1.45; }
  .family-name { padding-right: 1.8rem; }
}

.contact-enquiry { border-block: 1px solid #ffffff40; align-self: center; }
.contact-enquiry summary { padding: 1rem .15rem; font-size: 1rem; font-weight: 500; }
.contact-enquiry form { padding-top: .75rem; }
.contact-enquiry .note { margin: .75rem 0 1.25rem; }
