/* ==========================================================
   Voxel Works — hoja de estilos
   ========================================================== */
:root {
  --ink: #16161a;
  --black: #0e0e0c;
  --black-2: #17171a;
  --black-3: #212125;
  --paper: #f2f0e9;
  --paper-2: #e9e6dc;
  --line: #d3cfc3;
  --line-dark: rgba(255, 255, 255, .1);
  --muted: #65655e;
  --muted-light: #a3a39b;
  --accent: #ff5a36;
  --accent-2: #ff7a5c;
  --lime: #c9ff35;
  --radius: 18px;
  --radius-sm: 10px;
  --shell: min(1320px, calc(100vw - 80px));
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--black); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(2.1rem, 4.6vw, 4rem); }
h2 em, h1 em { font-style: normal; color: var(--accent); }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: .95rem; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; white-space: nowrap; }
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translate(2px, -2px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(255, 90, 54, .7); }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .88rem; }
.btn-block { width: 100%; }

/* ---------- Cabecera ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: #fff; transition: background .3s, border-color .3s, height .3s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(14, 14, 12, .82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line-dark); --header-h: 66px; height: 66px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; }
.bm-out { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.bm-line { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .5; }
.bm-core { fill: var(--accent); }
.brand-name { font-weight: 800; letter-spacing: .12em; font-size: .95rem; }
.brand-name b { font-weight: 400; margin-left: .2em; opacity: .7; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .72); transition: color .2s, background .2s; }
.nav a:hover, .nav a.is-active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-mobile-cta { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); background: transparent; border-radius: 12px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--black); color: #fff; padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px)); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%); }
.glow { position: absolute; width: 60vw; height: 60vw; right: -15vw; top: -20vw; background: radial-gradient(circle, rgba(255, 90, 54, .22), transparent 60%); filter: blur(20px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(56px, 8vw, 100px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-light); padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(201, 255, 53, .15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(201, 255, 53, 0); } }
.hero h1 { font-size: clamp(2.9rem, 6.6vw, 6.2rem); margin: 24px 0 22px; letter-spacing: -.045em; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: rgba(255, 255, 255, .7); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 44px 0 0; border-top: 1px solid var(--line-dark); padding-top: 22px; }
.hero-stats div { padding-right: clamp(18px, 3vw, 40px); margin-right: clamp(18px, 3vw, 40px); border-right: 1px solid var(--line-dark); }
.hero-stats div:last-child { border: 0; margin: 0; padding: 0; }
.hero-stats dt { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-light); }
.hero-stats dd { margin: 4px 0 0; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; }
.hero-stats small { font-size: .5em; font-weight: 600; color: var(--muted-light); margin-left: 3px; }

/* Comparador boceto / render */
.compare { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10.5; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-dark); user-select: none; touch-action: pan-y; }
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.compare-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 20px rgba(0,0,0,.4); }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); display: grid; place-items: center; background: var(--accent); color: #fff; border-radius: 50%; font-size: 1.1rem; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare figcaption { position: absolute; inset: auto 16px 16px; display: flex; justify-content: space-between; pointer-events: none; }
.tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; background: rgba(14, 14, 12, .75); color: #fff; backdrop-filter: blur(6px); }
.tag-light { background: rgba(255, 255, 255, .85); color: var(--ink); }

