:root {
    --bg: #f5f6f8;
    --paper: #ffffff;
    --ink: #1a1d23;
    --muted: #6b7280;
    --line: #e6e8ee;
    --accent: #0e6e62;
    --accent-ink: #0b4f46;
    --warn: #b45309;
    --ok: #0e6e62;
    --err: #b42318;
    --wa: #128c4b;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 20px rgba(16, 24, 40, 0.04);
    --radius: 10px;
    --font: Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.45;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 60px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 650;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.brand img { height: 32px; width: auto; }
.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
}
.brand-mark svg { width: 16px; height: 16px; }
.header-search {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    width: min(100%, 560px);
    justify-self: start;
}
.header-search:focus-within { border-color: #c5cbd6; background: #fff; }
.header-search input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 8px 12px;
    outline: none;
    font-size: 0.9rem;
}
.header-search button {
    border: 0;
    background: transparent;
    padding: 0 12px;
    color: var(--muted);
    cursor: pointer;
}
.header-search svg { width: 16px; height: 16px; display: block; }
.header-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.875rem;
}
.header-nav a { text-decoration: none; color: var(--muted); }
.header-nav a:hover,
.header-nav a.is-active { color: var(--ink); }
.header-nav a.is-active { font-weight: 600; }
.header-nav a.btn-wa,
.header-nav a.btn-wa:hover,
.header-nav a.btn-wa:focus,
.header-nav a.btn-wa.is-active {
    color: #fff;
    background: #0b7a3f;
    font-weight: 650;
    font-size: 0.875rem;
}

.btn, .btn-wa, .btn-primary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #111318; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-wa {
    background: #0b7a3f;
    color: #fff;
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.875rem;
    font-weight: 650;
}
.btn-wa:hover { background: #096b37; color: #fff; }
.btn-wa svg { display: block; flex-shrink: 0; }
.btn-block { width: 100%; }

.flash {
    margin: 16px 0 0;
    padding: 10px 14px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
}
.flash button { border: 0; background: none; font-size: 1.1rem; cursor: pointer; }
.flash-ok { background: #e8f6f2; color: var(--accent-ink); }
.flash-err { background: #fdecec; color: var(--err); }

.page-head,
.hero {
    padding: 22px 0 4px;
}
.page-head-inner,
.hero-inner { max-width: none; }
.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 650;
    margin-bottom: 4px;
}
.page-head h1,
.hero h1 {
    font-size: 1.25rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
    font-weight: 650;
    margin-bottom: 4px;
}
.page-head p,
.hero-copy {
    color: var(--muted);
    font-size: 0.875rem;
}

.catalog {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 16px 0 64px;
    align-items: start;
}
.filters {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    height: fit-content;
    position: sticky;
    top: 76px;
}
.filters-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.filters h2,
.lista-filters .filters-head h2 {
    font-size: 0.8rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.filters-toggle {
    display: none;
    border: 0;
    background: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}
.filters-form { display: grid; gap: 10px; }
.filters-form label { display: grid; gap: 4px; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.filters-form input,
.filters-form select,
.lead-form input,
.lead-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--ink);
    font-size: 0.875rem;
}
.filters-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters-actions { display: grid; gap: 8px; margin-top: 4px; }

.results-bar {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 12px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.product-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.product-card:hover {
    border-color: #cfd4de;
    box-shadow: var(--shadow);
}
.product-media {
    aspect-ratio: 1;
    background: #f3f4f7;
    position: relative;
    overflow: hidden;
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}
.product-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #c5cad3;
}
.product-placeholder svg { width: 36px; height: 36px; }
.product-placeholder.tall { min-height: 320px; }
.chip {
    position: absolute;
    left: 8px;
    top: 8px;
    background: #fff7ed;
    color: var(--warn);
    font-size: 0.68rem;
    font-weight: 650;
    padding: 3px 7px;
    border-radius: 999px;
}
.product-body { padding: 10px 12px 12px; }
.product-cat {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.product-body h3, .buybox h1 {
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.product-body h3 {
    font-size: 0.88rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}
.product-price, .price-lg {
    margin-top: 8px;
    font-weight: 650;
    letter-spacing: -0.02em;
    font-size: 0.95rem;
}
.price-lg { font-size: 1.35rem; margin: 8px 0 0; }

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    font-size: 0.875rem;
}
.pager a { color: var(--accent); font-weight: 600; text-decoration: none; }
.empty {
    background: var(--paper);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
}
.empty h2 { font-size: 1.05rem; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 14px; font-size: 0.9rem; }

.product-page { padding: 18px 0 64px; }
.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 0.8rem;
    margin-bottom: 16px;
}
.crumbs a { color: var(--accent); text-decoration: none; }
.product-layout {
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    gap: 28px;
    align-items: start;
}
.gallery-main {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    min-height: 320px;
}
.gallery-main img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: #f3f4f7;
    padding: 12px;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 1.2rem;
}
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow: auto; }
.miniatura {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}
.miniatura.is-active { border-color: var(--ink); }
.miniatura img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #f3f4f7; }

