/* ============================================================
   Carpintería Integral — styles.css
   Paso 1: sistema visual, shell y estructura del wizard
   ============================================================ */

/* ---------- 1. Reset y tokens ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;

  --bg: #08080a;
  --bg-soft: #0c0c0f;
  --panel: #111115;
  --panel-2: #16161b;
  --panel-3: #1b1b22;

  --line: rgba(244, 239, 230, 0.09);
  --line-2: rgba(244, 239, 230, 0.16);
  --line-gold: rgba(229, 194, 124, 0.3);

  --text: #f4efe6;
  --text-soft: #c8c2b7;
  --muted: #928d84;

  --gold: #e5c27c;
  --gold-bright: #f0d398;
  --gold-deep: #b98d45;
  --gold-soft: rgba(229, 194, 124, 0.12);
  --neon: #9ef0c9;
  --neon-soft: rgba(158, 240, 201, 0.1);
  --danger: #ff9382;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --radius-xl: 30px;

  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --shadow-panel: 0 30px 80px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 18px 50px rgba(229, 194, 124, 0.14);

  --container: 1200px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(229, 194, 124, 0.1), transparent 62%),
    radial-gradient(900px 560px at -8% 22%, rgba(158, 240, 201, 0.05), transparent 58%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 95% 68% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 68% at 50% 0%, #000 20%, transparent 78%);
  opacity: 0.7;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

fieldset {
  padding: 0;
  border: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: #17120a;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

/* ---------- 2. Utilidades ---------- */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--gold);
  color: #17120a;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 3. Botones y badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn-gold {
  color: #17120a;
  background: linear-gradient(180deg, var(--gold-bright), #d8b067);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 14px 34px rgba(229, 194, 124, 0.16);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 20px 45px rgba(229, 194, 124, 0.24);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--line-gold);
  background: var(--gold-soft);
}

.btn-quiet {
  min-height: 44px;
  padding-inline: 0.35rem;
  color: var(--text-soft);
  background: transparent;
  border-color: transparent;
}

.btn-quiet:hover {
  color: var(--gold);
}

.btn-sm {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.badge-ai {
  color: var(--gold);
  background: var(--gold-soft);
  border-color: var(--line-gold);
}

.badge-ok {
  color: var(--neon);
  background: var(--neon-soft);
  border-color: rgba(158, 240, 201, 0.28);
}

.badge-soft {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(229, 194, 124, 0.32);
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.text-link:hover {
  border-color: var(--gold);
  gap: 0.6rem;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 8, 10, 0.74);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line-gold);
  border-radius: 11px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  background:
    linear-gradient(145deg, rgba(229, 194, 124, 0.14), transparent 60%),
    #0d0d10;
  box-shadow: 0 0 24px rgba(229, 194, 124, 0.08) inset;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.brand-tag {
  margin-top: 0.22rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.site-nav a {
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s ease;
}

.site-nav a:hover {
  color: var(--gold);
}

.site-nav a:hover::after {
  right: 0;
}

.header-cta {
  flex: 0 0 auto;
}

/* ---------- 5. Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(158, 240, 201, 0.9);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(158, 240, 201, 0.5);
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}

.hero h1 {
  margin-top: 1.35rem;
  max-width: 13ch;
  font-size: clamp(3rem, 5.6vw, 5.3rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.lead {
  max-width: 54ch;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  color: var(--text-soft);
  text-wrap: pretty;
}

.hero-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.7rem;
}

.hero-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.hero-list .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--neon);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-micro {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 6. Plano / hero visual ---------- */
.hero-visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 610px;
  justify-self: end;
  padding: 0 1.2rem 1.6rem 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -4% 4% 6%;
  z-index: -1;
  background: radial-gradient(circle at 55% 45%, rgba(229, 194, 124, 0.16), transparent 62%);
  filter: blur(22px);
}

.blueprint {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-l);
  background:
    linear-gradient(155deg, rgba(229, 194, 124, 0.06), transparent 38%),
    linear-gradient(180deg, #121216, #0c0c0f);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.blueprint::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 65%, rgba(8, 8, 10, 0.55));
}

.blueprint-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.bp-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon);
}

.blueprint-svg {
  width: 100%;
  height: auto;
}

.bp-dim {
  stroke: rgba(244, 239, 230, 0.3);
  stroke-width: 1;
  fill: none;
}

.bp-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  fill: var(--text-soft);
}

.bp-label-mint {
  fill: var(--neon);
}

