/* MAVIA Supply
   Oscuro donde hay fuego (portada, galería, proceso, cotización), Blanco Taller donde se lee y se decide.
   El naranja Chispa se usa como luz: botones, la V, la línea del láser y el brillo que sigue al cursor. */

:root {
  --azul: #1B2F5B;
  --chispa: #FF5A1F;
  --blanco: #F5F4F0;
  --gris: #C5CAD1;
  --negro: #0F1420;

  --bg: var(--blanco);
  --surface: #FFFFFF;
  --ink: var(--negro);
  --muted: #4A5468;
  --line: var(--gris);
  --on-dark: var(--blanco);
  --on-dark-muted: #B9C0CD;
  --dark-line: rgba(245, 244, 240, .16);

  --f-display: "Archivo", "Arial", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-sm: .875rem;
  --t-base: 1.0625rem;
  --t-lg: 1.1875rem;
  --t-h3: clamp(1.375rem, 2.4vw, 1.75rem);
  --t-h2: clamp(2rem, 5.2vw, 3.5rem);

  --gutter: 16px;
  --wrap: 76rem;
  --header-h: 64px;
  --ease-out: cubic-bezier(.16, .8, .24, 1);

  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-base)/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-stretch: 112%; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: var(--t-h2); font-weight: 780; }
h3 { font-size: var(--t-h3); font-weight: 720; line-height: 1.1; }
:focus-visible { outline: 3px solid var(--chispa); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: var(--header-h); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--negro); color: var(--blanco); padding: 10px 14px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 8px; }
.dark { background: var(--negro); color: var(--on-dark); }
.dark ::selection { background: var(--chispa); color: var(--negro); }

/* Botones */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .85em 1.4em;
  font: 600 1rem/1.1 var(--f-body);
  border: 2px solid transparent; border-radius: 4px;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-spark { background: var(--chispa); color: var(--negro); }
.btn-spark:hover { background: #FF7240; box-shadow: 0 8px 28px -8px rgba(255, 90, 31, .7); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: var(--negro); border-color: var(--negro); color: var(--blanco); }
.dark .btn-line:hover, .on-dark .btn-line:hover { background: var(--blanco); border-color: var(--blanco); color: var(--negro); }
.btn-light { background: var(--blanco); color: var(--azul); }
.btn-light:hover { background: #FFFFFF; }
.btn:disabled { opacity: .55; cursor: progress; }

/* Encabezado: transparente sobre la portada, sólido al bajar */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; color: var(--on-dark); transition: background-color .3s, color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-solid { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); color: var(--ink); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: grid; flex: none; margin-left: -6px; }
.brand img { grid-area: 1 / 1; height: 40px; width: auto; transition: opacity .3s; }
.brand .logo-light { opacity: 0; }
.site-header:not(.is-solid) .brand .logo-dark { opacity: 0; } /* sobre la portada el logo grande ya está a la vista */
.site-header.is-solid .brand .logo-dark { opacity: 0; }
.site-header.is-solid .brand .logo-light { opacity: 1; }
.nav-list { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-list a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 10px 0; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.nav-list a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--chispa); }
.menu-btn { display: none; }
@media (max-width: 959px) {
  .brand img { height: 34px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font: 600 .9375rem var(--f-body); color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 4px; cursor: pointer; }
  .menu-btn svg { width: 18px; height: 18px; }
  .site-nav { position: absolute; inset: 100% 0 auto; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px -16px rgba(15, 20, 32, .4); }
  .site-nav[hidden] { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav-list a:not(.btn) { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { padding-top: 16px; }
  .nav-list .btn { width: 100%; }
}
@media (min-width: 960px) { .site-nav[hidden] { display: block; } }

/* Portada */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--negro); color: var(--on-dark); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgba(15, 20, 32, .55) 0%, rgba(15, 20, 32, .15) 30%, rgba(15, 20, 32, .55) 62%, rgba(15, 20, 32, .96) 100%),
  linear-gradient(90deg, rgba(15, 20, 32, .7) 0%, rgba(15, 20, 32, 0) 70%); }
.spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(255, 90, 31, .28), rgba(255, 90, 31, .08) 35%, transparent 65%);
  mix-blend-mode: screen; }
[data-spot].is-lit .spot { opacity: 1; }
.hero-inner { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(40px, 8vh, 88px); display: grid; gap: 22px; }
.hero-logo { width: min(100%, clamp(280px, 50vw, 640px), 78vh); margin-left: -1.5%; }
.hero-logo svg { width: 100%; height: auto; overflow: visible; }
.hero-tag { font: 750 clamp(1.5rem, 3.4vw, 2.375rem)/1.1 var(--f-display); font-stretch: 112%; letter-spacing: -.01em; }
.hero-lead { font-size: var(--t-lg); color: var(--on-dark-muted); max-width: 50ch; }
.hero .cta-row { margin-top: 6px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue { position: absolute; right: max(var(--gutter), env(safe-area-inset-right)); bottom: clamp(40px, 8vh, 88px); width: 2px; height: 72px; background: var(--dark-line); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; inset: 0; background: var(--chispa); transform: translateY(-100%); }
@media (max-width: 767px) { .scroll-cue { display: none; } }

/* Entrada del logo: columnas suben, la V (la visión) cae al centro y aparece SUPPLY. Solo traslación y opacidad. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-logo .lm-col, .js .hero-logo .lm-l { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease-out) forwards; }
  .js .hero-logo .lm-col + .lm-col { animation-delay: .06s; }
  .js .hero-logo .lm-v { opacity: 0; transform: translateY(-46px); animation: drop .8s cubic-bezier(.3, 1.35, .5, 1) .55s forwards; }
  .js .hero-logo .lm-l:nth-of-type(4) { animation-delay: .12s; }
  .js .hero-logo .lm-l:nth-of-type(5) { animation-delay: .18s; }
  .js .hero-logo .lm-l:nth-of-type(6) { animation-delay: .24s; }
  .js .hero-logo .lm-l:nth-of-type(7) { animation-delay: .30s; }
  .js .hero-logo .lm-s { opacity: 0; animation: fade 1s ease-out 1s forwards; }
  .js .hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease-out) forwards; }
  .js .hero-copy > :nth-child(1) { animation-delay: 1.05s; }
  .js .hero-copy > :nth-child(2) { animation-delay: 1.15s; }
  .js .hero-copy > :nth-child(3) { animation-delay: 1.25s; }
  .scroll-cue::after { animation: cue 2.4s ease-in-out 2s infinite; }
}
.hero-copy { display: grid; gap: 18px; }
@media (max-width: 959px) { .hero-inner { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } } /* deja libre la barra fija */
@media (max-width: 767px) { .hero-logo { width: 88%; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes drop { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Galería horizontal que avanza con el scroll */
.reel { position: relative; height: 260vh; }
.reel-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: clamp(24px, 4vh, 40px); padding-top: calc(var(--header-h) * .6); }
.reel-track { width: max-content; }
.reel-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; }
.reel-head p { color: var(--on-dark-muted); max-width: 42ch; }
.reel-track { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.reel-item { flex: none; margin: 0; overflow: hidden; border-radius: 3px; background: #1d2433; }
.reel-item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease-out); }
.reel-item:hover img { transform: scale(1.12); }
.reel-item.w { width: clamp(280px, 46vw, 680px); height: clamp(200px, 50vh, 460px); }
.reel-item.t { width: clamp(200px, 26vw, 360px); height: clamp(260px, 58vh, 520px); }
.reel-item.s { width: clamp(220px, 30vw, 420px); height: clamp(180px, 38vh, 340px); }
.reel-progress { height: 2px; background: var(--dark-line); position: relative; }
.reel-progress span { position: absolute; inset: 0; background: var(--chispa); transform-origin: left; transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  .reel { height: auto; padding-block: 72px; }
  .reel-sticky { position: static; height: auto; }
  .reel-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .reel-item { scroll-snap-align: start; }
  .reel-progress { display: none; }
}

/* Secciones */
.section { padding-block: clamp(72px, 11vw, 140px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 72px); }
.section-head p { color: var(--muted); font-size: var(--t-lg); max-width: 52ch; }
.dark .section-head p, .on-dark .section-head p { color: var(--on-dark-muted); }
@media (min-width: 960px) { .section-head.split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 64px; } }

/* Imagen que se descubre como un corte (la línea Chispa avanza al frente) */
.cut { position: relative; overflow: hidden; container-type: inline-size; }
.cut img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  /* El recorte va en la imagen, no en el contenedor: así el contenedor sigue siendo detectable al entrar en pantalla. */
  .js .cut > img { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease-out), transform .1s linear; }
  .js .cut.is-in > img { clip-path: inset(0 0 0 0); }
  .js .cut::after { content: ""; position: absolute; top: 0; left: 0; z-index: 2; width: 3px; height: 100%; background: var(--chispa); box-shadow: 0 0 14px 3px rgba(255, 90, 31, .6); opacity: 0; pointer-events: none; }
  .js .cut.is-in::after { animation: laser 1.2s var(--ease-out) forwards; }
}
@keyframes laser { 0% { transform: translateX(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(100cqw); opacity: 0; } }
.px { overflow: hidden; }
.px img { height: 118%; will-change: transform; }

/* Servicios: lista que avanza y foto fija que cambia */
.svc-grid { display: grid; gap: 48px; }
.svc { display: grid; gap: 14px; padding-block: 8px 28px; border-top: 1px solid var(--line); }
.svc:first-child { border-top: 2px solid var(--ink); }
.svc h3 { padding-top: 22px; }
.svc p { color: var(--muted); font-size: var(--t-lg); max-width: 44ch; }
.svc .svc-img { margin: 6px 0 0; aspect-ratio: 4 / 3; border-radius: 3px; }
.svc-stage { display: none; }
@media (min-width: 960px) {
  .svc-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
  .svc { min-height: 62vh; align-content: center; padding-block: 40px; transition: opacity .4s; }
  .svc h3 { padding-top: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); }
  .svc .svc-img { display: none; }
  .js .svc:not(.is-active) { opacity: .38; }
  .svc-stage { display: block; position: sticky; top: calc(var(--header-h) + 6vh); height: calc(100vh - var(--header-h) - 12vh); border-radius: 4px; overflow: hidden; background: #DCDCD8; }
  .svc-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.07); transition: opacity .7s ease, transform 1.4s var(--ease-out); }
  .svc-stage img.is-on { opacity: 1; transform: scale(1); }
  .svc-stage .stage-label { position: absolute; left: 20px; bottom: 18px; z-index: 2; padding: 8px 12px; background: var(--negro); color: var(--blanco); font-weight: 600; font-size: var(--t-sm); border-radius: 3px; }
}

