/* ==========================================================================
   MAS3D — estilos globales
   ========================================================================== */

:root {
  --bg: #07090c;
  --bg-2: #0c1016;
  --surface: #111720;
  --surface-2: #161e29;
  --line: #222c3a;
  --text: #e8eef5;
  --muted: #8b98a9;
  --accent: #36e2f2;
  --accent-ink: #032a2e;
  --accent-soft: rgba(54, 226, 242, 0.12);
  --glow: 0 0 24px rgba(54, 226, 242, 0.45), 0 0 64px rgba(54, 226, 242, 0.18);
  --warn: #ffb020;
  --ok: #3cf0a0;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

[hidden] { display: none !important; }

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow);
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); text-shadow: 0 0 18px rgba(54, 226, 242, 0.55); }

.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { text-align: center; margin: 0 auto 56px; max-width: 760px; }
.section__head .lead { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
.btn--primary:hover { box-shadow: 0 0 32px rgba(54, 226, 242, 0.7), 0 0 90px rgba(54, 226, 242, 0.25); }
.btn--ghost { border-color: var(--line); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--accent); text-shadow: 0 0 14px rgba(54, 226, 242, 0.6); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-size: 0.95rem; transition: color .15s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.header__cta { display: flex; align-items: center; gap: 10px; }

.lang {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(54,226,242,0.16), transparent 60%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { margin-bottom: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: rgba(255,255,255,0.015); }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.stat span { font-size: 0.78rem; color: var(--muted); }

/* ---------- Visor 3D ---------- */
.viewer {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(ellipse at 50% 40%, #0f1620, #07090c 70%);
  background-blend-mode: soft-light, soft-light, normal;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.viewer__canvas { width: 100%; aspect-ratio: 4 / 3.3; position: relative; }
.viewer__canvas canvas { width: 100% !important; height: 100% !important; }
.viewer__bar {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: var(--muted); pointer-events: none;
}
.viewer__bar .dots { display: flex; gap: 6px; }
.viewer__bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.viewer__tag { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(7,9,12,0.7); }
.viewer__controls {
  display: grid;
  grid-template-columns: 1.4fr auto 1fr;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(7,9,12,0.85);
  align-items: center;
}
.viewer__controls input[type="text"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.viewer__controls input[type="text"]:focus { outline: none; border-color: var(--accent); }
.swatches { display: flex; gap: 6px; }
.swatch {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  background: var(--c); box-shadow: 0 0 10px var(--c);
}
.swatch.is-active { border-color: #fff; }
.range { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); }
.range input { width: 100%; accent-color: var(--accent); }
.viewer__fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 9vw, 6rem);
  color: var(--accent); text-shadow: var(--glow);
}

/* ---------- Franja de formatos ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); padding: 22px 0; }
.strip__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; color: var(--muted); font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; }
.strip__inner span { display: inline-flex; align-items: center; gap: 10px; }
.strip__inner span::before { content: "◆"; color: var(--accent); font-size: 0.7rem; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  padding: 28px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(54,226,242,0.35);
  border-radius: 999px;
  margin-bottom: 18px;
}
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Cards / features ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(54,226,242,0.45); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }

/* ---------- Modelos ---------- */
.models { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.model {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .2s;
}
.model:hover { border-color: rgba(54,226,242,0.45); }
.model__art { aspect-ratio: 4/3; background: radial-gradient(circle at 50% 60%, #121b26, #0a0e13); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.model__art svg { width: 62%; height: auto; }
.model__body { padding: 16px 18px 18px; }
.model__body h3 { font-size: 1.02rem; margin-bottom: 4px; }
.model__body p { color: var(--muted); font-size: 0.86rem; margin: 0; }
.pill { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-bottom: 8px; }
.pill--free { background: rgba(60,240,160,0.12); color: var(--ok); }
.pill--pro { background: rgba(255,176,32,0.14); color: var(--warn); }

/* ---------- Split (texto + visual) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; color: var(--muted); }
.checklist li::before {
  content: "";
  flex: 0 0 20px; height: 20px; margin-top: 3px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%2336e2f2' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.checklist strong { color: var(--text); font-weight: 600; }

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 0.82rem; color: var(--muted); }
.param { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.param:last-child { border-bottom: 0; }
.param b { font-family: var(--font-display); color: var(--accent); }
.bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); box-shadow: var(--glow); }

.files { display: grid; gap: 10px; margin-top: 18px; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); font-size: 0.9rem; }
.file code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
.file .ext { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.file .ext--dxf { background: rgba(255,176,32,0.14); color: var(--warn); }

/* ---------- Audiencia ---------- */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.audience .card { padding: 22px; }
.audience h3 { font-size: 1.05rem; }

/* ---------- Planes ---------- */
.billing { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin-top: 10px; }
.billing button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.billing button.is-active { background: var(--surface-2); color: var(--text); }
.billing small { color: var(--ok); font-weight: 600; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 30px 26px; }
.plan--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 80px rgba(54,226,242,0.12); position: relative; }
.plan--featured::after {
  content: "Más elegido";
  position: absolute; top: -12px; left: 26px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.plan h3 { font-size: 1.15rem; }
.plan__price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; line-height: 1; margin: 14px 0 6px; }
.plan__price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan__note { color: var(--muted); font-size: 0.88rem; min-height: 2.8em; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; font-size: 0.94rem; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--muted); }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan li.off { opacity: 0.45; }
.plan li.off::before { content: "—"; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(54,226,242,0.4); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-family: var(--font-display); font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- CTA final ---------- */
.cta {
  border: 1px solid rgba(54,226,242,0.35);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(54,226,242,0.22), transparent 60%),
    var(--surface);
}
.cta .lead { margin: 0 auto 30px; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 36px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 0.94rem; }
.footer ul a:hover { color: var(--accent); }
.footer__bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 0.85rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: color .15s, border-color .15s; }
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 30px rgba(37,211,102,0.35);
  transition: transform .15s;
}
.wa:hover { transform: scale(1.06); }
.wa svg { width: 28px; height: 28px; }

/* ---------- Cotizador ---------- */
.page-hero { padding: 70px 0 40px; text-align: center; }
.page-hero .lead { margin-inline: auto; }
.quote { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; padding-bottom: 100px; }
.quote fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px 22px 8px; margin: 0 0 18px; }
.quote legend { font-family: var(--font-display); font-weight: 600; padding: 0 8px; color: var(--accent); }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; margin-bottom: 14px; }
.field { display: grid; gap: 6px; font-size: 0.86rem; color: var(--muted); }
.field input, .field select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.summary { position: sticky; top: 92px; }
.summary .panel { padding: 26px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.94rem; }
.row span:first-child { color: var(--muted); }
.row--total { border-bottom: 0; padding-top: 18px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.row--total span:last-child { color: var(--accent); text-shadow: 0 0 18px rgba(54,226,242,0.45); }
.tech { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.tech div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg-2); }
.tech strong { display: block; font-family: var(--font-display); }
.tech span { font-size: 0.76rem; color: var(--muted); }
.disclaimer { font-size: 0.78rem; color: var(--muted); margin-top: 14px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .models { grid-template-columns: repeat(3, 1fr); }
  .audience { grid-template-columns: repeat(2, 1fr); }
}

