:root {
  color-scheme: light;
  --paper: #f7f7f7;
  --white: #fff;
  --ink: #151515;
  --muted: #585858;
  --border: #d6d6d6;
  --quiet: #efefef;
  --frame: 1240px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: var(--paper); color: var(--ink); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button[disabled] { cursor: wait; opacity: .55; }
a { color: inherit; }
:focus-visible { outline: 3px solid #242424; outline-offset: 4px; }
.visually-hidden, .skip:not(:focus) { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 12px; background: white; }
.frame { width: min(calc(100% - 72px), var(--frame)); margin-inline: auto; }
.top { background: var(--white); border-bottom: 1px solid var(--border); }
.top-inner, .footer-inner, .section-top, .request-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top-inner { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: 15px; font-weight: 700; white-space: nowrap; }
.brand-mark { display: block; width: 51px; height: 30px; overflow: hidden; position: relative; }
.brand-mark img { position: absolute; width: 102px; height: 102px; max-width: none; left: -25.5px; top: -36px; }
.brand-name { border-left: 1px solid var(--border); padding-left: 14px; }
.top-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.environment, .eyebrow { font-size: 11px; text-transform: uppercase; font-weight: 720; letter-spacing: .12em; }
.environment { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.environment::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; }
.text-btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px; background: transparent; color: inherit; font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; padding: 0 4px; border: 0; }
main:focus, h1:focus, h2:focus { outline: none; }
.welcome, .content-column { padding: 43px 0 58px; }
.hero { min-height: 300px; padding: clamp(32px, 5vw, 69px); color: white; background: #181818; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; isolation: isolate; }
.hero::before, .hero::after { content: ""; width: clamp(260px, 37vw, 530px); aspect-ratio: 1; position: absolute; border: 1px solid #5b5b5b; transform: rotate(39deg); right: -12%; z-index: -1; }
.hero::before { top: -38%; box-shadow: 0 0 0 22px #181818, 0 0 0 23px #474747, 0 0 0 45px #181818, 0 0 0 46px #383838; }
.hero::after { top: -18%; right: -17%; border-color: #353535; }
.hero h1 { font-size: clamp(43px, 7vw, 91px); line-height: .98; letter-spacing: -.067em; margin: 12px 0 20px; }
.hero .eyebrow { color: #d3d3d3; margin: 0; }
.hero p:last-child { color: #e2e2e2; font-size: clamp(15px, 1.8vw, 20px); margin: 0; max-width: 35em; }
.section-top { margin: 34px 0 16px; align-items: baseline; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-size: clamp(25px, 3vw, 36px); letter-spacing: -.045em; line-height: 1.15; margin-bottom: 7px; }
h3 { font-size: 20px; letter-spacing: -.027em; line-height: 1.2; margin-bottom: 7px; }
.section-top p, .subtle, .help { color: var(--muted); margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.login-card, .catalog-card, .panel-card { background: var(--white); border: 1px solid var(--border); padding: 24px; }
.login-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 167px; }
.login-card p, .catalog-card p { color: var(--muted); font-size: 14px; }
.action { width: fit-content; display: inline-flex; gap: 11px; min-height: 45px; justify-content: center; align-items: center; border: 1px solid var(--ink); background: var(--ink); padding: 10px 15px; color: white; font-weight: 650; text-decoration: none; font-size: 14px; }
.action:hover { background: #363636; }
.action.secondary { background: white; color: var(--ink); }
.action.secondary:hover { background: var(--quiet); }
.action.zone { width: 100%; justify-content: space-between; }
.arrow { font-size: 19px; line-height: 1; font-weight: 400; }
.app-layout { display: grid; grid-template-columns: 212px minmax(0,1fr); min-height: calc(100vh - 141px); }
.sidebar { border-right: 1px solid var(--border); padding: 32px 20px 25px 0; }
.identity { border-bottom: 1px solid var(--border); margin: 0 0 20px; padding: 0 8px 16px; }
.identity strong { display: block; line-height: 1.3; }
.identity small { color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { padding: 10px 11px; text-decoration: none; font-size: 14px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.nav a:hover { background: var(--quiet); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: white; font-weight: 650; }
.content-column { padding-left: 40px; min-width: 0; }
.page-head { margin: 0 0 28px; }
.page-head h1 { font-size: clamp(37px, 5vw, 65px); line-height: 1; letter-spacing: -.063em; margin-bottom: 10px; }
.page-head p { color: var(--muted); margin-bottom: 0; }
.catalog-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 175px; }
.catalog-card .eyebrow { color: var(--muted); margin-bottom: 8px; }
.catalog-card .action { margin-top: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 6px; text-align: left; }
.field > span { font-size: 14px; font-weight: 650; }
.full { grid-column: 1 / -1; }
.help { font-size: 13px; }
input:not([type="checkbox"]), select, textarea { width: 100%; color: var(--ink); min-height: 45px; border: 1px solid #8b8b8b; border-radius: 0; background: var(--white); padding: 9px 10px; }
textarea { min-height: 86px; resize: vertical; }
input[type="checkbox"] { accent-color: var(--ink); inline-size: 17px; block-size: 17px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.requests { display: grid; gap: 12px; }
.request { border: 1px solid var(--border); background: white; }
.request-head { align-items: flex-start; padding: 20px; }
.request-summary h3 { margin: 2px 0 4px; }
.request-summary p { margin: 0; font-size: 14px; color: var(--muted); }
.request-details { padding: 14px 20px 20px; border-top: 1px solid var(--border); }
.request-details dl { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.request-details dt { font-size: 12px; color: var(--muted); }
.request-details dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.status { padding: 4px 9px; white-space: nowrap; background: var(--quiet); color: var(--ink); font-size: 12px; font-weight: 660; line-height: 1.4; border: 1px solid var(--border); }
.status[data-status="Recibida"] { color: white; background: var(--ink); border-color: var(--ink); }
.small-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 14px; }
.small-form .field { min-width: 175px; }
.permissions { display: grid; gap: 13px; }
.permissions fieldset { padding: 0; margin: 12px 0 16px; border: 0; display: flex; flex-wrap: wrap; gap: 12px 20px; }
.permissions fieldset label { display: flex; gap: 7px; align-items: center; font-size: 14px; }
.permissions legend { margin-bottom: 6px; font-weight: 650; font-size: 14px; }
.empty { padding: 24px; color: var(--muted); border: 1px solid var(--border); background: white; }
.empty p { margin-bottom: 14px; }
.empty p:last-child { margin-bottom: 0; }
.alert { color: var(--ink); font-size: 14px; padding: 10px 12px; border-left: 3px solid var(--ink); background: var(--quiet); display: none; }
.alert:not(:empty) { display: block; margin: 13px 0; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; background: white; text-align: left; }
th, td { border-bottom: 1px solid var(--border); padding: 12px 14px; vertical-align: top; }
th { font-size: 13px; }
td.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pending-filters { max-width: 42rem; }
.pending-count { margin: 12px 0 8px; font-size: 14px; }
.pending-list .table-wrap { border: 1px solid var(--border); }
.pending-list table { min-width: 31rem; }
.pending-list tr:last-child td { border-bottom: 0; }
.pending-list td:last-child { white-space: nowrap; }
.pending-status .status { display: inline-block; }
.pending-status small { display: block; margin-top: 3px; font-weight: 660; }
.pending-action strong, .pending-action small, .pending-category { display: block; overflow-wrap: anywhere; }
.pending-category, .pending-action small { color: var(--muted); font-size: 13px; }
.import-source h2 { margin-bottom: 12px; }
.import-source p { margin-bottom: 12px; }
.import-source code { overflow-wrap: anywhere; }
.import-fields { margin: 0; padding: 0; border: 0; min-width: 0; }
.import-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0; }
.import-confirm label { display: flex; align-items: center; gap: 8px; }
.import-table { border: 1px solid var(--border); }
.import-table table { min-width: 36rem; }
.import-table tr:last-child td { border-bottom: 0; }
.import-table td { overflow-wrap: anywhere; }
.import-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.import-table .status[data-import-status="error"] { color: var(--white); background: var(--ink); border-color: var(--ink); }
.dae-coverage dl { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 17px 0; }
.dae-coverage dt, .dae-work-group summary span { color: var(--muted); font-size: 14px; }
.dae-coverage dd { margin: 0; font-weight: 650; }
.dae-date-note { margin-bottom: 0; }
.dae-limitations { margin: 10px 0 0; padding-inline-start: 19px; }
.dae-source-section { margin-top: 27px; }
.dae-source-section h2 { margin-bottom: 12px; }
.dae-back { margin-bottom: 15px; }
.dae-source-label { display: block; color: var(--muted); }
.dae-serial-link { font-weight: 650; text-underline-offset: .17em; overflow-wrap: anywhere; }
.dae-serial-links { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.dae-trace-list { list-style: none; padding: 0; margin: 13px 0 0; border: 1px solid var(--border); background: var(--white); }
.dae-trace-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 12px; padding: 10px 14px; }
.dae-trace-list li + li { border-top: 1px solid var(--border); }
.dae-trace-list li span { color: var(--muted); font-size: 14px; }
.dae-trace-list li[hidden], .dossier-directory [hidden] { display: none; }
.dae-work-list { display: grid; gap: 6px; }
.dae-work-group { background: var(--white); border: 1px solid var(--border); }
.dae-work-group summary { cursor: pointer; padding: 10px 14px; min-height: 44px; overflow-wrap: anywhere; }
.dae-work-group summary span { margin-inline-start: 10px; }
.dae-work-group[open] summary { border-bottom: 1px solid var(--border); }
.dae-work-group td { font-variant-numeric: tabular-nums; }
.dossier-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dossier-section { border-top: 1px solid var(--border); padding-top: 24px; scroll-margin-top: 20px; }
.dossier-section h3 { margin: 20px 0 12px; }
.dossier-section [hidden] { display: none; }
.dossier-section .table-wrap { border: 1px solid var(--border); }
.dossier-section td { overflow-wrap: anywhere; }
.dossier-section tr:last-child td { border-bottom: 0; }
.dossier-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 14px 22px; margin: 0 0 14px; }
.dossier-facts dt { color: var(--muted); font-size: 14px; }
.dossier-facts dd { margin: 2px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.dossier-state { padding: 9px 12px; border-left: 3px solid var(--ink); background: var(--quiet); }
.dossier-forms { display: grid; gap: 12px; margin-top: 16px; }
.dossier-section [data-care-review] { margin-top: 16px; }
.dossier-section [data-care-review] h3 { margin-top: 0; }
.dossier-form h3 { margin-top: 0; }
.model-footprint > h3 { margin-top: 0; }
.model-footprint > .subtle { margin-bottom: 14px; }
.model-footprint-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.model-footprint-form h4 { margin: 0 0 12px; }
.dossier-form .alert:not(:empty) { margin-bottom: 0; }
.dossier-form input[type="date"] { min-width: 0; }
.dossier-form > .field input[type="date"] { max-width: 24rem; }
.dossier-materials { margin-top: 25px; padding-top: 1px; border-top: 1px solid var(--border); }
.dossier-identity { padding: 12px 0; }
.dossier-identity > div:last-child { min-width: min(100%, 18rem); }
.dossier-identity > div:last-child dd { font-size: 14px; font-weight: 500; }
.dossier-directory { margin-bottom: 28px; }
.dossier-search { max-width: 24rem; }
.dossier-create { margin: 0 0 16px; }
.gestion-areas { display: grid; gap: 8px; }
.gestion-area-body { padding: 16px; }
.gestion-area-body > .subtle { margin-bottom: 14px; }
.gestion-area-body .dossier-facts dd { white-space: pre-wrap; }
.gestion-area-body [data-area-form] { margin-top: 18px; }
.gestion-records, .gestion-history { margin: 0; padding: 0; list-style: none; }
.gestion-records > li, .gestion-history > li { padding: 12px; border: 1px solid var(--border); }
.gestion-records > li + li, .gestion-history > li + li { border-top: 0; }
.gestion-record-time { margin-bottom: 10px; font-size: 13px; }
.gestion-record-actions, .gestion-history > li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.gestion-record-actions a { overflow-wrap: anywhere; }
.gestion-history time { color: var(--muted); font-size: 14px; }
.commercial-record-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 10px; }
.commercial-record-head p { margin: 0; overflow-wrap: anywhere; }
.commercial-records .dossier-facts dd { font-weight: 500; }
.commercial-record-audit { font-size: 13px; }
.ownership-block > h3:first-child { margin-top: 0; }
.ownership-current { padding: 12px; border: 1px solid var(--border); }
.ownership-block .dossier-facts:last-child { margin-bottom: 0; }
.ownership-person { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0 0 10px; overflow-wrap: anywhere; }
.ownership-person span { color: var(--muted); }
.ownership-history, .ownership-fields, .ownership-help, .ownership-form [data-ownership-buyer] { margin: 12px 0; }
.ownership-review form > .subtle { margin-bottom: 12px; }
.ownership-fields { min-width: 0; padding: 0; border: 0; }
.ownership-decision { font-size: 13px; margin-bottom: 4px; }
.ownership-confirmation { display: inline-flex; align-items: center; gap: 7px; }
.ownership-preview { margin-bottom: 14px; }
.ownership-activation { margin-top: 12px; }
.owner-preview-notice { padding: 12px 15px; margin-bottom: 16px; border-left: 3px solid var(--ink); background: var(--quiet); }
.owner-preview-notice p { margin: 0; }
.owner-preview-notice p + p { margin-top: 6px; }
.owner-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.owner-preview-card { min-width: 0; }
.owner-preview-card:first-child { grid-column: 1 / -1; }
.owner-preview-card > h2 { margin-bottom: 14px; }
.owner-preview-card > :last-child { margin-bottom: 0; }
.owner-preview-list { list-style: none; margin: 0; padding: 0; }
.owner-preview-list li { padding: 9px 0; overflow-wrap: anywhere; }
.owner-preview-list li + li { border-top: 1px solid var(--border); }
.owner-preview-list small { display: block; color: var(--muted); }
.owner-preview-file { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 5px 12px; }
.owner-preview-file a { font-size: 14px; text-underline-offset: .17em; }
.owner-preview-history .owner-preview-list { padding: 0 14px; }
.owner-care-form, .owner-care-attachment { display: grid; gap: 12px; }
.owner-care-form { padding-top: 14px; border-top: 1px solid var(--border); }
.owner-care-form h3, .owner-care-form > .help { margin: 0; }
.owner-care-form + .owner-preview-history { margin-top: 16px; }
.owner-care-form input[type="date"] { min-width: 0; }
.owner-care-attachment { flex-basis: 100%; min-width: 0; }
.owner-care-form .alert:not(:empty), .owner-care-attachment .alert:not(:empty) { margin: 0; }
.portal-logout[hidden] { display: none; }
.portal-main { min-height: calc(100vh - 141px); padding-block: clamp(26px, 5vw, 58px); }
.portal-access { width: min(100%, 32rem); margin-inline: auto; padding: clamp(20px, 5vw, 40px); }
.portal-access h1 { margin: 0 0 11px; font-size: clamp(28px, 5vw, 43px); line-height: 1.1; letter-spacing: -.05em; }
.portal-access > p { margin-bottom: 15px; }
.portal-access form > .field { margin-top: 13px; }
.portal-access form > .help { margin-top: 4px; }
.portal-access .portal-activate-help { margin: 17px 0 0; }
.portal-access .portal-registration-link { margin: 12px 0 0; }
.portal-registration { width: min(100%, 40rem); }
.portal-registration-section { min-width: 0; margin: 20px 0 0; border: 0; border-top: 1px solid var(--border); padding: 14px 0 0; }
.portal-registration-section legend { padding: 0 9px 0 0; font-weight: 650; }
.portal-registration-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 17px; font-size: 14px; }
.portal-registration-consent input { width: 18px; height: 18px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--ink); }
.portal-main .page-head h1 { font-size: clamp(39px, 7vw, 61px); }
.footer { border-top: 1px solid var(--border); }
.footer-inner { min-height: 68px; font-size: 12px; color: var(--muted); }
.footer-inner p { margin: 0; }
@media (max-width: 920px) {
  .frame { width: min(calc(100% - 42px), var(--frame)); }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .welcome .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .app-layout { grid-template-columns: 169px minmax(0,1fr); }
  .content-column { padding-left: 25px; }
  .sidebar { padding-right: 13px; }
}
@media (max-width: 660px) {
  .frame { width: calc(100% - 32px); }
  .top-inner { min-height: 58px; gap: 8px; }
  .top-right { gap: 8px; }
  .environment { font-size: 9px; letter-spacing: .07em; }
  .top-right .environment { display: none; }
  .welcome { padding-top: 22px; padding-bottom: 33px; }
  .hero { min-height: 247px; padding: 24px; }
  .hero::before { top: -27%; right: -42%; border-color: #464646; }
  .hero::after { right: -51%; }
  .welcome .card-grid, .card-grid, .form-grid { grid-template-columns: 1fr; }
  .owner-preview-grid { grid-template-columns: 1fr; }
  .login-card { min-height: 0; padding: 19px; }
  .app-layout { display: block; min-height: calc(100vh - 130px); }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--border); padding: 11px 0 9px; }
  .identity { border-bottom: 0; margin: 0; padding: 4px 0 7px; }
  .identity strong { display: inline; margin-right: 8px; font-size: 14px; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 2px 5px; }
  .nav a { padding: 8px; font-size: 13px; }
  .nav .arrow { display: none; }
  .content-column { padding: 25px 0 40px; }
  .request-summary h3 { font-size: 17px; }
  .status { white-space: normal; }
  .request-details dl { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; padding: 12px 0; }
}