/* Mayoreo */
.wholesale { position: relative; overflow: hidden; isolation: isolate; background: var(--azul); color: var(--on-dark); }
.wholesale .bg { position: absolute; inset: -10% 0; z-index: -1; opacity: .35; mix-blend-mode: luminosity; }
.wholesale .bg img { width: 100%; height: 118%; object-fit: cover; }
.wholesale::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 47, 91, .82) 0%, rgba(27, 47, 91, .9) 50%, rgba(27, 47, 91, .97) 100%); }
.wholesale .section-head p { color: var(--on-dark); }
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--dark-line); }
.facts > div { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--dark-line); }
.facts dt { font: 720 1.25rem/1.15 var(--f-display); font-stretch: 112%; }
.facts dd { margin: 0; color: var(--on-dark-muted); }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
@media (min-width: 1100px) { .facts { grid-template-columns: repeat(4, 1fr); column-gap: 32px; } .facts > div { border-bottom: 0; padding-top: 28px; } }
.wholesale .cta-row { margin-top: 40px; }

/* Catálogo */
.catalog { background: var(--surface); }
.cat-title { display: grid; gap: 10px; }
.cat-title .kicker { font-weight: 600; color: var(--azul); }
.cat-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .cat-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; } }
.compare { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 16px 12px 8px; }
.compare svg { width: 100%; height: auto; max-height: 72vh; margin-inline: auto; }
.compare figcaption { font-size: var(--t-sm); color: var(--muted); padding: 8px 4px 4px; }
.cmp-door { fill: none; stroke: var(--muted); stroke-width: .8; }
.cmp-floor { stroke: var(--ink); stroke-width: 1.2; }
.cmp-txt { fill: var(--muted); font: 500 6.5px var(--f-body); }
.cmp-dim { stroke: var(--chispa); stroke-width: .8; fill: none; }
.cmp-dim-txt { fill: var(--ink); font: 700 7.5px var(--f-body); font-variant-numeric: tabular-nums; }
.cmp-piece { fill: var(--negro); }
.cmp-hole { fill: var(--bg); }
.sizes { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.sizes legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.size-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 66px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.size-opt:hover { border-color: var(--muted); }
.size-opt input { appearance: none; margin: 0; width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 50%; display: grid; place-content: center; cursor: pointer; }
.size-opt input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--chispa); transform: scale(0); transition: transform .15s; }
.size-opt input:checked { border-color: var(--negro); }
.size-opt input:checked::before { transform: scale(1); }
.size-opt input:focus-visible { outline: 3px solid var(--chispa); outline-offset: 3px; }
.size-opt:has(input:checked) { border-color: var(--negro); background: var(--surface); box-shadow: inset 0 0 0 1px var(--negro); }
.size-opt .dims { font-weight: 600; font-variant-numeric: tabular-nums; }
.size-opt .dims small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-sm); }
.size-opt .price { font: 780 1.5rem/1 var(--f-display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.price-note { font-size: var(--t-sm); color: var(--muted); margin-top: 6px; }
.cat-actions { margin-top: 24px; }
.cat-more { margin-top: clamp(48px, 7vw, 80px); display: grid; gap: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .cat-more { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; } }
.cat-more h3 { font-size: 1.125rem; margin-bottom: 12px; }
.cat-more p { color: var(--muted); }
.cat-more .btn { margin-top: 16px; }
.price-list { margin: 0; padding: 0; list-style: none; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.price-list li span:last-child { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-list small { display: block; color: var(--muted); font-size: var(--t-sm); }

/* Proceso */
.process-grid { display: grid; gap: 48px; }
.process-aside { display: grid; gap: 28px; align-content: start; }
.process-aside .cut { aspect-ratio: 4 / 5; border-radius: 3px; max-height: 60vh; }
@media (min-width: 960px) {
  .process-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; }
  .process-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; counter-reset: paso; }
.steps::before, .steps::after { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--dark-line); }
.steps::after { background: var(--chispa); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 10px rgba(255, 90, 31, .6); }
@media (prefers-reduced-motion: reduce) { .steps::after { transform: none; } }
.steps li { position: relative; counter-increment: paso; padding: 4px 0 clamp(40px, 11vh, 120px); display: grid; gap: 8px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(paso); position: absolute; left: -44px; top: 0; width: 24px; height: 24px; display: grid; place-content: center; border-radius: 50%; background: var(--negro); border: 2px solid var(--on-dark-muted); font: 700 .75rem/1 var(--f-body); color: var(--on-dark); transition: border-color .3s, background-color .3s, color .3s; }
.steps li.is-done::before { background: var(--chispa); border-color: var(--chispa); color: var(--negro); }
.steps b { font: 720 clamp(1.375rem, 2.4vw, 1.875rem)/1.1 var(--f-display); font-stretch: 112%; }
.steps span { color: var(--on-dark-muted); font-size: var(--t-lg); max-width: 40ch; }
.timing { margin-top: 48px; display: grid; gap: 8px; padding: 20px 22px; border: 1px solid var(--dark-line); border-left: 3px solid var(--chispa); color: var(--on-dark-muted); }
.timing b { color: var(--on-dark); }

/* Nosotros */
.about-grid { display: grid; gap: 40px; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 3px; max-height: 80vh; }
.about-text { display: grid; gap: 22px; align-content: center; }
.about-text > p { color: var(--muted); font-size: var(--t-lg); max-width: 50ch; }
.values { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.values li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.values b { font-weight: 650; font-size: 1.0625rem; }
.values span { color: var(--muted); }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1.1fr; gap: 88px; align-items: center; } }

/* Preguntas */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.faq { border-top: 2px solid var(--ink); }
.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: 16px; padding: 22px 0; font-weight: 600; font-size: 1.125rem; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--chispa); border-bottom: 2px solid var(--chispa); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 60ch; }
.faq summary:hover { color: var(--azul); }