/* El menú completo (7 enlaces + CTAs) necesita ~1100 px: por debajo pasa a hamburguesa */
@media (max-width: 1120px) {
  .nav, .header__cta .lang, .header__cta .btn--ghost { display: none; }
  .menu-toggle { display: block; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    padding: 12px 16px 20px;
    background: rgba(7,9,12,0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open a { padding: 10px 0; width: 100%; font-size: 1.05rem; }
}

@media (max-width: 960px) {
  .hero__grid, .split, .quote { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .plans { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .summary { position: static; }
  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .models { grid-template-columns: repeat(2, 1fr); }
  .models > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps, .grid-2, .audience, .fields { grid-template-columns: 1fr; }
  .viewer__controls { grid-template-columns: 1fr auto; }
  .viewer__controls .range { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta { padding: 44px 20px; }
  .header__cta .btn--primary { padding: 9px 14px; font-size: 0.85rem; }
}

/* ---------- Cotizador: mi negocio e historial ---------- */
.biz { margin-bottom: 18px; padding: 0 22px; }
.biz > summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-display); font-weight: 600; }
.biz > summary::-webkit-details-marker { display: none; }
.biz[open] > summary { border-bottom: 1px dashed var(--line); margin-bottom: 16px; }
.history { padding-bottom: 100px; }
.hist { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hist th, .hist td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.hist th { color: var(--muted); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.hist select { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; color: var(--text); }
.hist .st-aprobado { color: var(--ok); }
.hist .st-rechazado { color: #ff6b6b; }
.hist .st-vencido { color: var(--warn); }
.hist button { background: none; border: 0; color: var(--muted); cursor: pointer; }
.quote { padding-bottom: 40px; }

/* Respaldo en "Mi negocio" y aviso de envío */
.backup-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.backup-row .muted { flex: 1 1 260px; font-size: .84rem; }
.share-note { font-size: .82rem; margin: 10px 0 0; }
.hist a.open-proj { color: var(--accent); font-size: .85rem; white-space: nowrap; }

/* Indicador de la nube */
.cloud-chip { font-size: .76rem; color: var(--muted); white-space: nowrap; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.cloud-chip:hover { color: var(--text); border-color: var(--accent); }
.cloud-chip[data-phase=ok] { color: var(--ok, #3cf0a0); }
.cloud-chip[data-phase=syncing] { color: var(--accent); }
.cloud-chip[data-phase=error] { color: #ff6b6b; border-color: rgba(255,107,107,.4); }
.cloud-chip[data-phase=offline] { color: var(--warn, #ffb020); }
.cloud-chip--float { position: fixed; left: 12px; bottom: 12px; z-index: 50; background: var(--bg-2, #0c1016); }

/* Página Nube y cuenta */
.account { display: grid; gap: 18px; max-width: 860px; padding-bottom: 80px; }
.account .panel { margin: 0; }
.account details > summary { cursor: pointer; font-weight: 600; }
.account form { margin-top: 12px; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.acc-msg { margin: 12px 0 0; font-size: .9rem; min-height: 1.2em; }
.acc-msg.is-error { color: #ff6b6b; }
.acc-msg.is-ok { color: var(--ok, #3cf0a0); }
.guide ol { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.guide li { line-height: 1.5; }

/* ===================== Sitio público del taller ===================== */
.hero__points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.hero__points li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.hero__points li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .5em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.viewer__cta {
  display: block; text-align: center; padding: 12px 16px; font-weight: 600; color: var(--accent-ink, #032a2e);
  background: var(--accent); border-top: 1px solid var(--line); text-decoration: none; transition: filter .2s;
}
.viewer__cta:hover { filter: brightness(1.08); }

.model { display: flex; flex-direction: column; }
.model__body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.model__body .model__ideal { font-size: .8rem; }
.model__ideal b { color: var(--text); font-weight: 600; }
.model__cta { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: .88rem; text-decoration: none; }
.model__cta:hover { text-decoration: underline; }

.daynight { margin: 0; display: grid; gap: 12px; }
.daynight__frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1200 / 465; background: #111; }
.daynight__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.daynight__night { transition: opacity .6s ease; }
.daynight.is-day .daynight__night { opacity: 0; }
.daynight__toggle { justify-self: center; display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.daynight__toggle button { border: 0; background: none; color: var(--muted); padding: 6px 18px; border-radius: 999px; font: 600 .86rem var(--font-body); cursor: pointer; }
.daynight__toggle button.is-active { background: var(--accent); color: var(--accent-ink, #032a2e); }
.daynight figcaption { font-size: .82rem; text-align: center; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery__item { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__item figcaption { padding: 12px 14px; display: grid; gap: 2px; font-size: .9rem; }
.gallery__item figcaption span { color: var(--muted); font-size: .82rem; }

.split--contact { align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; color: var(--text); }
.contact-list li span { color: var(--muted); font-size: .86rem; padding-top: 2px; }
.contact-list a { color: var(--accent); }
.quote-form textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; color: var(--text); font: inherit; resize: vertical;
}
.quote-form textarea:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: .82rem; margin: 10px 0 0; text-align: center; }

.footer__grid--site { grid-template-columns: 1.4fr 1fr 1fr; }
.staff-link { color: var(--muted); font-size: .82rem; opacity: .7; }
.staff-link:hover { opacity: 1; color: var(--text); }

@media (max-width: 960px) {
  .hero__points { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer__grid--site { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 80px 1fr; }
}
@media (max-width: 520px) {
  .site .models { grid-template-columns: 1fr; }
  .site .models > :last-child:nth-child(odd) { grid-column: auto; }
}

/* ===================== Producción (taller.html) ===================== */
.page-hero--compact { padding: 40px 0 20px; }
.page-hero--compact h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.shop { display: grid; gap: 22px; padding-bottom: 80px; }
.shop-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.shop-stats .stat strong { font-size: 1.35rem; }
.shop-stats .stat.is-late strong { color: #ff7b7b; }
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: start; }
.board__col { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-height: 160px; }
.board__col h2 { font-size: .86rem; font-family: var(--font-body); font-weight: 600; color: var(--muted); margin: 2px 4px 12px; display: flex; justify-content: space-between; }
.board__col h2 span { color: var(--text); }
.board__col[data-col=ready] h2 { color: var(--ok, #3cf0a0); }
.board__list { display: grid; gap: 10px; }
.board__empty { color: var(--muted); font-size: .8rem; margin: 4px; }
.job { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; display: grid; gap: 4px; }
.job:hover, .job:focus-visible { border-color: var(--accent); outline: none; }
.job.is-late { border-color: rgba(255,107,107,.55); }
.job--quote { cursor: default; }
.job__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: .78rem; }
.job__top b { white-space: nowrap; }
.job__due { color: var(--muted); }
.job__due.is-late { color: #ff7b7b; font-weight: 600; }
.job h3 { font-size: .98rem; margin: 2px 0 0; overflow-wrap: anywhere; }
.job p { margin: 0; color: var(--muted); font-size: .8rem; }
.job small { color: var(--muted); font-size: .74rem; }
.job__bar { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 4px; }
.job__bar i { display: block; height: 100%; background: var(--accent); }
.job__quote-actions { display: flex; gap: 6px; margin-top: 6px; }
.job__quote-actions button { flex: 1; border: 1px solid var(--line); background: none; color: var(--text); border-radius: 8px; padding: 6px; font: 600 .76rem var(--font-body); cursor: pointer; }
.job__quote-actions [data-approve]:hover { border-color: var(--ok, #3cf0a0); color: var(--ok, #3cf0a0); }
.job__quote-actions [data-reject]:hover { border-color: #ff7b7b; color: #ff7b7b; }
.buy { width: 100%; border-collapse: collapse; }
.buy td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.buy tr:last-child td { border-bottom: 0; }

.job-dlg { width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); color: var(--text); }
.job-dlg::backdrop { background: rgba(3,5,8,.72); }
.job-dlg__head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; margin: 0; }
.job-dlg__head h2 { margin: 2px 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.job-dlg__head p { margin: 0; font-size: .88rem; }
.job-dlg__x { background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; align-self: start; padding: 6px; }
.job-dlg__body { padding: 8px 20px 20px; display: grid; gap: 16px; }
.job-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.job-meta div { display: grid; font-size: .84rem; }
.job-meta span { color: var(--muted); font-size: .76rem; }
.job-meta .is-late b { color: #ff7b7b; }
.job-meta a { color: var(--accent); }
.job-tasks { display: grid; gap: 12px; }
.job-tasks fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 0; }
.job-tasks legend { color: var(--muted); font-size: .76rem; padding: 0 6px; }
.task { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 6px 0; cursor: pointer; }
.task input { width: 18px; height: 18px; accent-color: var(--accent); }
.task small { color: var(--muted); font-size: .76rem; }
.task.is-done span { color: var(--muted); text-decoration: line-through; }
.job-dlg textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); font: inherit; resize: vertical; }
.job-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.job-stage { min-width: 190px; }
.job-actions [hidden] { display: none; }

@media (max-width: 1100px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .board, .shop-stats { grid-template-columns: 1fr 1fr; }
  .job-meta { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .board { grid-template-columns: 1fr; }
}

/* Rentabilidad */
.job-costs { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.job-costs > summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.job-costs[hidden] { display: none; }
.job-costs__hint { font-size: .8rem; margin: 8px 0 12px; }
.job-costs .fields input { width: 100%; }
.profit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin-top: 4px; }
.profit div, .profit-sum div { display: grid; font-size: .84rem; }
.profit span, .profit-sum span { color: var(--muted); font-size: .76rem; }
.is-ok { color: var(--ok, #3cf0a0); }
td.is-late, b.is-late { color: #ff7b7b; }
.profit-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.profit-sum b { font-size: 1.2rem; }
.profit-sum small { color: var(--muted); font-size: .76rem; }
.tips { margin: 0 0 14px; padding: 12px 14px 12px 32px; border: 1px solid rgba(255,176,32,.35); background: rgba(255,176,32,.06); border-radius: 12px; display: grid; gap: 6px; font-size: .9rem; }
.tips-ok { color: var(--ok, #3cf0a0); margin: 0 0 12px; }
.profit-table th { text-align: left; font-size: .76rem; color: var(--muted); font-weight: 500; padding: 6px; border-bottom: 1px solid var(--line); }
.profit-table tbody tr { cursor: pointer; }
.profit-table tbody tr:hover td { background: rgba(255,255,255,.02); }
@media (max-width: 640px) { .profit-sum, .profit { grid-template-columns: 1fr; } }

/* Stock */
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.shop-grid .panel { margin: 0; }
.buy th { text-align: left; font-size: .76rem; color: var(--muted); font-weight: 500; padding: 6px; border-bottom: 1px solid var(--line); }
.stock-form { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.stock-form [hidden] { display: none; }
.stock-table td { vertical-align: middle; }
.stock-table tr.is-low .stock-qty b { color: #ff7b7b; }
.stock-qty { white-space: nowrap; text-align: right; }
.stock-ops { white-space: nowrap; text-align: right; }
.stock-ops button { border: 1px solid var(--line); background: none; color: var(--text); border-radius: 8px; min-width: 30px; padding: 4px 8px; margin-left: 4px; font: 600 .8rem var(--font-body); cursor: pointer; }
.stock-ops button:hover { border-color: var(--accent); }
.stock-ops [data-op=del]:hover { border-color: #ff7b7b; color: #ff7b7b; }
.swatch-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line); margin-right: 8px; vertical-align: -1px; }
.stock-alert { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,107,107,.4); background: rgba(255,107,107,.07); color: #ffb3b3; font-size: .86rem; }
.job-consume { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: grid; gap: 8px; }
.job-consume[hidden] { display: none; }
.job-consume__head { font-size: .92rem; }
.consume-row { display: grid; grid-template-columns: 120px 1fr 90px auto; gap: 8px; align-items: center; font-size: .86rem; }
.consume-row select, .consume-row input { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: var(--text); font: inherit; min-width: 0; }
@media (max-width: 900px) { .shop-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .consume-row { grid-template-columns: 1fr 1fr; } .stock-ops button[data-op=count] { display: none; } }