.ticker { border-top: 1px solid var(--line-dark); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font-family: var(--mono); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); padding: 0 34px; position: relative; }
.ticker span::after { content: "◆"; position: absolute; right: -5px; color: var(--accent); font-size: .6rem; top: 50%; transform: translateY(-50%); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.paper { background: var(--paper); }
.paper-2 { background: var(--paper-2); }
.dark { background: var(--black); color: #fff; }
.dark .section-intro { color: rgba(255, 255, 255, .64); }
.dark .mono { color: var(--muted-light); }
.section-head { margin-bottom: clamp(44px, 6vw, 72px); max-width: 900px; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.eyebrow span { display: inline-grid; place-items: center; min-width: 34px; height: 24px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .7rem; }
.eyebrow.light { color: var(--muted-light); }
.eyebrow.light span { background: var(--accent); }
.section-intro { font-size: 1.06rem; color: var(--muted); max-width: 36em; margin-top: 20px; }
.section-head.split .section-intro { margin-top: 0; }

/* Revelado */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.service:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(22, 22, 26, .35); border-color: transparent; }
.service-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service-media img { transform: scale(1.05); }
.service-body { padding: 28px 28px 32px; display: grid; gap: 12px; }
.service h3 { font-size: 1.45rem; }
.service-body > p:not(.mono) { color: var(--muted); }
.service.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.service.featured .service-body > p:not(.mono), .service.featured .mono { color: var(--muted-light); }
.checks { list-style: none; margin: 8px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .92rem; font-weight: 600; }
.featured .checks { border-color: var(--line-dark); }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* ---------- Laboratorio 3D ---------- */
.lab { position: relative; overflow: hidden; }
.lab::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.lab .shell { position: relative; }
.lab-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 20px; align-items: stretch; }
.viewer { position: relative; min-height: 580px; border-radius: 22px; border: 1px solid var(--line-dark); background: radial-gradient(ellipse at 50% 35%, #26262b 0%, #141416 70%); overflow: hidden; }
.viewer-canvas { position: absolute; inset: 0; cursor: grab; touch-action: none; }
.viewer-canvas:active { cursor: grabbing; }
.viewer-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted-light); font-size: .92rem; text-align: center; padding: 24px; }
.viewer-loading.error .spinner { display: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewer-toolbar { position: absolute; z-index: 3; top: 16px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-dark); background: rgba(14,14,12,.6); backdrop-filter: blur(8px); color: rgba(255,255,255,.75); padding: 9px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.chip:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.chip.is-active { background: #fff; color: var(--ink); border-color: #fff; }
.viewer-hud { position: absolute; z-index: 2; left: 18px; bottom: 18px; display: flex; gap: 6px; align-items: center; pointer-events: none; }
.viewer-hud span { width: 22px; height: 22px; display: grid; place-items: center; font: 600 .66rem var(--mono); border-radius: 5px; color: #fff; }
.viewer-hud span:nth-child(1) { background: #e0533d; }
.viewer-hud span:nth-child(2) { background: #6bbf3a; }
.viewer-hud span:nth-child(3) { background: #3d7be0; }
.viewer-hud p { margin-left: 8px; font-size: .66rem; }
.viewer-controls { position: absolute; z-index: 3; right: 16px; bottom: 16px; display: flex; gap: 6px; padding: 6px; border-radius: 16px; background: rgba(14,14,12,.7); border: 1px solid var(--line-dark); backdrop-filter: blur(8px); }
.icon-btn { display: grid; justify-items: center; gap: 3px; min-width: 58px; padding: 8px 6px 6px; border: 0; border-radius: 11px; background: transparent; color: var(--muted-light); cursor: pointer; transition: background .2s, color .2s; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn span { font-size: .66rem; font-weight: 600; letter-spacing: .02em; }
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.06); }
.icon-btn.is-active { color: #fff; background: rgba(255, 90, 54, .22); }
.icon-btn.is-active svg { stroke: var(--accent); }

/* Etiquetas de cotas (CSS2DRenderer) */
.dim-label { font: 600 12px/1 var(--mono); color: #fff; background: rgba(255, 90, 54, .95); padding: 5px 8px; border-radius: 6px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.35); pointer-events: none; transition: opacity .25s; }
.dim-label.alt { background: rgba(240, 240, 235, .95); color: var(--ink); }

/* Ficha técnica */
.spec { border-radius: 22px; border: 1px solid var(--line-dark); background: var(--black-2); padding: clamp(24px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.spec-ref { color: var(--accent) !important; }
.spec h3 { font-size: 1.7rem; margin-top: -8px; }
.spec-desc { color: rgba(255,255,255,.62); font-size: .95rem; }
.spec-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-light); margin-bottom: 10px; }
.material-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mat-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: rgba(255,255,255,.75); font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.mat-btn i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.mat-btn:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.mat-btn[aria-checked="true"] { color: #fff; border-color: var(--accent); background: rgba(255, 90, 54, .12); }
.spec-table { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.spec-table div { padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
.spec-table div:nth-child(odd) { padding-right: 12px; }
.spec-table div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line-dark); }
.spec-table dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-light); }
.spec-table dd { margin: 3px 0 0; font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.spec-table dd.flash { animation: flash .6s; }
@keyframes flash { 0% { color: var(--accent); } }
.spec-meters { display: grid; gap: 12px; }
.meter-head { display: flex; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.meter-head b { font-family: var(--mono); font-size: .76rem; color: #fff; }
.meter i { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter em { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--lime)); transition: width .7s var(--ease); }
.spec .btn { margin-top: auto; }

/* ---------- Aplicaciones ---------- */
.apps { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.apps-intro { position: sticky; top: calc(var(--header-h) + 30px); }
.apps-figure { margin: 36px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.apps-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 72%; }
.apps-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.apps-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.apps-list li:hover { padding-left: 14px; }
.apps-list li .mono { font-size: .82rem; color: var(--accent); padding-top: 6px; }
.apps-list h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 10px; }
.apps-list p { color: var(--muted); max-width: 32em; }

/* ---------- Materiales ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.mat-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .95rem; }
.mat-table th, .mat-table td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.mat-table thead th { font: 500 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.mat-table tbody tr:last-child > * { border-bottom: 0; }
.mat-table tbody tr { transition: background .2s; }
.mat-table tbody tr:hover { background: #faf9f5; }
.mat-table tbody th { font-weight: 800; white-space: nowrap; }
.mat-table td { color: var(--muted); }
.mat-table .num { font-family: var(--mono); font-size: .86rem; color: var(--ink); white-space: nowrap; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--c); margin-right: 10px; vertical-align: -2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.bar { display: block; width: 120px; height: 6px; border-radius: 6px; background: var(--paper-2); position: relative; overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--ink); border-radius: inherit; }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; position: relative; }
.step { position: relative; padding: 30px 26px 34px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: var(--black-2); display: grid; gap: 10px; align-content: start; transition: border-color .3s, transform .4s var(--ease); }
.step:hover { border-color: rgba(255, 90, 54, .55); transform: translateY(-4px); }
.step-n { font-size: 3.4rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); margin-bottom: 18px; }
.step:hover .step-n { -webkit-text-stroke-color: var(--accent); }
.step h3 { font-size: 1.5rem; }
.step > p:last-child { color: rgba(255,255,255,.62); font-size: .95rem; }

/* ---------- Estudios ---------- */
.studios { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.studio { border-radius: 22px; overflow: hidden; position: relative; min-height: 560px; }
.studio-head { display: grid; gap: 12px; max-width: 34em; }
.studio h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.studio-tavern { background: #1b1612; color: #f4ead9; padding: clamp(26px, 3vw, 40px); display: flex; flex-direction: column; gap: 30px; background-image: radial-gradient(ellipse at 90% 0%, rgba(214, 143, 58, .25), transparent 55%); }
.studio-tavern .studio-bg { opacity: .16; }
.studio-tavern > :not(.studio-bg) { position: relative; z-index: 1; }
.studio-tavern .mono { color: #d69a4a; }
.studio-tavern h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -.01em; }
.studio-tavern .studio-head p:not(.mono) { color: rgba(244, 234, 217, .7); }
.products { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.products li { background: rgba(255,255,255,.05); border: 1px solid rgba(244, 234, 217, .12); border-radius: 14px; overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.products li:hover { transform: translateY(-4px); border-color: #d69a4a; }
.products img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.products div { padding: 12px; display: grid; gap: 4px; font-size: .84rem; }
.products span { font-family: var(--mono); color: #d69a4a; font-size: .78rem; }
.studio-home { color: #fff; display: flex; align-items: flex-end; padding: clamp(26px, 3vw, 40px); }
.studio-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.studio-home:hover .studio-bg { transform: scale(1.04); }
.studio-home::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(17, 28, 43, .88)); }
.studio-home .studio-head { position: relative; z-index: 1; }
.studio-home .mono { color: #8fcac1; }
.studio-home .studio-head p:not(.mono) { color: rgba(255,255,255,.8); }
.price-line { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,.25); font-size: .9rem; }
.price-line span { font-family: var(--mono); font-size: .8rem; }

/* ---------- Cifras ---------- */
.figures { background: var(--accent); color: #fff; padding: clamp(56px, 7vw, 90px) 0 30px; }
.figures-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.figures-grid div { border-left: 1px solid rgba(255,255,255,.35); padding-left: 22px; }
.figures strong { display: block; font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.figures span { display: block; margin-top: 10px; font-weight: 600; max-width: 14em; opacity: .9; }
.footnote { margin-top: 44px; font-size: .78rem; opacity: .75; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 50px 26px 0; font-size: 1.15rem; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 1px solid var(--line); background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.6px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.6px 12px no-repeat; transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--paper-2); }
.faq details p { padding: 0 50px 26px 0; color: var(--muted); max-width: 44em; }

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 700px; height: 700px; left: -250px; bottom: -350px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 54, .2), transparent 65%); pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; position: relative; }
.contact-points { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.contact-points li { display: grid; grid-template-columns: 120px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-weight: 600; }
.contact-points a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.form { background: var(--paper); color: var(--ink); border-radius: 22px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 7px; font-size: .84rem; font-weight: 700; }
.form label small { font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: .95rem; font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 54, .15); }
.form .invalid { border-color: #d6322a; }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; }
.form-note.ok { color: #2f7d32; font-weight: 700; }
.form-note.err { color: #c2291f; font-weight: 700; }

/* ---------- Pie ---------- */
.footer { background: var(--black); color: #fff; padding: 40px 0; border-top: 1px solid var(--line-dark); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: .9rem; color: rgba(255,255,255,.65); }
.footer nav a:hover { color: #fff; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .header-cta { display: none; }
  .lab-grid { grid-template-columns: 1fr; }
  .viewer { min-height: 520px; }
  .products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --shell: calc(100vw - 48px); --header-h: 66px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 16px 24px 28px; background: rgba(14, 14, 12, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-dark); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); margin: 0; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav-mobile-cta { display: block; margin-top: 10px; background: var(--accent) !important; color: #fff !important; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; }
  .section-head.split, .apps, .faq, .contact-grid { grid-template-columns: 1fr; }
  .section-head.split .section-intro { margin-top: 0; }
  .apps-intro { position: static; }
  .services { grid-template-columns: 1fr; max-width: 620px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .studios { grid-template-columns: 1fr; }
  .studio-home { min-height: 480px; }
  .figures-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

@media (max-width: 600px) {
  :root { --shell: calc(100vw - 32px); }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats div { margin-right: 12px; padding-right: 12px; }
  .compare { aspect-ratio: 4 / 3.4; border-radius: 16px; }
  .compare-img { object-position: 64% 70%; }
  .viewer { min-height: 460px; border-radius: 16px; }
  .viewer-toolbar { top: 12px; left: 12px; right: 12px; }
  .chip { padding: 8px 12px; font-size: .78rem; }
  .viewer-hud { display: none; }
  .viewer-controls { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  .icon-btn { flex: 1; min-width: 0; }
  .spec-table { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .products div { padding: 10px; font-size: .78rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-points li { grid-template-columns: 96px 1fr; }
  .figures-grid div { padding-left: 14px; }
  .faq summary { font-size: 1.02rem; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.hide-dims .dim-label { visibility: hidden; }
.studio-link { justify-self: start; display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: .9rem; transition: transform .25s var(--ease), background .25s; }
.studio-link:hover { transform: translateY(-2px); }
.studio-tavern .studio-link { background: #d69a4a; color: #1b1612; }
.studio-home .studio-link { background: #fff; color: var(--ink); }
