/* precio3d.com — 11/10/2026 */
:root {
  --bg: #f4f2ed;
  --bg2: #ebe8e0;
  --surface: #ffffff;
  --surface2: #f8f7f3;
  --line: #e2ded4;
  --ink: #16181d;
  --muted: #5a606b;
  --accent: #c94a0c;
  --accent-ink: #b0400a;
  --accent-soft: #fff0e6;
  --teal: #0a7a6d;
  --dot: rgba(22, 24, 29, .07);
  --shadow: 0 1px 2px rgba(22, 24, 29, .05), 0 12px 32px -12px rgba(22, 24, 29, .16);
  --radius: 18px;
  --c-mat: #f97316;
  --c-luz: #eab308;
  --c-des: #3b82f6;
  --c-fal: #f43f5e;
  --c-mo: #8b5cf6;
  --c-com: #64748b;
  --c-ben: #16a34a;
  --c-iva: #94a3b8;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f12;
    --bg2: #12151a;
    --surface: #171a20;
    --surface2: #1d2128;
    --line: #2a2f38;
    --ink: #eceef1;
    --muted: #a0a7b2;
    --accent: #ff7a2f;
    --accent-ink: #ff9a5c;
    --accent-soft: #2a1a10;
    --teal: #2dd4bf;
    --dot: rgba(255, 255, 255, .06);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
    --c-com: #94a3b8;
    --c-iva: #cbd5e1;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  overflow-x: hidden;
}
a { color: var(--accent-ink); }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.logo b { color: var(--accent); }
.logo img { border-radius: 8px; }
.header-nav { display: flex; gap: 4px; }
.header-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.header-nav a:hover { color: var(--ink); background: var(--surface); }
.header-nav .nav-pro { color: var(--accent-ink); }
@media (max-width: 720px) { .header-nav a:not(.nav-pro) { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 8px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 0%, transparent); } }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
.hero h1 .hl { background: linear-gradient(100deg, var(--accent) 10%, #f59e0b 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; padding: 0; list-style: none; }
.hero-points li { font-size: .88rem; font-weight: 500; background: var(--surface); border: 1px solid var(--line); padding: 7px 12px; border-radius: 10px; }
.hero-points li span { color: var(--teal); margin-right: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .98rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 12px 18px; border-radius: 12px; cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #1a0d05; } }

/* Impresora animada */
.printer { position: relative; background: linear-gradient(160deg, #1a1d23, #0d0f13); border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; aspect-ratio: 1 / .92; color: #e9ebef; }
.printer canvas { width: 100%; height: 100%; }
.printer-hud { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: .74rem; pointer-events: none; }
.hud-box { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 6px 10px; backdrop-filter: blur(6px); }
.hud-box small { display: block; color: #9aa1ad; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }
.hud-box strong { font-weight: 700; color: #fff; }
.hud-price { position: absolute; right: 14px; bottom: 14px; text-align: right; font-family: var(--mono); pointer-events: none; }
.hud-price small { display: block; color: #9aa1ad; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.hud-price strong { font-size: 1.7rem; color: #ffb37a; text-shadow: 0 0 22px rgba(255, 122, 47, .45); }
.hud-progress { position: absolute; left: 14px; bottom: 18px; width: 38%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hud-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff7a2f, #ffcf5a); border-radius: 6px; }
.hud-caption { position: absolute; left: 14px; bottom: 30px; font-size: .72rem; color: #9aa1ad; font-family: var(--mono); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .printer { aspect-ratio: 1 / .78; max-width: 560px; }
}

/* ---------- Calculadora ---------- */
.calc-section { padding: 36px 0 20px; scroll-margin-top: 70px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px; align-items: start; }
.steps { display: grid; gap: 16px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; min-width: 0; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-n { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: .85rem; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.step-head h2 { font-size: 1.15rem; margin: 0; }
.step-head p { margin: 0; font-size: .85rem; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: .82rem; font-weight: 600; color: var(--muted); }
.input { position: relative; display: flex; align-items: center; }
.input input, .field > input[type=text] { width: 100%; font: inherit; font-family: var(--mono); font-size: 1rem; color: var(--ink); background: var(--surface2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 44px 11px 12px; outline: none; transition: border-color .12s, box-shadow .12s; -moz-appearance: textfield; }
.field > input[type=text] { font-family: var(--font); padding-right: 12px; }
.input input::-webkit-outer-spin-button, .input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input input:focus, .field > input[type=text]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.input .u { position: absolute; right: 12px; font-size: .78rem; color: var(--muted); pointer-events: none; font-family: var(--mono); }
.hint { font-size: .78rem; color: var(--muted); margin: 0; }
.hint a { font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface2); cursor: pointer; transition: all .12s; user-select: none; }
.chip span:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.chip i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.chip small { font-weight: 500; opacity: .75; font-family: var(--mono); font-size: .75rem; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 7px 14px; border-radius: 9px; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }

/* Slider de beneficio */
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--accent); height: 28px; }
.range-row .input { width: 104px; flex: none; }

/* Resultado */
.result { position: sticky; top: 80px; display: grid; gap: 14px; }
.result-main { position: relative; overflow: hidden; background: linear-gradient(150deg, #1b1f26 0%, #101216 100%); color: #eef0f3; border: 0; padding: 24px; }
.result-main::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(255, 122, 47, .35), transparent 65%); pointer-events: none; }
.result-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #a9b0bb; font-weight: 600; }
.price { font-family: var(--mono); font-weight: 700; font-size: clamp(2.6rem, 7vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 4px; color: #fff; }
.price small { font-size: .38em; color: #ffb37a; letter-spacing: 0; margin-left: 4px; }
.result-sub { color: #c4cad3; font-size: .92rem; margin: 0; }
.result-sub strong { color: #fff; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.kpi { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; }
.kpi small { display: block; color: #a9b0bb; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.kpi strong { font-family: var(--mono); font-size: 1.1rem; color: #fff; }
.kpi.good strong { color: #6ee7a0; }
.kpi.warn strong { color: #ffb37a; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
.result-main .btn { white-space: nowrap; font-size: .92rem; padding: 12px 10px; border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08); color: #fff; }
.result-main .btn-primary { background: #ff7a2f; border-color: #ff7a2f; color: #1a0d05; }
.result-main .btn-primary:hover { background: #ff8c4a; }

.bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--surface2); margin: 4px 0 16px; }
.bar i { display: block; height: 100%; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.bar i + i { box-shadow: inset 2px 0 0 var(--surface); }
.breakdown { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.breakdown li { display: grid; grid-template-columns: 14px 1fr auto auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.breakdown li:last-child { border-bottom: 0; }
.breakdown .dot { width: 12px; height: 12px; border-radius: 4px; }
.breakdown .v { font-family: var(--mono); font-weight: 600; text-align: right; }
.breakdown .p { font-family: var(--mono); font-size: .76rem; color: var(--muted); width: 3.6em; text-align: right; }
.breakdown li.total { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 4px; padding-top: 10px; font-weight: 700; }
.breakdown-title { display: flex; justify-content: space-between; align-items: baseline; }
.breakdown-title h3 { font-size: 1rem; margin: 0; }
.breakdown-title span { font-size: .78rem; color: var(--muted); }
.floor-note { font-size: .85rem; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.floor-note strong { color: var(--accent-ink); font-family: var(--mono); }

.result-main .bar { position: relative; z-index: 1; height: 10px; margin: 14px 0 0; background: rgba(255, 255, 255, .08); }
.result-main .bar i + i { box-shadow: inset 2px 0 0 #171a20; }
.analysis { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.analysis .card { display: flex; flex-direction: column; }
.donut-wrap { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 14px; }
.donut svg { width: 100%; height: auto; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 26; transition: stroke-dasharray .5s cubic-bezier(.2, .8, .2, 1), stroke-dashoffset .5s cubic-bezier(.2, .8, .2, 1); }
.donut circle.track { stroke: var(--surface2); }
.donut { position: relative; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center strong { font-family: var(--mono); font-size: 1.35rem; letter-spacing: -.02em; }
.donut-center small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.analysis .floor-note { margin-top: auto; }
.analysis .donut-wrap + .floor-note { margin-top: 16px; }
@media (max-width: 960px) { .analysis { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .donut-wrap { grid-template-columns: 1fr; } .donut { max-width: 200px; margin: 0 auto; } }
.vol { margin: 14px 0 8px; flex: 1; display: flex; align-items: flex-end; }
.vol svg { width: 100%; height: auto; overflow: visible; }
.vol .vb { fill: color-mix(in srgb, var(--accent) 22%, var(--surface2)); transition: all .3s; }
.vol .vb.cur { fill: var(--accent); }
.vol text { font-family: var(--mono); text-anchor: middle; font-size: 10.5px; fill: var(--muted); }
.vol .vt { font-weight: 700; fill: var(--ink); font-size: 10px; }
.vol .cur { fill: var(--accent-ink); }
.vol rect.cur { fill: var(--accent); }

@media (max-width: 960px) {
  .calc-grid { grid-template-columns: 1fr; }
  .result { position: static; }
}

/* Barra fija en móvil */
.mini { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 10px; background: #14171c; color: #fff; border-radius: 14px; padding: 10px 12px 10px 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transition: transform .25s, opacity .25s; }
.mini small { display: block; color: #a9b0bb; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.mini strong { font-family: var(--mono); font-size: 1.25rem; }
.mini a { background: #ff7a2f; color: #1a0d05; text-decoration: none; font-weight: 700; font-size: .85rem; padding: 9px 12px; border-radius: 10px; }
.mini.off { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (max-width: 960px) { .mini { display: flex; } }

/* Hueco de publicidad: no ocupa sitio hasta que haya anuncio */
.ad-slot { margin: 26px auto; text-align: center; min-height: 0; }
.ad-slot:empty { display: none; }

/* ---------- Secciones ---------- */
.section { padding: 56px 0 8px; scroll-margin-top: 70px; }
.section-head { max-width: 680px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.formula-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .formula-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .formula-grid { grid-template-columns: 1fr; } }
.formula { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; position: relative; overflow: hidden; }
.formula::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--accent)); }
.formula h3 { font-size: 1rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.formula code { display: block; font-family: var(--mono); font-size: .82rem; background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 8px 0; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.formula p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Promo QR3D */
.promo { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: linear-gradient(120deg, #101014, #1d1a24); color: #ecebe7; border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); }
.promo h3 { margin: 0 0 4px; font-size: 1.2rem; }
.promo p { margin: 0; color: #b9b8c2; font-size: .95rem; }
.promo .btn { background: #ff7a45; border-color: #ff7a45; color: #1a0d05; white-space: nowrap; }
.promo-qr { width: 64px; height: 64px; }
@media (max-width: 640px) { .promo { grid-template-columns: 1fr; text-align: left; } .promo-qr { width: 52px; height: 52px; } }

/* Pro */
.pro { position: relative; border-radius: 26px; padding: 34px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(500px 260px at 0% 100%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 70%); pointer-events: none; }
.pro > * { position: relative; }
.badge-soon { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); margin-bottom: 14px; }
.pro h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.pro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
@media (max-width: 960px) { .pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pro-grid { grid-template-columns: 1fr; } .pro { padding: 24px 18px; } }
.pro-item { background: var(--surface2); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.pro-item .ico { font-size: 1.35rem; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 12px; }
.pro-item h3 { font-size: 1rem; margin-bottom: 4px; }
.pro-item p { font-size: .88rem; color: var(--muted); margin: 0; }
.pro-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pro-cta p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Lista de espera Pro */
.waitlist { background: var(--surface2); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.waitlist h3 { font-size: 1.05rem; margin-bottom: 12px; }
.wl-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.waitlist input[type=email], .waitlist select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; outline: none; }
.waitlist input[type=email]:focus, .waitlist select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.wl-check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-top: 12px; }
.wl-check input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.wl-msg { margin: 10px 0 0; font-weight: 600; min-height: 1.2em; }
.wl-msg.ok { color: var(--teal); }
.wl-msg.err { color: #d4351c; }
@media (prefers-color-scheme: dark) { .wl-msg.err { color: #ff8a7a; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 700px) { .wl-row { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.04rem; padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 16px; color: var(--ink); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--bg2); padding: 28px 0 90px; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-nav a, .red-webs a { color: var(--muted); }
.site-footer p { margin: 0; }

/* Guías */
.crumbs { font-size: .85rem; color: var(--muted); margin: 28px 0 14px; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.article .lead { margin-bottom: 1.4em; }
.article h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 1.8em; }
.article h3 { font-size: 1.1rem; margin-top: 1.4em; }
.article p, .article li { font-size: 1.04rem; }
.article li { margin-bottom: .4em; }
.meta-line { font-size: .85rem; color: var(--muted); margin: -4px 0 22px; }
.tldr { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 16px 18px; margin: 0 0 26px; }
.tldr .tl { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin-bottom: 4px; }
.tldr p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface2); }
.tbl td.n, .tbl th.n { text-align: right; font-family: var(--mono); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.hl td { font-weight: 700; background: var(--accent-soft); }
.example { background: linear-gradient(150deg, #1b1f26, #101216); color: #e9ebef; border-radius: 20px; padding: 22px; margin: 22px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.example h3 { margin: 0 0 6px; color: #fff; font-size: 1.1rem; }
.example p { margin: 0; color: #c4cad3; font-size: .95rem; }
.example .big { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: #ffb37a; display: block; text-align: right; }
.example .btn { background: #ff7a2f; border-color: #ff7a2f; color: #1a0d05; margin-top: 8px; }
@media (max-width: 600px) { .example { grid-template-columns: 1fr; } .example .big { text-align: left; } }
.callout { background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: .96rem; margin: 18px 0; }
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .guides { grid-template-columns: 1fr; } }
.guide-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s, border-color .12s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.guide-card .gi { font-size: 1.5rem; }
.guide-card strong { font-size: 1.02rem; line-height: 1.3; }
.guide-card span { font-size: .88rem; color: var(--muted); }
.cta-band { margin: 34px 0 0; padding: 24px; border-radius: 20px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cta-band p { margin: 0; font-weight: 600; font-size: 1.05rem; }

/* Legal */
.legal { padding-top: 36px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }

/* Diálogo presupuesto */
dialog.dlg { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; width: min(440px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px rgba(0, 0, 0, .35); }
dialog.dlg::backdrop { background: rgba(10, 12, 15, .55); backdrop-filter: blur(3px); }
.dlg h2 { font-size: 1.3rem; }
.dlg form { display: grid; gap: 14px; }
.dlg .field > input { font-family: var(--font); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Cookies */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; max-width: 560px; margin: 0 auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); font-size: .9rem; }
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner-actions { display: flex; justify-content: flex-end; gap: 8px; }
.cookie-btn { font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); color: var(--ink); cursor: pointer; }
.cookie-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .cookie-btn-primary { color: #1a0d05; } }

/* Presupuesto imprimible: solo al imprimir */
#presupuesto { display: none; }
@media print {
  @page { size: A4; margin: 16mm; }
  body { background: #fff !important; color: #111 !important; }
  body > *:not(#presupuesto) { display: none !important; }
  #presupuesto { display: block !important; font-family: var(--font); color: #111; font-size: 11pt; }
  .q-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #e8590c; padding-bottom: 12px; margin-bottom: 18px; }
  .q-head h1 { font-size: 22pt; margin: 0; }
  .q-head .q-title { text-align: right; }
  .q-head .q-title strong { display: block; font-size: 16pt; letter-spacing: .12em; color: #e8590c; }
  .q-meta { display: flex; justify-content: space-between; margin-bottom: 18px; gap: 20px; }
  .q-meta div { font-size: 10pt; }
  .q-meta b { display: block; font-size: 8pt; text-transform: uppercase; letter-spacing: .08em; color: #666; }
  .q-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
  .q-table th { text-align: left; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .06em; color: #555; border-bottom: 1px solid #bbb; padding: 6px 4px; }
  .q-table td { padding: 10px 4px; border-bottom: 1px solid #e5e5e5; }
  .q-table .r { text-align: right; font-family: var(--mono); }
  .q-totals { margin-left: auto; width: 270px; }
  .q-totals div { display: flex; justify-content: space-between; padding: 5px 0; font-family: var(--mono); }
  .q-totals .q-total { border-top: 2px solid #111; margin-top: 4px; padding-top: 8px; font-size: 14pt; font-weight: 700; }
  .q-foot { margin-top: 40px; font-size: 8.5pt; color: #777; border-top: 1px solid #ddd; padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* autor:start (generado por _shared/autor.js) */
.autor-wrap{max-width:760px;margin:0 auto;padding:0 1.25rem}
.autor{display:flex;gap:1rem;align-items:flex-start;margin:2.2rem 0 1.2rem;padding:1.1rem 1.2rem;background:var(--surface);border:1px solid var(--line);border-left:5px solid #F2B134;border-radius:16px;text-align:left}
.autor-av,.me-av{flex:0 0 auto;border-radius:50%;display:grid;place-items:center;font-weight:800;color:#10231E;background:radial-gradient(circle at 30% 25%,#FFE3A3 0%,#F2B134 55%,#D9921A 100%)}
.autor-av{width:52px;height:52px;font-size:1.15rem}
.autor p{margin:0}.autor .autor-by{font-weight:700;color:var(--ink)}.autor .autor-by span{font-weight:500;color:var(--muted)}
.autor .autor-txt{color:var(--muted);margin:.3rem 0 .35rem}.autor .autor-more{font-size:.88rem}.autor a{color:var(--accent-ink);font-weight:700}
.me-hero{display:flex;align-items:center;gap:1.5rem;margin:.5rem 0 1.5rem;padding:1.6rem;border-radius:20px;background:var(--surface);border:1px solid var(--line)}
.me-av{width:108px;height:108px;font-size:2.4rem;letter-spacing:-.04em;box-shadow:0 14px 30px -14px rgba(0,0,0,.45)}
.me-eyebrow{display:inline-block;font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent-ink);background:var(--accent-soft);padding:.25rem .7rem;border-radius:999px;margin-bottom:.6rem}
.me-hero h1{margin:0 0 .4rem}.me-hero p{margin:0 0 .8rem;color:var(--muted)}
.me-chips{list-style:none;padding:0!important;margin:0;display:flex;flex-wrap:wrap;gap:.45rem}.me-chips li{margin:0!important;font-size:.84rem;font-weight:600;color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:.28rem .75rem}
.me-src{list-style:none;padding:0!important;margin:.8rem 0 1rem;border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden}
.me-src li{display:flex;flex-wrap:wrap;gap:.2rem 1rem;justify-content:space-between;margin:0!important;padding:.75rem 1.1rem;border-top:1px solid var(--line)}.me-src li:first-child{border-top:0}
.me-src strong{color:var(--ink)}.me-src span{color:var(--muted);font-size:.92rem}
.me-contact{margin:2rem 0 1rem;padding:1.2rem 1.3rem;border-radius:16px;background:#FFF3D6;border:1px solid #F5D98F}
.me-contact strong{display:block;font-size:1.1rem;color:#5A3B00;margin-bottom:.3rem}.me-contact p{margin:0;color:#5A3B00!important}.me-contact a{color:#5A3B00;font-weight:700}
.me-page{max-width:760px!important;margin-left:auto!important;margin-right:auto!important;padding-top:1.5rem;padding-bottom:2rem}
.me-page>p{margin:0 0 1rem;line-height:1.65}.me-page>h2{margin:2.2rem 0 .7rem;line-height:1.25}.me-page .me-hero p{line-height:1.6}
@media (max-width:640px){.me-hero{flex-direction:column;align-items:flex-start;padding:1.2rem}.me-av{width:84px;height:84px;font-size:1.9rem}}
/* autor:end */
