@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;650;700;750&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --paper: #f6f7f1;
  --white: #fff;
  --ink: #172e23;
  --subtle: #56635c;
  --line: #e1e6dc;
  --green: #24553b;
  --deep: #153c2b;
  --pale: #e8f0e6;
  --gold: #d7e5a7;
  --sidebar-width: 248px;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 290px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, main:focus-visible { outline: 3px solid #5d8c54; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
svg { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.skip { z-index: 20; position: fixed; top: .75rem; left: .75rem; padding: .65rem 1rem; border-radius: .5rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; }
.layout { min-height: 100dvh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 30px 17px 19px; background: #fcfdf9; border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; gap: 11px; align-items: center; margin: 0 5px 38px; font-size: 1.31rem; font-weight: 750; letter-spacing: -.065em; line-height: 1; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: var(--green); color: #ecf0d2; }
.brand-icon svg { width: 23px; height: 23px; }
.brand-dot { color: #567b35; }
.brand small { display: block; margin-top: 6px; color: var(--subtle); font-size: .75rem; font-weight: 600; letter-spacing: 0; }
.nav-group { margin-bottom: 25px; }
.nav-group h2 { color: var(--subtle); margin: 0 11px 8px; font-size: .72rem; font-weight: 750; letter-spacing: .10em; text-transform: uppercase; }
.nav a { display: flex; gap: 11px; align-items: center; min-height: 40px; padding: 9px 11px; margin-bottom: 3px; border-radius: 8px; font-size: .875rem; font-weight: 650; color: #42554a; }
.nav a svg { width: 17px; height: 17px; }
.nav a:hover { background: #eef2e9; }
.nav a[aria-current="page"] { background: #e4efdf; color: #245037; font-weight: 750; }
.side-footer { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 16px 8px 0; margin-top: auto; color: var(--subtle); font-size: .76rem; }
.side-footer svg { width: 15px; height: 15px; }
.main-column { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-width: 0; min-height: 73px; padding: 11px clamp(21px, 3.3vw, 54px); background: #fcfdf9; border-bottom: 1px solid var(--line); }
.topline, .top-actions { display: flex; align-items: center; gap: 10px; }
.portal-account { display:flex; flex-wrap:wrap; gap:6px; }
.portal-account .button { min-height:34px; padding:7px 10px; }
.breadcrumb { font-size: .91rem; font-weight: 750; }
.mobile-menu, .overlay { display: none; }
.main { width: 100%; max-width: 1500px; padding: 29px clamp(21px, 3.3vw, 54px) 43px; margin: 0 auto; }
.hero { position: relative; min-height: 299px; padding: clamp(25px, 4.1vw, 55px); border-radius: 18px; overflow: hidden; isolation: isolate; display: flex; align-items: center; background: var(--deep); color: #fff; }
.hero::before, .hero::after { position: absolute; content: ""; inset: 0; z-index: -1; pointer-events: none; }
.hero::before { background: url('assets/encapsulados.webp') right 46% / auto 153% no-repeat; }
.hero::after { background: linear-gradient(90deg,#153c2b 0%,#153c2b 26%,#153c2bf0 38%,#153c2b67 52%,#153c2b00 68%); }
.hero-content { max-width: 475px; }
.welcome { display: flex; gap: 7px; align-items: center; margin: 0 0 .72rem; color: #e0edc0; font-size: .86rem; font-weight: 700; }
.welcome svg { height: 17px; width: 17px; }
.hero h1 { color: #fffdf6; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(3rem, 5.2vw, 5.15rem); line-height: .92; letter-spacing: -.025em; margin: 0; }
.hero h1 em { color: #daebaf; font-style: italic; }
.hero-sub { max-width: 350px; margin: 17px 0 23px; color: #e3ebdf; font-size: 1rem; line-height: 1.55; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; background: var(--green); color: #fff; font-size: .875rem; font-weight: 750; text-align: center; line-height: 1.3; }
.button:hover { background: #19472f; }
.button svg { width: 17px; height: 17px; }
.button.accent { background: var(--gold); color: #243b20; }
.button.accent:hover { background: #ecf2c7; }
.button.secondary { color: var(--green); background: #fff; border-color: #cfdacc; }
.button.secondary:hover { background: var(--pale); }
.icon-button { display: inline-grid; place-items: center; padding: 0; width: 39px; height: 39px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--green); }
.icon-button:hover { background: var(--pale); }
.icon-button.mobile-menu { display: none; }
.section { margin-top: 30px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.section-head h2, .page-title, .panel h2 { margin: 0; font-size: 1.42rem; font-weight: 750; line-height: 1.2; letter-spacing: -.035em; }
.section-head p, .panel p { margin: 6px 0 0; color: var(--subtle); line-height: 1.5; }
.quick-grid, .three-grid, .two-grid { display: grid; gap: 13px; }
.quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.three-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quick-card, .panel, .feature-card { background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.quick-card { position: relative; display: flex; flex-direction: column; align-items: start; padding: 16px; min-height: 122px; transition: border-color .15s, background-color .15s; }
.quick-card:hover, .feature-card:hover { border-color: #9ab495; background: #fcfff9; }
.card-icon { width: 38px; height: 38px; display: inline-grid; flex: 0 0 auto; place-items: center; background: #edf3e8; color: var(--green); border-radius: 9px; }
.card-icon.yellow { background: #f3eedb; color: #665827; }
.card-icon.pink { background: #f4efe8; color: #775844; }
.quick-card strong { margin-top: 11px; font-size: .98rem; font-weight: 750; line-height: 1.2; }
.quick-card small { margin-top: 4px; font-size: .81rem; font-weight: 500; line-height: 1.35; color: var(--subtle); }
.feature-card { display: flex; align-items: start; gap: 12px; padding: 17px; }
.feature-card h3, .panel h3 { margin: 0; font-size: 1.04rem; font-weight: 750; letter-spacing: -.014em; line-height: 1.35; }
.feature-card p { margin: 4px 0 0; color: var(--subtle); font-size: .87rem; line-height: 1.45; }
.footer { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 11px; padding: 16px clamp(21px, 3.3vw, 54px); color: var(--subtle); font-size: .81rem; border-top: 1px solid var(--line); }
.footer span:first-child { font-weight: 750; color: var(--green); }
.page-title { font-size: clamp(1.8rem, 3.2vw, 2.65rem); }
.page-intro { margin: 8px 0 24px; color: var(--subtle); line-height: 1.55; max-width: 670px; }
.panel { padding: 20px; min-width: 0; }
.panel > .button { margin-top: 14px; }
.panel .card-icon { margin-bottom: 9px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; color: #365836; background: #eef3e9; border-radius: 6px; font-size: .75rem; font-weight: 750; }
.pill + h3 { margin-top: 10px; }
.value { font-weight: 750; font-variant-numeric: tabular-nums; }
.control-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.control-row .field:first-child { min-width: min(100%, 245px); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { color: #384a40; font-size: .875rem; font-weight: 750; }
.field input, .field select { padding: 10px; border: 1px solid #cbd7c9; border-radius: 8px; color: var(--ink); background: #fff; width: 100%; min-height: 44px; }
.field select { appearance: none; padding-right: 36px; background: #fff url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" stroke="%2324553b" stroke-width="1.8" viewBox="0 0 24 24"%3E%3Cpath d="m6 9 6 6 6-6"/%3E%3C/svg%3E') right 10px center/16px no-repeat; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.43fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 16px 0; }
.result { background: #e9f2e3; border-color: #d6e6d0; }
.result h2 { font-size: 1.12rem; }
.result-total { display: block; margin-top: 7px; color: var(--green); font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 750; letter-spacing: -.065em; }
.metrics { margin: 12px 0 0; }
.metrics div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #cfdcc9; }
.metrics dt, .metrics dd { margin: 0; }
.note { margin-top: 12px !important; font-size: .875rem; }
.error { color: #932a25 !important; }
.details-list { padding-left: 1.3rem; margin: 13px 0 0; line-height: 1.55; }
.details-list li + li { margin-top: 6px; }
.detail-text { line-height: 1.55; color: var(--subtle); }
.asset-card { overflow: hidden; padding: 0; max-width: 580px; }
.asset-card img { max-height: 270px; width: 100%; display: block; object-fit: cover; object-position: 65% 52%; background: var(--deep); }
.asset-content { padding: 18px; }
.asset-content .button { margin-top: 13px; }
dialog { width: min(90vw, 490px); max-height: 85dvh; padding: 22px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); box-shadow: 0 22px 100px #08281426; }
dialog::backdrop { background: #112d23a0; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dialog-head h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.025em; }
.empty { color: var(--subtle); margin: 0; }
.tracking-steps { padding: 0; list-style: none; margin: 17px 0; display: grid; gap: 8px; }
.tracking-steps li { display:flex; gap:9px; align-items:center; color:var(--subtle); }
.tracking-steps li::before { content:""; width:11px; height:11px; border:1px solid #adbaae; border-radius:50%; flex-shrink:0; }
.tracking-steps .complete::before { background:#88a987; border-color:#88a987; }
.tracking-steps .current { color:var(--ink); font-weight:750; }
.tracking-steps .current::before { border:3px solid var(--green); }
.tracking-details { border-top:1px solid var(--line); margin-top:16px; padding-top:13px; }
.tracking-details input { display:block; width:min(100%,34rem); margin-top:6px; border:1px solid #cbd7c9; border-radius:8px; padding:9px; color:var(--ink); }

@media (max-width: 1080px) {
  :root { --sidebar-width: 215px; }
  .hero::before { background-size: auto 135%; }
  .hero::after { background: linear-gradient(90deg,#153c2b 0%,#153c2b 17%,#153c2bf0 34%,#153c2b58 59%,#153c2b00 76%); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .layout { display: block; }
  .sidebar { position: fixed; z-index: 10; top: 0; left: 0; width: min(80vw, 265px); height: 100dvh; visibility: hidden; transform: translateX(-101%); transition: transform .18s ease-out, visibility .18s; }
  .sidebar.is-open { visibility: visible; transform: none; }
  .overlay { display: block; z-index: 9; position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: #112d2380; }
  .icon-button.mobile-menu { display: inline-grid; }
  .hero::before { background-size: auto 133%; }
  .hero::after { background: linear-gradient(90deg,#153c2b 0%,#153c2b 16%,#153c2bf7 34%,#153c2bb0 53%,#153c2b00 76%); }
  .hero-sub { max-width: 300px; }
  .main { min-height: calc(100dvh - 130px); }
}
@media (max-width: 560px) {
  .topbar { flex-wrap:wrap; }
  .top-actions { justify-content:space-between; width:100%; }
  .hero { min-height: 350px; align-items: end; padding: 22px; }
  .hero::before { background-size: auto 94%; background-position: right top -35px; }
  .hero::after { background: linear-gradient(0deg,#153c2b 0%,#153c2b 13%,#153c2bef 46%,#153c2b60 67%,#153c2b13 100%); }
  .hero h1 { font-size: clamp(2.75rem, 11vw, 3.35rem); }
  .hero-sub { margin: 12px 0 16px; }
  .main { padding-top: 18px; }
  .topbar { min-height: 65px; }
  .topline { gap: 6px; }
  .breadcrumb { font-size: .77rem; }
  .three-grid, .two-grid, .calculator-layout { grid-template-columns: minmax(0, 1fr); }
  .quick-card { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
