@import url('');
:root {
  --apo-navy: #0b2552;
  --apo-blue: #1767cc;
  --apo-blue-bright: #2d82f2;
  --apo-blue-pale: #e8f2ff;
  --apo-ink: #111820;
  --apo-muted: #586577;
  --apo-line: #d7e0ec;
  --apo-paper: #ffffff;
  --apo-canvas: #f4f7fb;
  --apo-green: #1d8a63;
  --apo-shadow: 0 20px 55px rgba(11, 37, 82, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.apo-site {
  margin: 0;
  background: var(--apo-canvas);
  color: var(--apo-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.apo-shell-content { min-height: 100vh; }
.apo-page { min-height: 100vh; }
.apo-topbar, .apo-footer, .apo-home-main, .apo-calc-main, .apo-login-layout { width: min(1220px, calc(100% - 56px)); margin-inline: auto; }
.apo-topbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(11, 37, 82, .12);
}
.apo-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--apo-navy); text-decoration: none; font-weight: 800; letter-spacing: -.04em; font-size: 19px; }
.apo-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--apo-navy); }
.apo-mark svg { width: 29px; fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.apo-top-link { color: var(--apo-navy); text-decoration: none; font-size: 14px; font-weight: 700; }
.apo-top-link:hover { color: var(--apo-blue); }
.apo-kicker, .apo-section-number { margin: 0; text-transform: uppercase; letter-spacing: .13em; color: var(--apo-blue); font-weight: 800; font-size: 11px; }
.apo-live-dot, .apo-session-dot { display: inline-block; width: 8px; height: 8px; border-radius: 100%; background: #25a979; margin-right: 7px; box-shadow: 0 0 0 4px rgba(37,169,121,.12); vertical-align: 1px; }
.apo-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 19px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-weight: 750; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.apo-button:hover { transform: translateY(-1px); }
.apo-button:focus-visible, .apo-top-link:focus-visible, .apo-login-form input:focus-visible, .apo-period-table input:focus-visible, .apo-period-table select:focus-visible { outline: 3px solid rgba(45,130,242,.35); outline-offset: 2px; }
.apo-button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.apo-button-primary { background: var(--apo-blue); color: #fff; box-shadow: 0 10px 22px rgba(23,103,204,.2); }
.apo-button-primary:hover { background: #0f58b5; }
.apo-button-quiet { color: var(--apo-navy); background: #fff; border-color: var(--apo-line); }
.apo-button-quiet:hover, .apo-button-outline:hover { background: var(--apo-blue-pale); }
.apo-button-outline { background: #fff; border-color: #afc2da; color: var(--apo-navy); }
.apo-button-light { color: var(--apo-navy); background: #fff; }

/* Página inicial */
.apo-home-page { background: #fff; }
.apo-home-main { padding: 0 0 48px; }
.apo-hero { min-height: 550px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; padding: 55px 0 54px; }
.apo-hero-copy { max-width: 690px; }
.apo-hero h1 { max-width: 720px; margin: 20px 0 8px; color: #0f1720; font-size: clamp(40px, 5.8vw, 74px); letter-spacing: -.065em; line-height: .99; font-weight: 850; }
.apo-construction { margin: 15px 0 20px; display: inline-flex; align-items: center; border: 1px solid #9fc6f4; background: var(--apo-blue-pale); color: var(--apo-navy); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.apo-hero-text { color: #3d4958; max-width: 610px; margin: 0; font-size: 17px; line-height: 1.75; }
.apo-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.apo-hero-actions .apo-button-primary { min-height: 62px; text-align: left; }
.apo-hero-actions svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.apo-hero-actions small, .apo-hero-actions strong { display: block; }
.apo-hero-actions small { opacity: .8; font-size: 11px; font-weight: 600; }
.apo-hero-actions strong { font-size: 16px; letter-spacing: .02em; }
.apo-hero-visual { min-height: 405px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 32px; background: linear-gradient(145deg, #0a2453 0%, #174c97 55%, #277ee0 100%); }
.apo-hero-visual::before, .apo-hero-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.apo-hero-visual::before { width: 410px; height: 410px; }
.apo-hero-visual::after { width: 315px; height: 315px; }
.apo-orbit { position: absolute; border: 1px dashed rgba(255,255,255,.24); border-radius: 50%; transform: rotate(-22deg); }
.apo-orbit-one { width: 485px; height: 190px; }
.apo-orbit-two { width: 440px; height: 144px; transform: rotate(36deg); }
.apo-hero-visual::marker { display: none; }
.apo-visual-card { position: absolute; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.75); background: rgba(255,255,255,.96); color: var(--apo-ink); box-shadow: 0 22px 50px rgba(0,0,0,.18); }
.apo-card-front { width: min(300px, 74%); min-height: 202px; left: 12%; top: 23%; padding: 22px; border-radius: 18px; transform: rotate(-5deg); }
.apo-card-label { font-size: 10px; letter-spacing: .12em; font-weight: 800; color: var(--apo-blue); }
.apo-timeline { display: flex; align-items: center; justify-content: space-between; margin: 21px 0; position: relative; }
.apo-timeline::before { content: ""; position: absolute; left: 8px; right: 8px; height: 4px; border-radius: 99px; background: #c9def7; }
.apo-timeline i { width: 14px; height: 14px; position: relative; z-index: 1; border: 3px solid #fff; border-radius: 50%; background: var(--apo-blue); box-shadow: 0 0 0 1px #8eb9eb; }
.apo-timeline i:nth-child(2), .apo-timeline i:nth-child(4) { background: #62a0e6; }
.apo-visual-numbers { display: flex; align-items: center; gap: 13px; }
.apo-visual-numbers strong { color: var(--apo-navy); font-size: 48px; letter-spacing: -.07em; line-height: 1; }
.apo-visual-numbers span { color: var(--apo-muted); font-size: 12px; line-height: 1.35; }
.apo-card-back { width: 210px; min-height: 90px; right: 6%; bottom: 16%; padding: 14px 18px; flex-direction: row; align-items: center; gap: 12px; border-radius: 15px; transform: rotate(5deg); font-size: 12px; font-weight: 700; line-height: 1.35; }
.apo-mini-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; color: #fff; background: #1d8a63; font-size: 19px; }
.apo-visual-stamp { position: absolute; z-index: 2; top: 12%; right: 10%; padding: 12px 14px; border: 1px solid rgba(255,255,255,.45); border-radius: 12px; color: #fff; text-align: center; font-size: 9px; letter-spacing: .12em; line-height: 1.3; transform: rotate(7deg); }
.apo-visual-stamp b { font-size: 15px; letter-spacing: .02em; }
.apo-intro-strip { display: grid; grid-template-columns: .9fr 1.1fr; gap: 55px; align-items: start; padding: 37px 0 38px; border-top: 1px solid var(--apo-line); border-bottom: 1px solid var(--apo-line); }
.apo-intro-lead h2, .apo-bottom-cta h2 { max-width: 490px; margin: 11px 0 0; color: var(--apo-ink); font-size: clamp(23px, 3vw, 34px); line-height: 1.15; letter-spacing: -.045em; }
.apo-intro-strip > p { max-width: 690px; margin: 2px 0 0; color: #435064; font-size: 15px; line-height: 1.8; }
.apo-feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 25px 0 38px; }
.apo-feature { min-height: 126px; display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid var(--apo-line); border-radius: 15px; background: #fff; }
.apo-feature-index { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--apo-blue-pale); color: var(--apo-blue); font-size: 12px; font-weight: 850; }
.apo-feature h3 { margin: 0 0 5px; font-size: 16px; letter-spacing: -.02em; }
.apo-feature p { margin: 0; color: var(--apo-muted); font-size: 13px; line-height: 1.6; }
.apo-feature-arrow { margin-left: auto; color: var(--apo-blue); font-size: 18px; }
.apo-bottom-cta { min-height: 152px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 30px 34px; border-radius: 19px; color: #fff; background: var(--apo-navy); }
.apo-bottom-cta .apo-section-number { color: #a8d0ff; }
.apo-bottom-cta h2 { margin-top: 9px; color: #fff; font-size: clamp(21px, 2.6vw, 31px); }
.apo-footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #657184; border-top: 1px solid var(--apo-line); font-size: 12px; }
.apo-footer a { color: var(--apo-navy); text-decoration: none; font-weight: 700; }

/* Login */
.apo-login-page { background: linear-gradient(130deg, #f5f9ff 0%, #eef5ff 50%, #fff 100%); }
.apo-login-layout { min-height: calc(100vh - 160px); display: grid; grid-template-columns: 1fr .78fr; gap: 80px; align-items: center; padding-block: 55px; }
.apo-login-aside { max-width: 560px; }
.apo-login-aside h1 { margin: 18px 0; color: var(--apo-navy); font-size: clamp(36px, 5vw, 57px); line-height: 1.03; letter-spacing: -.06em; }
.apo-login-aside > p:not(.apo-kicker) { max-width: 470px; color: #47556a; line-height: 1.8; }
.apo-login-note { display: flex; align-items: center; gap: 14px; max-width: 430px; margin-top: 34px; padding: 17px 18px; border: 1px solid #d5e5f8; border-radius: 14px; background: rgba(255,255,255,.72); }
.apo-login-note > span { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; background: var(--apo-blue); color: white; font-weight: 850; font-size: 19px; }
.apo-login-note p { margin: 0; color: #4e5b6e; font-size: 13px; line-height: 1.5; }
.apo-login-note strong { color: var(--apo-navy); }
.apo-login-card { padding: clamp(25px, 4vw, 42px); border: 1px solid #e2e8f0; border-radius: 20px; background: #fff; box-shadow: var(--apo-shadow); }
.apo-login-card h2 { margin: 9px 0 3px; color: var(--apo-ink); font-size: 30px; letter-spacing: -.05em; }
.apo-login-card > p { margin: 0 0 24px; color: var(--apo-muted); font-size: 14px; }
.apo-login-form { display: grid; gap: 9px; }
.apo-login-form label { margin-top: 6px; color: #263449; font-size: 13px; font-weight: 750; }
.apo-login-form input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cbd6e3; border-radius: 9px; background: #fff; color: var(--apo-ink); font: inherit; }
.apo-login-submit { width: 100%; margin-top: 13px; }
.apo-login-footnote { margin: 19px 0 0 !important; color: #667488 !important; font-size: 12px !important; line-height: 1.6; }
.apo-alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f0b9b9; border-radius: 9px; color: #812626; background: #fff3f3; font-size: 13px; }

/* Calculadora */
.apo-calculator-page { background: var(--apo-canvas); }
.apo-calculator-topbar { border-color: var(--apo-line); }
.apo-calc-main { width: min(1320px, calc(100% - 40px)); margin: 0 auto; padding: 33px 0 40px; }
.apo-calc-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 23px; }
.apo-calc-heading h1 { margin: 6px 0 4px; color: var(--apo-navy); font-size: clamp(30px, 4vw, 42px); letter-spacing: -.055em; line-height: 1.1; }
.apo-calc-heading p:not(.apo-kicker) { margin: 0; color: var(--apo-muted); }
.apo-session-badge { padding: 9px 12px; border: 1px solid #c8e5d9; border-radius: 999px; color: #22674d; background: #f0fbf6; font-size: 12px; font-weight: 750; white-space: nowrap; }
.apo-privacy-notice { margin-bottom: 17px; padding: 14px 16px; border-left: 4px solid var(--apo-blue); border-radius: 8px; color: #31425a; background: var(--apo-blue-pale); font-size: 13px; line-height: 1.6; }
.apo-table-card, .apo-total-card, .apo-observations { border: 1px solid #dbe3ed; border-radius: 16px; background: var(--apo-paper); box-shadow: 0 6px 18px rgba(11,37,82,.045); }
.apo-table-card { overflow: hidden; }
.apo-table-card-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 21px 23px 16px; }
.apo-table-card-head h2, .apo-total-label h2, .apo-observations h2 { margin: 6px 0 0; color: var(--apo-ink); font-size: 21px; letter-spacing: -.035em; }
.apo-row-count { color: #667488; font-size: 12px; }
.apo-table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid #e6ebf2; }
.apo-period-table { width: 100%; min-width: 1110px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.apo-period-table thead th { position: sticky; top: 0; z-index: 1; padding: 10px 8px; color: #34445a; background: #f5f8fc; border-bottom: 1px solid #dbe3ed; text-align: left; white-space: nowrap; font-size: 11px; font-weight: 800; }
.apo-period-table thead th:first-child, .apo-period-table .apo-row-number { text-align: center; }
.apo-period-table tbody th, .apo-period-table tbody td { height: 41px; padding: 4px 6px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.apo-period-table tbody tr:last-child th, .apo-period-table tbody tr:last-child td { border-bottom: 0; }
.apo-row-number { width: 38px; color: #657184; font-size: 11px; font-weight: 700; }
.apo-period-table input, .apo-period-table select { display: block; min-width: 0; width: 100%; height: 32px; padding: 4px 7px; border: 1px solid #d4deea; border-radius: 6px; background: #fff; color: #152033; font: inherit; font-size: 11px; }
.apo-period-table input[data-field="company"] { min-width: 160px; }
.apo-period-table input[type="date"] { min-width: 125px; }
.apo-period-table select { min-width: 205px; }
.apo-output { min-width: 55px; text-align: center; color: #1a314f; font-variant-numeric: tabular-nums; }
.apo-star-cell { width: 40px; text-align: center; color: #c15b18; font-size: 17px; font-weight: 900; }
.apo-data-row.has-overlap { background: #fffdf8; }
.apo-table-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; border-top: 1px solid #e6ebf2; background: #fcfdff; }
.apo-status { min-height: 20px; padding: 0 20px 13px; color: #647186; font-size: 12px; }
.apo-status.is-success { color: #1a7654; }
.apo-status.is-error { color: #a02f32; }
.apo-status.is-info { color: #39577d; }
.apo-calculate.is-loading { opacity: .78; }
.apo-total-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; padding: 22px 24px; border-color: #b9d5f6; background: linear-gradient(100deg, #fff 0%, #f3f8ff 100%); }
.apo-total-value { display: flex; align-items: baseline; gap: clamp(13px, 3vw, 32px); color: var(--apo-navy); font-size: clamp(25px, 3.2vw, 39px); font-weight: 850; letter-spacing: -.06em; white-space: nowrap; }
.apo-total-value span { display: inline-flex; align-items: baseline; gap: 5px; }
.apo-total-value small { color: #4f6686; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.apo-total-card p { max-width: 240px; margin: 0; color: #647186; font-size: 11px; text-align: right; line-height: 1.55; }
.apo-observations { margin-top: 18px; padding: 22px 24px; }
.apo-observations h2 { margin-bottom: 13px; }
.apo-observations ul { margin: 0; padding-left: 19px; color: #4d5b6f; font-size: 12px; line-height: 1.75; }
.apo-observations li + li { margin-top: 5px; }
.apo-observations li strong { color: #b75516; }
.apo-export-actions { display: flex; gap: 10px; margin-top: 20px; }
.apo-export-help { margin: 10px 0 0; color: #68758a; font-size: 11px; }
.apo-calculator-page .apo-footer { width: min(1320px, calc(100% - 40px)); }

@media (max-width: 900px) {
  .apo-hero { grid-template-columns: 1fr; gap: 25px; padding-top: 42px; }
  .apo-hero-visual { min-height: 330px; }
  .apo-intro-strip { grid-template-columns: 1fr; gap: 17px; }
  .apo-login-layout { grid-template-columns: 1fr; gap: 26px; max-width: 620px; }
  .apo-login-aside h1 { max-width: 540px; }
}
@media (max-width: 650px) {
  .apo-topbar, .apo-footer, .apo-home-main, .apo-login-layout { width: calc(100% - 34px); }
  .apo-topbar { min-height: 69px; }
  .apo-brand { font-size: 17px; }
  .apo-mark { width: 34px; height: 34px; }
  .apo-top-link { font-size: 12px; }
  .apo-home-main { padding-bottom: 30px; }
  .apo-hero { min-height: auto; padding: 38px 0 30px; }
  .apo-hero h1 { font-size: clamp(37px, 12vw, 57px); }
  .apo-hero-text { font-size: 15px; }
  .apo-hero-actions { align-items: stretch; flex-direction: column; }
  .apo-hero-actions .apo-button { width: 100%; }
  .apo-hero-visual { min-height: 305px; border-radius: 23px; }
  .apo-card-front { left: 8%; top: 24%; }
  .apo-card-back { right: 3%; bottom: 9%; }
  .apo-visual-stamp { right: 6%; top: 7%; }
  .apo-intro-strip { padding: 27px 0; }
  .apo-feature-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 0 25px; }
  .apo-feature { min-height: auto; }
  .apo-bottom-cta { align-items: flex-start; flex-direction: column; padding: 25px 22px; }
  .apo-bottom-cta .apo-button { width: 100%; }
  .apo-footer { padding: 16px 0; align-items: flex-start; flex-direction: column; gap: 6px; }
  .apo-login-layout { min-height: auto; padding-block: 38px; }
  .apo-login-aside h1 { font-size: 40px; }
  .apo-login-card { padding: 23px 19px; }
  .apo-calc-main { width: calc(100% - 24px); padding-top: 24px; }
  .apo-calc-heading { align-items: flex-start; flex-direction: column; }
  .apo-session-badge { align-self: flex-start; }
  .apo-table-card-head { padding: 17px 15px 13px; }
  .apo-table-actions { justify-content: stretch; flex-direction: column-reverse; padding-inline: 12px; }
  .apo-table-actions .apo-button { width: 100%; }
  .apo-total-card { align-items: flex-start; flex-direction: column; padding: 19px 16px; }
  .apo-total-value { gap: 13px; font-size: clamp(23px, 8vw, 32px); }
  .apo-total-value small { font-size: 11px; }
  .apo-total-card p { max-width: none; text-align: left; }
  .apo-observations { padding: 18px 16px; }
  .apo-export-actions { flex-direction: column; }
  .apo-export-actions .apo-button { width: 100%; }
  .apo-calculator-page .apo-footer { width: calc(100% - 24px); }
}

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body.apo-site, .apo-calculator-page { background: #fff !important; color: #000 !important; }
  .apo-topbar, .apo-table-actions, .apo-status, .apo-export-actions, .apo-export-help { display: none !important; }
  .apo-calc-main, .apo-calculator-page .apo-footer { width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .apo-calc-heading { margin: 0 0 8px !important; }
  .apo-calc-heading h1 { font-size: 19pt !important; }
  .apo-calc-heading p:not(.apo-kicker) { font-size: 9pt !important; }
  .apo-privacy-notice { margin: 0 0 8px !important; padding: 6px 8px !important; font-size: 8pt !important; }
  .apo-table-card, .apo-total-card, .apo-observations { box-shadow: none !important; border: 1px solid #aaa !important; margin-top: 8px !important; break-inside: avoid; }
  .apo-table-card-head { padding: 6px 8px !important; }
  .apo-table-card-head h2 { font-size: 11pt !important; }
  .apo-period-table { min-width: 0 !important; font-size: 8pt !important; }
  .apo-period-table thead th { position: static !important; padding: 4px !important; font-size: 7pt !important; }
  .apo-period-table tbody th, .apo-period-table tbody td { height: 21px !important; padding: 2px 4px !important; }
  .apo-period-table input, .apo-period-table select { height: auto !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: #000 !important; font-size: 7pt !important; appearance: none; }
  .apo-period-table input[data-field="company"] { min-width: 0 !important; }
  .apo-period-table select { min-width: 0 !important; }
  .apo-data-row.is-empty { display: none !important; }
  .apo-total-card { padding: 8px 10px !important; }
  .apo-total-label h2 { font-size: 10pt !important; }
  .apo-total-value { font-size: 18pt !important; }
  .apo-total-value small { font-size: 8pt !important; }
  .apo-total-card p, .apo-observations ul { font-size: 7pt !important; }
  .apo-observations { padding: 7px 10px !important; }
  .apo-observations h2 { font-size: 10pt !important; margin-bottom: 3px !important; }
  .apo-observations li + li { margin-top: 1px !important; }
  .apo-footer { min-height: auto !important; padding-top: 6px !important; font-size: 7pt !important; }
  a { color: #000 !important; text-decoration: none !important; }
}
