:root {
    --ink: #172033;
    --muted: #748095;
    --line: #e7ebf1;
    --surface: #ffffff;
    --canvas: #f5f7fb;
    --navy: #18283e;
    --navy-2: #203b56;
    --blue: #2e6cf6;
    --blue-soft: #eaf0ff;
    --green: #2fc28f;
    --green-soft: #e6f8f1;
    --orange: #f3a15d;
    --orange-soft: #fff2e7;
    --red: #dc6b6b;
    --shadow: 0 14px 40px rgba(23, 32, 51, .06);
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 14px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 238px; padding: 30px 18px 20px; background: var(--navy); color: #d9e4f0; display: flex; flex-direction: column; flex-shrink: 0; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand-lockup strong { display: block; letter-spacing: .14em; font-size: 13px; }
.brand-lockup span { display: block; color: #93a7bd; letter-spacing: .2em; font-size: 8px; margin-top: 2px; }
.brand-mark { width: 33px; height: 33px; border-radius: 11px; display: grid; place-items: center; color: var(--navy); background: #a9e9d0; font-weight: 800; font-size: 18px; box-shadow: 4px 5px 0 rgba(255,255,255,.09); }
.sidebar-brand { padding: 0 10px 42px; }
.sidebar-label, .eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 700; }
.sidebar-label { color: #6f849b; padding: 0 12px 12px; }
.main-nav { display: grid; gap: 5px; }
.main-nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 9px; color: #9cafc3; transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { background: rgba(164, 235, 209, .1); color: #fff; }
.main-nav a.active { box-shadow: inset 3px 0 var(--green); }
.nav-icon { width: 18px; color: #6e8aa6; font-size: 17px; text-align: center; }
.main-nav a.active .nav-icon { color: var(--green); }
.sidebar-spacer { flex: 1; min-height: 35px; }
.sidebar-note { display: flex; align-items: center; gap: 9px; padding: 12px 10px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); margin: 0 0 16px; }
.sidebar-note strong { display: block; font-size: 11px; color: #e2ecf5; font-weight: 600; }
.sidebar-note small { color: #7890a8; display: block; font-size: 10px; margin-top: 2px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,194,143,.12); }
.sidebar-logout { color: #8da2b8; padding: 8px 10px; display: flex; justify-content: space-between; }
.content-shell { min-width: 0; flex: 1; }
.topbar { min-height: 92px; padding: 23px 4.2vw 18px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar .eyebrow { color: #9ba8b8; }
.topbar h2 { font-size: 22px; margin: 3px 0 0; letter-spacing: -.03em; }
.topbar-actions, .detail-actions { display: flex; align-items: center; gap: 10px; }
.button { border: 0; border-radius: 8px; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 13px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--navy); color: #fff; box-shadow: 0 7px 16px rgba(24,40,62,.15); }
.button-primary:hover { background: var(--navy-2); box-shadow: 0 10px 20px rgba(24,40,62,.18); }
.button-quiet { background: #f2f5f9; color: #52637a; }
.button-wide { width: 100%; padding: 13px; }
.button-reset { border: 0; background: transparent; padding: 0; cursor: pointer; }
.main-content { max-width: 1480px; margin: 0 auto; padding: 42px 4.2vw 50px; }
.footer { padding: 0 4.2vw 25px; color: #9da8b8; font-size: 11px; max-width: 1480px; margin: auto; }
.footer span { padding: 0 4px; }
.hero-row, .section-intro, .detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.hero-row h1, .section-intro h1, .detail-heading h1 { margin: 5px 0 3px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.055em; line-height: 1.08; }
.accent-dot { color: var(--green); font-size: 16px; vertical-align: top; margin-left: 4px; }
.muted { color: var(--muted); margin: 0; }
.small-text { font-size: 12px; }
.eyebrow { color: #8c9aab; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card { min-height: 158px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.stat-highlight { background: var(--navy); border-color: var(--navy); color: #fff; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #8793a5; }
.stat-highlight .stat-top { color: #a8bbce; }
.stat-label { font-size: 12px; font-weight: 600; }
.stat-icon { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; background: #edf2f8; color: var(--blue); font-size: 16px; }
.stat-highlight .stat-icon { background: rgba(169,233,208,.16); color: var(--green); }
.stat-icon.icon-green { color: var(--green); background: var(--green-soft); }
.stat-icon.icon-orange { color: var(--orange); background: var(--orange-soft); }
.stat-card > strong { display: block; margin-top: 17px; font-size: 33px; letter-spacing: -.06em; line-height: 1; }
.stat-card > small { display: block; color: #99a4b3; font-size: 11px; margin-top: 12px; }
.stat-highlight > small { color: #8ba0b5; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .8fr); gap: 16px; margin-bottom: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 23px 23px 17px; }
.panel-heading h3 { margin: 4px 0 0; font-size: 16px; letter-spacing: -.025em; }
.text-link { color: var(--blue); font-size: 12px; font-weight: 700; white-space: nowrap; }
.campaign-list { padding: 0 12px 12px; }
.campaign-row { display: flex; align-items: center; gap: 13px; padding: 14px 11px; border-top: 1px solid #f0f2f5; }
.campaign-row:hover { background: #fafbfe; border-radius: 8px; }
.campaign-avatar { width: 35px; height: 35px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.campaign-main { flex: 1; min-width: 0; }
.campaign-main strong, .campaign-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campaign-main strong { font-size: 13px; }
.campaign-main span { color: var(--muted); font-size: 11px; margin-top: 2px; }
.progress-line { height: 4px; background: #edf0f4; border-radius: 10px; margin-top: 10px; overflow: hidden; }
.progress-line i, .table-progress i, .big-progress i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.campaign-meta { text-align: right; min-width: 57px; }
.campaign-meta strong { display: block; font-size: 12px; }
.campaign-meta span { color: #a4adba; font-size: 10px; text-transform: capitalize; }
.row-arrow { color: #aab5c4; font-size: 18px; padding: 4px; }
.period-pill, .tip-pill { color: #8391a2; background: #f3f5f8; border-radius: 30px; padding: 5px 9px; font-size: 10px; white-space: nowrap; }
.funnel-panel { min-width: 0; }
.funnel { padding: 5px 23px 12px; }
.funnel-step { margin-bottom: 20px; }
.funnel-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.funnel-label strong { color: var(--ink); }
.funnel-bar { height: 11px; border-radius: 5px; min-width: 3px; }
.bar-blue { background: var(--blue); }.bar-green { background: var(--green); }.bar-orange { background: var(--orange); }
.funnel-footer { border-top: 1px solid var(--line); padding: 15px 23px 19px; display: flex; justify-content: space-between; gap: 10px; color: #98a4b2; font-size: 10px; }
.funnel-footer > span { max-width: 230px; }
.table-panel { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 23px; background: #fafbfd; color: #9aa5b4; text-transform: uppercase; letter-spacing: .12em; font-size: 9px; font-weight: 700; white-space: nowrap; }
td { padding: 14px 23px; border-top: 1px solid #eef1f5; color: #59687a; font-size: 12px; vertical-align: middle; }
td strong, td small { display: block; }.td strong { color: var(--ink); }.table-title { color: var(--ink); font-weight: 700; }.table-title:hover, .email-link:hover { color: var(--blue); }
td small { color: #9ca7b5; font-size: 10px; margin-top: 3px; }.empty-cell { padding: 32px; text-align: center; color: #a1abb8; }
.activity { font-size: 11px; font-weight: 700; }.activity-opened { color: var(--green); font-size: 0; }.activity-opened::after { content: '◉ Píxel cargado'; font-size: 11px; }.activity-replied { color: #e2914e; }.activity-pending { color: #a8b1bd; }
.section-intro { align-items: center; }.section-intro .button { flex-shrink: 0; }
.campaign-builder { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 16px; align-items: start; }
.builder-main { padding: 0 24px 24px; }.builder-main > label, .builder-side label { display: block; margin: 14px 0; color: #66768a; font-size: 12px; font-weight: 700; }.builder-main input, .builder-main textarea, select, .stack-form input, .table-search { width: 100%; margin-top: 7px; color: var(--ink); background: #fbfcfe; border: 1px solid #dfe5ee; border-radius: 7px; padding: 11px 12px; outline: none; }.builder-main textarea { resize: vertical; line-height: 1.65; min-height: 260px; }.builder-main input:focus, .builder-main textarea:focus, select:focus, .stack-form input:focus, .table-search:focus { border-color: #9ab7fc; box-shadow: 0 0 0 3px var(--blue-soft); }.field-hint { display: block; font-weight: 400; color: #98a4b2; margin-top: 7px; }.field-hint code { background: #f0f3f8; padding: 2px 4px; color: var(--blue); border-radius: 3px; }
.builder-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }.builder-side { display: grid; gap: 16px; }.builder-side .panel { padding: 0 22px 21px; }.builder-side .panel-heading { padding-left: 0; padding-right: 0; }.audience-callout { display: flex; align-items: baseline; gap: 7px; background: var(--blue-soft); padding: 16px; border-radius: 8px; margin-top: 18px; color: var(--blue); }.audience-callout strong { font-size: 25px; letter-spacing: -.04em; }.audience-callout span { font-size: 11px; }.safeguard { padding: 17px 19px !important; display: flex; align-items: flex-start; gap: 11px; background: #f2fbf7; border-color: #d9f2e8; }.safeguard-icon { width: 23px; height: 23px; display: grid; place-items: center; background: var(--green); color: #fff; border-radius: 50%; font-weight: 700; }.safeguard strong { font-size: 12px; }.safeguard p { color: #729083; font-size: 11px; margin: 4px 0 0; }
.back-link { color: var(--blue); font-size: 12px; font-weight: 700; }.detail-heading { align-items: flex-end; }.detail-heading h1 { margin-top: 10px; }.campaign-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }.campaign-stats article { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 17px 19px; }.campaign-stats span, .campaign-stats small { display: block; color: #8c99aa; font-size: 11px; }.campaign-stats strong { display: block; font-size: 26px; letter-spacing: -.05em; margin: 5px 0 2px; }.green-text { color: var(--green) !important; }.orange-text { color: #e2914e !important; }.detail-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; margin-bottom: 16px; }.mail-preview { margin: 0 23px 23px; border: 1px solid #e8ecf1; border-radius: 9px; padding: 19px; }.mail-meta { display: flex; gap: 10px; align-items: center; border-bottom: 1px solid #eef1f5; padding-bottom: 15px; }.mail-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--navy); color: #b3ebd8; font-weight: 700; }.mail-meta strong, .mail-meta small { display: block; }.mail-meta strong { font-size: 12px; }.mail-meta small { color: #97a4b3; font-size: 10px; }.mail-subject { font-weight: 700; margin: 18px 0 10px; }.mail-body { color: #5c6b7f; font-size: 12px; line-height: 1.8; white-space: normal; }.progress-panel { padding-bottom: 23px; }.progress-number { color: var(--blue); font-size: 22px; font-weight: 800; }.big-progress { height: 10px; border-radius: 10px; background: #edf1f6; margin: 25px 23px 15px; overflow: hidden; }.progress-legend { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 23px; color: #8290a0; font-size: 10px; }.progress-legend span { display: inline-flex; align-items: center; gap: 5px; }.progress-legend i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }.legend-blue { background: var(--blue); }.legend-grey { background: #d2d9e3; }.legend-red { background: var(--red); }.info-note { margin: 25px 23px 0; background: #f7f9fc; border-radius: 7px; padding: 10px; color: #8492a3; font-size: 10px; line-height: 1.5; }.table-search { max-width: 220px; padding: 8px 10px; margin: 0; font-size: 11px; }.badge { display: inline-block; border-radius: 20px; padding: 4px 8px; font-size: 10px; font-weight: 700; background: #eff2f6; color: #7c8998; }.badge-sent { background: var(--green-soft); color: #219e73; }.badge-failed { background: #fff0f0; color: #c16060; }.badge-sending { background: var(--blue-soft); color: var(--blue); }.badge-draft { background: #f3f5f8; color: #8290a0; }.badge-queued { background: #f2f5f8; color: #7e8d9e; }.table-progress { display: flex; gap: 8px; align-items: center; min-width: 100px; }.table-progress > div { height: 5px; width: 70px; background: #edf0f4; border-radius: 5px; overflow: hidden; }.table-progress span { font-size: 10px; color: #8b98a7; }.result-chip { color: #42ae89; margin-right: 8px; font-size: 11px; }.reply-chip { color: #dc985b; }.source-text, .status-text { display: block; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #8896a6; font-size: 11px; }.email-link { color: var(--blue); }.row-unsubscribed { opacity: .57; }.table-note { border-top: 1px solid var(--line); padding: 12px 23px; color: #99a5b3; font-size: 11px; }.error-text { color: var(--red); max-width: 230px; font-size: 10px; }
.empty-state { text-align: center; padding: 40px 20px 45px; color: var(--muted); }.empty-icon { color: var(--green); font-size: 30px; }.empty-state h3 { color: var(--ink); margin: 10px 0 4px; }.empty-state p { margin: 0 0 18px; }.alert { border-radius: 8px; padding: 11px 14px; font-size: 12px; margin-bottom: 14px; }.page-alert { margin: -22px 4.2vw 22px; max-width: 680px; }.alert-success { background: var(--green-soft); border: 1px solid #c8efdf; color: #218662; }.alert-error { background: #fff0f0; border: 1px solid #f3d1d1; color: #bb5555; }
.tracking-disclaimer { margin: 18px 4.2vw -10px; max-width: 850px; display: flex; align-items: flex-start; gap: 9px; color: #77869a; font-size: 10px; line-height: 1.45; }.tracking-disclaimer strong { color: #52647b; }.tracking-disclaimer-icon { color: var(--green); font-size: 13px; line-height: 1.1; }
.login-shell { min-height: 100vh; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--navy); }.login-card { width: min(430px, calc(100% - 32px)); background: #fff; border-radius: 15px; padding: 40px; box-shadow: 0 30px 80px rgba(0,0,0,.23); position: relative; z-index: 1; }.login-card .brand-lockup { color: var(--navy); margin-bottom: 46px; }.login-card .brand-lockup span { color: #8e9aaa; }.login-card .eyebrow { color: var(--green); }.login-card h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.05em; margin: 8px 0 10px; }.stack-form { margin-top: 29px; }.stack-form label { display: block; color: #637389; font-size: 12px; font-weight: 700; margin: 14px 0; }.stack-form input { margin-top: 7px; }.login-foot { border-top: 1px solid var(--line); margin: 28px 0 0; padding-top: 15px; color: #a0acba; text-align: center; font-size: 10px; }.login-orb { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .5; }.orb-one { width: 470px; height: 470px; background: #254769; left: -120px; bottom: -190px; }.orb-two { width: 370px; height: 370px; border: 1px solid #5c8e9a; right: -100px; top: -130px; }.public-message { min-height: 100vh; display: grid; place-items: center; }.public-card { width: min(480px, calc(100% - 32px)); padding: 40px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; text-align: center; }.public-card .brand-mark { margin: auto; }.public-card h1 { margin: 20px 0 8px; }.public-card p { color: var(--muted); }
@media (max-width: 1100px) { .sidebar { width: 205px; }.main-content, .topbar { padding-left: 3vw; padding-right: 3vw; }.footer { padding-left: 3vw; padding-right: 3vw; }.stats-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid, .detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .sidebar { width: 66px; padding: 20px 9px; }.sidebar-brand { padding: 0 7px 28px; }.sidebar-brand > div:last-child, .sidebar-label, .main-nav a:not(.active)::after, .main-nav a { font-size: 0; }.main-nav a { justify-content: center; padding: 12px 4px; }.main-nav a .nav-icon { font-size: 17px; }.sidebar-note, .sidebar-logout { display: none; }.topbar { min-height: 75px; padding-top: 14px; padding-bottom: 14px; }.topbar h2 { font-size: 18px; }.topbar-actions { gap: 5px; }.button { padding: 9px 11px; }.main-content { padding: 28px 14px 38px; }.footer { padding: 0 14px 20px; }.hero-row, .section-intro, .detail-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }.hero-row h1, .section-intro h1, .detail-heading h1 { font-size: 29px; }.stats-grid, .campaign-stats { gap: 8px; }.stat-card { min-height: 133px; padding: 14px; }.stat-card > strong { font-size: 27px; margin-top: 14px; }.stat-card > small { margin-top: 8px; font-size: 10px; }.panel-heading { padding: 17px 15px 13px; }.campaign-list { padding: 0 7px 7px; }.campaign-meta { min-width: 40px; }.funnel { padding-left: 15px; padding-right: 15px; }.funnel-footer { padding-left: 15px; padding-right: 15px; }.table-panel .panel-heading { flex-direction: column; }.table-search { max-width: none; }.campaign-builder { grid-template-columns: 1fr; }.builder-main { padding: 0 15px 17px; }.builder-side .panel { padding-left: 15px; padding-right: 15px; }.detail-actions { width: 100%; }.detail-actions form, .detail-actions .button { width: 100%; }.detail-heading .detail-actions { align-self: stretch; }.detail-grid { gap: 10px; }.hide-mobile { display: none; }.login-card { padding: 28px 23px; }.login-card .brand-lockup { margin-bottom: 35px; }.login-card h1 { font-size: 27px; } }