/* Cotización */
.quote { position: relative; overflow: hidden; isolation: isolate; background: var(--negro); color: var(--on-dark); }
.quote .bg { position: absolute; inset: 0; z-index: -2; opacity: .22; }
.quote .bg img { width: 100%; height: 100%; object-fit: cover; }
.quote::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(15, 20, 32, .6), rgba(15, 20, 32, .95)); }
.quote-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .quote-grid { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; } .quote-intro { position: sticky; top: calc(var(--header-h) + 40px); } }
.quote-intro { display: grid; gap: 18px; }
.quote-intro p { color: var(--on-dark-muted); font-size: var(--t-lg); max-width: 40ch; }
.direct { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--dark-line); display: grid; gap: 12px; justify-items: start; }
.direct .num { font: 750 1.625rem/1 var(--f-display); font-stretch: 112%; }

.form { background: var(--surface); color: var(--ink); border-radius: 6px; padding: clamp(20px, 4vw, 40px); display: grid; gap: 18px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font-weight: 600; font-size: .9375rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .req { color: #B23A0E; font-weight: 600; }
.field .hint { font-size: var(--t-sm); color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px; font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--bg); border: 1px solid #9AA2AF; border-radius: 4px; transition: border-color .15s, box-shadow .15s; }
.form select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230F1420' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form textarea { min-height: 128px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(27, 47, 91, .25); }
.form [aria-invalid="true"] { border-color: #B23A0E; box-shadow: 0 0 0 1px #B23A0E; }
.err { color: #B23A0E; font-size: var(--t-sm); font-weight: 500; }
.err:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 14px; padding-top: 4px; }
.form-foot small { color: var(--muted); font-size: var(--t-sm); }
.form-foot .btn { width: 100%; }
@media (min-width: 640px) { .form-foot { grid-template-columns: 1fr auto; align-items: center; } .form-foot .btn { width: auto; } }
.status { padding: 14px 16px; border-radius: 4px; background: var(--bg); border-left: 4px solid var(--azul); }
.status.is-error { border-left-color: #B23A0E; }

/* Pie */
.site-footer { background: var(--negro); color: var(--on-dark-muted); padding-block: 56px 40px; font-size: .9375rem; border-top: 1px solid var(--dark-line); }
.site-footer .wrap { display: grid; gap: 32px; }
.site-footer .foot-logo { height: 52px; width: auto; margin-left: -8px; }
.foot-cols { display: grid; gap: 20px; }
.foot-cols b { display: block; color: var(--on-dark); font-weight: 600; margin-bottom: 4px; }
.foot-cols a { text-underline-offset: 4px; }
.foot-legal { padding-top: 20px; border-top: 1px solid var(--dark-line); font-size: var(--t-sm); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (min-width: 768px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } }

/* Barra fija en celular */
.mobile-bar { position: fixed; inset: auto 0 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px max(var(--gutter), env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-right));
  background: color-mix(in srgb, var(--negro) 88%, transparent); backdrop-filter: blur(10px); color: var(--on-dark);
  border-top: 1px solid var(--dark-line); transition: transform .3s var(--ease-out); }
.mobile-bar .btn { min-height: 48px; padding-inline: 10px; }
.mobile-bar.is-hidden { transform: translateY(110%); }
@media (max-width: 959px) { body:has(.mobile-bar) { padding-bottom: calc(70px + env(safe-area-inset-bottom)); } }
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* Páginas simples (gracias, 404) */
.simple { min-height: 72vh; display: grid; align-content: center; padding-block: calc(var(--header-h) + 48px) 64px; }
.simple .wrap { display: grid; gap: 20px; justify-items: start; }
.simple h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 800; }
.simple p { color: var(--muted); font-size: var(--t-lg); max-width: 48ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .spot { display: none; }
}
