:root {
    --black: #050505;
    --black-soft: #11130f;
    --neon: #9bea00;
    --neon-dark: #6da800;
    --neon-soft: #efffcf;
    --ink: #181b15;
    --muted: #73796b;
    --line: #e2e7da;
    --bg: #f6f8f2;
    --orange: #f59e0b;
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); display: flex; min-height: 100vh; }
aside { width: 260px; background: var(--black); color: #eef5e5; padding: 22px 15px; position: fixed; inset: 0 auto 0 0; border-right: 1px solid #26300f; overflow-y: auto; overscroll-behavior: contain; }
.brand { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; padding: 0 8px 24px; }
.brand-logo { width: 52px; height: 52px; padding: 4px; border-radius: 50%; background: #000; object-fit: contain; flex: 0 0 auto; }
.brand b { font-size: 17px; letter-spacing: -.2px; }
.brand small, .plan { background: var(--neon); color: var(--black); font-size: 10px; font-weight: 900; padding: 4px 7px; border-radius: 99px; }
.brand small { margin-left: auto; }
nav p { font-size: 10px; letter-spacing: 1.6px; color: #77835f; margin: 20px 12px 8px; }
nav a { display: block; color: #cbd4bb; text-decoration: none; padding: 11px 13px; margin: 3px 0; border-radius: 9px; font-size: 14px; border-left: 3px solid transparent; }
nav a:hover, nav a.on { background: #1a1f12; color: var(--neon); border-left-color: var(--neon); }
main { margin-left: 260px; width: calc(100% - 260px); }
header { height: 82px; background: var(--black); color: white; border-bottom: 3px solid var(--neon); display: flex; align-items: center; padding: 0 35px; gap: 14px; }
header div { display: flex; flex-direction: column; }
header b { font-size: 18px; }
header small { color: #aeb99d; margin-top: 3px; }
.plan { margin-left: auto; }
.menu { display: none; }
.master-body { display: block; min-width: 0; overflow-x: clip; }
.master-header { position: sticky; top: 0; z-index: 20; width: 100%; min-height: 82px; height: auto; padding: 14px clamp(18px, 4vw, 48px); }
.master-brand { display: flex; align-items: center; gap: 12px; min-width: max-content; color: white; text-decoration: none; }
.master-brand > span { display: flex; flex-direction: column; }
.master-brand b { font-size: 18px; }
.master-brand small { color: #aeb99d; }
.master-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
.master-actions form { margin: 0; }
.master-user { color: white; white-space: nowrap; margin-left: 4px; }
.master-menu { display: none; margin-left: auto; border: 1px solid #394329; border-radius: 8px; background: #171b12; color: var(--neon); padding: 8px 11px; font-size: 20px; cursor: pointer; }
.content { width: 100%; min-width: 0; padding: 28px 35px; max-width: 1450px; margin: auto; }
.flash, .errors { padding: 13px 16px; border-radius: 10px; margin-bottom: 18px; background: var(--neon-soft); color: #365800; border-left: 4px solid var(--neon-dark); }
.errors { background: #fee2e2; color: #991b1b; border-left-color: #dc2626; }
.pagebar { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.pagebar h1 { margin: 0; font-size: 25px; }
.pagebar p { color: var(--muted); margin: 5px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--black); border-radius: 9px; padding: 10px 15px; background: var(--black); color: var(--neon); text-decoration: none; font-weight: 800; cursor: pointer; font-size: 14px; }
.btn:hover { background: var(--neon); color: var(--black); border-color: var(--neon-dark); }
.btn.light { background: white; color: var(--ink); border: 1px solid var(--line); }
header .btn.light { background: #181a15; color: white; border-color: #343a29; }
.btn.orange { background: var(--neon); color: var(--black); border-color: var(--neon-dark); }
.btn.sm { padding: 7px 10px; font-size: 12px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 22px; }
.card, .panel { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 19px; box-shadow: 0 2px 8px #1a240b0a; }
.card { border-top: 3px solid var(--neon); }
.card small { display: block; color: var(--muted); font-weight: 600; }
.card strong { font-size: 25px; display: block; margin-top: 9px; }
.card em, a { color: var(--neon-dark); }
.card em { font-style: normal; font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.panel { margin-bottom: 18px; }
.panel h2 { font-size: 16px; margin: 0 0 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; padding: 10px; border-bottom: 2px solid var(--neon); }
td { padding: 12px 10px; border-bottom: 1px solid #edf0e8; }
tr:last-child td { border: 0; }
.money { font-variant-numeric: tabular-nums; font-weight: 700; }
.badge { display: inline-block; border-radius: 99px; padding: 5px 8px; background: var(--neon-soft); color: #456c00; font-size: 11px; font-weight: 900; }
.badge.warn { background: #fff3dd; color: #a35408; }
.badge.gray { background: #eef0e9; color: #62685a; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; color: #555d49; }
.field-hint { color: var(--muted); font-size: 11px; line-height: 1.4; }
input, select, textarea { width: 100%; border: 1px solid #dce2d4; border-radius: 9px; background: white; padding: 10px 11px; font: inherit; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid #dfff9e; border-color: var(--neon-dark); }
.item-row { display: grid; grid-template-columns: 2fr .7fr 1fr 1fr auto; gap: 10px; align-items: end; border-top: 1px solid var(--line); padding: 13px 0; }
.muted { color: var(--muted); }
.big-number { font-size: 28px; font-weight: 800; }
.alert { border-left: 3px solid var(--neon-dark); padding: 10px 12px; background: #f8ffe8; margin: 8px 0; font-size: 13px; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.summary div { background: #f8faF4; border-radius: 9px; padding: 13px; border-bottom: 2px solid var(--neon); }
.summary span { display: block; color: var(--muted); font-size: 11px; }
.summary strong { display: block; margin-top: 5px; }
.negative { color: #c2410c; }
.positive { color: #5f9000; }
.costing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.step-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.step-title > span { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--black); color: var(--neon); font-weight: 900; }
.step-title h2 { margin: 0 0 3px; }
.step-title small { color: var(--muted); }
.costing-result { position: sticky; top: 20px; width: auto; inset: auto; padding: 24px; border-radius: 14px; border-top: 5px solid var(--neon); background: var(--black); color: white; }
.costing-result h2 { margin: 8px 0 0; font-size: 16px; color: #bdc7af; }
.costing-result > strong { display: block; color: var(--neon); font-size: 36px; margin: 4px 0 20px; }
.costing-result > .btn { width: 100%; margin: 18px 0 10px; }
.costing-result > small { color: #929d82; display: block; text-align: center; line-height: 1.4; }
.result-lines > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #292e22; font-size: 13px; }
.result-lines span { color: #aeb99d; }
.result-lines .result-total { border-bottom: 2px solid var(--neon); padding: 14px 0; }
.result-lines .result-total b { color: var(--neon); }
.costing-history { margin-top: 4px; }
.quota-alert { display: block; margin-bottom: 18px; }
.pro-callout { border-top: 4px solid var(--neon); }
.pro-callout .plan { display: inline-block; margin-bottom: 14px; }
.pro-callout ul { padding-left: 20px; line-height: 1.9; }
.btn:disabled { cursor: not-allowed; opacity: .5; }
.master-cards { grid-template-columns: repeat(5, 1fr); }
.master-grid { grid-template-columns: minmax(0, 2fr) minmax(280px, .7fr); }
.sitemap-help { border-left: 4px solid var(--neon-dark); }
.sitemap-help p, .sitemap-setting p { margin: 0; color: var(--muted); }
.sitemap-settings { max-width: 1050px; }
.sitemap-setting { padding: 0; overflow: hidden; }
.sitemap-setting.recommended { border-color: var(--neon-dark); box-shadow: 0 0 0 2px #dfff9e; }
.sitemap-setting-copy { padding: 19px; }
.sitemap-setting h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.sitemap-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; margin-top: 16px; }
.sitemap-url-row input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #f8faf4; }
.sitemap-copy-status { min-height: 20px; color: #456c00; font-size: 13px; font-weight: 700; }
.billing-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.plan-editor .panel-head h2 { margin: 10px 0 0; font-size: 22px; }
.feature-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.feature-checks label { border: 1px solid var(--line); border-radius: 8px; padding: 9px; font-size: 13px; }
.feature-checks input { width: auto; }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 760px; }
.field-link { font-size: 11px; font-weight: 700; text-decoration: none; align-self: flex-end; }
.pricing-choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pricing-choice > label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; }
.pricing-choice > label:has(input:checked) { border-color: var(--neon-dark); background: var(--neon-soft); box-shadow: 0 0 0 2px #dfff9e; }
.pricing-choice input { width: auto; margin-top: 3px; }
.pricing-choice span, .pricing-choice small { display: block; }
.pricing-choice small { color: var(--muted); margin-top: 4px; }
.category-list form + form { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 15px; }
.category-row { grid-template-columns: 2fr .6fr .8fr auto; align-items: end; }
.category-action { min-width: 90px; }
.filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)); gap: 12px; align-items: end; margin-bottom: 18px; }
.form-page { max-width: 960px; margin-inline: auto; }
.item-modal { width: min(92vw, 680px); max-height: 90vh; padding: 0; border: 0; border-radius: 15px; color: var(--ink); box-shadow: 0 28px 80px #0008; }
.item-modal::backdrop { background: #050505b8; backdrop-filter: blur(2px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 22px; border-bottom: 3px solid var(--neon); background: var(--black); color: white; }
.modal-head h2 { margin: 4px 0 0; font-size: 21px; }
.modal-close { border: 1px solid #3b422f; border-radius: 8px; background: #181b15; color: white; width: 36px; height: 36px; font-size: 22px; cursor: pointer; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px; border-top: 1px solid var(--line); background: #f8faf4; }
.inline-error { margin: 14px 0 0; }
.item-grid td:first-child { min-width: 220px; }
.item-grid .actions { flex-wrap: nowrap; }
.item-search { max-width: 280px; }
.check-line { display: flex; align-items: center; gap: 9px; width: fit-content; margin: 0 0 15px; font-size: 13px; font-weight: 700; }
.check-line input { width: auto; }
.conference-grid { min-width: 1120px !important; }
.conference-grid th:not(:first-child), .conference-grid td:not(:first-child) { text-align: center; }
.conference-grid td:first-child { min-width: 190px; }
.compact-input { width: 76px; padding: 9px 7px; text-align: center; }
.compact-money { width: 118px; padding: 9px 7px; text-align: right; }
.expected-value, .sold-value, .final-value { display: inline-grid; place-items: center; min-width: 38px; min-height: 35px; border-radius: 8px; background: var(--neon-soft); color: #456c00; font-size: 16px; }
.expected-value { background: #eef0e9; color: var(--ink); }
.invalid-row { background: #fff1f1; }
.invalid-row .sold-value, .invalid-row .final-value { background: #fee2e2; color: #991b1b; }
.conference-totals { margin-top: 2px; }
.receipt-options { grid-template-columns: repeat(3, 1fr); }
.final-confirmation { border-top: 4px solid var(--neon); }
body:has(.item-modal[open]) { overflow: hidden; }
.print-only { display: none; }
.auth-shell { background: radial-gradient(circle at 50% 0%, #29350e 0, var(--black) 46%); min-height: 100vh; display: grid; place-items: center; }
.auth-box { width: min(92vw, 520px); }
.auth-box .brand { justify-content: center; }
.auth-box .brand-logo { width: 88px; height: 88px; }
.auth-box .brand b { font-size: 22px; color: white; }
.auth-box .panel { border-top: 4px solid var(--neon); }
.company-logo-picker { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 15px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf4; }
.company-logo-preview { display: grid; place-items: center; width: 78px; height: 78px; padding: 6px; overflow: hidden; border-radius: 50%; background: #000; }
.company-logo-preview.custom { border: 1px solid var(--line); border-radius: 12px; background: white; }
.company-logo-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.company-logo-picker input[type="file"] { padding: 8px; background: white; }
.company-logo-picker small { display: block; margin-top: 6px; line-height: 1.4; }
.remove-logo { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 12px; font-weight: 700; }
.remove-logo input { width: auto; }
.tenant-title { display: flex; align-items: center; gap: 13px; }
.tenant-title .company-logo-preview { width: 62px; height: 62px; }
.company-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.company-profile-form { min-width: 0; }
.company-profile-submit { width: 100%; margin-top: 20px; }
.company-account-summary { position: sticky; top: 20px; }
.company-account-summary > div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.company-account-summary span, .company-account-summary b { display: block; overflow-wrap: anywhere; }
.company-account-summary span { margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }

@media (max-width: 1100px) { .master-user { display: none; } .master-header { padding-inline: 22px; } }
@media (max-width: 1000px) { .cards, .master-cards { grid-template-columns: repeat(2, 1fr); } .grid2, .costing-layout, .billing-layout, .plans-grid { grid-template-columns: 1fr; } .costing-result { position: static; } .item-row { grid-template-columns: 2fr 1fr 1fr; } }
@media (max-width: 700px) { .sitemap-url-row { grid-template-columns: 1fr 1fr; } .sitemap-url-row input { grid-column: 1 / -1; } }
@media (max-width: 1000px) { .company-profile-layout { grid-template-columns: 1fr; } .company-account-summary { position: static; } }
@media (max-width: 820px) {
    .master-header { min-height: 72px; padding: 10px 16px; }
    .master-brand .brand-logo { width: 44px; height: 44px; }
    .master-brand b { font-size: 16px; }
    .master-brand small { font-size: 11px; }
    .master-menu { display: block; }
    .master-actions { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 14px 16px 18px; background: var(--black); border-top: 1px solid #29301f; border-bottom: 3px solid var(--neon); box-shadow: 0 15px 25px #0004; flex-direction: column; align-items: stretch; }
    .master-open .master-actions { display: flex; }
    .master-actions .btn { width: 100%; }
    .master-actions .master-user { display: block; text-align: center; order: -1; padding: 5px; }
}
@media (max-width: 720px) { aside { transform: translateX(-100%); z-index: 5; transition: .2s; } body.open aside { transform: none; } main { margin-left: 0; width: 100%; } main > header { padding: 0 12px; } main > header > span:not(.plan) { display: none; } main > header form { margin-left: auto; } .menu { display: block; background: none; border: 0; color: var(--neon); font-size: 22px; } .content { padding: 20px 14px; } .cards { grid-template-columns: 1fr 1fr; gap: 9px; } .card { padding: 14px; } .card strong { font-size: 19px; } .form-grid, .summary, .pricing-choice, .category-row, .filters, .receipt-options { grid-template-columns: 1fr; } .pagebar { flex-direction: column; align-items: stretch; gap: 12px; } .pagebar > .actions, .pagebar > .btn { width: 100%; } .pagebar > .actions .btn, .pagebar > .actions button { flex: 1; } .item-row { grid-template-columns: 1fr 1fr; } .item-row .product { grid-column: 1 / -1; } table { display: block; overflow-x: auto; white-space: nowrap; } .plan { display: none; } .panel-head { align-items: stretch; gap: 10px; flex-direction: column; } .panel-head input, .item-search { max-width: none !important; } .item-modal { width: calc(100vw - 20px); } .modal-body, .modal-head, .modal-actions { padding-left: 16px; padding-right: 16px; } .modal-actions .btn { flex: 1; } }
@media (max-width: 480px) { .cards, .master-cards { grid-template-columns: 1fr; } .master-brand small { display: none; } .content { padding-inline: 10px; } .panel { padding: 15px; } .pagebar .actions { flex-direction: column; } .pagebar > .actions .btn, .pagebar > .actions button { width: 100%; } .feature-checks { grid-template-columns: 1fr; } }
@media print { aside, header, .no-print, .btn { display: none !important; } main { margin: 0; width: 100%; } .content { padding: 0; } .panel { border: 0; box-shadow: none; } .print-only { display: block; } }

/* Site público */
.public-site { display: block; background: #f8faf4; }
.public-main { width: 100%; min-width: 0; margin-left: 0; overflow: clip; }
.public-main header { display: block; width: auto; height: auto; padding: 0; border: 0; background: transparent; color: inherit; }
.public-menu { display: none; margin-left: auto; border: 1px solid #394329; border-radius: 9px; background: #171b12; color: var(--neon); padding: 8px 11px; font-size: 21px; cursor: pointer; }
.public-nav { position: sticky; top: 0; z-index: 10; height: 76px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); }
.public-nav .brand { padding: 0; }
.public-nav nav { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.public-nav nav a { color: #d8dfcc; padding: 8px 0; border: 0; }
.public-nav nav a:hover { background: none; color: var(--neon); }
.public-nav .btn.light { padding: 9px 16px; border-color: var(--neon); }
.hero-public { min-height: 590px; padding: 80px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 60px; color: white; background: radial-gradient(circle at 80% 45%, #293b09, var(--black) 42%); }
.hero-public h1 { font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -3px; max-width: 800px; margin: 18px 0 25px; }
.hero-public p { color: #cbd3be; font-size: 19px; line-height: 1.6; max-width: 680px; }
.hero-public .btn, .public-cta .btn { background: var(--neon); color: var(--black); border-color: var(--neon); }
.hero-public .actions { align-items: center; gap: 22px; margin-top: 32px; }
.text-link { color: white; font-weight: 700; text-decoration: none; }
.hero-mark img { width: 100%; filter: drop-shadow(0 0 28px #9bea0038); }
.eyebrow { color: var(--neon-dark); font-size: 12px; letter-spacing: 2px; font-weight: 900; }
.hero-public .eyebrow, .dark-section .eyebrow { color: var(--neon); }
.public-section { max-width: 1180px; margin: auto; padding: 90px 24px; }
.simulator-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.section-copy h2, .section-title h2, .tips h2, .public-cta h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; margin: 12px 0 18px; letter-spacing: -1.5px; }
.section-copy p, .section-title p { color: var(--muted); font-size: 17px; line-height: 1.7; }
.section-copy ul { padding: 0; list-style: none; line-height: 2; }
.section-copy li::before { content: '✓'; color: var(--neon-dark); font-weight: 900; margin-right: 10px; }
.calculator-card { background: white; border: 1px solid var(--line); border-top: 5px solid var(--neon); padding: 28px; border-radius: 16px; box-shadow: 0 22px 55px #18220a17; }
.calculator-card > .btn { width: 100%; margin: 20px 0; }
.input-unit { display: flex; align-items: center; border: 1px solid #dce2d4; border-radius: 9px; background: white; overflow: hidden; }
.input-unit:focus-within { outline: 3px solid #dfff9e; border-color: var(--neon-dark); }
.input-unit input { border: 0; outline: 0; border-radius: 0; }
.input-unit span { padding: 0 12px; color: var(--muted); font-weight: 800; }
.margin-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 8px; }
.margin-presets button { border: 1px solid var(--line); border-radius: 7px; background: #f5f7f1; padding: 8px; font-weight: 800; cursor: pointer; }
.margin-presets button:hover, .margin-presets button.active { color: var(--black); background: var(--neon); border-color: var(--neon-dark); }
.advanced { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.advanced summary { cursor: pointer; font-weight: 800; }
.advanced summary span { float: right; color: var(--muted); font-size: 12px; font-weight: 500; }
.advanced .form-grid { margin-top: 16px; }
.price-highlight { background: var(--black); color: white; border-radius: 12px; padding: 20px; text-align: center; margin-bottom: 12px; }
.price-highlight span, .price-highlight small { display: block; color: #b2bca3; }
.price-highlight b { display: block; color: var(--neon); font-size: 36px; margin: 4px; }
.cost-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.cost-breakdown div { padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cost-breakdown span { display: block; color: var(--muted); font-size: 10px; }
.cost-breakdown b { font-size: 13px; }
.cost-breakdown .total { background: var(--neon-soft); }
.channel-result { border-left: 4px solid var(--neon); background: #f7faef; padding: 12px; margin-bottom: 12px; font-size: 13px; }
.calc-result { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 15px; }
.calc-result div { padding: 12px; background: var(--black); color: white; border-radius: 9px; }
.calc-result span { display: block; color: #adb69d; font-size: 10px; }
.calc-result b { display: block; color: var(--neon); font-size: 16px; margin-top: 5px; }
.section-title { max-width: 760px; margin-bottom: 40px; }
.content-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.content-cards article { background: white; border: 1px solid var(--line); padding: 28px; border-radius: 14px; }
.content-cards article > span { color: var(--neon-dark); font-weight: 900; }
.content-cards h3, .idea-grid h3 { font-size: 20px; margin: 28px 0 10px; }
.content-cards p, .idea-grid p { color: var(--muted); line-height: 1.65; }
.dark-section { background: var(--black); color: white; padding: 90px max(24px, calc((100vw - 1180px) / 2)); }
.idea-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #303521; border: 1px solid #303521; }
.idea-grid article { background: var(--black); padding: 28px; }
.idea-grid article::before { content: ''; display: block; width: 36px; height: 4px; background: var(--neon); }
.idea-grid p { color: #abb39d; }
.tips { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.tips ol { margin: 0; padding: 0; list-style: none; counter-reset: tip; }
.tips li { counter-increment: tip; display: grid; grid-template-columns: 40px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tips li::before { content: counter(tip, decimal-leading-zero); grid-row: 1 / 3; color: var(--neon-dark); font-weight: 900; }
.tips li span { color: var(--muted); margin-top: 5px; }
.public-cta { background: var(--neon); color: var(--black); padding: 75px 24px; text-align: center; }
.public-cta p { font-size: 18px; }
.public-cta .btn { background: var(--black); color: var(--neon); margin: 15px; }
.public-cta small { display: block; }
.public-footer { background: var(--black); color: #bec7b0; padding: 35px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.public-footer-brand { display: flex; align-items: center; gap: 14px; }
.public-footer img { width: 50px; height: 50px; }
.public-footer nav { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.public-footer a, .public-footer button { padding: 0; border: 0; background: transparent; color: #bec7b0; font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; }
.public-footer a:hover, .public-footer button:hover { color: var(--neon); }
.public-page { max-width: 980px; min-height: 65vh; margin: auto; padding: 80px 24px; }
.public-page > header { margin-bottom: 52px; }
.public-page > header h1 { max-width: 850px; margin: 13px 0 20px; font-size: clamp(38px, 6vw, 66px); line-height: 1.02; letter-spacing: -2px; }
.public-page > header p { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.public-page > section { margin: 38px 0; }
.public-page > section h2 { margin-bottom: 12px; font-size: 24px; }
.public-page > section p, .public-page > section li { color: #56604d; font-size: 16px; line-height: 1.75; }
.public-page > section a { color: #477b00; font-weight: 800; }
.legal-page { max-width: 860px; }
.legal-page > section { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-card > div { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.contact-card ul { padding-left: 20px; }
.contact-hero { padding: 82px max(24px, calc((100vw - 1180px) / 2)); background: var(--black); color: white; }
.contact-hero > div { max-width: 780px; }
.contact-hero h1 { margin: 12px 0 18px; font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -3px; }
.contact-hero p { max-width: 700px; margin: 0; color: #c4cdb8; font-size: 19px; line-height: 1.65; }
.contact-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 75px; max-width: 1180px; margin: auto; padding: 75px 24px 95px; }
.contact-intro { padding-top: 12px; }
.contact-intro h2 { margin: 10px 0 16px; font-size: clamp(30px, 4vw, 45px); line-height: 1.08; letter-spacing: -1.5px; }
.contact-intro > p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.contact-intro ul { margin: 26px 0 0; padding: 0; list-style: none; }
.contact-intro li { position: relative; padding: 10px 0 10px 27px; border-bottom: 1px solid var(--line); color: #555d49; font-size: 13px; line-height: 1.5; }
.contact-intro li::before { position: absolute; left: 0; color: var(--neon-dark); content: '✓'; font-weight: 900; }
.contact-direct { margin-top: 27px; padding: 20px; border-radius: 12px; background: var(--black); }
.contact-direct span, .contact-direct a { display: block; }
.contact-direct span { margin-bottom: 6px; color: #aeb99d; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.contact-direct a { color: var(--neon); font-weight: 900; overflow-wrap: anywhere; }
.contact-form-card { min-width: 0; padding: 32px; border: 1px solid var(--line); border-top: 5px solid var(--neon); border-radius: 17px; background: white; box-shadow: 0 22px 55px #18220a12; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.contact-form-card .field label { font-size: 13px; }
.contact-form-card textarea { resize: vertical; }
.contact-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-privacy { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.contact-privacy input { flex: 0 0 auto; width: auto; margin-top: 3px; }
.contact-privacy a { font-weight: 800; }
.contact-submit { width: 100%; padding: 13px 18px; }
.contact-submit span { margin-left: auto; font-size: 18px; }
.contact-security { margin: 10px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.contact-success { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid #c9e793; border-radius: 12px; background: var(--neon-soft); }
.contact-success > span { display: grid; flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--neon); color: var(--black); font-weight: 900; place-items: center; }
.contact-success b { font-size: 18px; }
.contact-success p { margin: 6px 0 0; color: #50643c; line-height: 1.55; }
.cf-turnstile { min-height: 65px; margin-top: 18px; }
.cookie-consent { position: fixed; z-index: 100; inset: auto 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(960px, calc(100% - 36px)); max-width: none; max-height: calc(100dvh - 36px); margin: 0 auto; padding: 20px; overflow-x: hidden; overflow-y: auto; border: 1px solid #3d4a2a; border-radius: 14px; background: #11150d; color: white; box-shadow: 0 20px 60px #0007; transform: none; }
.cookie-consent > div:first-child { min-width: 0; flex: 1 1 auto; }
.cookie-consent[hidden] { display: none; }
.cookie-consent b { font-size: 16px; }
.cookie-consent p { max-width: 680px; margin: 6px 0 0; color: #c1cbb5; font-size: 13px; line-height: 1.5; }
.cookie-consent a { color: var(--neon); }
.cookie-actions { display: flex; flex: 0 0 auto; gap: 8px; }

/* Blog público e editor Master */
.blog-hero { padding: 92px max(24px, calc((100vw - 1180px) / 2)); background: var(--black); color: white; }
.blog-hero > div { max-width: 850px; }
.blog-hero h1 { max-width: 800px; margin: 14px 0 18px; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -3px; }
.blog-hero p { max-width: 730px; margin: 0; color: #bdc6b1; font-size: 19px; line-height: 1.65; }
.blog-search { display: flex; max-width: 650px; margin-top: 30px; padding: 5px; border: 1px solid #354126; border-radius: 12px; background: #11150d; }
.blog-search input { min-width: 0; border: 0; background: transparent; color: white; }
.blog-search input:focus { outline: 0; }
.blog-search button { flex: 0 0 auto; border: 0; border-radius: 8px; padding: 10px 18px; background: var(--neon); color: var(--black); font-weight: 900; cursor: pointer; }
.blog-list-section { max-width: 1228px; min-height: 50vh; margin: auto; padding: 70px 24px 90px; }
.blog-categories { display: flex; gap: 8px; margin-bottom: 30px; overflow-x: auto; padding-bottom: 5px; }
.blog-categories a { flex: 0 0 auto; padding: 9px 13px; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--muted); font-size: 12px; font-weight: 800; text-decoration: none; }
.blog-categories a.on, .blog-categories a:hover { border-color: var(--neon); background: var(--neon-soft); color: var(--ink); }
.blog-categories small { margin-left: 4px; opacity: .7; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-featured { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 390px; margin-bottom: 55px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 15px 45px #17200b0d; }
.blog-featured-cover { display: block; width: 100%; height: 100%; min-height: 390px; overflow: hidden; background: #080a06; }
.blog-featured-cover > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.blog-featured-cover > span { display: grid; width: 100%; height: 100%; background: radial-gradient(circle at center, #293b09, #050505 68%); place-items: center; }
.blog-featured-cover > span img { width: 120px; height: 120px; object-fit: contain; }
.blog-featured > div { display: flex; align-items: flex-start; justify-content: center; padding: clamp(27px, 4vw, 48px); flex-direction: column; }
.blog-featured-label { margin-bottom: 12px; padding: 5px 8px; border-radius: 99px; background: var(--neon-soft); color: #456c00; font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.blog-featured h2 { margin: 0 0 14px; font-size: clamp(28px, 3vw, 41px); line-height: 1.08; letter-spacing: -1.3px; }
.blog-featured h2 a { color: var(--ink); text-decoration: none; }
.blog-featured p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; }
.blog-featured .btn { margin-top: 23px; }
.blog-section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 23px; }
.blog-section-heading h2 { margin: 7px 0 0; font-size: 30px; }
.blog-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 8px 30px #17200b0a; }
.blog-card-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #11150d; }
.blog-card-cover > img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .2s ease; }
.blog-card-cover:hover > img { opacity: .92; }
.blog-card-cover > span { display: grid; width: 100%; height: 100%; place-items: center; background: radial-gradient(circle at center, #24340f, #080a06 70%); }
.blog-card-cover > span img { width: 92px; height: 92px; object-fit: contain; }
.blog-card-body { padding: 24px; }
.blog-card time, .blog-related time { color: var(--neon-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.blog-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.blog-meta > * + *::before { margin-right: 9px; color: #b5bdab; content: '•'; }
.blog-category { display: inline-block; margin-bottom: 7px; color: var(--neon-dark); font-size: 11px; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.blog-card h2 { margin: 10px 0; font-size: 22px; line-height: 1.22; }
.blog-card h2 a { color: var(--ink); text-decoration: none; }
.blog-card p { min-height: 70px; color: var(--muted); line-height: 1.55; }
.blog-read-more { color: #477b00; font-size: 13px; font-weight: 900; text-decoration: none; }
.blog-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 45px; padding-top: 22px; border-top: 1px solid var(--line); }
.blog-pagination a, .blog-pagination span { color: var(--muted); font-weight: 800; text-decoration: none; }
.blog-pagination a:last-child, .blog-pagination span:last-child { text-align: right; }
.blog-pagination span { opacity: .45; }
.blog-empty { max-width: 650px; margin: 40px auto; text-align: center; }
.blog-empty img { width: 90px; height: 90px; }
.blog-empty p { color: var(--muted); }
.blog-article { max-width: 900px; margin: auto; padding: 70px 24px; }
.blog-article > header { max-width: 820px; margin: auto; }
.blog-back { display: inline-block; margin-bottom: 45px; color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: none; }
.blog-article h1 { margin: 14px 0 20px; font-size: clamp(38px, 6vw, 68px); line-height: 1.03; letter-spacing: -2.5px; }
.blog-article > header > p { color: var(--muted); font-size: 20px; line-height: 1.6; }
.blog-byline { display: flex; flex-direction: row; gap: 18px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 800; }
.blog-article-cover { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 48px auto; border-radius: 18px; background: #080a06; object-fit: contain; }
.blog-content { max-width: 740px; margin: 50px auto 20px; color: #394132; font-size: 18px; line-height: 1.85; }
.blog-content h2 { margin: 55px 0 16px; color: var(--ink); font-size: 31px; line-height: 1.2; }
.blog-content h3 { margin: 38px 0 12px; color: var(--ink); font-size: 23px; }
.blog-content p { margin: 0 0 25px; }
.blog-content ul, .blog-content ol { margin: 0 0 28px; padding-left: 24px; }
.blog-content li { margin: 8px 0; }
.blog-content blockquote { margin: 30px 0; padding: 18px 22px; border-left: 4px solid var(--neon); border-radius: 0 10px 10px 0; background: #f3f6ef; color: var(--ink); font-size: 19px; font-style: italic; }
.blog-content a { color: #477400; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.blog-table-wrap { width: 100%; margin: 30px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.blog-content table { display: table; width: 100%; min-width: 480px; border-collapse: collapse; white-space: normal; font-size: 15px; }
.blog-content th, .blog-content td { padding: 12px 15px; border-bottom: 1px solid var(--line); text-align: left; }
.blog-content th { background: var(--black); color: white; font-size: 12px; }
.blog-content th:last-child, .blog-content td:last-child { text-align: right; }
.blog-content tbody tr:last-child td { border-bottom: 0; }
.blog-content figure { margin: 40px -70px; }
.blog-content figure img { display: block; width: 100%; max-height: 680px; border-radius: 14px; object-fit: contain; background: #f3f6ef; }
.blog-content figcaption { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.blog-article-cta { display: flex; align-items: center; justify-content: space-between; gap: 35px; max-width: 1040px; margin: 0 auto 85px; padding: 38px; border-radius: 17px; background: var(--neon); }
.blog-article-cta h2 { margin: 8px 0; font-size: 30px; }
.blog-article-cta p { max-width: 650px; margin: 0; }
.blog-article-cta .btn { flex: 0 0 auto; background: var(--black); color: var(--neon); }
.blog-related { max-width: 1180px; margin: auto; padding: 0 24px 90px; }
.blog-related-title h2 { margin-top: 8px; }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 25px; }
.blog-related-grid a { display: flex; min-height: 170px; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); text-decoration: none; flex-direction: column; }
.blog-related-grid b { margin: 14px 0; font-size: 18px; line-height: 1.35; }
.blog-related-grid span { margin-top: auto; color: var(--neon-dark); font-size: 12px; font-weight: 900; }
.blog-admin-filters { display: grid; grid-template-columns: minmax(240px, 1fr) 190px 190px auto auto; align-items: end; gap: 10px; }
.blog-admin-excerpt { display: block; max-width: 520px; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.blog-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 350px); align-items: start; gap: 18px; min-width: 0; max-width: 100%; }
.blog-editor-main, .blog-editor-side, .blog-writing-field { min-width: 0; max-width: 100%; }
.blog-editor-main .field + .field, .blog-editor-side .field { margin-top: 19px; }
.blog-editor-side { position: static; inset: auto; display: grid; width: auto; padding: 0; overflow: visible; border: 0; background: transparent; color: inherit; transform: none; gap: 18px; }
.blog-editor-side h2 { margin: 0 0 15px; font-size: 17px; }
.blog-content-editor { min-height: 480px; line-height: 1.6; resize: vertical; }
.blog-format-toolbar { display: flex; align-items: center; width: 100%; min-width: 0; max-width: 100%; gap: 4px; margin-top: 7px; padding: 7px; overflow-x: auto; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: #f6f8f2; scrollbar-width: thin; }
.blog-format-toolbar button { flex: 0 0 auto; min-height: 34px; padding: 7px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.blog-format-toolbar button:hover { border-color: #cad3bf; background: white; }
.blog-format-toolbar button:disabled { opacity: .42; cursor: not-allowed; }
.blog-format-toolbar > span { flex: 0 0 1px; align-self: stretch; margin: 2px 3px; background: var(--line); }
.blog-format-toolbar .toolbar-image { color: #477400; }
.blog-format-toolbar .toolbar-preview { margin-left: auto; border-color: #c3ccb8; background: white; }
.blog-writing-field .blog-content-editor { width: 100%; margin-top: 0; border-radius: 0 0 10px 10px; }
.blog-writing-field .blog-content-editor:focus { position: relative; }
.blog-editor-preview { min-height: 480px; max-width: none; margin: 0; padding: 26px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: white; }
.blog-editor-preview[hidden] { display: none; }
.blog-editor-preview h2:first-child, .blog-editor-preview h3:first-child { margin-top: 0; }
.blog-editor-preview figure { margin-inline: 0; }
.blog-save { width: 100%; margin-top: 20px; }
.blog-cover-preview { display: grid; aspect-ratio: 16 / 9; margin-bottom: 15px; overflow: hidden; border: 1px dashed #aab39f; border-radius: 10px; background: #f3f6ef; color: var(--muted); font-size: 12px; place-items: center; }
.blog-cover-preview img { width: 100%; height: 100%; background: #080a06; object-fit: contain; }
.seo-serp-preview { margin-top: 20px; padding: 15px; overflow: hidden; border: 1px solid #dfe4d8; border-radius: 11px; background: #fff; }
.seo-serp-preview > small { display: block; margin-bottom: 12px; color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.seo-serp-preview > div { overflow: hidden; color: #202124; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.seo-serp-preview > strong { display: block; margin-top: 5px; overflow: hidden; color: #1a0dab; font-family: Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 1.25; }
.seo-serp-preview > p { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: #4d5156; font-family: Arial, sans-serif; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.seo-audit { --seo-color: #c62828; }
.seo-audit[data-state="warning"] { --seo-color: #c88200; }
.seo-audit[data-state="good"] { --seo-color: #408000; }
.seo-audit-head { display: grid; grid-template-columns: minmax(0, 1fr) 82px; align-items: center; gap: 12px; }
.seo-audit-head h2 { margin: 5px 0 4px; }
.seo-audit-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.seo-score-ring { display: grid; width: 76px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--seo-color) calc(var(--score) * 1%), #e8ece2 0); place-content: center; position: relative; text-align: center; }
.seo-score-ring::before { position: absolute; inset: 7px; border-radius: inherit; background: white; content: ''; }
.seo-score-ring strong, .seo-score-ring span { position: relative; z-index: 1; }
.seo-score-ring strong { color: var(--seo-color); font-size: 19px; line-height: 1; }
.seo-score-ring span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.seo-metrics { display: grid; gap: 9px; margin-top: 18px; }
.seo-metric { --metric-color: #c62828; padding: 11px; border: 1px solid #eed2cf; border-radius: 9px; background: #fffafa; }
.seo-metric.is-warning { --metric-color: #c88200; border-color: #ecd8ac; background: #fffbf2; }
.seo-metric.is-good { --metric-color: #408000; border-color: #cfe0b8; background: #f8fbf3; }
.seo-metric header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.seo-metric header b { font-size: 12px; }
.seo-metric header strong { color: var(--metric-color); font-size: 12px; }
.seo-meter { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 10px; background: #e4e8dd; }
.seo-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--metric-color); transition: width .2s ease; }
.seo-metric ul { display: grid; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }
.seo-metric li { position: relative; padding-left: 15px; color: #4d5548; font-size: 10px; line-height: 1.35; }
.seo-metric li::before { position: absolute; top: .08em; left: 0; color: #c62828; content: '●'; font-size: 8px; }
.seo-metric li.is-warn::before { color: #c88200; }
.seo-metric li.is-ok::before { color: #408000; content: '✓'; font-size: 10px; font-weight: 900; }
.seo-audit-note { margin: 13px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.danger-zone { border-color: #f0c5bd; }
.danger-zone p { color: var(--muted); font-size: 12px; }
.btn.danger { background: #b42318; color: white; }
.blog-inline-images > p { margin-top: -7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.blog-inline-images > small { display: block; min-height: 18px; margin-top: 8px; color: var(--neon-dark); font-weight: 800; }
.blog-media-list { display: grid; gap: 8px; margin-top: 14px; }
.blog-media-list article { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; }
.blog-media-list img { width: 62px; height: 48px; border-radius: 6px; object-fit: cover; }
.blog-media-list b, .blog-media-list code { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.blog-media-list code { margin-top: 4px; color: var(--muted); }
.blog-media-actions { display: flex; align-items: center; gap: 3px; }
.blog-media-list button { padding: 5px 7px; border: 0; border-radius: 5px; background: transparent; color: #477400; font-size: 10px; font-weight: 800; cursor: pointer; }
.blog-media-list button[data-media-delete] { color: #b42318; font-size: 20px; }
.blog-image-modal { width: min(94vw, 620px); }
.blog-image-modal .modal-head p { margin: 5px 0 0; color: #b9c2ad; font-size: 12px; }
.blog-image-modal .field { margin-top: 16px; }
.blog-image-drop { display: grid; min-height: 180px; overflow: hidden; border: 1px dashed #aab39f; border-radius: 11px; background: #f3f6ef; color: var(--muted); font-size: 12px; place-items: center; }
.blog-image-drop img { width: 100%; max-height: 300px; object-fit: contain; }
.blog-category-admin { display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: start; gap: 18px; }
.blog-category-admin .field { margin-bottom: 14px; }
.blog-category-admin h2 { margin-top: 0; font-size: 18px; }
.blog-category-admin-list { display: grid; gap: 10px; }
.blog-category-admin-list > form { display: grid; grid-template-columns: 1fr 1fr 1.5fr auto auto auto; align-items: end; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.blog-category-admin-list .field { margin: 0; }
.blog-category-admin-list span { align-self: center; color: var(--muted); font-size: 11px; white-space: nowrap; }

@media (max-width: 1050px) {
    .public-nav { padding-inline: 20px; }
    .public-menu { display: block; }
    .public-nav nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; margin: 0; padding: 12px 20px 18px; border-top: 1px solid #29301f; border-bottom: 3px solid var(--neon); background: var(--black); box-shadow: 0 15px 25px #0004; flex-direction: column; gap: 3px; }
    .public-nav.open nav { display: flex; }
    .public-nav nav a, .public-nav nav a.public-blog-link { display: flex; justify-content: center; width: 100%; margin: 0; padding: 11px 13px; border-radius: 8px; }
    .public-nav nav .btn.light { padding: 11px 13px; }
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-section { gap: 35px; }
}

@media (max-width: 800px) {
    .hero-public { grid-template-columns: 1fr; min-height: auto; padding-top: 65px; }
    .hero-public h1 { letter-spacing: -2px; }
    .hero-mark { display: none; }
    .simulator-section, .tips { grid-template-columns: 1fr; gap: 30px; }
    .content-cards, .idea-grid { grid-template-columns: 1fr; }
    .contact-card { grid-template-columns: 1fr; }
    .public-footer, .cookie-consent { align-items: stretch; flex-direction: column; }
    .public-footer nav { justify-content: flex-start; }
    .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .calc-result { grid-template-columns: 1fr 1fr; }
    .cost-breakdown { grid-template-columns: 1fr 1fr; }
    .public-section, .dark-section { padding-top: 65px; padding-bottom: 65px; }
    .blog-hero { padding-top: 65px; padding-bottom: 65px; }
    .blog-hero h1 { font-size: clamp(38px, 11vw, 58px); letter-spacing: -2px; overflow-wrap: anywhere; }
    .blog-hero p { font-size: 17px; }
    .blog-grid, .blog-related-grid { grid-template-columns: 1fr; }
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured-cover, .blog-featured-cover > span { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
    .contact-section { grid-template-columns: 1fr; gap: 35px; padding-top: 55px; }
    .contact-intro { padding: 0; }
    .blog-article { padding-top: 48px; }
    .blog-back { margin-bottom: 32px; }
    .blog-byline { flex-direction: column; gap: 5px; }
    .blog-article-cta { align-items: stretch; margin-inline: 18px; padding: 26px; flex-direction: column; }
    .blog-article-cta .btn { width: 100%; }
    .blog-content figure { margin-inline: 0; }
    .blog-pagination { grid-template-columns: 1fr 1fr; gap: 14px; }
    .blog-pagination b { grid-column: 1 / -1; grid-row: 1; text-align: center; }
}

@media (max-width: 520px) {
    .public-nav { height: 68px; padding-inline: 14px; }
    .public-nav .brand-logo { width: 44px; height: 44px; }
    .public-nav .brand b { font-size: 15px; }
    .blog-hero { padding: 48px 18px; }
    .blog-hero h1 { margin-top: 10px; font-size: clamp(34px, 12vw, 48px); line-height: 1.03; }
    .blog-list-section { padding: 42px 14px 65px; }
    .blog-search { display: grid; grid-template-columns: 1fr; padding: 6px; }
    .blog-search button { width: 100%; }
    .blog-featured { min-height: 0; margin-bottom: 42px; }
    .blog-featured-cover, .blog-featured-cover > span { min-height: 0; }
    .blog-featured > div { padding: 23px 19px; }
    .blog-card-body { padding: 19px; }
    .blog-card p { min-height: 0; }
    .blog-article { padding: 38px 17px 55px; }
    .blog-article h1 { font-size: clamp(34px, 11vw, 48px); overflow-wrap: anywhere; }
    .blog-article > header > p { font-size: 17px; }
    .blog-content { font-size: 16px; line-height: 1.75; }
    .blog-content h2 { margin-top: 42px; font-size: 27px; }
    .blog-article-cover { margin-block: 30px; border-radius: 11px; }
    .blog-related { padding-inline: 14px; }
    .cookie-consent { inset: auto 10px 10px; width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 16px; gap: 15px; }
    .cookie-actions { grid-template-columns: 1fr; }
    .cookie-actions .btn { width: 100%; }
    .contact-hero { padding: 48px 18px; }
    .contact-hero h1 { font-size: 42px; letter-spacing: -2px; }
    .contact-hero p { font-size: 16px; }
    .contact-section { padding: 43px 14px 65px; }
    .contact-form-card { padding: 20px 15px; }
    .contact-form-grid { grid-template-columns: 1fr; }
    .cf-turnstile { max-width: 100%; overflow: hidden; }
}

/* Comercial e financeiro */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 11px 15px; color: var(--muted); text-decoration: none; font-weight: 800; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--neon); }
.vertical-actions { flex-direction: column; align-items: stretch; }
.vertical-actions form, .vertical-actions .btn { width: 100%; }
.quote-total-box { margin: 18px 0 0 auto; max-width: 320px; display: flex; justify-content: space-between; padding: 15px; border-top: 3px solid var(--neon); background: var(--black); color: white; }
.quote-total-box strong { color: var(--neon); }
.payment-row { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.2fr auto; gap: 8px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
.compact-grid { grid-template-columns: 1fr 1.4fr; min-width: 360px; }
.quote-summary { position: sticky; top: 20px; }
.quote-summary .field { margin-bottom: 10px; }
.timeline article { border-left: 3px solid var(--neon); padding: 3px 0 15px 16px; margin-bottom: 8px; }
.timeline article p { margin: 5px 0; }
.timeline article small { color: var(--muted); }
.overdue-row { background: #fff8ed; }
.small-value { font-size: 17px !important; }
.reverse-form { display: grid; grid-template-columns: 130px 180px auto; gap: 6px; }
.settings-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr auto; gap: 7px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.finance-filters { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 10px; align-items: end; }
.commercial-filters { grid-template-columns: repeat(5, minmax(130px, 1fr)) auto; }
.payment-generator { display: grid; grid-template-columns: repeat(5, minmax(100px, 1fr)); gap: 8px; align-items: end; padding: 12px; margin-bottom: 12px; border-radius: 10px; background: #f5f8f1; }

@media (max-width: 1000px) {
    .quote-summary { position: static; }
    .payment-row, .payment-generator, .finance-filters, .commercial-filters { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .payment-row, .payment-generator, .finance-filters, .commercial-filters, .settings-row { grid-template-columns: 1fr; }
    .compact-grid { min-width: 280px; }
    .reverse-form { grid-template-columns: 1fr; }
}

/* Organização financeira baseada no fluxo operacional do Kommesa */
.finance-pagebar { align-items: end; }
.finance-pagebar h1 { margin-top: 6px; font-size: 34px; letter-spacing: -1.2px; }
.finance-metrics .danger-card { background: #fff7f2; }
.finance-metrics .success-card { background: #f3fae9; }
.finance-query { padding: 0; overflow: hidden; }
.finance-query-summary { min-height: 67px; display: flex; align-items: center; gap: 12px; padding: 12px 15px; }
.finance-filter-icon { display: grid; place-items: center; flex: 0 0 37px; height: 37px; border-radius: 10px; background: var(--neon-soft); color: var(--neon-dark); font-size: 20px; font-weight: 900; }
.finance-query-copy { min-width: 0; flex: 1; }
.finance-query-copy h2 { margin: 0 0 3px; font-size: 14px; }
.finance-query-copy p, .filter-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.finance-result-count { color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-count { min-width: 19px; padding: 2px 6px; border-radius: 99px; background: #fff1cf; color: #955300; font-size: 10px; }
.finance-query-body { padding: 17px; border-top: 1px solid var(--line); }
.finance-query-body[hidden] { display: none; }
.filter-heading { margin-bottom: 14px; }
.filter-heading h3 { margin: 0 0 4px; font-size: 14px; }
.finance-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 12px; }
.finance-filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.finance-filter-actions > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.finance-filter-actions > div { display: flex; gap: 8px; }
.finance-grid-desktop { padding: 0; overflow: hidden; }
.finance-table { min-width: 1180px !important; font-size: 12px; }
.finance-table th { background: #f8faf6; border-bottom: 1px solid var(--line); padding: 12px 9px; }
.finance-table th a { color: var(--muted); text-decoration: none; }
.finance-table td { padding: 11px 9px; vertical-align: middle; }
.finance-table td small { display: block; max-width: 180px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.finance-table .right { text-align: right; white-space: nowrap; }
.title-cell { max-width: 220px; }
.table-title { display: block; max-width: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 800; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.table-title:hover { color: var(--neon-dark); }
.icon-btn { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--neon-soft); color: var(--black); }
.empty-cell { padding: 45px !important; color: var(--muted); text-align: center !important; }
.finance-mobile-list { display: none; }
.finance-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -3px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.finance-pagination > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.btn.disabled { pointer-events: none; opacity: .4; }
.finance-detail-modal { width: min(94vw, 800px); }
.finance-detail-modal .modal-head p, .finance-settle-modal .modal-head p { margin: 5px 0 0; color: #b9c2ad; font-size: 12px; }
.finance-modal-values { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.finance-modal-values div { padding: 14px; border-right: 1px solid var(--line); }
.finance-modal-values div:last-child { border: 0; background: var(--neon-soft); }
.finance-modal-values small, .finance-detail-grid small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.finance-modal-values strong { font-size: 18px; }
.finance-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; padding: 15px; border-radius: 11px; background: #f7f9f4; }
.finance-detail-grid b { font-size: 12px; }
.modal-section-title { margin: 23px 0 10px; font-size: 14px; }
.settlement-history > div { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.settlement-history span small { display: block; margin-top: 3px; color: var(--muted); }
.registry-form-card { max-width: 880px; margin-inline: auto; padding: 0; overflow: hidden; }
.registry-form-head { margin-bottom: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.registry-form-head h2 { margin-bottom: 5px; font-size: 19px; }
.registry-form-head p { margin: 0; color: var(--muted); font-size: 13px; }
.registry-form-card form { padding: 0 22px 22px; }
.registry-submit { width: 100%; margin-top: 20px; }
.registry-table { padding: 0; overflow: hidden; }
.registry-table table { min-width: 680px; }
.registry-table th, .registry-table td { padding-inline: 16px; }

/* Grades e cartões responsivos do comercial */
.right { text-align: right; }
.responsive-card-list { display: none; }
.sales-filters { grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) auto; }
.customer-filters { grid-template-columns: minmax(260px, 1fr) auto; }
.production-control { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.production-control h2 { margin-bottom: 4px; }
.production-control .actions select { min-width: 220px; }
.sale-items-grid td small { display: block; margin-top: 4px; color: var(--muted); }
.simple-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.simple-pagination > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.row-actions { justify-content: flex-end; flex-wrap: nowrap; }
.mobile-record-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quote-item-grid { min-width: 850px !important; }
.quote-item-grid .item-actions { flex-wrap: nowrap; justify-content: flex-end; }
.icon-btn.danger { color: #b42318; }
.quote-item-modal { width: min(94vw, 760px); }
.quote-item-modal > form { display: flex; flex-direction: column; max-height: 90vh; }
.quote-item-modal .modal-body { min-height: 0; }
.quote-item-modal .modal-head p { margin: 5px 0 0; color: #b9c2ad; font-size: 12px; }
.item-modal-total { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding: 15px; border-radius: 10px; background: var(--black); color: white; }
.item-modal-total strong { color: var(--neon); font-size: 20px; }
.items-empty { padding: 28px 15px; color: var(--muted); text-align: center; font-size: 13px; }
.items-empty[hidden] { display: none; }

@media (max-width: 1000px) {
    .finance-filter-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-editor { grid-template-columns: 1fr; }
    .blog-category-admin { grid-template-columns: 1fr; }
    .blog-category-admin-list > form { grid-template-columns: 1fr 1fr; }
    .blog-category-admin-list .wide { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
    .finance-pagebar h1 { font-size: 28px; }
    .finance-result-count { display: none; }
    .finance-query-summary { align-items: flex-start; flex-wrap: wrap; }
    .finance-query-summary .btn { margin-left: 49px; }
    .finance-filter-grid { grid-template-columns: 1fr; }
    .finance-filter-actions { align-items: stretch; flex-direction: column; }
    .finance-filter-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
    .finance-grid-desktop { display: none; }
    .finance-mobile-list { display: grid; gap: 10px; }
    .finance-mobile-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 2px 8px #1a240b0a; }
    .finance-mobile-card h3 { margin: 10px 0 4px; font-size: 14px; }
    .finance-mobile-card p { margin: 0; color: var(--muted); font-size: 11px; }
    .finance-mobile-card > strong { font-size: 14px; }
    .finance-mobile-card dl { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; margin: 0; padding: 11px 0; border-block: 1px solid var(--line); }
    .finance-mobile-card dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
    .finance-mobile-card dd { margin: 4px 0 0; font-size: 11px; font-weight: 800; }
    .finance-mobile-card > .btn { grid-column: 1 / -1; }
    .finance-pagination { align-items: stretch; flex-direction: column; text-align: center; }
    .finance-pagination > div { display: grid; grid-template-columns: 1fr 1fr; }
    .finance-modal-values, .finance-detail-grid { grid-template-columns: 1fr; }
    .finance-modal-values div { border-right: 0; border-bottom: 1px solid var(--line); }
    .settlement-history > div { grid-template-columns: 1fr auto; }
    .settlement-history .badge { grid-column: 1 / -1; width: fit-content; }
    .responsive-grid-desktop { display: none; }
    .responsive-card-list { display: grid; gap: 10px; }
    .sales-filters { grid-template-columns: 1fr; }
    .record-card, .item-record-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 2px 8px #1a240b0a; }
    .record-card-head, .item-record-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
    .record-card h2, .item-record-card h3 { margin: 9px 0 4px; overflow-wrap: anywhere; font-size: 15px; }
    .record-card p, .item-record-card p { margin: 0; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
    .record-card-head > strong, .item-record-card > strong { white-space: nowrap; font-size: 14px; }
    .record-card dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 13px 0; padding: 11px 0; border-block: 1px solid var(--line); }
    .record-card dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
    .record-card dd { margin: 4px 0 0; font-size: 11px; font-weight: 800; overflow-wrap: anywhere; }
    .record-card > .btn { width: 100%; }
    .record-card > .mobile-record-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .mobile-record-actions .btn { min-width: 0; padding-inline: 8px; }
    .compact-cards { margin-top: 0; }
    .item-record-card > span { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
    .item-record-card > small { grid-column: 1 / -1; color: var(--muted); overflow-wrap: anywhere; }
    .item-record-card > .actions, .item-record-card > .btn { grid-column: 1 / -1; }
    .item-record-card > .actions { display: grid; grid-template-columns: 1fr 1fr; }
    .production-control { align-items: stretch; flex-direction: column; }
    .production-control .actions { display: grid; grid-template-columns: 1fr; }
    .production-control .actions select { min-width: 0; }
    .simple-pagination { align-items: stretch; flex-direction: column; text-align: center; }
    .simple-pagination > div { display: grid; grid-template-columns: 1fr 1fr; }
    .quote-items-panel .panel-head .btn { width: 100%; }
    .quote-item-modal .form-grid { grid-template-columns: 1fr; }
    .quote-item-modal .modal-actions { position: sticky; bottom: 0; }
    .company-logo-picker { grid-template-columns: 1fr; }
    .company-logo-preview { margin-inline: auto; }
    .blog-admin-filters { grid-template-columns: 1fr; }
    .blog-format-toolbar { margin-inline: -1px; }
    .blog-format-toolbar .toolbar-preview { margin-left: 0; }
    .blog-content-editor, .blog-editor-preview { min-height: 420px; }
    .blog-editor-preview { padding: 18px 14px; }
    .blog-image-modal .modal-actions { position: sticky; bottom: 0; }
    .blog-media-list article { grid-template-columns: 52px minmax(0, 1fr); }
    .blog-media-list img { width: 52px; height: 44px; }
    .blog-media-actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 5px; }
}
