:root {
  --bg: #050816;
  --panel: #0b1220;
  --panel-soft: #0e1a2e;
  --line: #20314d;
  --text: #f8fafc;
  --muted: #9fb0c8;
  --brand: #1689ff;
  --brand-2: #60a5fa;
  --ok: #22c55e;
  --radius: 18px;
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: linear-gradient(150deg, #050816 0%, #07101f 50%, #050816 100%); color: var(--text); }
button, input, select, textarea { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgba(96, 165, 250, .5); outline-offset: 2px; }

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid #182640;
  background: rgba(5, 8, 22, .94);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: auto; height: 50px; max-width: 260px; object-fit: contain; }
.brand small { color: var(--muted); font-weight: 700; }
.top-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.btn { border: 1px solid #284166; border-radius: 12px; padding: 11px 15px; background: #13213a; color: #eaf2ff; font-weight: 850; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.btn:hover { transform: translateY(-1px); border-color: #4b7fbc; }
.btn.primary { border-color: #60a5fa; background: linear-gradient(135deg, #1689ff, #2563eb); color: #fff; }
.btn.success { border-color: #22c55e; background: #0f5132; color: #fff; }
.btn.ghost { background: transparent; }

.layout { display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: 20px; width: min(1800px, 100%); margin: 0 auto; padding: 20px; }
.config-panel, .preview-shell { border: 1px solid var(--line); border-radius: 22px; background: rgba(11, 18, 32, .94); box-shadow: 0 20px 80px rgba(0, 0, 0, .3); }
.config-panel { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow: auto; padding: 18px; scrollbar-color: #315174 #081225; }
.builder-intro { padding: 2px 2px 14px; }
.panel-kicker, .preview-label { color: #77b7ff; font-size: .7rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.builder-intro h1 { margin: 5px 0 7px; font-size: 1.45rem; letter-spacing: -.025em; }
.builder-intro > p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.builder-progress { margin-top: 15px; padding: 12px; border: 1px solid #244466; border-radius: 14px; background: #081225; }
.builder-progress > div:first-child { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #bfd5eb; font-size: .76rem; font-weight: 800; }
.builder-progress strong { color: #fff; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #17263d; }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1689ff, #22c55e); transition: width .25s ease; }

.step { margin-top: 10px; border: 1px solid #1d3150; border-radius: 16px; background: #081225; overflow: clip; }
.step summary { display: flex; align-items: center; gap: 11px; padding: 13px; cursor: pointer; list-style: none; }
.step summary::-webkit-details-marker { display: none; }
.step summary::after { margin-left: auto; color: #6fb4ff; content: "+"; font-size: 1.1rem; font-weight: 950; }
.step[open] summary::after { content: "−"; }
.step summary > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #2e5d8d; border-radius: 10px; background: #0b213d; color: #75baff; font-size: .74rem; font-weight: 950; }
.step summary div { display: grid; gap: 2px; }
.step summary strong { color: #eef6ff; font-size: .88rem; }
.step summary small { color: #8194ae; font-size: .7rem; }
.step-body { padding: 2px 13px 14px; border-top: 1px solid #172942; }
.step[open] .step-body { padding-top: 13px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 11px; }
.field label, .color-grid label { color: #dbeafe; font-size: .78rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 43px; border: 1px solid #2b4164; border-radius: 11px; outline: none; background: #050d1c; color: #fff; padding: 10px 11px; }
.field textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #1689ff; box-shadow: 0 0 0 3px rgba(22, 137, 255, .16); }
.color-grid { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 8px; margin-bottom: 12px; }
.color-grid label { display: grid; gap: 6px; }
.color-grid input[type="color"] { width: 100%; height: 42px; padding: 4px; border: 1px solid #2b4164; border-radius: 10px; background: #050d1c; cursor: pointer; }
.mini-btn, .text-button { border: 1px solid #315274; background: #0d2038; color: #a9d1ff; cursor: pointer; font-weight: 800; }
.mini-btn { height: 42px; border-radius: 10px; padding: 0 10px; font-size: .73rem; }
.text-button { border: 0; background: transparent; padding: 0; font-size: .72rem; }
.recommendation { padding: 11px 12px; border: 1px solid #1e6fa9; border-radius: 13px; background: #0c253e; color: #dceeff; font-size: .79rem; line-height: 1.45; }
.section-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: #dbeafe; font-size: .78rem; font-weight: 800; }
.section-choices { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.section-choice { position: relative; cursor: pointer; }
.section-choice input { position: absolute; opacity: 0; pointer-events: none; }
.section-choice span { display: inline-flex; min-height: 34px; align-items: center; padding: 8px 10px; border: 1px solid #2c446a; border-radius: 10px; background: #07101f; color: #b8c7db; font-size: .72rem; font-weight: 800; transition: .18s; }
.section-choice input:checked + span { border-color: #1689ff; background: #11365f; color: #fff; box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .24); }
.section-choice.is-required span { padding-right: 52px; }
.section-choice small { position: absolute; top: 50%; right: 8px; color: #6fb4ff; font-size: .54rem; font-weight: 950; text-transform: uppercase; transform: translateY(-50%); pointer-events: none; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; padding: 11px; border: 1px solid #263c5e; border-radius: 13px; background: #07101f; }
.switch-row > span { color: #dbeafe; font-size: .79rem; }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 46px; }
.switch input { display: none; }
.slider { position: absolute; inset: 0; border-radius: 99px; background: #334155; cursor: pointer; }
.slider::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; content: ""; transition: .2s; }
.switch input:checked + .slider { background: #1689ff; }
.switch input:checked + .slider::after { transform: translateX(20px); }
.count-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.count-options label { padding: 9px; border: 1px solid #2c446a; border-radius: 10px; text-align: center; cursor: pointer; font-weight: 900; }
.count-options input { display: none; }
.count-options label:has(input:checked) { border-color: #60a5fa; background: #123c6c; color: #fff; }
.notice { margin-top: 7px; color: #8799b2; font-size: .7rem; line-height: 1.4; }
.footer-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9px; margin-top: 14px; }
.autosave-status { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 9px; color: #7690ad; font-size: .68rem; opacity: .65; transition: color .2s, opacity .2s; }
.autosave-status i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.autosave-status.visible { color: #a7f3d0; opacity: 1; }

.preview-shell { min-height: calc(100vh - 116px); overflow: hidden; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 16px; border-bottom: 1px solid #20314d; background: #081225; }
.preview-toolbar > div:first-child { display: grid; gap: 2px; min-width: 0; }
.preview-toolbar > div:first-child strong { overflow: hidden; color: #e6f0fb; font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.preview-controls { display: flex; align-items: center; gap: 9px; }
.device-tabs, .view-tabs { display: flex; gap: 5px; }
.device-tabs button, .view-tabs button { border: 1px solid #263c5e; border-radius: 9px; background: #0e1a2e; color: #cbd5e1; padding: 8px 10px; cursor: pointer; font-size: .72rem; font-weight: 800; }
.device-tabs button.active, .view-tabs button.active { border-color: #60a5fa; background: #123c6c; color: #fff; }
.preview-stage { min-height: 760px; overflow: auto; padding: 18px; background: repeating-linear-gradient(45deg, #07101f, #07101f 12px, #081225 12px, #081225 24px); }
.device-frame { width: 100%; max-width: 1400px; min-height: 700px; margin: auto; overflow: hidden; border-radius: 18px; background: #fff; color: #111827; box-shadow: 0 30px 100px rgba(0, 0, 0, .45); transition: max-width .3s; }
.device-frame.tablet { max-width: 820px; }
.device-frame.mobile { max-width: 390px; }
.toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: 360px; padding: 13px 16px; border: 1px solid #3d6995; border-radius: 13px; background: #0b1d35; color: #eef7ff; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); font-size: .82rem; font-weight: 800; opacity: 0; transform: translateY(14px); pointer-events: none; transition: .22s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.hidden { display: none !important; }

/* Sitio generado */
.demo-site { --p: #1689ff; --pt: #1689ff; --onp: #fff; --d: #0f172a; --l: #fff; --s: #eff6ff; --a: #22c55e; --r: 18px; --sh: 0 20px 60px rgba(15, 23, 42, .14); background: var(--l); color: var(--d); font-family: Inter, "Segoe UI", Arial, sans-serif; }
.demo-site * { box-sizing: border-box; }
.demo-nav { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(20px, 5vw, 70px); border-bottom: 1px solid color-mix(in srgb, var(--d) 10%, transparent); background: color-mix(in srgb, var(--l) 96%, transparent); backdrop-filter: blur(12px); }
.demo-brand { font-size: 1.08rem; font-weight: 950; }
.demo-brand span { color: var(--p); }
.demo-links { display: flex; gap: 18px; }
.demo-links a { color: var(--d); font-size: .8rem; font-weight: 850; text-decoration: none; }
.demo-cta { display: inline-block; border-radius: 10px; background: var(--p); color: var(--onp); padding: 11px 15px; font-weight: 900; text-decoration: none; }
.demo-cta.secondary { border: 1px solid color-mix(in srgb, var(--d) 25%, transparent); background: transparent; color: var(--d); }
.hero { display: grid; grid-template-columns: 1.12fr .88fr; min-height: 520px; align-items: center; gap: clamp(24px, 5vw, 70px); padding: 64px clamp(24px, 7vw, 90px); background: radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--p) 28%, transparent), transparent 34%), linear-gradient(135deg, var(--s), var(--l)); }
.hero h1 { margin: 10px 0 18px; font-size: clamp(2.1rem, 5vw, 4.7rem); line-height: 1; letter-spacing: -.045em; }
.hero > div > p { max-width: 720px; color: color-mix(in srgb, var(--d) 72%, white); font-size: 1.04rem; line-height: 1.65; }
.eyebrow { color: var(--pt); font-size: .69rem; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; color: color-mix(in srgb, var(--d) 72%, white); font-size: .72rem; font-weight: 850; }
.hero-card { display: grid; min-height: 350px; align-content: space-between; gap: 18px; padding: 30px; border: 1px solid color-mix(in srgb, var(--p) 40%, transparent); border-radius: var(--r); background: linear-gradient(145deg, var(--d), color-mix(in srgb, var(--d) 72%, var(--p))); color: #fff; box-shadow: var(--sh); }
.hero-card-label { color: #bfdbfe; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero-card small { display: block; margin-bottom: 5px; color: #a5b4fc; font-size: .62rem; font-weight: 900; letter-spacing: .1em; }
.hero-card h2, .hero-card p { margin: 0; }
.hero-card h2 { font-size: clamp(1.25rem, 2vw, 2rem); }
.hero-insight { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.hero-card-metric { display: flex; align-items: end; gap: 12px; color: #cbd5e1; font-size: .78rem; }
.hero-card .metric { color: var(--a); font-size: 2.7rem; font-weight: 950; line-height: .85; }
.section { padding: 58px clamp(24px, 7vw, 90px); }
.section.alt { background: var(--s); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-head h2, .section h2 { margin: 7px 0; font-size: clamp(1.75rem, 3vw, 2.75rem); letter-spacing: -.035em; }
.section-head > p { max-width: 620px; margin: 0; color: color-mix(in srgb, var(--d) 68%, white); line-height: 1.6; }
.cards, .feature-grid, .people-grid, .plans-grid, .quotes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.card, .feature-card, .person-card, .plan-card, .quotes-grid blockquote { margin: 0; padding: 21px; border: 1px solid color-mix(in srgb, var(--d) 12%, transparent); border-radius: var(--r); background: var(--l); box-shadow: 0 10px 30px rgba(15, 23, 42, .055); }
.card h3, .feature-card h3, .person-card h3, .plan-card h3 { margin: 8px 0; }
.card .price { font-size: 1.18rem; font-weight: 950; }
.status { display: inline-flex; margin-top: 12px; padding: 7px 10px; border-radius: 99px; background: color-mix(in srgb, var(--a) 16%, white); color: color-mix(in srgb, var(--a) 72%, black); font-size: .72rem; font-weight: 900; }
.feature-card > span { color: var(--pt); font-weight: 950; }
.feature-card p, .person-card p, .plan-card p { color: color-mix(in srgb, var(--d) 66%, white); font-size: .84rem; line-height: 1.5; }
.people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.person-card { display: flex; align-items: center; gap: 14px; }
.person-avatar { display: grid; width: 50px; height: 50px; flex: 0 0 50px; place-items: center; border-radius: 14px; background: var(--d); color: var(--a); font-weight: 950; }
.visual-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 14px; margin-top: 26px; }
.visual-grid article { position: relative; display: flex; min-height: 270px; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 22px; border-radius: var(--r); background: linear-gradient(145deg, var(--d), color-mix(in srgb, var(--p) 68%, var(--a))); color: #fff; }
.visual-grid article:nth-child(2) { background: linear-gradient(155deg, var(--d), color-mix(in srgb, var(--p) 52%, var(--a))); }
.visual-grid article:nth-child(3) { background: linear-gradient(125deg, var(--d), color-mix(in srgb, var(--p) 38%, var(--a))); }
.visual-grid article::before { position: absolute; width: 170px; height: 170px; right: -30px; top: -35px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 50%; content: ""; }
.visual-grid article span, .visual-grid article strong { position: relative; z-index: 1; }
.visual-grid article span { color: #cbd5e1; font-size: .72rem; }
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 26px; }
.step-card { padding: 20px; border-left: 4px solid var(--p); border-radius: 9px; background: var(--l); }
.step-card strong { color: var(--pt); }
.step-card h3 { margin: 10px 0 5px; }
.step-card p { margin: 0; color: color-mix(in srgb, var(--d) 65%, white); font-size: .8rem; line-height: 1.45; }
.plan-card { position: relative; }
.plan-card.featured { border: 2px solid var(--p); transform: translateY(-8px); }
.plan-card > small { display: inline-flex; padding: 5px 8px; border-radius: 99px; background: var(--p); color: var(--onp); font-size: .6rem; font-weight: 950; }
.plan-card > strong { color: var(--pt); font-size: .85rem; }
.info-section { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--d); color: #fff; }
.info-grid { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.info-grid span { padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 99px; color: #e2e8f0; font-size: .78rem; font-weight: 800; }
.faq-list { display: grid; gap: 10px; margin-top: 24px; }
.faq-list details { padding: 16px; border: 1px solid color-mix(in srgb, var(--d) 12%, transparent); border-radius: 13px; background: var(--l); }
.faq-list summary { cursor: pointer; font-weight: 900; }
.faq-list p { color: color-mix(in srgb, var(--d) 65%, white); line-height: 1.5; }
.quotes-grid blockquote { color: var(--d); font-size: 1rem; font-weight: 800; line-height: 1.5; }
.quotes-grid footer { margin-top: 16px; color: color-mix(in srgb, var(--d) 58%, white); font-size: .72rem; font-weight: 700; }
.contact-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; border-radius: var(--r); background: var(--d); color: #fff; }
.contact-band h2 { margin: 6px 0 8px; }
.contact-band p { margin: 0 0 5px; color: #cbd5e1; }
.contact-band small { color: #93c5fd; }
.demo-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 26px clamp(24px, 7vw, 90px); background: #050816; color: #dbeafe; font-size: .76rem; }
.demo-license { color: #93c5fd; }
.demo-badge { position: fixed; z-index: 20; right: 14px; bottom: 14px; padding: 8px 12px; border: 1px solid #1689ff; border-radius: 99px; background: #050816; color: #fff; font-size: .7rem; font-weight: 900; }

/* Panel administrativo generado */
.backoffice { --bo-primary: #1689ff; --bo-accent: #22c55e; display: grid; grid-template-columns: 225px minmax(0, 1fr); min-height: 700px; background: #f1f5f9; color: #0f172a; }
.bo-sidebar { padding: 24px 16px; background: #07101f; color: #dbeafe; }
.bo-logo { margin-bottom: 28px; font-size: 1.04rem; font-weight: 950; }
.bo-logo small { color: var(--bo-primary); }
.bo-menu { display: grid; gap: 7px; }
.bo-menu div { padding: 10px 11px; border: 1px solid transparent; border-radius: 9px; background: #0e1a2e; font-size: .76rem; }
.bo-menu .active { border-color: var(--bo-primary); background: color-mix(in srgb, var(--bo-primary) 25%, #0e1a2e); color: #fff; }
.bo-main { min-width: 0; padding: 24px; }
.bo-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.bo-header small { color: #64748b; font-weight: 800; }
.bo-header h1 { margin: 5px 0 0; font-size: clamp(1.4rem, 2.7vw, 2.1rem); }
.bo-header .btn.primary { background: var(--bo-primary); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 20px 0; }
.kpi { min-width: 0; padding: 17px; border: 1px solid #dbe3ef; border-radius: 13px; background: #fff; }
.kpi > span { display: block; overflow: hidden; color: #475569; font-size: .75rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.kpi strong { display: block; margin: 8px 0 5px; font-size: 1.75rem; }
.kpi small { color: #94a3b8; font-size: .63rem; }
.bo-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .72fr); gap: 14px; }
.table-card, .chart-card { min-width: 0; overflow: auto; padding: 16px; border: 1px solid #dbe3ef; border-radius: 14px; background: #fff; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-heading small, .chart-card > small { color: #64748b; font-size: .62rem; font-weight: 900; letter-spacing: .08em; }
.card-heading h3, .chart-card h3 { margin: 5px 0 12px; }
.card-heading > span { padding: 6px 8px; border-radius: 99px; background: #eff6ff; color: #1d4ed8; font-size: .65rem; font-weight: 900; }
.bo-table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.bo-table th, .bo-table td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; white-space: nowrap; }
.bo-table th { color: #64748b; font-size: .64rem; text-transform: uppercase; }
.bo-table td:last-child span { display: inline-flex; padding: 5px 7px; border-radius: 99px; background: #ecfdf5; color: #047857; font-size: .62rem; font-weight: 850; }
.chart-row { margin-top: 15px; }
.chart-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: #475569; font-size: .72rem; }
.bar { height: 9px; overflow: hidden; margin-top: 7px; border-radius: 99px; background: #dbeafe; }
.bar span { display: block; height: 100%; border-radius: inherit; }
.chart-card > p { margin-top: 24px; color: #64748b; font-size: .68rem; line-height: 1.45; }

/* Simulación responsive dentro del marco */
.device-frame.tablet .hero { grid-template-columns: 1fr; padding: 44px 32px; }
.device-frame.tablet .cards, .device-frame.tablet .feature-grid, .device-frame.tablet .people-grid, .device-frame.tablet .plans-grid, .device-frame.tablet .quotes-grid { grid-template-columns: repeat(2, 1fr); }
.device-frame.tablet .process { grid-template-columns: repeat(2, 1fr); }
.device-frame.tablet .visual-grid { grid-template-columns: 1fr 1fr; }
.device-frame.tablet .visual-grid article:first-child { grid-column: 1 / -1; }
.device-frame.tablet .section-head { display: block; }
.device-frame.tablet .section-head > p { margin-top: 12px; }
.device-frame.tablet .bo-grid { grid-template-columns: 1fr; }
.device-frame.tablet .kpis { grid-template-columns: repeat(2, 1fr); }
.device-frame.mobile .demo-nav { padding: 13px 15px; }
.device-frame.mobile .demo-links { display: none; }
.device-frame.mobile .demo-brand { max-width: 145px; overflow: hidden; font-size: .9rem; }
.device-frame.mobile .demo-cta { padding: 9px 10px; font-size: .72rem; }
.device-frame.mobile .hero { grid-template-columns: 1fr; min-height: auto; padding: 34px 19px; }
.device-frame.mobile .hero h1 { font-size: 2.18rem; }
.device-frame.mobile .hero-card { min-height: 280px; margin-top: 10px; }
.device-frame.mobile .section { padding: 36px 19px; }
.device-frame.mobile .section-head { display: block; }
.device-frame.mobile .section-head > p { margin-top: 10px; }
.device-frame.mobile .cards, .device-frame.mobile .feature-grid, .device-frame.mobile .people-grid, .device-frame.mobile .plans-grid, .device-frame.mobile .quotes-grid, .device-frame.mobile .process, .device-frame.mobile .visual-grid { grid-template-columns: 1fr; }
.device-frame.mobile .plan-card.featured { transform: none; }
.device-frame.mobile .info-section, .device-frame.mobile .contact-band { align-items: flex-start; flex-direction: column; }
.device-frame.mobile .info-grid { justify-content: flex-start; }
.device-frame.mobile .demo-footer { padding: 24px 19px; }
.device-frame.mobile .backoffice { grid-template-columns: 1fr; }
.device-frame.mobile .bo-sidebar { display: none; }
.device-frame.mobile .bo-main { padding: 15px; }
.device-frame.mobile .bo-header { align-items: flex-start; flex-direction: column; }
.device-frame.mobile .kpis { grid-template-columns: repeat(2, 1fr); }
.device-frame.mobile .bo-grid { grid-template-columns: 1fr; }
.device-frame.mobile .bo-table { font-size: .68rem; }
.device-frame.mobile .bo-table th:nth-child(3), .device-frame.mobile .bo-table td:nth-child(3), .device-frame.mobile .bo-table th:nth-child(4), .device-frame.mobile .bo-table td:nth-child(4) { display: none; }

@media (max-width: 1180px) {
  .top-actions .btn:first-child { display: none; }
  .layout { grid-template-columns: minmax(325px, 390px) minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .config-panel { position: relative; top: 0; max-height: none; }
  .preview-shell { min-height: auto; }
  .hero { grid-template-columns: 1fr; }
  .cards, .feature-grid, .people-grid, .plans-grid, .quotes-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .bo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .topbar { min-height: 66px; padding: 9px 13px; }
  .brand img { height: 41px; max-width: 190px; }
  .brand small { display: none; }
  .top-actions { display: none; }
  .layout { padding: 9px; }
  .grid2, .color-grid { grid-template-columns: 1fr; }
  .mini-btn { width: 100%; }
  .preview-toolbar { align-items: flex-start; flex-direction: column; }
  .preview-controls { width: 100%; align-items: flex-start; flex-direction: column; }
  .preview-stage { padding: 7px; }
  .demo-nav { padding: 13px 15px; }
  .demo-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 36px 20px; }
  .section { padding: 38px 20px; }
  .section-head { display: block; }
  .cards, .feature-grid, .people-grid, .plans-grid, .quotes-grid, .process, .visual-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .info-section, .contact-band { align-items: flex-start; flex-direction: column; }
  .backoffice { grid-template-columns: 1fr; }
  .bo-sidebar { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .bo-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
