:root {
  color-scheme: dark;
  --ink: #101215;
  --panel: #1b2027;
  --paper: #f3f1ed;
  --muted: #c6cbd1;
  --gold: #d7a64d;
  --steel: #527b9c;
  --line: #3c4b5a;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--paper); outline-offset: 5px; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .75rem; background: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: none; }
.shell { width: min(80rem, calc(100% - 3rem)); margin-inline: auto; }
.bar, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bar { min-height: 5rem; }
.brand { text-decoration: none; font-weight: 950; font-style: italic; font-size: 1.8rem; line-height: .9; letter-spacing: -.045em; }
.brand span { display: block; margin-top: .25rem; color: var(--gold); font-size: .875rem; letter-spacing: .09em; }
nav { display: flex; align-items: center; gap: clamp(.65rem, 3vw, 2rem); }
nav a { text-decoration: none; font-weight: 650; }
nav a:hover, .footer a:hover { color: var(--gold); }
.nav-contact { padding: .5rem .85rem; border: 1px solid var(--steel); }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(34rem, 70vw, 47rem); overflow: hidden; border-bottom: 1px solid var(--line); background: var(--ink); }
.hero-photo, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { inset-inline-start: auto; width: 62%; object-fit: cover; object-position: center 62%; z-index: -2; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, var(--ink) 37%, #101215cf 43%, #10121530 53%, transparent 61%), linear-gradient(0deg, #10121595, transparent 34%); }
.hero-inner { padding-block: 4rem 5rem; }
.eyebrow { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; color: var(--muted); font-size: .875rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: 0 0 1.6rem; height: .2rem; background: var(--steel); transform: skewX(-20deg); }
h1, h2, h3 { margin: 0; line-height: .99; font-weight: 900; letter-spacing: -.05em; }
h1 { font-size: clamp(3.5rem, 7vw, 6.6rem); }
h1 em { color: var(--gold); }
h2 { font-size: clamp(2.3rem, 5vw, 4.75rem); }
h3 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); }
.hero p:not(.eyebrow), .contact p:not(.eyebrow) { max-width: 38ch; margin-block: 1.4rem; font-size: 1.1rem; }
p { color: var(--muted); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; }
.button { display: inline-block; width: fit-content; padding: .875rem 1.15rem; background: var(--gold); color: var(--ink); font-weight: 800; text-decoration: none; }
.button:hover { background: #efc578; }
.text-link { font-weight: 650; text-underline-offset: .3em; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 2.25rem; border: 1px solid var(--line); background: var(--line); }
.services article { padding: clamp(1.35rem, 3vw, 2.6rem); background: var(--panel); }
.services article::before { display: block; content: ""; width: 2rem; height: .2rem; margin-bottom: 1.6rem; background: var(--gold); transform: skewX(-20deg); }
.services p { margin-bottom: 0; }
.catalog { background: var(--panel); border-block: 1px solid var(--line); }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; margin-top: 2.25rem; border: 1px solid var(--line); background: var(--ink); }
.product-photo { margin: 0; background: #fff; }
.product-photo img { display: block; width: 100%; height: auto; max-height: 29rem; object-fit: contain; }
.product-photo figcaption { padding: .65rem 1rem; background: var(--ink); color: var(--muted); font-size: .875rem; }
.product-copy { padding: clamp(1.35rem, 4vw, 3.75rem); }
.product-details { padding-inline-start: 1.3rem; }
.product-details li::marker { color: var(--gold); }
.product-note { font-size: .95rem; }
.product-parts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0 0; padding: 0; }
.product-parts li { min-width: 0; border: 1px solid var(--line); background: var(--ink); }
.product-parts img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.product-parts span { display: block; padding: .65rem .85rem; font-weight: 650; }
.catalog-credit { margin-bottom: 0; font-size: .875rem; }
.catalog-credit a { text-underline-offset: .2em; }
#portfolio { padding-block: clamp(3.25rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.portfolio-heading { display: flex; justify-content: space-between; align-items: end; gap: .85rem 1.25rem; flex-wrap: wrap; }
.portfolio-heading p { max-width: 46ch; margin: .75rem 0 0; }
.portfolio-instagram { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; margin-top: .25rem; color: var(--gold); font-weight: 700; text-underline-offset: .25em; }
.portfolio-instagram:hover { color: var(--paper); }
.portfolio-instagram svg { flex-shrink: 0; }
.portfolio-controls { display: flex; flex-wrap: wrap; gap: .6rem; }
.portfolio-controls[hidden] { display: none; }
.portfolio-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 .17rem; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--paper); font: 1.7rem/1 system-ui, sans-serif; cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.portfolio-controls button[aria-disabled="false"]:hover { border-color: var(--gold); color: var(--ink); background: var(--gold); }
.portfolio-controls button[aria-disabled="true"] { opacity: .55; cursor: default; }
.portfolio-controls button:focus-visible, .portfolio-track:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.portfolio-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 1rem) / 2);
  gap: 1rem;
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  padding: 0 0 .5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--steel) var(--panel);
  scrollbar-width: thin;
  list-style: none;
}
.portfolio-track li { min-width: 0; scroll-snap-align: start; }
.portfolio-track figure { display: grid; grid-template-areas: "photo"; margin: 0; overflow: hidden; isolation: isolate; border: 1px solid var(--line); border-radius: .7rem; background: var(--panel); transition: border-color .25s ease; }
.portfolio-track img { grid-area: photo; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 65%; transition: transform .45s cubic-bezier(.2,.65,.3,1); }
.portfolio-track img[src$="foto1-privada.webp"], .portfolio-track img[src$="foto2-privada.webp"] { object-position: center 73%; }
.portfolio-track .portfolio-photo-outdoor { object-position: center 53%; }
.portfolio-track img[src$="foto11.webp"] { object-position: center; }
.portfolio-track figcaption { grid-area: photo; align-self: end; z-index: 1; padding: 1.8rem 1rem .8rem; background: linear-gradient(transparent, #101215ed); font-weight: 700; }
@media (hover: hover) {
  .portfolio-track figure:hover { border-color: var(--gold); }
  .portfolio-track figure:hover img { transform: scale(1.055); }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-controls button, .portfolio-track figure, .portfolio-track img { transition: none; }
  .portfolio-track figure:hover img { transform: none; }
}
#simulador { border-top: 1px solid var(--line); }
.sim-intro { max-width: 62ch; }
.simulator { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 1px; margin-top: 2rem; overflow: hidden; border: 1px solid var(--line); border-radius: .75rem; background: var(--line); }
.sim-stage { display: grid; place-items: center; min-height: 24rem; padding: clamp(.65rem, 2vw, 1.4rem); background: radial-gradient(ellipse at 60% 35%, #22384c, var(--ink) 85%); }
.sim-gallery { min-width: 0; background: var(--panel); }
.sim-source, .sim-file-actions { padding: .85rem clamp(.75rem, 2vw, 1.4rem); }
.sim-source { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .65rem; }
.sim-gallery .sim-status { margin: 0 clamp(.75rem, 2vw, 1.4rem) .85rem; color: var(--muted); font-size: .92rem; }
.sim-empty { display: grid; gap: .45rem; text-align: center; }
.sim-empty img { display: block; max-width: 100%; height: auto; border-radius: .35rem; }
.sim-empty[hidden], .sim-preview[hidden] { display: none; }
.sim-controls p, .sim-ends { color: var(--muted); }
.sim-preview { position: relative; width: fit-content; max-width: 100%; }
.sim-preview canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 32rem; border-radius: .35rem; }
.sim-preview canvas.sim-marking { cursor: crosshair; }
.sim-preview canvas:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.sim-outline { width: 100%; min-width: 0; margin: .85rem 0 0; padding: .85rem; border: 1px solid var(--steel); border-radius: .35rem; background: var(--panel); }
.sim-outline strong { display: block; margin-bottom: .45rem; color: var(--gold); }
.sim-outline p { margin: 0 0 .5rem; color: var(--muted); }
.sim-outline p:last-child { margin-bottom: 0; font-weight: 700; }
.sim-wheel-example { position: relative; width: min(100%, 16rem); margin: .65rem 0; }
.sim-wheel-example img { display: block; width: 100%; height: auto; border-radius: .25rem; }
.sim-wheel-marker { position: absolute; top: var(--wheel-y); left: var(--wheel-x); width: 1.25rem; height: 1.25rem; transform: translate(-50%, -50%); border: 2px solid #ffcf64; border-radius: 50%; background: radial-gradient(circle, #ffcf64 0 2px, transparent 3px); box-shadow: 0 0 0 1px #101215; }
.sim-wheel-marker-left { --wheel-x: 17.8%; --wheel-y: 70.3%; }
.sim-wheel-marker-right { --wheel-x: 81.7%; --wheel-y: 69.8%; }
.sim-controls { min-width: 0; padding: clamp(1rem, 3vw, 2rem); background: var(--panel); }
.sim-controls fieldset { min-width: 0; margin: 1rem 0 0; padding: .9rem 0 0; border: 0; border-top: 1px solid var(--line); }
.sim-controls fieldset[hidden] { display: none; }
.sim-controls legend { display: block; margin-bottom: .55rem; font-weight: 800; }
.sim-controls legend { padding-right: .5rem; }
.sim-controls p { font-size: .92rem; }
.sim-controls fieldset p { margin-top: 0; }
.sim-controls label[for="sim-height"], .sim-ends, .sim-buttons { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.sim-controls output { color: var(--gold); }
.sim-controls input[type="range"] { width: 100%; accent-color: var(--gold); font: inherit; }
.sim-file-label, .sim-controls button, .sim-gallery button { padding: .52rem .7rem; border: 1px solid var(--steel); border-radius: .25rem; background: var(--ink); color: var(--paper); font: inherit; font-weight: 650; cursor: pointer; }
.sim-file-actions { position: relative; display: flex; flex-wrap: wrap; gap: .55rem; }
.sim-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sim-file-input:focus-visible + .sim-file-label { outline: 2px solid var(--gold); outline-offset: 3px; }
.sim-file-label, .sim-gallery button { min-height: 44px; }
.sim-file-actions button:disabled { opacity: .55; cursor: default; }
.sim-file-label { display: inline-flex; align-items: center; color: var(--gold); }
.sim-source .sim-model { min-width: 0; flex: 1 1 16rem; margin: 0; padding: 0; border: 0; }
.sim-model legend { margin-bottom: .45rem; font-weight: 800; }
.sim-model-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.sim-model-options label { display: flex; align-items: center; gap: .4rem; min-height: 44px; padding: .35rem .45rem; border: 1px solid var(--steel); border-radius: .3rem; font-weight: 650; cursor: pointer; }
.sim-model-options label:has(:checked) { border-color: var(--gold); background: var(--ink); color: var(--gold); }
.sim-model-options input { margin: 0; accent-color: var(--gold); }
.sim-buttons { justify-content: flex-start; margin-top: .9rem; }
.sim-buttons button:disabled { opacity: .55; cursor: default; }
.sim-buttons button[aria-pressed="true"] { border-color: var(--gold); }
.sim-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sim-presets button { padding-inline: .25rem; }
.sim-presets button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.sim-result button { font-size: .875rem; }
.sim-mirror-icon { margin-inline-end: .25rem; color: var(--gold); font-size: 1.1em; }
.sim-studio-option { display: flex; align-items: center; gap: .55rem; min-height: 44px; margin-top: .55rem; cursor: pointer; }
.sim-studio-option[hidden] { display: none; }
.sim-studio-option input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--gold); }
.sim-controls .button { margin-top: 1rem; }
.sim-status:empty { display: none; }
.contact { background: linear-gradient(110deg, #172a3a, #1d3347); border-block: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.quote-form { display: grid; gap: 1rem; }
.quote-form[hidden] { display: none; }
.quote-field { display: grid; min-width: 0; gap: .4rem; }
.quote-field label { font-weight: 700; }
.quote-field label span { color: var(--muted); font-weight: 400; }
.quote-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.quote-field input, .quote-field select, .quote-field textarea { width: 100%; min-height: 44px; padding: .65rem .75rem; border: 1px solid var(--steel); border-radius: .3rem; background: var(--ink); color: var(--paper); font: inherit; }
.quote-field select { appearance: none; padding-inline-end: 2rem; text-overflow: ellipsis; background: linear-gradient(45deg, transparent 50%, var(--gold) 50%) right 1.15rem center / .35rem .35rem no-repeat, linear-gradient(135deg, var(--gold) 50%, transparent 50%) right .8rem center / .35rem .35rem no-repeat, var(--ink); }
.quote-field textarea { resize: vertical; }
.quote-form .button { border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.quote-form :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.visit { padding: clamp(1.15rem, 3vw, 2rem); border: 1px solid var(--steel); border-radius: .7rem; background: var(--panel); }
.visit address { margin-top: .9rem; color: var(--muted); font-style: normal; }
.visit-hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .85rem; padding-block: .4rem; border-top: 1px solid var(--line); }
.visit-hours dd { margin: 0; color: var(--muted); }
.visit .text-link { color: var(--gold); }
.footer { padding-block: 1.6rem; color: var(--muted); flex-wrap: wrap; }
.footer a { text-underline-offset: .25em; }
.floating-whatsapp {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 5;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #087c53;
  color: #fff;
  box-shadow: 0 4px 18px #0008;
}
.floating-whatsapp:hover { background: #066847; }
.footer { padding-bottom: 5rem; }
@media (max-width: 50rem) {
  .hero { min-height: 0; align-items: end; }
  .hero-photo { width: 100%; height: min(75vw, 31rem); object-position: center 66%; }
  .hero::after { height: min(75vw, 31rem); background: linear-gradient(0deg, var(--ink), transparent 41%); }
  .hero-inner { padding-top: min(68vw, 27.5rem); padding-bottom: 3.5rem; }
  .services { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-track { grid-auto-columns: 82%; gap: .75rem; }
  .simulator { grid-template-columns: 1fr; }
  .sim-stage { min-height: 14rem; }
}
@media (max-width: 29rem) {
  .shell { width: calc(100% - 2rem); }
  .brand { font-size: 1.5rem; }
  nav { flex-wrap: wrap; justify-content: flex-end; gap: .4rem .6rem; font-size: .9rem; }
  .nav-contact { padding-inline: .5rem; }
  .quote-options { grid-template-columns: 1fr; }
}
