:root{
    --bg:#f5f5f5;
    --surface:#ffffff;
    --surface-soft:#fafafa;
    --ink:#090909;
    --muted:#6d737a;
    --line:#e5e7eb;
    --brand:#c40c16;
    --brand-dark:#9f0710;
    --brand-soft:#fff0f1;
    --dark:#090909;
    --dark-2:#151515;
    --danger:#c40c16;
    --success:#14865a;
    --warning:#b77900;
    --radius:18px;
    --shadow:0 16px 42px rgba(10,10,10,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Segoe UI Variable Text","Segoe UI",Tahoma,Arial,sans-serif;font-size:15px;font-weight:400;line-height:1.5;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font-family:inherit;font-size:inherit}
button{transition:.2s ease}
input,select,textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:#fff;outline:none;transition:.2s ease;color:var(--ink)}
input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(196,12,22,.10)}
label{display:flex;gap:7px;flex-direction:column;font-size:13px;font-weight:600;color:#35383c}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:11px;padding:10px 14px;background:#fff;cursor:pointer;font-weight:600;transition:.2s ease}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 8px 20px rgba(196,12,22,.18)}
.btn-primary:hover{background:var(--brand-dark);border-color:var(--brand-dark)}
.btn-dark{background:var(--dark);color:#fff;border-color:var(--dark)}
.btn-dark:hover{background:#242424}
.btn-light{background:#fff;color:#111;border-color:#dedede}
.btn-danger{background:#fff4f4;border-color:#ffd4d7;color:#a30b14}
.btn-ghost{background:transparent;border-color:transparent}
.btn-ghost:hover{background:#f3f3f3}
.btn-lg{padding:14px 20px}
.btn-small{padding:7px 10px;font-size:12px}

.muted{color:var(--muted)}
.block{display:block}
.pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#efefef;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.035em}
.pill.success{background:#e3f6ed;color:#087044}
.pill.danger{background:#ffe9eb;color:#a7242d}
.alert{padding:13px 16px;border-radius:12px;margin-bottom:16px}
.alert.success{background:#e6f7ef;color:#086b43;border:1px solid #c7ebd9}
.alert.danger{background:#fff0f1;color:#9d1720;border:1px solid #ffd5d8}
.overline{font-size:11px;font-weight:700;letter-spacing:.10em;color:var(--brand);text-transform:uppercase}


/* TIPOGRAFÍA CORPORATIVA V1.1.1 */
h1,h2,h3,h4,h5,h6,.page-head h1,.card h2,.metric strong,.hero h1,.hero-card>strong,.product-info h1{
    font-family:"Segoe UI Variable Display","Segoe UI",Tahoma,Arial,sans-serif;
    font-weight:700;
    color:inherit;
}
.sidebar nav a,.topbar,.btn,.store-header nav,.store-actions,.user-name{font-weight:600}
.admin-brand span,.nav-label,.overline,.metric span,.hero-card-kicker,.login-kicker{font-weight:700}
.metric strong,.big-price,.price-row strong{font-variant-numeric:tabular-nums}

/* ADMINISTRACIÓN */
.admin-body{display:flex;min-height:100vh;background:#f4f4f4}
.sidebar{position:fixed;inset:0 auto 0 0;width:278px;background:var(--dark);color:#fff;padding:18px 14px;transition:.25s ease;z-index:20;display:flex;flex-direction:column;border-right:1px solid #202020}
.admin-brand{display:flex;flex-direction:column;gap:10px;padding:4px 8px 24px;border-bottom:1px solid #262626;margin-bottom:12px}
.admin-brand img{display:block;width:100%;height:74px;object-fit:contain;background:#fff;border-radius:14px;padding:7px}
.admin-brand span{font-size:11px;color:#8f9499;text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.brand-mark{display:flex;align-items:center;gap:12px;padding:0 8px 25px}
.brand-mark>span{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--brand);color:#fff;font-weight:700}
.brand-mark strong,.brand-mark small{display:block}
.brand-mark small{color:#8d959d;margin-top:2px}
.brand-mark.large{padding:0}
.sidebar nav{display:flex;flex-direction:column;gap:5px}
.sidebar nav a{position:relative;padding:11px 12px;border-radius:10px;color:#c9c9c9;font-size:14px;font-weight:600;transition:.18s ease}
.sidebar nav a:hover,.sidebar nav a.active{background:#202020;color:#fff}
.sidebar nav a.active{box-shadow:inset 3px 0 0 var(--brand)}
.sidebar nav a.disabled{opacity:.36;pointer-events:none}
.nav-label{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#6c6c6c;padding:22px 12px 7px;font-weight:700}
.sidebar-version{margin-top:auto;padding:16px 10px 4px;border-top:1px solid #262626}
.sidebar-version span,.sidebar-version small{display:block}
.sidebar-version span{font-size:11px;font-weight:700;letter-spacing:.07em;color:#fff}
.sidebar-version small{font-size:11px;color:#6f7377;margin-top:4px}
.admin-main{margin-left:278px;min-width:0;flex:1}
.topbar{height:72px;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:15}
.topbar>div,.userbox{display:flex;align-items:center;gap:12px}
.icon-btn{border:0;background:#f1f1f1;width:38px;height:38px;border-radius:10px;font-size:18px;cursor:pointer;display:grid;place-items:center;color:#111}
.user-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:#fff;font-size:13px;font-weight:700}
.user-name{font-size:13px;font-weight:600}
.content{padding:30px;max-width:1500px;margin:auto}
.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:22px}
.page-head h1{font-size:32px;margin:4px 0 5px;letter-spacing:-.015em}
.page-head p{margin:0;color:var(--muted)}
.dashboard-head{padding:4px 0}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
.metric{position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:19px;box-shadow:0 5px 18px rgba(20,30,40,.03)}
.metric:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#ececec}
.metric-accent:after{background:var(--brand)}
.metric span,.metric small{display:block;color:var(--muted)}
.metric span{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.metric strong{display:block;font-size:31px;margin:8px 0;color:#111}
.metric.warn strong{color:var(--warning)}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:0 8px 28px rgba(16,24,40,.04)}
.card h2{margin-top:0}
.card-title{display:flex;align-items:center;justify-content:space-between;gap:18px}
.card-title h2{margin:6px 0 0}
.dark-card{background:#151719;color:#fff;border-color:#151719}
.dark-card p{color:#afb5bb;line-height:1.6}
.dashboard-brand-card{background:linear-gradient(145deg,#090909 0,#171717 100%);color:#fff;border-color:#181818;position:relative;overflow:hidden}
.dashboard-brand-card:after{content:"";position:absolute;width:210px;height:210px;border:38px solid rgba(196,12,22,.85);border-radius:50%;right:-95px;top:-85px}
.dashboard-brand-card>*{position:relative;z-index:1}
.dashboard-logo-wrap{background:#fff;border-radius:15px;padding:6px 10px;width:210px;margin-bottom:24px;box-shadow:0 8px 24px rgba(0,0,0,.2)}
.dashboard-logo-wrap img{display:block;width:100%;height:55px;object-fit:contain}
.dashboard-brand-card h2{font-size:29px;line-height:1.12;margin:8px 0 12px;max-width:480px}
.dashboard-brand-card p{color:#b9b9b9;line-height:1.65;max-width:540px}
.tags{display:flex;gap:8px;flex-wrap:wrap}
.tags span{padding:7px 10px;border:1px solid #343434;border-radius:9px;color:#e5e5e5;background:#171717;font-size:12px}
.feature-list>div{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.feature-list>div:last-child{border-bottom:0}
.feature-list b{flex:0 0 36px;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand)}
.feature-list span strong,.feature-list span small{display:block}
.feature-list small{color:var(--muted);margin-top:3px;line-height:1.4}
.table-card{overflow:auto}
.table-card h2{padding:0 0 12px}
table{width:100%;border-collapse:collapse;min-width:720px}
th,td{text-align:left;padding:13px 11px;border-bottom:1px solid var(--line);font-size:13px;vertical-align:middle}
th{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#7c858d}
.actions{display:flex;gap:6px;justify-content:flex-end}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.form-grid .full{grid-column:1/-1}
.form-actions{display:flex;justify-content:flex-end;padding-top:10px}
.align-end{justify-content:end}
.check{flex-direction:row;align-items:center}
.check input{width:auto}
.stack{display:flex;flex-direction:column;gap:15px}
.accordion{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.accordion summary{cursor:pointer;padding:14px 16px;font-weight:700;background:#fafafa}
.accordion .inside{padding:16px}
.upload-placeholder{border:2px dashed #d5dbe0;border-radius:14px;padding:25px;text-align:center;color:#6a737c;background:#fafafa}
.searchbar{display:flex;gap:8px;margin-bottom:15px;max-width:600px}
.brand-tree details{border-bottom:1px solid var(--line);padding:12px 0}
.brand-tree summary{cursor:pointer}
.tree-row{padding:9px 12px 9px 22px;display:flex;justify-content:space-between}
.tree-row small{color:var(--muted)}
.security-checks{display:grid;gap:7px;margin-top:20px;font-size:13px;color:#3d5f4c}
.event-list>div{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.event-dot{width:9px;height:9px;background:var(--brand);border-radius:50%;margin-top:6px}
.event-list p{margin:0}
.event-list small{display:block;color:var(--muted);margin-top:3px}

/* LOGIN */
.login-page{min-height:100vh;background:radial-gradient(circle at 78% 18%,#2b2b2b 0,#141414 34%,#080808 72%);padding:24px;display:grid;place-items:center}
.login-shell{width:min(980px,100%);min-height:600px;background:#fff;border-radius:28px;overflow:hidden;display:grid;grid-template-columns:1.05fr .95fr;box-shadow:0 35px 90px rgba(0,0,0,.38)}
.login-brand-side{position:relative;overflow:hidden;background:linear-gradient(145deg,#080808 0,#151515 100%);color:#fff;padding:50px;display:flex;flex-direction:column;justify-content:center}
.login-brand-side:before{content:"";position:absolute;width:330px;height:330px;border:60px solid rgba(196,12,22,.9);border-radius:50%;right:-170px;top:-150px}
.login-brand-side>*{position:relative;z-index:1}
.login-brand-logo{background:#fff;border-radius:18px;padding:8px 12px;width:min(360px,100%);margin-bottom:38px}
.login-brand-logo img{display:block;width:100%;height:104px;object-fit:contain}
.login-kicker{font-size:11px;font-weight:700;letter-spacing:.10em;color:#ef6c74}
.login-brand-side h2{font-size:39px;line-height:1.05;letter-spacing:-.02em;margin:12px 0 16px;max-width:420px}
.login-brand-side p{color:#b8b8b8;line-height:1.65;max-width:430px}
.login-security-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:24px}
.login-security-list span{font-size:12px;color:#d3d3d3;background:#1d1d1d;border:1px solid #2b2b2b;border-radius:10px;padding:10px}
.login-panel{width:100%;background:#fff;padding:56px 50px;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.login-panel h1{margin:8px 0 7px;font-size:36px;letter-spacing:-.02em}
.login-panel .stack{margin-top:18px}
.login-panel .btn-primary{width:100%}
.login-mobile-logo{display:none}
.security-note{margin-top:22px;padding-top:18px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);text-align:center}

/* TIENDA */
.store-header{height:86px;background:#fff;color:#111;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1240px)/2));position:sticky;top:0;z-index:30;border-bottom:1px solid #ececec;box-shadow:0 3px 18px rgba(0,0,0,.035)}
.store-logo{display:flex;align-items:center;width:205px;height:66px;overflow:hidden}
.store-logo img{display:block;width:100%;height:100%;object-fit:contain}
.store-header nav{display:flex;gap:24px;font-size:13px;color:#3e3e3e;font-weight:700}
.store-header nav a{position:relative;padding:31px 0 28px}
.store-header nav a:after{content:"";position:absolute;left:0;right:100%;bottom:18px;height:2px;background:var(--brand);transition:.2s ease}
.store-header nav a:hover:after{right:0}
.store-actions{display:flex;align-items:center}
.hero{min-height:620px;padding:86px max(24px,calc((100vw - 1240px)/2));display:grid;grid-template-columns:1.12fr .88fr;gap:65px;align-items:center;background:linear-gradient(120deg,#fff 0,#f8f8f8 58%,#eeeeee 100%);position:relative;overflow:hidden}
.hero:before{content:"";position:absolute;width:8px;height:150px;background:var(--brand);left:0;top:130px;border-radius:0 6px 6px 0}
.hero-copy{position:relative;z-index:1}
.hero h1{font-size:65px;line-height:.98;margin:16px 0 22px;letter-spacing:-.025em;max-width:780px}
.hero h1 em{font-style:normal;color:var(--brand)}
.hero p{font-size:18px;color:#61666b;max-width:650px;line-height:1.65}
.hero-actions{display:flex;gap:10px;margin-top:28px}
.hero-trust{display:flex;gap:18px;flex-wrap:wrap;margin-top:24px;color:#555;font-size:12px;font-weight:700}
.hero-trust b{color:var(--brand);margin-right:4px}
.hero-card{background:linear-gradient(145deg,#080808 0,#171717 100%);color:#fff;border-radius:30px;padding:38px;min-height:385px;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:0 32px 70px rgba(0,0,0,.18);position:relative;overflow:hidden}
.hero-card:before{content:"";position:absolute;width:300px;height:300px;border:58px solid var(--brand);border-radius:50%;top:-120px;right:-100px;opacity:.95}
.hero-card:after{content:"PM";position:absolute;top:32px;left:35px;font-size:14px;letter-spacing:.07em;font-weight:700;color:#fff}
.hero-card>*{position:relative;z-index:1}
.hero-card-kicker{font-size:11px;font-weight:700;letter-spacing:.06em;color:#ef737a;text-transform:uppercase}
.hero-card>strong{font-size:31px;line-height:1.12;max-width:440px;margin:10px 0 12px}
.hero-card>p{font-size:14px;color:#a9a9a9;line-height:1.55;margin:0 0 22px;max-width:420px}
.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.mini-grid span{background:#202020;border:1px solid #303030;padding:11px 12px;border-radius:11px;display:flex;justify-content:space-between;gap:10px;align-items:center}
.mini-grid b{font-size:12px;color:#fff}
.mini-grid small{font-size:10px;color:#848484}
.moto-finder{margin:-40px auto 0;position:relative;z-index:4;max-width:1240px;background:#fff;border-radius:22px;padding:28px 30px;box-shadow:var(--shadow);display:grid;grid-template-columns:.72fr 1.28fr;gap:30px;align-items:center;border-top:4px solid var(--brand)}
.moto-finder h2{margin:5px 0;font-size:27px}
.moto-finder p{margin:0;color:var(--muted)}
.finder-row{display:grid;grid-template-columns:1fr 1fr .8fr auto;gap:8px}
.catalog-section,.product-section{max-width:1240px;margin:82px auto;padding:0 24px}
.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px;gap:20px}
.section-head h2{font-size:34px;margin:5px 0 0;letter-spacing:-.015em}
.section-note{font-size:12px;color:var(--muted);font-weight:600}
.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.category-card{position:relative;overflow:hidden;background:#fff;border:1px solid var(--line);padding:20px;border-radius:17px;min-height:210px;transition:.2s ease}
.category-card:after{content:"";position:absolute;left:0;bottom:0;width:0;height:3px;background:var(--brand);transition:.22s ease}
.category-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(0,0,0,.07)}
.category-card:hover:after{width:100%}
.category-icon{width:44px;height:44px;background:var(--brand-soft);color:var(--brand);border-radius:12px;display:grid;place-items:center;font-weight:700}
.category-card h3{margin:18px 0 8px}
.category-card p{font-size:13px;color:var(--muted);line-height:1.5}
.category-card a{font-weight:600;font-size:12px;color:#111}
.category-card a span{color:var(--brand)}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.product-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px;transition:.2s ease}
.product-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(0,0,0,.06)}
.product-image{height:190px;border-radius:12px;background:linear-gradient(145deg,#f6f6f6,#e8e8e8);display:grid;place-items:center;margin-bottom:14px}
.product-image span,.main-product-image span{font-size:60px;font-weight:700;color:#d1d1d1}
.product-card h3{margin:10px 0 5px}
.product-card small{color:var(--muted)}
.price-row{display:flex;align-items:center;justify-content:space-between;margin-top:18px;gap:10px}
.price-row strong{font-size:20px}
.store-footer{background:#090909;color:#fff;padding:28px max(24px,calc((100vw - 1240px)/2));display:flex;justify-content:space-between;align-items:center;gap:30px}
.store-footer>span{color:#7f7f7f;font-size:12px}
.footer-brand{display:flex;align-items:center;gap:18px}
.footer-brand img{width:180px;height:62px;object-fit:contain;background:#fff;border-radius:10px;padding:4px}
.footer-brand span{font-size:12px;color:#aaa;max-width:260px}
.product-detail{max-width:1220px;margin:60px auto;padding:0 24px;display:grid;grid-template-columns:1fr 1fr;gap:55px}
.main-product-image{height:560px;background:#e9edef;border-radius:24px;display:grid;place-items:center}
.product-info h1{font-size:44px;line-height:1.05}
.big-price{font-size:34px;font-weight:700;margin:25px 0}
.stock-line{margin-top:18px;color:var(--success);font-weight:700}
.product-tabs{max-width:1220px;margin:0 auto 70px;padding:0 24px}
.product-tabs details{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:10px;padding:16px}
.product-tabs summary{font-weight:700;cursor:pointer}
.product-tabs p{line-height:1.65;color:#59636b}
.empty-state{grid-column:1/-1;background:#fff;border:1px dashed #cfd5da;padding:42px;text-align:center;border-radius:16px;color:var(--muted);display:flex;flex-direction:column;gap:7px}
.empty-state strong{color:#222;font-size:17px}

@media(max-width:1120px){
    .store-header nav{gap:15px}
    .metrics{grid-template-columns:1fr 1fr}
    .category-grid{grid-template-columns:repeat(3,1fr)}
    .product-grid{grid-template-columns:repeat(2,1fr)}
    .hero h1{font-size:51px}
    .hero{gap:32px}
    .moto-finder{margin:-20px 20px 0;grid-template-columns:1fr}
    .finder-row{grid-template-columns:1fr 1fr}
}

@media(max-width:860px){
    .store-header nav{display:none}
    .store-logo{width:180px}
    .login-shell{grid-template-columns:1fr;max-width:520px}
    .login-brand-side{display:none}
    .login-panel{padding:42px 34px}
    .login-mobile-logo{display:block;background:#fff;border:1px solid var(--line);border-radius:15px;padding:6px 10px;margin-bottom:28px}
    .login-mobile-logo img{display:block;width:100%;height:85px;object-fit:contain}
}

@media(max-width:760px){
    .sidebar{transform:translateX(-100%)}
    .admin-main{margin-left:0}
    .sidebar-closed .sidebar{transform:none;box-shadow:14px 0 40px rgba(0,0,0,.2)}
    .content{padding:18px}
    .topbar{padding:0 18px}
    .user-name{display:none}
    .metrics,.grid-2,.form-grid{grid-template-columns:1fr}
    .form-grid .full{grid-column:auto}
    .page-head{align-items:flex-start;flex-direction:column}
    .hero{grid-template-columns:1fr;padding-top:58px;min-height:auto}
    .hero h1{font-size:43px}
    .hero-card{min-height:300px}
    .finder-row{grid-template-columns:1fr}
    .category-grid,.product-grid{grid-template-columns:1fr 1fr}
    .product-detail{grid-template-columns:1fr}
    .main-product-image{height:380px}
    .store-footer{align-items:flex-start;flex-direction:column}
}

@media(max-width:520px){
    .store-header{height:76px;padding:0 16px}
    .store-logo{width:150px;height:58px}
    .store-actions .btn{font-size:12px;padding:9px 11px}
    .hero{padding-left:20px;padding-right:20px}
    .hero h1{font-size:38px}
    .hero-actions{flex-direction:column}
    .hero-trust{flex-direction:column;gap:8px}
    .moto-finder{margin:-12px 14px 0;padding:22px}
    .catalog-section,.product-section{padding:0 16px;margin-top:64px}
    .category-grid,.product-grid{grid-template-columns:1fr}
    .section-head{align-items:flex-start;flex-direction:column}
    .mini-grid{grid-template-columns:1fr}
    .footer-brand{align-items:flex-start;flex-direction:column}
    .login-page{padding:12px}
    .login-panel{padding:32px 22px}
    .login-panel h1{font-size:31px}
}

/* =========================================================
   PART MOTOS V1.2 · MÓDULO CATEGORÍAS AVANZADAS
   ========================================================= */
.category-page-head{margin-bottom:22px}
.category-page-head h1{margin:5px 0 4px}
.category-page-head p{margin:0;color:var(--muted)}
.category-metrics{margin-bottom:22px}
.category-metrics .metric{position:relative;overflow:hidden}
.category-metrics .metric:after{content:"";position:absolute;left:0;bottom:0;height:3px;width:100%;background:linear-gradient(90deg,var(--brand),transparent 70%)}
.category-metrics .metric small{display:block;margin-top:7px;color:var(--muted);font-size:12px}

.category-filter-card{padding:18px;margin-bottom:18px}
.category-filter-grid{display:grid;grid-template-columns:1.5fr repeat(4,minmax(130px,1fr));gap:12px;align-items:end}
.category-featured-filter{justify-content:flex-end}
.category-filter-actions{display:flex;gap:8px;align-items:center;grid-column:1/-1;justify-content:flex-end;padding-top:2px}
.switch-row{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:13px;font-weight:600;color:#333}
.switch-row input{width:18px;height:18px;accent-color:var(--brand);padding:0}
.compact-switch{min-height:43px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#fff}

.category-table-card{padding:0;overflow:hidden}
.table-toolbar{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line);gap:16px}
.table-toolbar>div{display:flex;flex-direction:column;gap:3px}
.table-toolbar strong{font-size:14px}
.table-toolbar span{font-size:12px}
.table-scroll{width:100%;overflow-x:auto}
.category-table{width:100%;border-collapse:collapse;min-width:1120px}
.category-table th{padding:12px 16px;text-align:left;background:#fafafa;border-bottom:1px solid var(--line);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#6c7278;font-weight:700}
.category-table td{padding:14px 16px;border-bottom:1px solid #ededed;vertical-align:middle;font-size:13px}
.category-table tbody tr:hover{background:#fcfcfc}
.category-table tbody tr:last-child td{border-bottom:0}
.text-right{text-align:right!important}
.category-identity{display:flex;align-items:center;gap:11px;min-width:220px}
.category-identity>div:last-child{min-width:0}
.category-identity strong{display:block;font-size:14px;color:#171717;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.category-identity small{display:block;margin-top:2px;color:#8a8f94;font-size:11px}
.category-thumb{width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:var(--brand-soft);display:grid;place-items:center;overflow:hidden;border:1px solid #f5d9db}
.category-thumb img{width:100%;height:100%;object-fit:cover}
.category-thumb span{font-size:16px;font-weight:700;color:var(--brand)}
.category-featured-pill{background:#fff2d9;color:#8a5a00;margin-left:4px}
.hierarchy-path{display:block;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#444}
.hierarchy-path b{color:var(--brand);margin:0 3px}
.hierarchy-root{display:inline-flex;padding:5px 9px;background:#f4f4f4;border-radius:999px;font-size:11px;font-weight:700;color:#50545a}
.visibility-line{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;white-space:nowrap}
.visibility-line i{width:8px;height:8px;border-radius:50%;background:#b5bac0}
.visibility-line.on{color:#176c4b}.visibility-line.on i{background:#27a26d}
.visibility-line.off{color:#85898e}.visibility-line.off i{background:#b5bac0}
.status-button{border:0;background:transparent;padding:7px 9px;border-radius:999px;display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}
.status-button span{width:8px;height:8px;border-radius:50%}
.status-button.active{background:#e9f7f0;color:#0f7148}.status-button.active span{background:#1f9a63}
.status-button.inactive{background:#f2f2f2;color:#71767c}.status-button.inactive span{background:#a8adb2}
.status-button:hover{filter:brightness(.97)}
.category-actions{display:flex;gap:6px;justify-content:flex-end;align-items:center}
.category-actions form{margin:0}
.category-actions .btn[disabled]{opacity:.42;cursor:not-allowed;transform:none}
.table-empty-state{padding:44px 20px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;color:var(--muted)}
.table-empty-state strong{font-size:16px;color:#222}
.table-empty-state .btn{margin-top:8px}
.pagination-wrap{padding:15px 20px;border-top:1px solid var(--line);background:#fff}
.pagination-wrap nav{display:flex;justify-content:flex-end}
.pagination-wrap nav>div:first-child{display:none}
.pagination-wrap nav>div:last-child{display:flex;align-items:center;gap:10px;width:100%;justify-content:space-between}
.pagination-wrap nav span,.pagination-wrap nav a{font-size:12px}

.category-editor{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.category-editor-main{display:flex;flex-direction:column;gap:18px;min-width:0}
.category-editor-sidebar{display:flex;flex-direction:column;gap:16px;position:sticky;top:102px}
.form-section-card{padding:22px}
.form-section-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.form-section-head>div{display:flex;gap:12px;align-items:flex-start}
.form-section-head h2{margin:0 0 3px;font-size:18px}
.form-section-head p{margin:0;color:var(--muted);font-size:12px}
.form-step{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:10px;background:var(--brand-soft);color:var(--brand);font-size:11px;font-weight:700}
.file-policy{font-size:10px;font-weight:700;color:#777;background:#f5f5f5;border:1px solid var(--line);padding:7px 9px;border-radius:999px;white-space:nowrap}
.field-help{font-size:11px;color:#858b91;font-weight:400;line-height:1.4}
.field-counter{font-size:10px;color:#858b91;font-weight:500;text-align:right}

.category-upload-zone{display:grid;grid-template-columns:minmax(240px,1fr) 1fr;gap:20px;align-items:center}
.category-preview{height:240px;border:1px dashed #ccd1d6;border-radius:16px;background:#f7f8f8;overflow:hidden;display:grid;place-items:center}
.category-preview img{width:100%;height:100%;object-fit:contain;background:#fff}
.category-preview-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;padding:20px;color:var(--muted)}
.category-preview-empty strong{color:#333;font-size:15px}
.category-preview-empty span{font-size:12px;max-width:220px}
.category-upload-controls{display:flex;flex-direction:column;gap:10px}
.file-picker{display:flex;align-items:center;justify-content:center;min-height:48px;border:1px solid #d5d9dd;border-radius:12px;background:#fff;color:#222;cursor:pointer;transition:.2s ease}
.file-picker:hover{border-color:var(--brand);background:var(--brand-soft)}
.file-picker input{display:none}
.danger-switch{margin-top:8px;color:#a31b24}

.category-settings-card{padding:20px}
.category-settings-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:14px;margin-bottom:4px;border-bottom:1px solid var(--line)}
.category-settings-head h2{margin:0;font-size:17px}
.setting-toggle{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #ededed;cursor:pointer}
.setting-toggle>span{display:flex;flex-direction:column;gap:2px}
.setting-toggle strong{font-size:13px;color:#262626}
.setting-toggle small{font-size:11px;color:#858a90;font-weight:400}
.setting-toggle input{width:38px;height:20px;flex:0 0 38px;accent-color:var(--brand)}
.category-order-field{padding-top:15px}
.category-order-field input{max-width:130px}
.category-live-preview{padding:20px}
.category-preview-card-demo{margin-top:12px;border:1px solid var(--line);border-radius:15px;padding:13px;background:#fff}
.category-preview-demo-image{height:140px;border-radius:11px;background:#f3f4f4;display:grid;place-items:center;overflow:hidden;margin-bottom:13px}
.category-preview-demo-image img{width:100%;height:100%;object-fit:contain;background:#fff}
.category-preview-demo-image span{font-size:38px;font-weight:700;color:#c6c9cc}
.category-preview-card-demo>small{display:block;color:var(--brand);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}
.category-preview-card-demo>strong{display:block;font-size:16px;margin-bottom:5px}
.category-preview-card-demo>p{font-size:11px;line-height:1.45;color:var(--muted);margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.category-save-box{display:grid;grid-template-columns:1fr;gap:8px}
.category-save-box .btn{width:100%}

@media(max-width:1200px){
    .category-filter-grid{grid-template-columns:repeat(3,1fr)}
    .category-editor{grid-template-columns:minmax(0,1fr) 300px}
}

@media(max-width:980px){
    .category-editor{grid-template-columns:1fr}
    .category-editor-sidebar{position:static;display:grid;grid-template-columns:1fr 1fr}
    .category-save-box{grid-column:1/-1}
    .category-upload-zone{grid-template-columns:1fr}
}

@media(max-width:760px){
    .category-filter-grid{grid-template-columns:1fr 1fr}
    .category-filter-actions{justify-content:stretch}
    .category-filter-actions .btn{flex:1}
    .category-editor-sidebar{grid-template-columns:1fr}
    .category-save-box{grid-column:auto}
    .form-section-head{flex-direction:column}
    .file-policy{white-space:normal}
}

@media(max-width:520px){
    .category-filter-grid{grid-template-columns:1fr}
    .category-filter-actions{flex-direction:column}
    .category-filter-actions .btn{width:100%}
    .form-section-card{padding:17px}
    .category-preview{height:200px}
}

/* Categorías públicas V1.2 */
.category-card.is-featured{border-color:#efc8cb;box-shadow:0 12px 30px rgba(196,12,22,.06)}
.category-card-image{height:92px;border-radius:12px;background:#f6f6f6;display:grid;place-items:center;overflow:hidden;margin-bottom:12px}
.category-card-image img{width:100%;height:100%;object-fit:contain;background:#fff}
.category-home-badge{display:inline-flex;padding:4px 8px;border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}
.simple-pager{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%}
.simple-pager>div:first-child{display:flex;flex-direction:column;gap:2px}
.simple-pager span{font-size:12px;font-weight:600;color:#4b5055}
.simple-pager small{font-size:10px;color:#8a8f95}
.simple-pager-actions{display:flex;gap:7px}
.disabled-link{opacity:.45;pointer-events:none}
@media(max-width:520px){.simple-pager{align-items:flex-start;flex-direction:column}.simple-pager-actions{width:100%}.simple-pager-actions>*{flex:1}}

/* =========================================================
   PART MOTOS V1.3 · Productos avanzados
   ========================================================= */
.admin-brand-logo{display:block;width:100%;height:78px;background:#fff;border-radius:14px;padding:7px;overflow:hidden}
.admin-brand-logo img{width:100%;height:100%;object-fit:contain;background:#fff;border-radius:8px;padding:0}
.admin-brand-fallback{height:100%;display:flex;align-items:center;justify-content:center;gap:4px;color:#111!important;letter-spacing:0!important;text-transform:none!important}
.admin-brand-fallback strong{font-size:20px;color:#111}.admin-brand-fallback b{font-size:20px;color:var(--brand)}.admin-brand-fallback small{font-size:8px;color:#111;align-self:flex-end;margin-bottom:15px}

.product-page-head,.product-form-head{margin-bottom:22px}
.product-page-head h1,.product-form-head h1{margin:6px 0 6px}
.head-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}

.stats-grid.product-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}
.stat-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px;min-height:125px;display:flex;flex-direction:column;position:relative;overflow:hidden}
.stat-card:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,var(--brand),#f2d6d8)}
.stat-card small{font-size:10px;color:#70777d;font-weight:700;letter-spacing:.04em}.stat-card strong{font-size:30px;line-height:1.15;margin:13px 0 5px}.stat-card span{font-size:11px;color:var(--muted)}

.product-filters{padding:18px;margin-bottom:18px}
.filter-grid.six{display:grid;grid-template-columns:2fr repeat(5,1fr);gap:12px}
.filter-grid.six label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:600;color:#34393e}
.checkbox-filter{align-self:end;min-height:45px;border:1px solid var(--line);border-radius:11px;padding:0 12px;display:flex!important;flex-direction:row!important;align-items:center;gap:9px!important;background:#fff}
.checkbox-filter input{width:17px;height:17px;accent-color:var(--brand)}
.filter-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.btn-dark{background:#111!important;color:#fff!important;border-color:#111!important}

.product-table-card{overflow:hidden}.table-title{padding:16px 18px;border-bottom:1px solid var(--line)}.table-title>div{display:flex;flex-direction:column;gap:3px}.table-title strong{font-size:13px}.table-title small{font-size:10px;color:var(--muted)}
.table-scroll{overflow:auto}.product-table{min-width:1180px}.product-table td{vertical-align:middle}
.product-admin-cell{display:flex;align-items:center;gap:12px;min-width:250px}.product-admin-cell>div:last-child{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.admin-product-thumb{width:58px;height:58px;border:1px solid var(--line);border-radius:12px;background:#f7f7f7;display:grid;place-items:center;overflow:hidden;flex:0 0 58px}.admin-product-thumb img{width:100%;height:100%;object-fit:contain;background:#fff}.admin-product-thumb span{font-size:22px;font-weight:700;color:#c8c8c8}
.mini-badge{display:inline-flex;align-items:center;width:max-content;padding:4px 8px;border-radius:999px;background:#f0f1f2;color:#333;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.035em}.mini-badge.red{background:var(--brand-soft);color:var(--brand)}
.line-through{text-decoration:line-through;color:#8b8f93}.stock-number{font-size:17px;font-weight:700}.stock-number.critical{color:#bd0c16}.status-pill{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:700}.status-active{background:#e7f6ee;color:#08794a}.status-draft{background:#eef0f2;color:#555}.status-inactive{background:#f3f3f3;color:#777}.status-out_of_stock{background:#fff0f0;color:#b3141d}.status-coming_soon{background:#fff7df;color:#8f6700}
.product-actions{min-width:255px}.product-actions form{display:inline}.btn-warning{color:#a26800!important;border-color:#e3c77b!important;background:#fffaf0!important}.pagination-wrap{padding:15px 18px;border-top:1px solid var(--line)}

.advanced-product-form{margin-bottom:40px}.product-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start}.product-form-main{display:flex;flex-direction:column;gap:14px}.product-form-side{min-width:0}.sticky-card{position:sticky;top:92px}
.module-panel{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(18,21,23,.025)}.module-panel>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:18px 20px;cursor:pointer;user-select:none}.module-panel>summary::-webkit-details-marker{display:none}.module-panel>summary>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:3px}.module-panel>summary strong{font-size:15px}.module-panel>summary small{font-size:11px;color:var(--muted);font-weight:400}.module-panel>summary>b{font-size:16px;color:#8b9094;transition:.2s}.module-panel[open]>summary>b{transform:rotate(180deg)}.module-number{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--brand-soft);color:var(--brand);font-size:10px;font-weight:700}.module-body{border-top:1px solid var(--line);padding:20px}
.form-grid.three{grid-template-columns:repeat(3,1fr)}.form-grid.four{grid-template-columns:repeat(4,1fr)}.form-grid.two{grid-template-columns:repeat(2,1fr)}
.module-body label,.side-card label,.block-label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:600;color:#34393e}.module-body label small,.side-card label small{font-size:10px;color:#8b9094;font-weight:400}.module-body input,.module-body select,.module-body textarea,.side-card input,.side-card select{font-size:13px}.module-body textarea{resize:vertical;min-height:90px}
.specialized-panel{border:1px solid #ecd4d5;background:#fffafa;border-radius:14px;padding:16px}.specialized-panel[hidden]{display:none}.specialized-head{display:flex;flex-direction:column;gap:2px;margin-bottom:13px}.specialized-head strong{font-size:13px}.specialized-head span{font-size:10px;color:var(--muted)}
.commercial-note{grid-column:span 3;border-radius:12px;background:#f7f7f7;padding:12px 14px;display:flex;flex-direction:column;gap:3px;justify-content:center}.commercial-note strong{font-size:11px}.commercial-note span{font-size:10px;color:var(--muted);line-height:1.5}.field-optional:after{content:"Opcional en modo cotización";font-size:9px;color:#8a8f93;font-weight:400}
.switch-line{flex-direction:row!important;align-items:center;justify-content:space-between;gap:15px!important;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fff}.switch-line span{display:flex;flex-direction:column;gap:2px}.switch-line input[type=checkbox]{width:19px;height:19px;accent-color:var(--brand);flex:0 0 19px}.stock-input[readonly]{background:#f2f3f4;color:#909497}

.upload-zone{border:1.5px dashed #c9ced2;border-radius:16px;background:#f8f9f9;min-height:200px;padding:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;transition:.2s}.upload-zone.dragging{border-color:var(--brand);background:#fff5f5;transform:scale(1.003)}.upload-zone-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);font-size:26px}.upload-zone strong{font-size:15px}.upload-zone span{font-size:10px;color:var(--muted);margin-bottom:5px}
.gallery-admin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}.gallery-admin-item{border:1px solid var(--line);border-radius:14px;padding:10px;background:#fff;display:flex;flex-direction:column;gap:8px;position:relative}.gallery-admin-image{height:130px;border-radius:10px;overflow:hidden;background:#f4f4f4;display:grid;place-items:center}.gallery-admin-image img{width:100%;height:100%;object-fit:contain;background:#fff}.gallery-admin-item label{font-size:9px}.gallery-admin-item input{padding:8px 9px;font-size:10px}.radio-line,.delete-line{flex-direction:row!important;align-items:center;gap:6px!important}.radio-line input,.delete-line input{width:15px;height:15px;accent-color:var(--brand)}.delete-line{color:#a8131b!important}.new-preview-item small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.remove-preview{position:absolute;right:6px;top:6px;width:26px;height:26px;border:0;border-radius:50%;background:#111;color:#fff;font-size:18px;cursor:pointer}.subsection-title{font-size:13px;margin:22px 0 0}.compact-top{margin-top:16px}
.repeatable-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.repeatable-head>div{display:flex;flex-direction:column;gap:3px}.repeatable-head strong{font-size:12px}.repeatable-head span{font-size:10px;color:var(--muted)}.repeatable-list{display:flex;flex-direction:column;gap:9px}.repeatable-row{display:grid;grid-template-columns:1.2fr 1fr 1.2fr .6fr 32px;gap:8px;align-items:end;padding:11px;border:1px solid var(--line);background:#fafafa;border-radius:12px}.repeatable-row label{font-size:9px}.repeatable-row input,.repeatable-row select{padding:9px 10px;font-size:11px}.remove-row{height:38px;width:32px;border:0;border-radius:9px;background:#fff0f0;color:#b40d17;font-size:19px;cursor:pointer}.fitment-row{grid-template-columns:2fr .7fr .7fr 1.4fr 32px}.block-label{margin-top:14px}.char-counter{align-self:flex-end;font-size:9px;color:#8b9094}
.document-current{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:12px}.document-current>div{display:flex;flex:1;flex-direction:column;gap:2px}.document-current strong{font-size:11px}.document-current span{font-size:10px;color:var(--muted)}.document-current label{flex-direction:row;align-items:center}.file-card{padding:16px;border:1px dashed #c9ced2;border-radius:12px;background:#f8f9f9}.file-card span{font-size:10px;color:var(--muted)}
.side-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:14px}.side-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:13px;border-bottom:1px solid var(--line)}.side-card-head strong{font-size:14px}.publication-summary{border:1px solid var(--line);border-radius:12px;background:#fafafa;padding:11px;display:flex;flex-direction:column;gap:8px}.publication-summary span{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted)}.publication-summary strong{color:#222;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn-block{width:100%;justify-content:center}.side-help{font-size:9px;line-height:1.5;color:#8a8f93}
.upload-progress{border:1px solid #e7d0d2;background:#fff8f8;border-radius:12px;padding:11px}.progress-info{display:flex;align-items:center;justify-content:space-between;gap:8px}.progress-info strong,.progress-info span{font-size:10px}.progress-track{height:7px;background:#eceeef;border-radius:999px;overflow:hidden;margin:8px 0 5px}.progress-track i{display:block;height:100%;width:0;background:var(--brand);border-radius:999px;transition:width .15s}.upload-progress small{font-size:9px;color:#777}.js-form-errors{margin-bottom:14px}.js-form-errors ul{margin-bottom:0}

/* Ficha pública de producto V1.3 */
.product-image img{width:100%;height:100%;object-fit:contain;border-radius:12px;background:#fff}.advanced-gallery .main-product-image{overflow:hidden;background:#fff;border:1px solid var(--line)}.advanced-gallery .main-product-image img{width:100%;height:100%;object-fit:contain}.public-thumbnails{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}.public-thumb{height:78px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:4px;cursor:pointer}.public-thumb.active{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}.public-thumb img{width:100%;height:100%;object-fit:contain}.product-badges{display:flex;gap:7px;flex-wrap:wrap}.pill.red{background:var(--brand-soft);color:var(--brand)}.product-references{line-height:1.6}.product-lead{font-size:16px;line-height:1.65;color:#454b50}.price-block{display:flex;align-items:baseline;gap:12px;margin:18px 0}.compare-price{text-decoration:line-through;color:#909497;font-size:17px}.product-cta-row{display:flex;gap:10px;flex-wrap:wrap}.product-signal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:18px}.product-signal-grid span{border:1px solid var(--line);border-radius:11px;padding:11px;display:flex;flex-direction:column;gap:3px}.product-signal-grid small{font-size:9px;color:var(--muted)}.product-signal-grid strong{font-size:12px}.datasheet-link{display:inline-flex;margin-top:14px;color:var(--brand);font-weight:600;text-decoration:none}.advanced-product-tabs details{padding:0;overflow:hidden}.advanced-product-tabs summary{padding:17px 18px}.advanced-product-tabs details>div,.advanced-product-tabs details>h3{margin-left:18px;margin-right:18px}.advanced-product-tabs details>div:last-child{margin-bottom:18px}.spec-table{border:1px solid var(--line);border-radius:12px;overflow:hidden}.spec-table>div{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:11px 13px;border-bottom:1px solid var(--line)}.spec-table>div:last-child{border-bottom:0}.spec-table span{font-size:11px;color:var(--muted)}.spec-table strong{font-size:11px}.fitment-public-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.fitment-public-list>div{border:1px solid var(--line);border-radius:10px;padding:11px;display:flex;flex-direction:column;gap:4px}.fitment-public-list strong{font-size:12px}.fitment-public-list span{font-size:10px;color:var(--muted)}.rich-text{line-height:1.7;color:#555;font-size:13px}.warning-details{border-color:#efcdcf!important}.product-video-link{max-width:1220px;margin:-45px auto 70px;padding:0 24px}

@media(max-width:1350px){
    .stats-grid.product-stats{grid-template-columns:repeat(3,1fr)}
    .filter-grid.six{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:1100px){
    .product-form-layout{grid-template-columns:1fr}.sticky-card{position:static}.product-form-side{order:-1}.side-card{display:grid;grid-template-columns:1fr 1fr;align-items:end}.side-card-head,.publication-summary,.upload-progress,.side-help{grid-column:1/-1}.side-card .btn-block{width:auto}.gallery-admin-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:900px){
    .stats-grid.product-stats{grid-template-columns:repeat(2,1fr)}.filter-grid.six{grid-template-columns:repeat(2,1fr)}.form-grid.three,.form-grid.four{grid-template-columns:repeat(2,1fr)}.commercial-note{grid-column:1/-1}.gallery-admin-grid{grid-template-columns:repeat(2,1fr)}.repeatable-row,.fitment-row{grid-template-columns:1fr 1fr}.repeatable-row .remove-row{grid-column:2;justify-self:end}.product-signal-grid{grid-template-columns:1fr}.fitment-public-list{grid-template-columns:1fr}
}
@media(max-width:620px){
    .stats-grid.product-stats,.filter-grid.six,.form-grid.three,.form-grid.four,.form-grid.two{grid-template-columns:1fr}.product-form-head{align-items:flex-start}.head-actions{width:100%}.head-actions .btn{flex:1}.side-card{grid-template-columns:1fr}.side-card-head,.publication-summary,.upload-progress,.side-help{grid-column:auto}.gallery-admin-grid{grid-template-columns:1fr}.repeatable-row,.fitment-row{grid-template-columns:1fr}.repeatable-row .remove-row{grid-column:1;justify-self:end}.repeatable-head{align-items:flex-start;flex-direction:column}.repeatable-head .btn{width:100%}.module-panel>summary{padding:15px}.module-body{padding:15px}.product-detail{padding:0 15px}.public-thumbnails{grid-template-columns:repeat(4,1fr)}
}

/* =========================================================
   PART MOTOS V1.3.1 · CATÁLOGO COMPACTO + CATEGORÍAS PÚBLICAS
   Ajuste visual general: tipografía ligeramente menor, más
   densidad de información y tarjetas de categoría profesionales.
   ========================================================= */

/* Escala tipográfica general más sobria */
body{font-size:14px}
label{font-size:12px}
.btn{font-size:13px;padding:9px 13px}
.btn-lg{padding:12px 18px}
.overline{font-size:10px;letter-spacing:.09em}

/* Administración compacta */
.sidebar{width:258px;padding:16px 13px}
.admin-main{margin-left:258px}
.admin-brand{padding:3px 7px 20px}
.admin-brand-logo{height:68px}
.sidebar nav a{padding:10px 11px;font-size:13px}
.nav-label{font-size:9px;padding:18px 11px 6px}
.sidebar-version span,.sidebar-version small{font-size:10px}
.topbar{height:64px;padding:0 24px}
.icon-btn{width:35px;height:35px;font-size:16px}
.user-avatar{width:32px;height:32px;font-size:12px}
.user-name{font-size:12px}
.content{padding:24px;max-width:1540px}
.page-head{margin-bottom:18px}
.page-head h1{font-size:28px;margin:3px 0 4px}
.metric{padding:16px}
.metric span{font-size:10px}
.metric strong{font-size:27px;margin:6px 0}
.card{padding:19px}
.dashboard-brand-card h2{font-size:26px}
th,td{font-size:12px;padding:11px 10px}
th{font-size:9px}
.stat-card{padding:15px;min-height:112px}
.stat-card strong{font-size:27px;margin:10px 0 4px}
.module-panel>summary{padding:15px 17px}
.module-panel>summary strong{font-size:14px}
.module-panel>summary small{font-size:10px}
.module-number{width:33px;height:33px}
.module-body{padding:17px}
.product-form-layout{grid-template-columns:minmax(0,1fr) 310px;gap:17px}
.side-card{padding:16px}
.login-panel h1{font-size:32px}
.login-brand-side h2{font-size:35px}

/* Tienda pública más compacta */
.store-header{height:76px;padding:0 max(22px,calc((100vw - 1240px)/2))}
.store-logo{width:185px;height:58px}
.store-header nav{gap:21px;font-size:12px}
.store-header nav a{padding:27px 0 24px}
.store-header nav a:after{bottom:15px}
.hero{min-height:550px;padding:68px max(22px,calc((100vw - 1240px)/2));gap:52px}
.hero h1{font-size:54px;line-height:1;margin:14px 0 18px}
.hero p{font-size:16px;line-height:1.6}
.hero-card{min-height:345px;padding:32px;border-radius:26px}
.hero-card>strong{font-size:27px}
.hero-card>p{font-size:13px}
.hero-trust{font-size:11px;margin-top:20px}
.moto-finder{padding:24px 27px}
.moto-finder h2{font-size:24px}
.catalog-section,.product-section{margin:68px auto}
.section-head{margin-bottom:19px}
.section-head h2{font-size:30px}
.section-note{font-size:11px}
.product-card{padding:12px}
.product-card h3{font-size:15px;margin:9px 0 4px}
.product-image{height:175px}
.price-row{margin-top:15px}
.price-row strong{font-size:18px}
.product-info h1{font-size:38px}
.product-lead{font-size:14px}
.big-price{font-size:30px}

/* Categorías: 3 por fila, imagen completa y tarjeta premium */
.category-grid-showcase{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.category-showcase-card{
    display:flex;
    flex-direction:column;
    padding:0;
    min-height:390px;
    border-radius:20px;
    overflow:hidden;
    color:var(--ink);
    background:#fff;
    border:1px solid #dedfe1;
    box-shadow:0 8px 24px rgba(10,10,10,.035);
}
.category-showcase-card:before{
    content:"";
    position:absolute;
    width:48px;
    height:48px;
    right:-24px;
    top:-24px;
    border:8px solid var(--brand);
    border-radius:13px;
    z-index:4;
    transition:.22s ease;
}
.category-showcase-card:hover:before{right:-19px;top:-19px}
.category-showcase-image{
    height:225px;
    margin:0;
    border-radius:0;
    border-bottom:1px solid #ededed;
    background:linear-gradient(145deg,#fff,#f5f5f5);
    padding:14px;
}
.category-showcase-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
    background:transparent;
}
.category-showcase-placeholder{
    width:110px;
    height:110px;
    border-radius:28px;
    display:grid;
    place-items:center;
    background:var(--brand-soft);
    color:var(--brand);
    font-size:28px;
    font-weight:700;
}
.category-showcase-content{display:flex;flex:1;flex-direction:column;padding:18px 20px 20px}
.category-card-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}
.category-showcase-card h3{font-size:20px;margin:10px 0 7px;line-height:1.18}
.category-showcase-card p{font-size:12.5px;margin:0 0 15px;line-height:1.55;color:#656b70;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.category-cta{margin-top:auto;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #efefef;padding-top:13px;font-size:12px;font-weight:700;color:#222}
.category-cta b{color:var(--brand);font-size:17px;font-weight:500;transition:.2s ease}
.category-showcase-card:hover .category-cta b{transform:translateX(4px)}
.category-showcase-card:hover{transform:translateY(-4px);box-shadow:0 20px 44px rgba(0,0,0,.08);border-color:#d4d4d4}

/* Página pública de categoría */
.category-public-hero{
    max-width:1240px;
    margin:42px auto 0;
    padding:32px 24px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 370px;
    align-items:center;
    gap:48px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    box-shadow:0 12px 36px rgba(10,10,10,.045);
}
.category-public-copy h1{font-size:40px;line-height:1.05;margin:10px 0 12px}
.category-public-copy p{max-width:650px;color:var(--muted);font-size:14px;line-height:1.65;margin:0}
.category-back{display:inline-flex;margin-bottom:22px;color:#555;font-size:11px;font-weight:600}
.category-back:hover{color:var(--brand)}
.category-public-visual{height:270px;border-radius:18px;background:linear-gradient(145deg,#fafafa,#f0f0f0);display:grid;place-items:center;overflow:hidden;padding:18px}
.category-public-visual img{width:100%;height:100%;object-fit:contain;object-position:center}
.category-public-visual>span{width:120px;height:120px;border-radius:30px;background:var(--brand-soft);display:grid;place-items:center;color:var(--brand);font-size:30px;font-weight:700}
.category-children-section{margin-top:42px;margin-bottom:42px}
.category-products-section{margin-top:42px}
.category-subgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.category-subcard{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:13px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:15px;padding:10px 13px;transition:.2s ease}
.category-subcard:hover{border-color:#d5b3b6;box-shadow:0 10px 26px rgba(0,0,0,.05);transform:translateY(-2px)}
.category-subcard-image{width:72px;height:66px;background:#f6f6f6;border-radius:11px;display:grid;place-items:center;overflow:hidden;padding:5px}
.category-subcard-image img{width:100%;height:100%;object-fit:contain}
.category-subcard-image span{font-weight:700;color:var(--brand)}
.category-subcard>div:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0}
.category-subcard strong{font-size:13px}
.category-subcard span{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-subcard>b{font-size:18px;color:var(--brand);font-weight:500}
.public-pager{margin-top:24px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px 15px}

@media(min-width:1500px){
    .category-grid-showcase{grid-template-columns:repeat(4,minmax(0,1fr))}
    .catalog-section,.product-section,.category-public-hero{max-width:1380px}
}

@media(max-width:1120px){
    .category-grid-showcase{grid-template-columns:repeat(2,minmax(0,1fr))}
    .category-subgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .category-public-hero{margin-left:20px;margin-right:20px;grid-template-columns:1fr 300px;gap:28px}
}

@media(max-width:760px){
    .sidebar{width:258px}
    .admin-main{margin-left:0}
    .category-public-hero{grid-template-columns:1fr;padding:22px;margin-top:22px}
    .category-public-visual{height:230px;order:-1}
    .category-public-copy h1{font-size:32px}
    .category-subgrid{grid-template-columns:1fr}
}

@media(max-width:620px){
    body{font-size:13.5px}
    .category-grid-showcase{grid-template-columns:1fr}
    .category-showcase-card{min-height:350px}
    .category-showcase-image{height:205px}
    .category-showcase-card h3{font-size:18px}
    .section-head h2{font-size:27px}
    .hero h1{font-size:36px}
}

/* =========================================================
   V1.3.2 · CATEGORÍAS PREMIUM + DIRECTORIO COMPLETO
   ========================================================= */
.home-category-section{position:relative}
.section-head-categories{align-items:flex-end}
.section-subcopy{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.55}
.category-head-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.category-all-link{min-width:190px;justify-content:space-between;border-color:#d9d9d9;background:#fff}
.category-all-link b{color:var(--brand);font-size:16px;font-weight:500;transition:.2s ease}
.category-all-link:hover b{transform:translateX(3px)}
.category-mobile-all{display:none;margin-top:17px}

/* Inicio: siempre máximo 4 categorías y una sola fila en escritorio */
.category-grid-home{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}

/* Tarjeta refinada: líneas rojas finas, sin adornos pesados */
.category-showcase-card{
    position:relative;
    min-height:360px;
    border:1px solid #dedfe1;
    border-radius:18px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 9px 28px rgba(10,10,10,.04);
    isolation:isolate;
}
.category-showcase-card:before{
    content:"";
    position:absolute;
    z-index:6;
    left:20px;
    top:0;
    width:72px;
    height:2px;
    border:0;
    border-radius:0;
    background:var(--brand);
    transition:width .25s ease;
}
.category-showcase-card:after{
    content:"";
    position:absolute;
    z-index:6;
    right:20px;
    top:0;
    left:auto;
    bottom:auto;
    width:1px;
    height:38px;
    background:var(--brand);
    transition:height .25s ease;
}
.category-showcase-card:hover:before{left:20px;top:0;width:112px;right:auto}
.category-showcase-card:hover:after{width:1px;height:58px;right:20px;top:0}
.category-showcase-card:hover{transform:translateY(-4px);border-color:#cfcfd1;box-shadow:0 20px 46px rgba(0,0,0,.085)}
.category-card-number{position:absolute;z-index:7;right:29px;top:14px;font-size:10px;font-weight:700;letter-spacing:.08em;color:#a6a6a6}
.category-showcase-image{height:198px;padding:16px 18px;background:linear-gradient(145deg,#fff 0,#fafafa 56%,#f3f3f3 100%);border-bottom:1px solid #ececec}
.category-showcase-image img{max-width:100%;max-height:100%;object-fit:contain;object-position:center}
.category-showcase-placeholder{width:92px;height:92px;border-radius:25px;font-size:24px;border:1px solid #ffdadd;background:#fff2f3}
.category-showcase-content{padding:16px 18px 18px;position:relative}
.category-showcase-content:before{content:"";position:absolute;left:18px;top:-1px;width:28px;height:1px;background:var(--brand)}
.category-card-topline{min-height:22px}
.category-showcase-card h3{font-size:18px;margin:9px 0 6px;line-height:1.2;letter-spacing:-.01em}
.category-showcase-card p{font-size:12px;line-height:1.5;margin-bottom:13px}
.category-cta{padding-top:11px;font-size:11.5px;border-top:1px solid #ededed}
.category-cta:before{content:"";width:18px;height:1px;background:var(--brand);margin-right:8px;flex:0 0 auto}
.category-cta b{margin-left:auto}
.category-home-badge{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.045em;color:var(--brand)}

/* Directorio de todas las categorías */
.categories-directory-hero{
    max-width:1380px;
    margin:38px auto 0;
    padding:30px 28px;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:30px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:20px;
    box-shadow:0 10px 32px rgba(10,10,10,.04);
    position:relative;
    overflow:hidden;
}
.categories-directory-hero:before{content:"";position:absolute;left:0;top:0;width:110px;height:2px;background:var(--brand)}
.categories-directory-hero:after{content:"";position:absolute;right:32px;top:0;width:1px;height:54px;background:var(--brand)}
.categories-directory-hero h1{font-size:38px;line-height:1.04;margin:8px 0 9px;letter-spacing:-.02em}
.categories-directory-hero p{margin:0;color:var(--muted);font-size:13px;max-width:720px}
.directory-hero-stat{min-width:190px;border-left:1px solid #ececec;padding-left:24px}
.directory-hero-stat span,.directory-hero-stat small{display:block;color:var(--muted)}
.directory-hero-stat span{font-size:10px;text-transform:uppercase;font-weight:700;letter-spacing:.06em}
.directory-hero-stat strong{display:block;font-size:32px;line-height:1;margin:7px 0 6px;font-variant-numeric:tabular-nums}
.directory-hero-stat small{font-size:10px}

.categories-directory-section{max-width:1380px;margin:28px auto 70px;padding:0 24px}
.category-filter-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 8px 26px rgba(10,10,10,.035);position:relative}
.category-filter-panel:before{content:"";position:absolute;left:20px;top:-1px;width:58px;height:2px;background:var(--brand)}
.category-filter-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #ededed}
.category-filter-head h2{font-size:20px;margin:4px 0 0}
.filter-clear-link{font-size:11px;font-weight:600;color:var(--brand)}
.filter-clear-link:hover{text-decoration:underline}
.category-filter-grid{display:grid;grid-template-columns:1.55fr .9fr .9fr 1fr auto auto;gap:10px;align-items:end}
.category-filter-grid label>span{font-size:11px;color:#444}
.category-filter-grid input,.category-filter-grid select{padding:10px 12px;border-radius:10px;font-size:12px}
.category-filter-check{height:40px;flex-direction:row;align-items:center;justify-content:center;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fafafa;white-space:nowrap}
.category-filter-check input{width:auto;margin:0}
.category-filter-check span{font-size:11px!important;font-weight:600}
.category-filter-submit{height:40px;padding-left:17px;padding-right:17px}
.directory-result-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:19px 3px 13px}
.directory-result-bar>div{display:flex;align-items:center;gap:10px}
.directory-result-bar strong{font-size:13px}
.directory-result-bar span{font-size:10.5px;color:var(--muted)}
.directory-result-note{max-width:500px;text-align:right}
.categories-directory-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.category-directory-card{min-height:365px}
.category-parent-label{font-size:9px;color:#767676;max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-directory-meta{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 11px}
.category-directory-meta span{font-size:9px;color:#6f7377;background:#f5f5f5;border:1px solid #ececec;border-radius:999px;padding:4px 7px}
.category-directory-empty{grid-column:1/-1;align-items:center}
.category-directory-empty .btn{margin-top:8px}
.category-directory-pager{margin-top:22px}
.disabled-link{opacity:.45;pointer-events:none}

@media(max-width:1180px){
    .category-grid-home,.categories-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .category-filter-grid{grid-template-columns:1.4fr 1fr 1fr 1fr}
    .category-filter-check,.category-filter-submit{grid-column:auto}
}

@media(max-width:860px){
    .section-head-categories{align-items:flex-start}
    .category-head-actions{align-items:flex-start}
    .categories-directory-hero{margin-left:18px;margin-right:18px;padding:25px 22px;align-items:flex-start;flex-direction:column}
    .directory-hero-stat{border-left:0;border-top:1px solid #ececec;padding:15px 0 0;width:100%}
    .category-filter-grid{grid-template-columns:1fr 1fr}
    .category-filter-search{grid-column:1/-1}
    .directory-result-note{display:none}
}

@media(max-width:620px){
    .category-grid-home,.categories-directory-grid{grid-template-columns:1fr}
    .category-showcase-card,.category-directory-card{min-height:340px}
    .category-showcase-image{height:188px}
    .category-head-actions .section-note,.category-head-actions .category-all-link{display:none}
    .category-mobile-all{display:block}
    .category-mobile-all .btn{width:100%}
    .categories-directory-section{padding:0 16px}
    .categories-directory-hero{margin:18px 16px 0;padding:22px 18px}
    .categories-directory-hero h1{font-size:31px}
    .category-filter-grid{grid-template-columns:1fr}
    .category-filter-search{grid-column:auto}
    .category-filter-check{justify-content:flex-start}
    .directory-result-bar{align-items:flex-start}
}

/* =========================================================
   V1.4 · ADMINISTRACIÓN DE MOTOS / COMPATIBILIDAD
   ========================================================= */
.moto-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}
.moto-page-head h1{font-size:34px;line-height:1.05;margin:7px 0 8px;letter-spacing:-.025em}
.moto-page-head p{margin:0;color:var(--muted);font-size:13px;max-width:760px}
.moto-head-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.moto-form-head{align-items:center}

.moto-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}
.moto-metric{position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px 18px;overflow:hidden;min-height:112px}
.moto-metric:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#ededed}
.moto-metric-accent:after{background:var(--brand)}
.moto-metric>span{display:block;text-transform:uppercase;font-size:9px;letter-spacing:.07em;color:#697078;font-weight:700}
.moto-metric strong{display:block;font-size:29px;line-height:1;margin:11px 0 7px;font-weight:700}
.moto-metric small{color:var(--muted);font-size:10px}

.moto-filter-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px;margin-bottom:18px;box-shadow:0 8px 25px rgba(10,10,10,.03);position:relative}
.moto-filter-card:before{content:"";position:absolute;left:18px;top:-1px;width:54px;height:2px;background:var(--brand)}
.moto-filter-title{display:flex;align-items:end;justify-content:space-between;gap:20px;padding-bottom:13px;margin-bottom:13px;border-bottom:1px solid #ededed}
.moto-filter-title h2{font-size:19px;margin:4px 0 0}
.moto-filter-title>a{font-size:10.5px;color:var(--brand);font-weight:600}
.moto-filter-grid{display:grid;grid-template-columns:1.55fr 1fr .72fr .8fr .65fr .65fr 1fr auto;gap:9px;align-items:end}
.moto-filter-grid label>span{font-size:10.5px;color:#464b50}
.moto-filter-grid input,.moto-filter-grid select{height:40px;padding:9px 10px;border-radius:9px;font-size:11.5px}
.moto-filter-submit{height:40px;white-space:nowrap}

.moto-admin-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px;align-items:start}
.moto-models-card,.moto-brands-panel{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 8px 25px rgba(10,10,10,.03);overflow:hidden}
.moto-section-title{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;border-bottom:1px solid var(--line)}
.moto-section-title>div{display:flex;flex-direction:column;gap:2px}
.moto-section-title strong{font-size:13px}
.moto-section-title span{font-size:9.5px;color:var(--muted)}
.moto-section-title>a{font-size:10.5px;font-weight:700;color:var(--brand)}
.moto-table-wrap{overflow:auto}
.moto-table{min-width:870px}
.moto-table th{padding:11px 13px;font-size:9px;background:#fcfcfc}
.moto-table td{padding:11px 13px;font-size:11px}
.moto-model-cell{display:flex;align-items:center;gap:10px;min-width:210px}
.moto-model-cell>div:last-child{display:flex;flex-direction:column;min-width:0}
.moto-model-cell small{font-size:9px;color:var(--brand);font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.moto-model-cell strong{font-size:12.5px;margin:1px 0}
.moto-model-cell span{font-size:9.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
.moto-brand-thumb,.moto-brand-logo-small{background:#fafafa;border:1px solid #ededed;border-radius:10px;display:grid;place-items:center;overflow:hidden;flex:0 0 auto}
.moto-brand-thumb{width:44px;height:44px}
.moto-brand-thumb img,.moto-brand-logo-small img{width:100%;height:100%;object-fit:contain;padding:4px}
.moto-brand-thumb span,.moto-brand-logo-small span{color:var(--brand);font-size:10px;font-weight:700}
.moto-cc{font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.moto-year-mini-list{display:flex;align-items:center;gap:4px;flex-wrap:wrap;max-width:250px}
.moto-year-mini-list span{font-size:8.5px;padding:3px 5px;border:1px solid #dfece5;background:#f2faf6;color:#16734d;border-radius:6px;font-weight:600}
.moto-year-mini-list span.off{background:#f7f7f7;color:#999;border-color:#ededed;text-decoration:line-through}
.moto-year-mini-list .empty{color:#999;background:transparent;border:0;padding:0}
.moto-year-mini-list b{font-size:8.5px;color:#777}
.moto-fitment-count{display:inline-grid;place-items:center;min-width:27px;height:27px;border-radius:8px;background:#f2f2f2;font-size:10px;font-weight:700}
.moto-status{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:700}
.moto-status:before{content:"";width:6px;height:6px;border-radius:50%}
.moto-status.active{color:#08704a;background:#e8f7ef}.moto-status.active:before{background:#15a66d}
.moto-status.inactive{color:#8b4146;background:#fff0f1}.moto-status.inactive:before{background:var(--brand)}
.moto-row-actions{display:flex;justify-content:flex-end;gap:5px;white-space:nowrap}
.moto-row-actions form{margin:0}
.moto-pager{padding:13px 18px;border-top:1px solid var(--line)}

.moto-brands-panel{position:sticky;top:82px}
.moto-brand-list{max-height:590px;overflow:auto}
.moto-brand-row{display:grid;grid-template-columns:38px minmax(0,1fr) 8px 18px;gap:9px;align-items:center;padding:10px 13px;border-bottom:1px solid #f0f0f0}
.moto-brand-row:last-child{border-bottom:0}
.moto-brand-logo-small{width:38px;height:38px;border-radius:9px}
.moto-brand-copy{display:flex;flex-direction:column;min-width:0}
.moto-brand-copy strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.moto-brand-copy span{font-size:9px;color:var(--muted)}
.moto-dot{width:7px;height:7px;border-radius:50%}.moto-dot.on{background:#1ba66d}.moto-dot.off{background:#c7c7c7}
.moto-brand-row>a{font-size:15px;color:var(--brand);text-align:center}
.moto-brand-empty{padding:18px;color:var(--muted);font-size:11px}
.moto-empty{display:flex;min-height:180px;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center}
.moto-empty span{color:var(--muted);font-size:10px}.moto-empty .btn{margin-top:5px}

.moto-form-shell{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}
.moto-form-main{display:flex;flex-direction:column;gap:16px}
.moto-form-side{display:flex;flex-direction:column;gap:16px}
.moto-form-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:20px;box-shadow:0 8px 25px rgba(10,10,10,.03)}
.moto-form-section-head{display:flex;align-items:flex-start;gap:12px;padding-bottom:16px;margin-bottom:17px;border-bottom:1px solid var(--line)}
.moto-form-section-head>span{width:36px;height:36px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-size:9px;font-weight:700}
.moto-form-section-head h2{font-size:17px;margin:1px 0 3px}
.moto-form-section-head p{margin:0;color:var(--muted);font-size:10px}
.moto-form-card label{font-size:11px}
.moto-form-card input,.moto-form-card select,.moto-form-card textarea{font-size:11.5px;padding:10px 11px;border-radius:9px}
.moto-form-card label small{font-size:9px;color:var(--muted);font-weight:400}
.sticky-card{position:sticky;top:82px;display:flex;flex-direction:column;gap:14px}
.moto-switch-row{justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.moto-switch-row>span{display:flex;flex-direction:column;gap:2px}.moto-switch-row strong{font-size:11px}.moto-switch-row small{font-size:9px;color:var(--muted);font-weight:400}
.moto-switch-row input{width:18px;height:18px;accent-color:var(--brand)}
.moto-form-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fafafa;border:1px solid #ededed;border-radius:10px;padding:10px 11px}
.moto-form-summary span{font-size:9px;color:var(--muted)}.moto-form-summary strong{font-size:11px;text-align:right}
.moto-logo-upload{display:grid;grid-template-columns:240px 1fr;gap:18px;align-items:center}
.moto-logo-preview{height:150px;border:1px dashed #d7d7d7;border-radius:14px;background:#fafafa;display:grid;place-items:center;overflow:hidden;padding:12px}
.moto-logo-preview img{width:100%;height:100%;object-fit:contain}.moto-logo-preview span{font-size:26px;color:var(--brand);font-weight:700}
.moto-logo-controls{display:flex;align-items:flex-start;flex-direction:column;gap:10px}.moto-logo-controls small{font-size:9.5px;color:var(--muted)}
.moto-year-range-form{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:12px;align-items:end}
.moto-year-preview{height:40px;border:1px solid #ececec;background:#fafafa;border-radius:9px;display:flex;align-items:center;padding:0 12px;font-size:10px;color:#555}
.moto-year-manager{display:flex;gap:7px;flex-wrap:wrap}
.moto-year-manager form{margin:0}
.moto-year-chip{border:1px solid #dfe6e2;border-radius:9px;background:#f4faf7;padding:7px 9px;cursor:pointer;display:flex;flex-direction:column;gap:1px;min-width:60px;transition:.18s ease}
.moto-year-chip:hover{transform:translateY(-1px)}
.moto-year-chip span{font-size:11px;font-weight:700}.moto-year-chip small{font-size:7.5px;color:#328063}
.moto-year-chip.inactive{background:#f7f7f7;border-color:#e8e8e8;color:#999}.moto-year-chip.inactive small{color:#999}
.moto-side-copy{font-size:10px;color:var(--muted);line-height:1.5}
.moto-inline-danger{display:flex;align-items:center;gap:12px;margin-top:16px;padding:13px 15px;background:#fff;border:1px solid var(--line);border-radius:13px}
.moto-inline-danger span{font-size:9.5px;color:var(--muted)}

@media(max-width:1280px){
    .moto-filter-grid{grid-template-columns:1.5fr 1fr .8fr .8fr .7fr .7fr}.moto-filter-grid label:nth-of-type(7){grid-column:span 2}.moto-filter-submit{grid-column:span 2}
    .moto-admin-grid{grid-template-columns:1fr}.moto-brands-panel{position:static}.moto-brand-list{display:grid;grid-template-columns:repeat(3,1fr);max-height:none}.moto-brand-row{border-right:1px solid #f0f0f0}
}
@media(max-width:900px){
    .moto-metrics{grid-template-columns:repeat(2,1fr)}.moto-form-shell{grid-template-columns:1fr}.sticky-card{position:static}.moto-logo-upload{grid-template-columns:1fr}.moto-logo-preview{height:180px}.moto-brand-list{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
    .moto-page-head{align-items:flex-start;flex-direction:column}.moto-head-actions{width:100%;justify-content:stretch}.moto-head-actions .btn{flex:1}.moto-filter-grid{grid-template-columns:1fr 1fr}.moto-filter-search{grid-column:1/-1}.moto-filter-grid label:nth-of-type(7){grid-column:auto}.moto-filter-submit{grid-column:1/-1}.moto-year-range-form{grid-template-columns:1fr 1fr}.moto-year-preview{grid-column:1/-1}.moto-brand-list{grid-template-columns:1fr}
}
@media(max-width:520px){.moto-metrics{grid-template-columns:1fr}.moto-filter-grid{grid-template-columns:1fr}.moto-filter-search{grid-column:auto}.moto-page-head h1{font-size:29px}.moto-form-card{padding:16px}}

/* =========================================================
   V1.5 · COMPATIBILIDAD INTELIGENTE PRODUCTO ↔ MOTOCICLETA
   ========================================================= */
.compatibility-guide{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;padding:12px 14px;border:1px solid #f0d7d9;border-left:3px solid var(--brand);border-radius:11px;background:linear-gradient(90deg,#fff8f8 0,#fff 52%)}
.compatibility-guide>div:first-child{display:flex;flex-direction:column;gap:3px}.compatibility-guide strong{font-size:11.5px}.compatibility-guide span{font-size:9.5px;color:var(--muted)}
.compatibility-guide-badge{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#171717;color:#fff;font-size:9px;font-weight:700;letter-spacing:.03em}
.smart-fitment-list{gap:11px}
.smart-fitment-row{grid-template-columns:1fr 1.45fr .72fr .72fr 1.4fr 32px;align-items:end;background:#fff;border-color:#e5e5e5;position:relative;padding-bottom:31px}
.smart-fitment-row:before{content:"";position:absolute;left:10px;top:10px;bottom:10px;width:2px;border-radius:3px;background:#f3c6c9}
.smart-fitment-row label:first-of-type{padding-left:8px}
.smart-fitment-row select:disabled{background:#f6f6f6;color:#9a9a9a;cursor:not-allowed}
.fitment-row-status{position:absolute;left:18px;right:52px;bottom:9px;font-size:8.7px;color:#8a8f93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fitment-row-status.is-ready{color:#0c7a50;font-weight:600}
.compatibility-note{margin-top:12px;padding:10px 12px;border:1px dashed #dedede;border-radius:10px;background:#fafafa;color:#676c70;font-size:9.5px;line-height:1.55}
.compatibility-note strong{color:#1c1c1c}
.compat-count{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 8px;border-radius:9px;background:#fff0f1;color:var(--brand);font-size:11px;font-weight:700;border:1px solid #f1c7ca}
.muted-badge{color:#74797d!important;background:#f4f4f4!important}

.public-fitment-section .fitment-trust-note{margin:0 18px 15px;display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid #dcebe4;border-radius:11px;background:#f6fbf8}
.fitment-check{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#159764;color:#fff;font-weight:800;flex:0 0 auto}
.fitment-trust-note>div{display:flex;flex-direction:column;gap:2px}.fitment-trust-note strong{font-size:11px}.fitment-trust-note small{font-size:9.5px;color:#64706a}
.fitment-brand-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 18px 18px!important}
.fitment-brand-card{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fff}
.fitment-brand-card>header{display:flex;align-items:center;gap:10px;padding:11px 12px;background:#fafafa;border-bottom:1px solid var(--line)}
.fitment-brand-card>header>div:last-child{display:flex;flex-direction:column;gap:1px}.fitment-brand-card header small{font-size:8px;letter-spacing:.06em;color:var(--brand);font-weight:700}.fitment-brand-card header strong{font-size:12px}
.fitment-brand-logo{width:40px;height:40px;border-radius:9px;background:#fff;border:1px solid #ececec;display:grid;place-items:center;overflow:hidden;flex:0 0 auto}.fitment-brand-logo img{width:100%;height:100%;object-fit:contain;padding:4px}.fitment-brand-logo span{font-size:10px;font-weight:800;color:var(--brand)}
.fitment-model-list{display:flex;flex-direction:column}.fitment-model-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:11px 12px;border-bottom:1px solid #f0f0f0}.fitment-model-item:last-child{border-bottom:0}.fitment-model-item>div{display:flex;flex-direction:column;gap:2px}.fitment-model-item strong{font-size:11.5px}.fitment-model-item small{font-size:9px;color:var(--muted)}
.fitment-year-pill{align-self:start;padding:4px 7px;border-radius:999px;background:#fff0f1;color:var(--brand);border:1px solid #f0c8cb;font-size:8.5px;font-weight:700;white-space:nowrap}.fitment-model-item p{grid-column:1/-1;margin:2px 0 0;color:#666;font-size:9px;line-height:1.45}

@media(max-width:1150px){.smart-fitment-row{grid-template-columns:1fr 1.3fr .7fr .7fr;}.smart-fitment-row .notes-field{grid-column:1/4}.smart-fitment-row .remove-row{grid-column:4;grid-row:2}.fitment-brand-grid{grid-template-columns:1fr}}
@media(max-width:760px){.compatibility-guide{align-items:flex-start;flex-direction:column}.smart-fitment-row{grid-template-columns:1fr 1fr;padding-bottom:37px}.smart-fitment-row .model-field,.smart-fitment-row .notes-field{grid-column:1/-1}.smart-fitment-row .remove-row{grid-column:2;grid-row:auto}.fitment-row-status{right:18px;bottom:10px}.fitment-brand-grid{margin:0 14px 14px!important}}
@media(max-width:520px){.smart-fitment-row{grid-template-columns:1fr}.smart-fitment-row .model-field,.smart-fitment-row .notes-field{grid-column:auto}.smart-fitment-row .remove-row{grid-column:1}.fitment-model-item{grid-template-columns:1fr}.fitment-year-pill{justify-self:start}}
