/* ==========================================================================
   León Aguilera Industrial — sitio web
   Colores y tipografía tomados de sus piezas actuales.
   ========================================================================== */

:root {
  --orange: #F07D00;
  --orange-2: #F49517;
  --orange-ink: #B35A00;      /* naranja para texto sobre blanco (AA) */
  --ink: #1F1F1F;
  --ink-2: #2A2A2A;
  --ink-3: #161616;
  --muted: #555555;
  --muted-dark: #B9B9B9;      /* texto secundario sobre grafito */
  --line: #DADADA;
  --line-dark: #3A3A3A;
  --bg: #FFFFFF;
  --bg-2: #F4F4F4;
  --pend-bg: #FFE96B;
  --pend-ink: #3D3200;

  --f-head: "Montserrat", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;

  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --sec: clamp(72px, 9vw, 128px);
  /* esquinas del monograma: redondeadas arriba-derecha y abajo-izquierda */
  --r-brand: 4px 22px 4px 22px;
  --r: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px -12px rgba(0,0,0,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-weight: 800; font-size: clamp(2.2rem, 5.6vw, 4.4rem); }
h2 { font-weight: 800; font-size: clamp(1.8rem, 3.8vw, 3rem); }
h3 { font-weight: 700; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.25; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: var(--sec) 0; position: relative; }
.sec--gray { background: var(--bg-2); }
.sec--dark { background: var(--ink); color: #fff; }
.sec--dark .lead, .sec--dark .muted { color: var(--muted-dark); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--orange); border-radius: 2px; }
.sec--dark .eyebrow, .hero .eyebrow, .phero .eyebrow { color: var(--orange); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* Campo pendiente: el cliente debe confirmarlo. Nunca se inventa. */
.pend {
  background: var(--pend-bg); color: var(--pend-ink);
  padding: .05em .4em; border-radius: 4px;
  font-weight: 600; font-size: .92em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.pend::before { content: "⚑ "; font-size: .85em; }

/* ---------- Botones ---------- */
.btn {
  --bg-b: var(--orange); --fg-b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--f-head); font-weight: 800; font-size: 1rem; letter-spacing: .01em;
  color: var(--fg-b); background: var(--bg-b);
  border: 2px solid var(--bg-b); border-radius: var(--r-brand);
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); --bg-b: var(--orange-2); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost { --bg-b: transparent; --fg-b: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { --bg-b: rgba(255,255,255,.08); border-color: #fff; }
.btn--dark { --bg-b: var(--ink); --fg-b: #fff; }
.btn--dark:hover { --bg-b: #000; }
.btn--line { --bg-b: transparent; --fg-b: var(--ink); border-color: var(--ink); }
.btn--line:hover { --bg-b: var(--ink); --fg-b: #fff; }
.sec--dark .btn--line { --fg-b: #fff; border-color: var(--orange); }
.sec--dark .btn--line:hover { --bg-b: var(--orange); --fg-b: var(--ink); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-weight: 700; text-decoration: none; color: var(--orange-ink);
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.sec--dark .link-arrow { color: var(--orange); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s, transform .35s var(--ease);
}
.hdr .wrap { display: flex; align-items: center; gap: 24px; max-width: 1320px; }
.hdr__logo { display: block; flex: none; line-height: 0; }
.hdr__logo img { height: 40px; width: auto; }
.hdr__logo .logo-color { display: none; }
.hdr__nav { margin-left: auto; display: none; }
.hdr__nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.hdr__nav a {
  display: block; padding: 10px 12px; border-radius: 6px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: color .2s, background-color .2s;
}
.hdr__nav a:hover, .hdr__nav a[aria-current="page"] { color: var(--orange); }
.hdr__cta { display: none; min-height: 44px; padding: 0 18px; font-size: .92rem; }
.hdr__burger {
  margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 8px;
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.hdr__burger span, .hdr__burger span::before, .hdr__burger span::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .3s var(--ease), background-color .2s;
}
.hdr__burger span::before, .hdr__burger span::after { content: ""; position: absolute; left: 0; }
.hdr__burger span::before { top: -7px; }
.hdr__burger span::after { top: 7px; }
.hdr.is-solid { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0,0,0,.25); }
@supports (backdrop-filter: blur(8px)) { .hdr.is-solid { background: rgba(255,255,255,.88); backdrop-filter: blur(12px); } }
.hdr.is-solid .logo-white { display: none; }
.hdr.is-solid .logo-color { display: block; }
.hdr.is-solid .hdr__nav a { color: var(--ink); }
.hdr.is-solid .hdr__nav a:hover, .hdr.is-solid .hdr__nav a[aria-current="page"] { color: var(--orange-ink); }
.hdr.is-solid .hdr__burger { background: var(--bg-2); color: var(--ink); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__tag {
  display: none; font-size: .72rem; line-height: 1.25; color: rgba(255,255,255,.7);
  border-left: 1px solid rgba(255,255,255,.25); padding-left: 14px; max-width: 150px;
}
.hdr.is-solid .hdr__tag { color: var(--muted); border-color: var(--line); }

@media (min-width: 1080px) {
  .hdr__nav, .hdr__cta { display: inline-flex; }
  .hdr__burger { display: none; }
}
@media (min-width: 1280px) { .hdr__tag { display: block; } }

/* Menú móvil */
.mnav {
  position: fixed; inset: 0; z-index: 150; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; padding: 18px var(--gut) 32px;
  visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s;
}
.mnav.is-open { visibility: visible; opacity: 1; transition: opacity .3s; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.mnav__top img { height: 38px; width: auto; }
.mnav__close { width: 46px; height: 46px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.mnav ul { list-style: none; margin: 28px 0 0; padding: 0; }
.mnav li { border-bottom: 1px solid var(--line-dark); }
.mnav li a { display: flex; justify-content: space-between; padding: 18px 2px; color: #fff; text-decoration: none; font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; }
.mnav li a::after { content: "→"; color: var(--orange); }
.mnav .btn { margin-top: auto; }
.mnav__note { margin-top: 16px; font-size: .85rem; color: var(--muted-dark); }

/* WhatsApp flotante (solo celular) */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 54px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--orange); color: var(--ink); text-decoration: none;
  font-family: var(--f-head); font-weight: 800;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.45);
  transition: transform .3s var(--ease), opacity .3s;
}
.fab svg { width: 24px; height: 24px; }
.fab.is-hidden { transform: translateY(140%); opacity: 0; }
@media (min-width: 1080px) { .fab { display: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  padding: calc(var(--header-h) + 32px) 0 0;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; filter: grayscale(1) contrast(1.1); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(31,31,31,.55); }
.hero__grid { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.hero__copy { min-width: 0; }
.hero__copy { position: relative; z-index: 2; }
.hero h1 { max-width: 15ch; margin-bottom: 22px; font-size: clamp(2.2rem, 4.4vw, 3.9rem); }
.hero h1 .hl { color: var(--orange); }
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #E6E6E6; max-width: 46ch; margin-bottom: 30px; }
.hero__stage { position: relative; height: 340px; margin: 8px calc(var(--gut) * -1) 0; }
.hero__stage canvas { width: 100% !important; height: 100% !important; }
.hero__fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.hero__fallback img { max-height: 100%; width: auto; border-radius: var(--r-brand); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.chips li::before { content: ""; width: 8px; height: 8px; border-radius: 2px 5px; background: var(--orange); }
.hero__band { position: relative; height: 70px; margin-top: 10px; }
.hero__band svg { position: absolute; left: 0; bottom: -1px; width: 100%; height: 100%; }
.scroll-cue {
  display: none; position: absolute; left: var(--gut); bottom: 96px; z-index: 3;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6);
}

@media (min-width: 960px) {
  .hero { min-height: min(100svh, 940px); display: flex; flex-direction: column; padding-top: calc(var(--header-h) + 40px); }
  .hero > .wrap { flex: 1; display: flex; align-items: center; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; width: 100%; }
  .hero__stage { position: absolute; top: 0; right: 0; bottom: 0; width: 56vw; height: auto; margin: 0; z-index: 1; }
  .hero__copy { padding: 40px 0 60px; }
  .scroll-cue { display: block; }
}

/* ---------- Encabezado de páginas internas ---------- */
.phero { position: relative; background: var(--ink); color: #fff; padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(56px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.phero__bg { position: absolute; inset: 0; z-index: -1; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(.4); }
.phero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,31,31,.96) 0%, rgba(31,31,31,.82) 55%, rgba(31,31,31,.55) 100%); }
.phero h1 { max-width: 20ch; font-size: clamp(2rem, 4.6vw, 3.6rem); }
.phero .lead { color: #DADADA; }
.crumbs { font-size: .85rem; color: var(--muted-dark); margin-bottom: 22px; }
.crumbs a { color: #fff; }
.phero__band { position: absolute; left: 0; right: 0; bottom: -1px; height: 46px; color: #fff; }
.phero--next-gray .phero__band { color: var(--bg-2); }
.phero--next-dark .phero__band { color: var(--ink); }
.phero__band svg { width: 100%; height: 100%; }

/* ---------- Banda curva naranja (recurso de marca) ---------- */
.band-path { fill: none; stroke: var(--orange); stroke-linecap: round; }

/* ---------- Números ---------- */
.stats { padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.stat__num { font-family: var(--f-head); font-weight: 800; font-size: clamp(2rem, 3.6vw, 3rem); white-space: nowrap; line-height: 1; letter-spacing: -.02em; }
.stat__num .plus, .stat__num .unit { color: var(--orange); }
.stat__num .unit { font-size: .55em; margin-left: 4px; }
.stat__num .pend { font-size: .45em; vertical-align: middle; }
.stat__txt { margin-top: 10px; color: var(--muted); font-size: .95rem; max-width: 24ch; }
@media (min-width: 900px) { .stats__grid { grid-template-columns: 1.35fr 1fr 1fr 1fr; } .stat { border-left: 1px solid var(--line); padding-left: 24px; } }

/* ---------- Servicios ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-brand); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 24px 44px -18px rgba(0,0,0,.32); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__num { font-family: var(--f-head); font-weight: 800; font-size: .8rem; color: var(--orange-ink); letter-spacing: .1em; margin-bottom: 8px; }
.card__body p { color: var(--muted); font-size: .97rem; }
.card__body .link-arrow { margin-top: auto; }
.card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.card:hover::after { transform: scaleX(1); }

/* ---------- Calidad (línea de tiempo) ---------- */
.qsteps { position: relative; display: grid; gap: 28px; margin-top: 8px; counter-reset: q; }
.qline { display: none; }
.qstep { position: relative; padding-left: 58px; }
.qstep__dot {
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 4px 14px 4px 14px;
  display: grid; place-items: center; background: var(--ink-2); border: 2px solid var(--line-dark);
  font-family: var(--f-head); font-weight: 800; color: #fff; transition: background-color .3s, border-color .3s, color .3s;
}
.qstep.is-on .qstep__dot { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.qstep__img { aspect-ratio: 4 / 3; border-radius: var(--r-brand); overflow: hidden; margin-bottom: 16px; background: var(--ink-2); }
.qstep__img img { width: 100%; height: 100%; object-fit: cover; }
.qstep h3 { color: #fff; margin-bottom: 6px; }
.qstep p { color: var(--muted-dark); font-size: .95rem; margin: 0; }
.qsteps::before { content: ""; position: absolute; left: 20px; top: 46px; bottom: 0; width: 2px; background: var(--line-dark); }
@media (min-width: 960px) {
  .qsteps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 70px; }
  .qsteps::before { display: none; }
  .qline { display: block; position: absolute; left: 21px; right: 21px; top: 20px; height: 4px; }
  .qline svg { width: 100%; height: 12px; overflow: visible; }
  .qstep { padding-left: 0; }
  .qstep__dot { top: -70px; }
}
.qline__base { stroke: var(--line-dark); stroke-width: 3; }
.qline__fill { stroke: var(--orange); stroke-width: 4; stroke-linecap: round; }
.q-note { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.q-note p { margin: 0; max-width: 70ch; color: var(--muted-dark); }

/* Figura de línea en la nota de calidad (Hairline · slow) */
.q-fig {
  width: 100%; max-width: 300px; aspect-ratio: 5 / 4; flex: none;
  --hairline-plate: var(--ink); --hairline-hi: var(--orange);
  --hairline-edge: #D6D6D6; --hairline-mid: #8A8A8A; --hairline-lo: #3A3A3A;
}

/* Cilindro de ensayo (SVG) */
.cyl { width: 90px; height: auto; flex: none; }
.cyl__mold { fill: none; stroke: #8A8A8A; stroke-width: 2; }
.cyl__fill { fill: #9C9C9C; }
.cyl__top { fill: #B4B4B4; }

/* ---------- Directo de planta ---------- */
.split { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.1fr .9fr; } .split--rev { grid-template-columns: .9fr 1.1fr; } .split--rev > :first-child { order: 2; } }
.feats { display: grid; gap: 26px; margin-top: 30px; }
.feat { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.feat__ico { width: 52px; height: 52px; border-radius: 4px 16px 4px 16px; background: var(--bg-2); display: grid; place-items: center; color: var(--orange-ink); }
.feat__ico svg { width: 28px; height: 28px; }
.feat h3 { margin-bottom: 4px; }
.feat p { color: var(--muted); margin: 0; font-size: .97rem; }
.vcard { position: relative; max-width: 420px; margin: 0 auto; }
.vcard__frame { position: relative; border-radius: var(--r-brand); overflow: hidden; aspect-ratio: 9 / 14; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.vcard__frame video, .vcard__frame img { width: 100%; height: 100%; object-fit: cover; }
.vcard::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border: 3px solid var(--orange); border-radius: var(--r-brand); z-index: -1; }
.vcard__tag { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 6px; background: rgba(31,31,31,.82); color: #fff; font-size: .8rem; font-weight: 600; }
.vcard__tag b { color: var(--orange); }

/* ---------- Calculadora ---------- */
.calc { display: grid; gap: 24px; }
@media (min-width: 1000px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch; } }
.calc__panel { background: #fff; border-radius: var(--r-brand); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 5px; background: var(--bg-2); border-radius: 10px; margin-bottom: 22px; }
.seg button {
  min-height: 46px; border: 0; border-radius: 7px; background: transparent; cursor: pointer;
  font-family: var(--f-head); font-weight: 700; font-size: .86rem; color: var(--muted);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld--full { grid-column: 1 / -1; }
.fld label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.fld .hint { font-weight: 400; color: var(--muted); }
.inp, .sel, .txa {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.inp:focus, .sel:focus, .txa:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(240,125,0,.18); }
.inp[aria-invalid="true"], .sel[aria-invalid="true"] { border-color: #C62828; }
.sel { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231F1F1F' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.calc__out { margin-top: 24px; padding: 20px; border-radius: 10px; background: var(--ink); color: #fff; }
.calc__out p { margin: 0; }
.calc__big { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3; }
.calc__big strong { color: var(--orange); font-size: 1.6em; display: inline-block; min-width: 3ch; }
.calc__margin { margin-top: 8px !important; font-size: .9rem; color: var(--muted-dark); }
.calc__note { margin-top: 14px; font-size: .82rem; color: var(--muted); }
.calc__stage { position: relative; min-height: 340px; border-radius: var(--r-brand); overflow: hidden; background: #E9E9E9; }
.calc__stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.calc__dims { position: absolute; left: 14px; top: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 28px); }
.calc__dims span { padding: 6px 10px; border-radius: 6px; background: rgba(31,31,31,.86); color: #fff; font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc__dims span b { color: var(--orange); }
.calc__legend { position: absolute; right: 14px; bottom: 12px; z-index: 2; font-size: .75rem; color: #6A6A6A; }
.calc__fallback { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 24px; color: var(--muted); }
.no-webgl .calc__fallback { display: grid; }

/* ---------- Kit placa ---------- */
.kit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 26px 0 34px; padding: 0; list-style: none; }
.kit li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--bg-2); font-weight: 700; font-family: var(--f-head); font-size: .92rem; }
.kit li svg { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--orange); color: var(--ink); }
.kit .kit__plus { padding: 0; background: none; color: var(--orange-ink); font-size: 1.4rem; }
.kit .kit__eq { padding: 10px 18px; background: var(--ink); color: #fff; }
.trio { display: grid; gap: 14px; }
@media (min-width: 760px) { .trio { grid-template-columns: 1.3fr 1fr 1fr; } }
.trio figure { margin: 0; position: relative; border-radius: var(--r-brand); overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.trio figure:first-child { aspect-ratio: auto; min-height: 260px; }
.trio img { width: 100%; height: 100%; object-fit: cover; }
.trio figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 11px; border-radius: 6px; background: rgba(31,31,31,.85); color: #fff; font-size: .82rem; font-weight: 600; }

/* ---------- Cobertura ---------- */
.cov { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .cov { grid-template-columns: .85fr 1.15fr; } }
.cov__search { margin-top: 26px; }
.cov__search .row { display: flex; gap: 10px; }
.cov__search .inp { background: var(--ink-2); color: #fff; border-color: var(--line-dark); }
.cov__search .inp::placeholder { color: #9A9A9A; }
.cov__res { margin-top: 14px; min-height: 56px; }
.cov__res p { margin: 0 0 10px; font-weight: 600; }
.cov__res .ok { color: #fff; }
.cov__res .ok b { color: var(--orange); }
.cov__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.cov__list li button { border: 1px solid var(--line-dark); background: transparent; color: #E6E6E6; border-radius: 999px; padding: 7px 12px; font-size: .85rem; cursor: pointer; transition: border-color .2s, color .2s; }
.cov__list li button:hover, .cov__list li button.is-on { border-color: var(--orange); color: var(--orange); }
.map { position: relative; border-radius: var(--r-brand); background: var(--ink-2); padding: 10px; }
.map svg { width: 100%; height: auto; }
.map__ring { fill: none; stroke: #3B3B3B; stroke-width: 1; stroke-dasharray: 3 5; }
.map__ringlbl { fill: #7C7C7C; font: 600 10px var(--f-body); }
.map__route { fill: none; stroke: var(--orange); stroke-width: 1.6; opacity: .75; }
.map__town circle { fill: #fff; }
.map__town text { fill: #E8E8E8; font: 600 12px var(--f-body); paint-order: stroke; stroke: var(--ink-2); stroke-width: 4px; }
.map__town.is-on circle { fill: var(--orange); }
.map__town.is-on text { fill: var(--orange); }
.map__plant .pulse { fill: var(--orange); opacity: .35; }
.map__plant .core { fill: var(--orange); stroke: #fff; stroke-width: 3; }
.map__plant text { fill: #fff; font: 800 13px var(--f-head); paint-order: stroke; stroke: var(--ink-2); stroke-width: 5px; }
.map__north { fill: #7C7C7C; font: 700 11px var(--f-head); }
.map__caption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 8px 4px; font-size: .78rem; color: #9A9A9A; }
.plant-box { margin-top: 28px; padding: 18px 20px; border: 1px dashed var(--line-dark); border-radius: 10px; color: var(--muted-dark); font-size: .92rem; }
.plant-box strong { color: #fff; }

/* ---------- Galería ---------- */
.gal { columns: 2 160px; column-gap: 12px; }
@media (min-width: 900px) { .gal { columns: 3; column-gap: 16px; } }
.gal__it { break-inside: avoid; margin: 0 0 12px; position: relative; border-radius: var(--r-brand); overflow: hidden; background: var(--line); cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0; }
@media (min-width: 900px) { .gal__it { margin-bottom: 16px; } }
.gal__it img, .gal__it video { width: 100%; height: auto; transition: transform .7s var(--ease); }
.gal__it:hover img { transform: scale(1.04); }
.gal__it--video { cursor: pointer; aspect-ratio: 9 / 16; }
.gal__it--video video, .gal__it--video img { height: 100%; object-fit: cover; }
.gal__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.18); transition: opacity .3s; }
.gal__play span { width: 64px; height: 64px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.gal__play svg { width: 26px; height: 26px; margin-left: 4px; color: var(--ink); }
.gal__it--video.is-playing .gal__play { opacity: 0; pointer-events: none; }
.gal__cap { position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; border-radius: 5px; background: rgba(31,31,31,.8); color: #fff; font-size: .75rem; font-weight: 600; text-align: left; }

.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(12,12,12,.94); }
.lb__in { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 16px; }
.lb img { max-width: min(1200px, 100%); max-height: 100%; width: auto; height: auto; border-radius: 6px; }
.lb__cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #DADADA; font-size: .9rem; }
.lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.lb__btn:hover { background: var(--orange); color: var(--ink); }
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Quiénes somos ---------- */
.photo { border-radius: var(--r-brand); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.community { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 22px; align-items: center; background: #fff; border-radius: var(--r-brand); padding: 16px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .community { grid-template-columns: 300px 1fr; padding: 18px 32px 18px 18px; } }
.community img { border-radius: 4px 16px 4px 16px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.community p { margin: 0; }
.seals { margin-top: 26px; font-size: .92rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 4px; font-family: var(--f-head); font-weight: 700; font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 4px 11px 4px 11px; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%23B35A00' stroke-width='2.2'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: rgba(240,125,0,.15); }
.faq__a { padding: 0 4px 24px; color: var(--muted); max-width: 70ch; }
.faq__a p:last-child { margin: 0; }

/* ---------- Formulario ---------- */
.quote { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 980px) { .quote { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.quote__aside .btn { margin-top: 10px; }
.contact-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: #E6E6E6; font-size: .95rem; }
.contact-list svg { width: 22px; height: 22px; color: var(--orange); margin-top: 2px; }
.contact-list a { color: #fff; }
.form { background: #fff; color: var(--ink); border-radius: var(--r-brand); padding: clamp(22px, 3vw, 38px); }
.form .fields { gap: 16px; }
.chk { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .88rem; color: var(--muted); margin: 20px 0 22px; }
.chk input { width: 22px; height: 22px; accent-color: var(--orange); margin: 1px 0 0; }
.chk a { color: var(--orange-ink); font-weight: 600; }
.form__err { color: #C62828; font-size: .85rem; margin: -6px 0 14px; display: none; }
.form__err.is-on { display: block; }
.form__ok { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 10px; background: #FFF4E5; border: 1px solid #F5C589; font-size: .95rem; }
.form__ok.is-on { display: block; }
.form__ok a { color: var(--orange-ink); font-weight: 700; }
@media (max-width: 560px) { .fields, .fields--3 { grid-template-columns: minmax(0, 1fr); } .fields--3 .fld:nth-child(-n+3) { grid-column: auto; } }
@media (max-width: 560px) { .calc .fields--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Footer ---------- */
.ftr { background: var(--ink-3); color: #CFCFCF; padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .93rem; }
.ftr__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.ftr img.ftr__logo { height: 52px; width: auto; margin-bottom: 18px; }
.ftr h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { color: var(--orange); }
.ftr__group { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--orange); background: rgba(255,255,255,.04); border-radius: 0 8px 8px 0; }
.ftr__group a { text-decoration: underline; }
.ftr__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #2E2E2E; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .82rem; color: #9A9A9A; }

/* ---------- Páginas internas ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.uses li { padding: 14px 16px; border-radius: 4px 14px 4px 14px; background: var(--bg-2); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.uses li::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--orange); border-radius: 2px 5px; }
.equip { display: grid; gap: 20px; }
@media (min-width: 900px) { .equip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.equip__it { background: #fff; border-radius: var(--r-brand); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.equip__it .card__img { aspect-ratio: 4 / 3; }
.equip__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.equip__body p { margin: 0; color: var(--muted); font-size: .95rem; }
.avail { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; align-self: flex-start; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail--ok { background: #E8F5E9; color: #1B5E20; }
.avail--ask { background: #FFF4E5; color: #8A4500; }
.equip__body .btn { margin-top: auto; }
.more { display: grid; gap: 14px; }
@media (min-width: 760px) { .more { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.more a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px; border-radius: var(--r-brand); background: #fff; box-shadow: var(--shadow); text-decoration: none; font-family: var(--f-head); font-weight: 700; transition: transform .3s var(--ease); }
.more a::after { content: "→"; color: var(--orange-ink); }
.more a:hover { transform: translateY(-3px); }
.vid-slot { aspect-ratio: 9 / 16; max-width: 340px; border-radius: var(--r-brand); border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); background: var(--bg-2); }
.policy { max-width: 78ch; }
.policy h2 { font-size: 1.35rem; margin-top: 2em; }

/* ---------- Animación: estados iniciales los pone JS (sin JS todo es visible) ---------- */
.reveal, .stagger > * { will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Ajustes de celular ---------- */
@media (max-width: 600px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chips li { font-size: .84rem; padding: 8px 12px; }
  .kit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .kit .kit__plus { display: none; }
  .kit li { font-size: .84rem; padding: 8px 12px 8px 8px; }
  .kit .kit__eq { grid-column: 1 / -1; justify-content: center; }
  .map__town text, .map__plant text { font-size: 19px; }
  .map__town circle { r: 7; }
  .map__ringlbl { font-size: 15px; }
  .q-note { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 960px) {
  .q-note { display: grid; grid-template-columns: 300px 1fr auto; gap: 36px; }
}

/* ---------- Máquinas en 3D (hero y showroom) ---------- */
.showroom__stage { position: relative; }
.m3d .m3d-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.m3d-poster {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: min(88%, 720px); height: auto; max-height: 82%; object-fit: contain;
  filter: drop-shadow(0 30px 30px rgba(0,0,0,.35)); pointer-events: none;
}
.hero .m3d-poster { filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.hero__stage.m3d { cursor: default; }

.split--kit { align-items: center; }
@media (min-width: 960px) { .split--kit { grid-template-columns: .9fr 1.1fr; } }
.split--kit .kit { margin-bottom: 26px; }
.showroom { position: relative; border-radius: var(--r-brand); background: var(--bg-2); overflow: hidden; }
.showroom__tabs { position: absolute; z-index: 3; left: 14px; top: 14px; display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.showroom__tabs button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 7px; background: transparent; font-family: var(--f-head); font-weight: 700; font-size: .88rem; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.showroom__tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.showroom__stage { aspect-ratio: 4 / 3; min-height: 300px; }
.showroom__stage .m3d-canvas { cursor: grab; }
.showroom__stage .m3d-canvas:active { cursor: grabbing; }
.showroom__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 0 18px 16px; font-size: .9rem; color: var(--muted); }
.showroom__foot p { margin: 0; }
.showroom__foot b { color: var(--ink); }
.showroom__hint { font-size: .75rem; color: #7a7a7a; }
@media (pointer: coarse) { .hint-drag { display: none; } }