.buybox {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}
.buybox h1 { font-size: 1.2rem; font-weight: 650; margin: 2px 0 6px; }
.sku, .price-note { color: var(--muted); font-size: 0.82rem; }
.stock-ok { color: var(--ok); font-weight: 600; margin: 8px 0 14px; font-size: 0.875rem; }
.buybox .btn-wa { margin: 14px 0 4px; }
.specs {
    margin: 18px 0 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}
.specs div {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.875rem;
}
.specs dt { color: var(--muted); }
.desc { margin: 18px 0 0; }
.desc h2, .lead-form h2 { font-size: 0.92rem; margin-bottom: 6px; }
.desc p { color: var(--muted); font-size: 0.9rem; }

.lead-form {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
}
.lead-form p { color: var(--muted); font-size: 0.85rem; }
.lead-form label { display: grid; gap: 4px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }

.site-footer {
    background: #111318;
    color: #d7dbe3;
    padding: 36px 0 18px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 24px;
}
.footer-brand { font-size: 1rem; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 6px; color: #fff; }
.footer-lead, .site-footer p { color: #9aa3b2; font-size: 0.875rem; }
.site-footer h3 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; color: #fff; }
.site-footer a { color: #d7dbe3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 0.78rem;
}

@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .header-bar {
        grid-template-columns: 1fr auto;
        grid-template-areas: "brand nav" "search search";
        padding: 10px 0 12px;
        min-height: 0;
    }
    .brand { grid-area: brand; }
    .header-nav { grid-area: nav; }
    .header-search { grid-area: search; display: flex; width: 100%; justify-self: stretch; }
    .catalog { grid-template-columns: 1fr; }
    .filters { position: static; }
    .filters-toggle { display: inline; }
    .filters .filters-form { display: none; }
    .filters.is-open .filters-form { display: grid; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .header-nav a:not(.btn-wa):not(.nav-store) { display: none; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .gallery-main img { height: 260px; }
    .footer-bottom { flex-direction: column; }
    .page-head h1, .hero h1 { font-size: 1.15rem; }
}

body.is-lista .container {
    width: min(1520px, calc(100% - 48px));
}
body.is-lista .page-head { padding: 28px 0 0; }
body.is-lista .page-head h1 { font-size: 1.65rem; letter-spacing: -0.035em; }
body.is-lista .page-head p { font-size: 0.95rem; max-width: 42rem; }

.lista-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr) 300px;
    gap: 22px;
    padding: 20px 0 72px;
    align-items: start;
}
.hero-lista { padding-bottom: 4px; }
.lista-main.is-loading,
.catalog-main.is-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.lista-filters {
    position: sticky;
    top: 76px;
    display: grid;
    gap: 12px;
}
.lista-filters .filters-form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
}
.lista-filters .filters-form input:focus,
.lista-filters .filters-form select:focus {
    outline: none;
    border-color: #9ecfc8;
    box-shadow: 0 0 0 3px rgba(14, 110, 98, 0.12);
}
.lista-filters .filters-head { margin-bottom: 10px; }
.lista-cats {
    display: grid;
    gap: 2px;
    font-size: 0.8rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow);
    max-height: 42vh;
    overflow: auto;
}
.lista-cats a {
    color: var(--muted);
    text-decoration: none;
    display: block;
    padding: 7px 10px;
    border-radius: 8px;
}
.lista-cats a:hover { color: var(--ink); background: var(--bg); }
#listaClear[hidden] { display: none !important; }
.lista-group { margin-bottom: 28px; }
.lista-group h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.lista-group h2::before {
    content: "";
    width: 3px;
    height: 16px;
    border-radius: 99px;
    background: var(--accent);
}
.lista-group h2 span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    background: #eef0f4;
    border-radius: 99px;
    padding: 2px 8px;
}
.lista-table-wrap {
    overflow-x: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}