.bp-structure {
  fill: none;
  stroke: url(#bp-gold);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.bp-boards {
  fill: rgba(229, 194, 124, 0.1);
  stroke: rgba(229, 194, 124, 0.34);
  stroke-width: 1;
}

.bp-bolts {
  fill: var(--neon);
  opacity: 0.85;
}

.bp-depth {
  fill: none;
  stroke: rgba(158, 240, 201, 0.55);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.bp-scan {
  fill: none;
  stroke: rgba(158, 240, 201, 0.28);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  transform-origin: 280px 209px;
  animation: scan-turn 24s linear infinite;
}

.blueprint-foot {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1fr;
  gap: 1rem;
  padding: 1rem 1.15rem 1.15rem;
  border-top: 1px solid var(--line);
}

.blueprint-foot div {
  display: grid;
  gap: 0.18rem;
}

.blueprint-foot strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.float-card {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(17, 17, 21, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.float-price {
  left: -1.4rem;
  bottom: 0;
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
}

.float-price strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
}

.float-price strong span {
  color: var(--muted);
}

.float-price small {
  font-size: 0.68rem;
  color: var(--muted);
}

.float-ai {
  top: 17%;
  right: -0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.67rem;
  line-height: 1.4;
  color: var(--muted);
  animation: float-soft 7s ease-in-out infinite;
}

.float-ai strong {
  font-weight: 600;
  color: var(--text);
}

.float-ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 14px rgba(158, 240, 201, 0.8);
}

/* ---------- 7. Secciones ---------- */
.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  margin-top: 0.85rem;
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-sub {
  max-width: 62ch;
  margin-top: 1rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-soft);
}

/* ---------- 8. Configurador ---------- */
.configurator {
  padding-top: 1rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.config-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}

.config-heading .section-sub {
  max-width: 44ch;
  margin-top: 0;
  padding-bottom: 0.35rem;
  font-size: 0.9rem;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 72px;
  padding: 0.9rem 1.25rem;
}

.step + .step {
  border-left: 1px solid var(--line);
}

.step-index {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.62rem;
  transition: all 0.25s ease;
}

.step-copy {
  display: grid;
  line-height: 1.25;
}

.step-copy strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease;
}

.step-copy small {
  margin-top: 0.16rem;
  font-size: 0.7rem;
  color: #6f6b64;
}

.step.is-active {
  background: linear-gradient(90deg, rgba(229, 194, 124, 0.08), transparent 75%);
}

.step.is-active .step-index {
  color: #17120a;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(229, 194, 124, 0.28);
}

.step.is-active .step-copy strong {
  color: var(--text);
}

.step.is-done .step-index {
  color: var(--neon);
  border-color: rgba(158, 240, 201, 0.4);
  background: var(--neon-soft);
}

.step.is-done .step-copy strong {
  color: var(--text-soft);
}

.wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  align-items: start;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 30%),
    var(--panel);
  box-shadow: var(--shadow-panel), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.wizard-card {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.wizard-step {
  animation: step-in 0.35s ease both;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
}

.card-head h3 {
  margin-top: 0.45rem;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.card-sub {
  max-width: 62ch;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 9. Dropzone ---------- */
.dropzone-wrap {
  position: relative;
  margin-top: 1.6rem;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 310px;
  padding: 2rem;
  border: 1.5px dashed rgba(229, 194, 124, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 30%, rgba(229, 194, 124, 0.07), transparent 60%),
    rgba(255, 255, 255, 0.014);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: rgba(229, 194, 124, 0.7);
  background-color: rgba(229, 194, 124, 0.04);
  box-shadow: 0 0 0 4px rgba(229, 194, 124, 0.04) inset;
}

.dropzone.is-dragging {
  border-color: var(--gold);
  border-style: solid;
  background-color: rgba(229, 194, 124, 0.07);
  box-shadow:
    0 0 0 4px rgba(229, 194, 124, 0.06) inset,
    0 0 40px rgba(229, 194, 124, 0.12);
}

.dropzone.has-image {
  display: block;
  padding: 0;
  border-style: solid;
  border-color: var(--line-2);
  background: #0b0b0e;
  overflow: hidden;
}

.dropzone-empty {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-soft);
  box-shadow: 0 0 30px rgba(229, 194, 124, 0.1);
}

.upload-icon svg {
  width: 26px;
  height: 26px;
}

.dropzone-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.dropzone-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.dropzone-hint u {
  color: var(--gold);
  text-decoration-color: rgba(229, 194, 124, 0.4);
  text-underline-offset: 3px;
}

.dropzone-preview {
  position: relative;
  width: 100%;
  height: 310px;
}

.dropzone-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0b0e;
}

.preview-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(158, 240, 201, 0.3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon);
  background: rgba(8, 14, 12, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.preview-remove {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text);
  background: rgba(12, 12, 15, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.preview-remove:hover {
  color: var(--danger);
  border-color: rgba(255, 147, 130, 0.4);
  background: rgba(40, 16, 14, 0.8);
}

.preview-remove svg {
  width: 16px;
  height: 16px;
}

.upload-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.privacy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.privacy .icon {
  width: 0.85rem;
  height: 0.85rem;
}

.form-error {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--danger);
}

.analysis-status {
  margin-top: 0.7rem;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted);
}

.analysis-status.is-error {
  color: var(--danger);
}

.spinner {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.45rem;
  border: 1.5px solid rgba(229, 194, 124, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  vertical-align: -0.15em;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.card-actions.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pending-note {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- 10. Formularios ---------- */
.fieldset {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.fieldset legend {
  float: left;
  width: 100%;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.fieldset legend span {
  margin-left: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fieldset legend + * {
  clear: both;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-soft);
}

.field input,
.field select {
  width: 100%;
  height: 46px;
  padding: 0 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  color: var(--text);
  background-color: #0d0d11;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23928d84' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 16px;
  cursor: pointer;
}

.field input:hover,
.field select:hover {
  border-color: rgba(244, 239, 230, 0.24);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(229, 194, 124, 0.1);
}

.field input::placeholder {
  color: #6f6b64;
}

.input-unit {
  position: relative;
}

.input-unit input {
  padding-right: 2.6rem;
}

.input-unit span {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  pointer-events: none;
}

.field-help {
  margin-top: 0.7rem;
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--muted);
}

.variant-fieldset {
  padding: 1.25rem;
  border: 1px solid var(--line-gold);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(229, 194, 124, 0.07), transparent 60%);
}

.variant-fieldset legend {
  padding: 0 0.45rem;
  margin-left: -0.45rem;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1rem;
}

.option-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(12, 12, 15, 0.55);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.option-card:hover {
  border-color: rgba(229, 194, 124, 0.4);
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-check {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 0.15rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: border-color 0.2s ease;
}

.option-check::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform 0.18s ease;
}

.option-card:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.option-card:has(input:checked) .option-check {
  border-color: var(--gold);
}

.option-card:has(input:checked) .option-check::after {
  transform: scale(1);
}

.option-card:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.option-copy {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.option-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.option-desc {
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--muted);
}

.option-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.14rem 0.4rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.49rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(229, 194, 124, 0.1);
}

.variant-note {
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
}

.variant-note strong {
  color: var(--text-soft);
  font-weight: 600;
}

/* ---------- 11. Resultado ---------- */
.detection {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.3rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(158, 240, 201, 0.18);
  border-radius: 12px;
  background: rgba(158, 240, 201, 0.04);
}

.detection-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(158, 240, 201, 0.24);
  border-radius: 9px;
  color: var(--neon);
  background: rgba(158, 240, 201, 0.06);
}

.detection-icon svg {
  width: 20px;
  height: 20px;
}

.detection-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.detection-copy strong {
  font-size: 0.85rem;
}

.detection-copy p {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.detection-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: auto;
  justify-content: flex-end;
}

.detection-tags .tag {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  white-space: nowrap;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.result-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.result-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.result-card p {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted);
}

.breakdown {
  margin-top: 1.4rem;
}

.breakdown h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.breakdown dl {
  margin-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.breakdown dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.breakdown dt {
  color: var(--muted);
}

.breakdown dd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-soft);
  text-align: right;
}

.total-box {
  margin-top: 1.4rem;
  padding: 1.4rem;
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  background:
    radial-gradient(circle at 80% 20%, rgba(229, 194, 124, 0.13), transparent 60%),
    rgba(229, 194, 124, 0.05);
}

.total-range {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--gold);
}

.total-sep {
  font-size: 0.72em;
  color: var(--muted);
}

.total-note {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.disclaimer {
  margin-top: 1rem;
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--muted);
}

#btn-nuevo {
  margin-top: 1rem;
  font-size: 0.78rem;
}

/* ---------- 12. Resumen ---------- */
.summary {
  position: sticky;
  top: 100px;
  padding: 1.4rem;
}

.summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.summary-head h3 {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.summary-empty {
  display: grid;
  justify-items: center;
  padding: 2rem 0.5rem 1.6rem;
  text-align: center;
}

.shelf-ghost {
  width: 92px;
  margin-bottom: 1.1rem;
  color: #34343b;
}

.shelf-ghost svg {
  width: 100%;
  height: auto;
}

.empty-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.empty-text {
  max-width: 28ch;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--muted);
}

.summary-content {
  padding-top: 1rem;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.summary-thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line-gold);
  border-radius: 10px;
  color: var(--gold);
  background: var(--gold-soft);
}

.summary-thumb svg {
  width: 22px;
  height: 22px;
}

.summary-item strong {
  display: block;
  font-size: 0.82rem;
}

.summary-item span {
  font-size: 0.7rem;
  color: var(--muted);
}

.summary-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.72rem;
}

.summary-list dt {
  color: var(--muted);
}

.summary-list dd {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text-soft);
  text-align: right;
}

.summary-total {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  background: var(--gold-soft);
}

.summary-total strong {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--gold);
}

.summary-total small {
  font-size: 0.62rem;
  color: var(--muted);
}

.summary-note {
  margin-top: 0.7rem;
  font-size: 0.63rem;
  line-height: 1.5;
  color: var(--muted);
}

.summary-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 1.3rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  color: #6f6b64;
}

.status {
  color: var(--neon);
}

.status.is-error {
  color: var(--danger);
}

/* ---------- 13. Proceso ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.process-card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 55%),
    var(--panel);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.process-card:hover {
  border-color: var(--line-gold);
  transform: translateY(-3px);
}

.process-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.process-num {
  font-size: 0.72rem;
  color: var(--gold);
}

.process-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--gold);
  background: rgba(229, 194, 124, 0.05);
}

.process-icon svg {
  width: 21px;
  height: 21px;
}

.process-card h3 {
  margin-top: 1.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.process-card p {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 14. Materiales ---------- */
.section-materials {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.materials-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.materials-copy .text-link {
  margin-top: 1.5rem;
}

.material-list {
  display: grid;
  gap: 0;
}

.material-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.material-list li:first-child {
  border-top: 1px solid var(--line);
}

.swatch {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 55%),
    var(--swatch);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.material-list div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.material-list strong {
  font-size: 0.84rem;
  font-weight: 600;
}

.material-list div span {
  font-size: 0.73rem;
  color: var(--muted);
}

.material-tag {
  margin-left: auto;
  font-size: 0.54rem;
  white-space: nowrap;
}

/* ---------- 15. Footer ---------- */
.site-footer {
  padding-top: 4rem;
  background: rgba(5, 5, 7, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  max-width: 36ch;
  margin-top: 1rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 0.3rem;
}

.footer-col h3 {
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.footer-col a,
.footer-col p {
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer-col a {
  width: fit-content;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.05em;
  color: #6f6b64;
}

/* ---------- 16. Animaciones ---------- */
@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.8; }
  70%, 100% { transform: scale(1.8); opacity: 0; }
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes scan-turn {
  to { transform: rotate(360deg); }
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-top: 4rem;
  }

  .hero-copy {
    max-width: 740px;
  }

  .hero-visual {
    justify-self: center;
    max-width: 620px;
    padding-right: 0;
  }

  .float-price {
    left: -0.5rem;
  }

  .wizard-layout {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

  .summary-empty {
    padding-bottom: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .config-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .config-heading .section-sub {
    max-width: 60ch;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .materials-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-col:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-tag {
    display: none;
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    width: 40px;
    padding: 0;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 13vw, 3.8rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .btn-quiet {
    min-height: 38px;
  }

  .float-ai {
    display: none;
  }

  .float-price {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -0.4rem auto 0;
    width: calc(100% - 1.5rem);
    border-radius: 12px;
  }

  .blueprint-foot {
    grid-template-columns: 1fr 1fr;
  }

  .blueprint-foot div:last-child {
    display: none;
  }

  .stepper {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 58px;
    padding: 0.7rem 1rem;
  }

  .step + .step {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .wizard-card {
    padding: 1.1rem;
  }

  .card-head {
    flex-direction: column;
    gap: 0.7rem;
  }

  .dropzone {
    min-height: 240px;
    padding: 1.4rem;
  }

  .dropzone-preview {
    height: 240px;
  }

  .upload-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .card-actions.split {
    grid-template-columns: 1fr;
  }

  .card-actions .btn {
    width: 100%;
  }

  .grid-3,
  .grid-2,
  .option-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .detection {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .detection-tags {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* ---------- 18. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
