:root {
  font-family: Inter, Aptos, 'Segoe UI', sans-serif;
  color: #153d32;
  background: #f8f9f4;
  font-synthesis: none;
  --ink: #153d32;
  --muted: #53675e;
  --paper: #f8f9f4;
  --line: #dce4d9;
  --pale: #eef2e7;
  --lime: #d0ef83;
  --white: #fff;
  --shadow: 0 8px 30px #153d3207;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; line-height: 1.55; }
a { color: inherit; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
svg { width: 1.1em; height: 1.1em; flex: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #63852d; outline-offset: 3px; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.04em; }
h1 { font-size: clamp(2.15rem, 4.2vw, 3.45rem); font-weight: 650; }
h2 { font-size: clamp(1.25rem, 2.1vw, 1.7rem); font-weight: 650; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { color: var(--muted); }
button { color: inherit; }
.wrap { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.mono, .json-viewer { font-family: 'IBM Plex Mono', Consolas, monospace; }
.muted { color: var(--muted); }
.fine { font-size: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 5; padding: .75rem; background: white; }
.skip:focus { top: 1rem; }

.navigation { background: var(--white); border-bottom: 1px solid var(--line); }
.nav-inner { height: 66px; display: flex; gap: 40px; align-items: center; }
.navigation nav { flex: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.22rem; font-weight: 750; letter-spacing: -.045em; }
.brand-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--lime); background: var(--ink); }
.nav-item { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: .87rem; font-weight: 650; }
.nav-item[aria-current] { background: var(--pale); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; font-size: .86rem; font-weight: 650; line-height: 1.25; text-decoration: none; }
.primary { background: var(--ink); border-color: var(--ink); color: white; }
.primary:hover { background: #245c4a; }
.secondary { background: white; border-color: #c8d5c8; }
.secondary:hover, .quiet:hover { background: var(--pale); }
.quiet { background: transparent; }

.page { padding-block: 44px 68px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading p:not(.kicker) { margin-top: 8px; }
.kicker { margin-bottom: 8px; color: #4d6757; font-size: .72rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); min-width: 0; }
.filters { display: flex; align-items: end; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line); }
label { display: block; font-size: .82rem; font-weight: 650; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; margin-top: 6px; padding: 9px 11px; border: 1px solid #c8d5c8; border-radius: 8px; min-height: 42px; background: white; color: var(--ink); font-size: .9rem; font-weight: 450; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #67796d; opacity: 1; }
.search-label { flex: 1; }
.search-input { position: relative; }
.search-input svg { position: absolute; left: 12px; top: 13px; color: var(--muted); }
.search-input input { padding-left: 37px; }
.subtle-link { align-self: end; padding: 10px 0; font-size: .85rem; }
.list-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 14px 20px; }
.list-summary strong { font-size: .9rem; }
.counters { display: flex; flex-wrap: wrap; gap: 6px; }
.counter, .badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: .73rem; padding: 4px 8px; border-radius: 6px; background: var(--badge-bg); color: var(--badge-fg); }
.badge { font-weight: 650; }
.badge i, .counter i, .live-note i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 2px; }
.badge-new { --badge-bg: #edf1ec; --badge-fg: #486052; }
.badge-pending { --badge-bg: #e9f0fc; --badge-fg: #36567b; }
.badge-enriched { --badge-bg: #e3f1ec; --badge-fg: #245f51; }
.badge-atributos { --badge-bg: #e7efdf; --badge-fg: #3b5e36; }
.badge-pdp { --badge-bg: #f0edf7; --badge-fg: #594881; }
.badge-completado { --badge-bg: #e8f3d7; --badge-fg: #335521; }
.badge-failed { --badge-bg: #faece8; --badge-fg: #8d3b35; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
.product-table { min-width: 960px; font-size: .8rem; }
.product-table th, .product-table td { padding: 11px 10px; border-top: 1px solid var(--line); }
.product-table th:first-child, .product-table td:first-child { padding-left: 20px; }
.product-table th:last-child, .product-table td:last-child { padding-right: 20px; }
.product-table th { color: var(--muted); background: #f2f5ee; font-weight: 650; }
.product-table tbody tr:hover { background: #fafcf7; }
.product-table td { max-width: 195px; overflow-wrap: anywhere; }
.product-name { font-weight: 650; min-width: 105px; }
.product-table .date { min-width: 104px; color: var(--muted); font-variant-numeric: tabular-nums; }
.error-cell span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #8d3b35; }
.icon-button { display: grid; place-items: center; min-width: 34px; min-height: 34px; border: 1px solid var(--line); border-radius: 7px; }
.icon-button:hover { background: var(--pale); }
.empty { display: grid; place-items: center; gap: 11px; text-align: center; min-height: 300px; padding: 24px; border-top: 1px solid var(--line); }
.empty p { font-size: .92rem; }
.empty-icon, .section-icon { display: grid; place-items: center; border-radius: 12px; width: 44px; height: 44px; background: #e7efdf; color: var(--ink); }
.empty-icon svg { width: 24px; height: 24px; }
.live-note { display: flex; align-items: center; gap: 7px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: .72rem; color: var(--muted); }
.live-note i { color: #547c36; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: .85rem; }

.back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; text-decoration: none; color: var(--muted); font-size: .86rem; font-weight: 650; }
.back:hover { text-decoration: underline; }
.form-page { max-width: 930px; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-stack { display: grid; align-content: start; gap: 14px; }
.intake-card { padding: 24px; }
.intake-card p { font-size: .88rem; }
.intake-card p.fine { font-size: .77rem; }
.form-actions { display: flex; justify-content: end; gap: 10px; margin-top: 20px; }
.notice { display: flex; gap: 8px; align-items: baseline; margin-bottom: 15px; padding: 10px 14px; border-radius: 8px; font-size: .9rem; overflow-wrap: anywhere; }
.notice svg { align-self: center; }
.success { background: #e7f0d8; color: #335521; }
.danger { background: #faece8; color: #8d3b35; }
.warning { background: #fff1db; color: #724514; }
.product-error { white-space: pre-wrap; }
.auth-shell { display: grid; min-height: 100svh; width: min(465px, calc(100% - 36px)); margin: auto; align-items: center; padding-block: 30px; }
.auth-card { border-radius: 22px; background: white; border: 1px solid var(--line); padding: clamp(22px, 6vw, 42px); box-shadow: 0 22px 50px #183d3210; }
.auth-copy { margin-block: 38px 23px; }
.auth-copy h1 { font-size: 2.25rem; }
.auth-copy p:not(.kicker) { margin-top: 10px; }
.auth-card .form-stack .notice { margin: 0; }

.detail-page { max-width: 1180px; }
.detail-heading h1 { font-size: clamp(1.75rem, 3vw, 2.55rem); overflow-wrap: anywhere; }
.detail-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.detail-tag .kicker { margin: 0; }
.product-tabs { display: flex; gap: 17px; border-bottom: 1px solid var(--line); margin-bottom: 17px; }
.product-tabs a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); margin-bottom: -1px; border-bottom: 2px solid transparent; padding: 10px 5px; font-size: .88rem; font-weight: 650; text-decoration: none; }
.product-tabs a[aria-current] { border-color: var(--ink); color: var(--ink); }
.presentation { max-width: 1210px; padding-bottom: 45px; }
.presentation-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 14px; }
.presentation-toolbar .brand { font-size: .95rem; }
.presentation-toolbar .brand-icon { width: 28px; height: 28px; }
.pdp { padding: clamp(17px, 3.6vw, 44px); background: white; border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.pdp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 52px); align-items: start; }
.gallery-stage { display: grid; place-items: center; position: relative; aspect-ratio: 1.18; border-radius: 15px; background: #eef2e9; border: 1px solid #e5ebe1; }
.product-img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6%; object-fit: contain; }
.no-image { display: grid; place-items: center; gap: 9px; color: var(--muted); font-size: .85rem; }
.no-image svg { width: 43px; height: 43px; stroke-width: 1.25; opacity: .65; }
.thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbnails button { width: 62px; height: 53px; padding: 4px; border-radius: 8px; background: #f2f5ee; border: 1px solid var(--line); }
.thumbnails button[aria-pressed=true] { border: 2px solid var(--ink); }
.thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.image-credit { font-size: .75rem; margin-top: 8px; }
.pdp-intro { padding-top: clamp(0px, 1vw, 12px); }
.identity { margin-bottom: 12px; }
.pdp-title { font-size: clamp(1.75rem, 4vw, 3.35rem); }
.pdp-short { color: var(--muted); margin-top: 15px; }
.key-points { display: grid; gap: 8px; list-style: none; padding: 0; margin-top: 21px; }
.key-points li { display: flex; align-items: center; gap: 9px; font-size: .93rem; font-weight: 650; }
.key-points svg { color: #4a702d; }
.essentials { display: grid; grid-template-columns: repeat(2, 1fr); border-block: 1px solid var(--line); margin-top: 22px; }
.essentials div { padding: 11px 8px 11px 0; }
.essentials dt { color: var(--muted); font-size: .78rem; }
.essentials dd { font-size: 1.08rem; font-weight: 700; }
.pending-copy { margin-top: 12px; }
.pdp-section { margin-top: clamp(22px, 5vw, 54px); }
.pdp-section > h2 { margin-bottom: 17px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 10px; }
.feature { border: 1px solid var(--line); border-radius: 12px; background: #f7f9f2; padding: 17px; }
.feature h3 { margin-top: 12px; }
.feature p { margin-top: 7px; font-size: .91rem; }
.description-section { padding: clamp(18px, 3vw, 35px); border-radius: 13px; background: #f6f8f1; }
.rich { max-width: 76ch; }
.rich :is(h2, h3, h4) { margin: 1.1em 0 .45em; }
.rich > :first-child { margin-top: 0; }
.rich p + p, .rich ul, .rich ol { margin-top: .75em; }
.rich ul, .rich ol { padding-left: 22px; }
.rich blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid #a4bf7a; }
.specifications { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.specifications th, .specifications td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.specifications th { width: 45%; font-weight: 650; }
.specifications .spec-group { background: var(--pale); }
.specifications .spec-group th { padding-block: 8px; font-size: .78rem; }
.specifications tbody:last-child tr:last-child :is(th, td) { border-bottom: 0; }
.sources { padding-top: 14px; border-top: 1px solid var(--line); }
summary { font-weight: 650; }
summary svg, .source-list svg { vertical-align: -.13em; }
.source-list { display: grid; gap: 10px; padding: 0; list-style: none; margin-top: 10px; }
.source-list li { padding: 11px 14px; background: var(--paper); border-radius: 9px; font-size: .88rem; }
.source-list + h3 { margin-top: 20px; }
.evidence { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: .75rem; margin-left: 4px; }
.evidence-confirmado { background: #e7f0d8; }
.evidence-pendiente, .evidence-contradictorio { background: #fff1db; color: #724514; }

.technical-card { margin-bottom: 14px; padding: 19px; }
.metadata { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 13px; margin-top: 13px; }
.metadata dt { font-size: .76rem; color: var(--muted); }
.metadata dd { overflow-wrap: anywhere; font-size: .89rem; }
.retry form { margin-top: 15px; max-width: 620px; }
.retry button { justify-self: start; }
.retry .notice { margin: 0; }
.checkbox { display: flex; align-items: baseline; gap: 8px; }
.checkbox input { accent-color: var(--ink); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading p { margin-top: 5px; font-size: .85rem; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.json-viewer { margin: 13px 0 0; max-height: 490px; padding: 15px; overflow: auto; background: #122d26; color: #e2f1d9; border-radius: 9px; font-size: .83rem; tab-size: 2; }
#copy-status:not(:empty) { margin-top: 10px; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 32px); }
  .filters { flex-wrap: wrap; }
  .search-label { flex-basis: 100%; }
  .page { padding-top: 30px; }
}

@media (max-width: 600px) {
  .nav-inner { gap: 12px; height: 56px; }
  .brand { font-size: 1.03rem; gap: 6px; }
  .brand-icon { width: 29px; height: 29px; }
  .nav-item { padding: 7px; font-size: .76rem; gap: 5px; }
  .signout { padding-inline: 6px; }
  .signout span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .page-heading, .section-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .form-columns, .pdp-hero { grid-template-columns: minmax(0, 1fr); }
  .filters { padding: 13px; gap: 9px; }
  .filters > label:not(.search-label) { flex: 1 1 120px; }
  .list-summary, .live-note { padding-inline: 13px; }
  .intake-card { padding: 17px; }
  .pdp { border-radius: 13px; }
  .presentation-toolbar .button { padding-inline: 7px; font-size: .75rem; }
}