.lista-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.lista-table th, .lista-table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.lista-table th {
    position: sticky;
    top: 0;
    background: #f8f9fb;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.lista-table th:nth-child(2),
.lista-table td.lista-price { text-align: right; }
.lista-table th:nth-child(3),
.lista-table td:last-child { text-align: right; width: 1%; }
.lista-table tr:last-child td { border-bottom: 0; }
.lista-table tbody tr:hover { background: #f6fbfa; }
.lista-table td strong { font-weight: 600; letter-spacing: -0.01em; }
.lista-meta { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 500; margin-top: 2px; }
.lista-price { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.btn-add-quote {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.78rem;
}
.btn-add-quote:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.lista-filter-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 8px;
    min-height: 36px;
    padding: 0 12px;
    font-weight: 650;
    font-size: 0.8rem;
    cursor: pointer;
}
.quote-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 19, 24, 0.45);
    z-index: 34;
}
.quote-backdrop:not([hidden]) { display: block; }
.quote-fab.is-pulse { animation: quotePulse 0.45s ease; }
@keyframes quotePulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.06); }
    100% { transform: scale(1); }
}
.quote-panel {
    position: sticky;
    top: 76px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
}
.quote-head { display: flex; justify-content: space-between; align-items: center; }
.quote-head h2 { font-size: 1rem; letter-spacing: -0.02em; }
.quote-close { display: none; border: 0; background: none; font-size: 1.3rem; cursor: pointer; }
.quote-hint, .quote-empty { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.quote-items { display: grid; gap: 8px; max-height: 360px; overflow: auto; }
.quote-line {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}
.quote-line strong { display: block; font-size: 0.8rem; }
.quote-line span { color: var(--muted); font-size: 0.75rem; }
.quote-qty { display: flex; align-items: center; gap: 6px; }
.quote-qty button, .quote-remove {
    width: 24px;
    height: 24px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
}
.quote-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.quote-total strong { color: var(--ink); font-size: 1.25rem; letter-spacing: -0.03em; }
.quote-fab {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    border: 0;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 650;
    cursor: pointer;
}
.quote-modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 19, 24, .48);
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 16px;
}
.quote-modal[hidden] { display: none !important; }
.quote-modal-card {
    width: min(440px, 100%);
    background: var(--paper);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    gap: 8px;
}
.quote-modal-card h2 { font-size: 1.05rem; }
.quote-modal-card p { color: var(--muted); font-size: 0.85rem; }
.quote-modal-card label { display: grid; gap: 4px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.quote-modal-card input, .quote-modal-card textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}
.quote-modal-actions { display: flex; gap: 8px; margin-top: 8px; }
@media (max-width: 1280px) {
    .lista-layout { grid-template-columns: 220px minmax(0, 1fr) 272px; gap: 16px; }
}
@media (max-width: 1024px) {
    body.is-lista .container { width: min(1520px, calc(100% - 24px)); }
    .lista-layout {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 0 108px;
    }
    .lista-filters {
        position: static;
        gap: 8px;
    }
    .lista-filters .filters-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 8px 10px 8px 14px;
        box-shadow: var(--shadow);
    }
    .lista-filter-toggle { display: inline-flex; align-items: center; min-height: 44px; }
    .lista-filters .filters-form { display: none; }
    .lista-filters.is-open .filters-form { display: grid; }
    .lista-filters .filters-form input,
    .lista-filters .filters-form select {
        font-size: 16px;
        min-height: 44px;
        padding: 10px 12px;
    }
    .lista-filters .filters-actions .btn { min-height: 44px; }
    .lista-cats {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 8px;
        scrollbar-width: thin;
    }
    .lista-cats a {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 0.84rem;
        background: #f3f4f7;
        color: var(--ink);
        -webkit-tap-highlight-color: transparent;
    }
    .lista-cats a:hover { background: #e8eaef; }
    .lista-table-wrap { overflow: visible; }
    .lista-table,
    .lista-table thead,
    .lista-table tbody,
    .lista-table tr,
    .lista-table th,
    .lista-table td { display: block; width: 100%; }
    .lista-table thead { display: none; }
    .lista-table tbody { display: grid; gap: 8px; padding: 8px; }
    .lista-table tr.lista-row {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "name name"
            "price btn";
        gap: 6px 10px;
        align-items: end;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
    }
    .lista-table td {
        padding: 0;
        border: 0;
        text-align: left;
        width: auto;
    }
    .lista-table td:first-child { grid-area: name; }
    .lista-table td.lista-price {
        grid-area: price;
        text-align: left;
        font-size: 1.12rem;
        font-weight: 700;
        color: var(--ink);
    }
    .lista-table td:last-child {
        grid-area: btn;
        width: auto;
        text-align: right;
    }
    .lista-table td strong {
        display: block;
        font-size: 0.98rem;
        line-height: 1.35;
        letter-spacing: -0.015em;
    }
    .btn-add-quote {
        min-height: 44px;
        min-width: 92px;
        padding: 0 14px;
        font-size: 0.88rem;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    .quote-panel {
        position: fixed;
        top: auto;
        right: 12px;
        left: 12px;
        bottom: 12px;
        z-index: 35;
        display: none;
        max-height: min(78vh, 640px);
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        overflow: auto;
    }
    .quote-panel.is-open { display: grid; }
    .quote-close { display: inline; min-width: 44px; min-height: 44px; }
    .quote-fab {
        display: inline-flex;
        gap: 8px;
        align-items: center;
        min-height: 48px;
        padding: 0 18px;
        font-size: 0.95rem;
        bottom: max(16px, env(safe-area-inset-bottom));
        right: 16px;
        z-index: 36;
        box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18);
    }
    .quote-qty button, .quote-remove {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .quote-line {
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: start;
    }
    .quote-line strong { overflow-wrap: anywhere; }
    body.quote-open { overflow: hidden; }
    body.quote-open .quote-fab { visibility: hidden; pointer-events: none; }
}
@media (max-width: 720px) {
    body.is-lista .container { width: calc(100% - 20px); }
    body.is-lista .header-bar {
        grid-template-areas: "brand nav" "search search";
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 52px;
        padding: 8px 0;
    }
    body.is-lista .header-search {
        width: 100%;
        justify-self: stretch;
    }
    body.is-lista .header-search input { font-size: 16px; padding: 10px 12px; }
    body.is-lista .header-nav a:not(.btn-wa) { display: none; }
    body.is-lista .brand-text {
        max-width: 11.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    body.is-lista .page-head { padding: 10px 0 0; }
    body.is-lista .page-head h1 { font-size: 1.28rem; line-height: 1.25; }
    body.is-lista .page-head p { display: none; }
    .results-bar { font-size: 0.9rem; margin: 2px 0 8px; }
    .lista-group { margin-bottom: 18px; }
    .lista-group h2 { font-size: 1.05rem; margin-bottom: 8px; }
    .lista-meta { font-size: 0.8rem; margin-top: 4px; }
    .quote-modal { padding: 12px; align-items: end; }
    .quote-modal-card {
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 18px 16px max(18px, env(safe-area-inset-bottom));
        max-height: 92vh;
        overflow: auto;
    }
    .quote-modal-card input,
    .quote-modal-card textarea { font-size: 16px; min-height: 44px; }
    .quote-modal-actions .btn { min-height: 44px; flex: 1; }
    .quote-line strong { font-size: 0.9rem; line-height: 1.35; }
}

@media (hover: none) {
    .lista-table tbody tr:hover { background: transparent; }
    .btn-add-quote:hover { background: #fff; color: var(--ink); border-color: var(--line); }
}

.track-page { padding: 32px 0 64px; }
.track-hero { max-width: 560px; margin-bottom: 24px; }
.track-kicker { color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.track-hero h1 { font-size: 1.8rem; letter-spacing: -0.03em; margin: 4px 0 8px; }
.track-hero p { color: var(--muted); }
.track-form { max-width: 560px; margin-bottom: 24px; }
.track-form label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; }
.track-form-row { display: flex; gap: 8px; }
.track-form input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.track-form button {
    border: 0;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
}
.track-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow);
}
.track-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.track-ticket { font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
.track-card h2 { font-size: 1.2rem; margin: 4px 0; }
.track-meta, .track-problem, .track-empty, .track-cancel { color: var(--muted); font-size: 0.9rem; }
.track-problem { margin-bottom: 18px; }
.track-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #eef2ff;
    color: #3730a3;
    white-space: nowrap;
}
.track-status.status-listo { background: #ecfdf5; color: #047857; }
.track-status.status-entregado { background: #f1f5f9; color: #334155; }
.track-status.status-cancelado { background: #fef2f2; color: #b91c1c; }
.track-status.status-reparacion, .track-status.status-repuestos { background: #fff7ed; color: #c2410c; }
.track-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 20px;
    padding: 0;
}
.track-steps li {
    font-size: 0.72rem;
    color: var(--muted);
    border-top: 3px solid var(--line);
    padding-top: 8px;
}
.track-steps li.is-done { border-color: var(--ok); color: var(--ok); }
.track-steps li.is-current { border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.track-card h3 { font-size: 1rem; margin-bottom: 10px; }
.track-timeline { list-style: none; padding: 0; display: grid; gap: 12px; }
.track-timeline li { border-left: 3px solid var(--line); padding-left: 12px; }
.track-timeline time { display: block; color: var(--muted); font-size: 0.75rem; margin: 2px 0 4px; }
@media (max-width: 720px) {
    .track-steps { grid-template-columns: 1fr 1fr; }
    .track-form-row { flex-direction: column; }
    .track-card-head { flex-direction: column; }
}
