:root{--bg:#0b0d12;--card:#141821;--line:#252b37;--text:#f5f7fb;--muted:#aab2c0;--red:#e21d2f;--blue:#275cff}*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#090b10,#10141b);color:var(--text);font-family:Inter,system-ui,Arial,sans-serif}header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:16px 5vw;background:#0b0d12e8;border-bottom:1px solid var(--line);backdrop-filter:blur(10px)}header img{height:48px;max-width:220px;object-fit:contain;background:white;border-radius:10px;padding:5px}nav{display:flex;gap:18px;align-items:center}a{color:inherit;text-decoration:none}button,.primary,.secondary{border-radius:12px;padding:12px 16px;border:1px solid var(--line);cursor:pointer;font-weight:700}.primary{background:linear-gradient(90deg,var(--red),var(--blue));color:white;border:0;display:inline-block}.secondary{background:transparent}.hero{padding:72px 5vw;display:grid;grid-template-columns:1.4fr .8fr;gap:28px;max-width:1280px;margin:auto}.hero h1{font-size:clamp(38px,6vw,76px);line-height:.98;margin:10px 0 20px}.hero p{color:var(--muted);font-size:18px}.eyebrow{font-size:12px!important;letter-spacing:.18em;color:#d7dce5!important;font-weight:800}.actions{display:flex;gap:12px;margin-top:28px}.panel,.special,.promo{border:1px solid var(--line);background:linear-gradient(145deg,#171b24,#10131a);border-radius:20px;padding:26px}.panel li{margin:14px 0;color:var(--muted)}.promo{max-width:1180px;margin:0 auto 44px;display:flex;justify-content:space-between;background:linear-gradient(90deg,#251015,#11172b)}section#catalogo{max-width:1180px;margin:0 auto;padding:25px 0 70px}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px}.section-head h2,.special h2{font-size:36px;margin:4px 0 16px}.section-head input{width:min(420px,100%);background:#0d1118;color:white;border:1px solid var(--line);border-radius:12px;padding:14px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden}.product-img{height:190px;background:radial-gradient(circle at 30% 20%,#263754,#111722);display:grid;place-items:center;font-size:54px}.card-body{padding:18px}.tag{font-size:12px;padding:6px 9px;border-radius:999px;background:#222938;color:#dbe2ee}.tag.order{background:#352b18;color:#ffd873}.price{font-size:25px;font-weight:800;margin:12px 0}.old{text-decoration:line-through;color:#7f8999;font-size:14px}.card button{width:100%;background:white;color:#0b0d12}.special{max-width:1180px;margin:0 auto 80px;display:grid;grid-template-columns:1fr 1fr;gap:30px}.special p{color:var(--muted)}.status{display:grid;gap:10px}.status span{border:1px solid var(--line);border-radius:12px;padding:14px}dialog{width:min(520px,92vw);background:#11151d;color:white;border:1px solid var(--line);border-radius:20px;padding:24px}dialog::backdrop{background:#0009}.full{width:100%}.total{display:flex;justify-content:space-between;margin:20px 0;font-size:20px}#closeCart{float:right;background:transparent;color:white;font-size:20px}@media(max-width:850px){nav a{display:none}.hero,.special{grid-template-columns:1fr}.grid{grid-template-columns:1fr 1fr}.section-head{align-items:stretch;flex-direction:column}.section-head input{width:100%}}@media(max-width:540px){.grid{grid-template-columns:1fr}.promo{margin-left:4vw;margin-right:4vw;flex-direction:column;gap:8px}.hero{padding-top:42px}}

.product-img img{width:100%;height:100%;object-fit:contain}.card button:disabled{opacity:.5;cursor:not-allowed}
.checkout-note{color:#59636e}.checkout-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.checkout-grid label{display:grid;gap:6px}.checkout-grid .wide{grid-column:1/-1}.checkout-grid input{padding:11px;border:1px solid #cbd2d9;border-radius:8px;font:inherit}#checkout,#orderResult{width:min(680px,94vw);border:0;border-radius:18px;padding:24px}#checkout>button,#orderResult>button{float:right}@media(max-width:650px){.checkout-grid{grid-template-columns:1fr}.checkout-grid .wide{grid-column:auto}}
.shipping-options{display:grid;gap:10px;margin:12px 0}.shipping-option{display:flex;justify-content:space-between;align-items:center;text-align:left;padding:14px;border:1px solid #d8dee8;border-radius:12px;background:#fff;color:#111;cursor:pointer}.shipping-option:hover{border-color:#1f66d1}.shipping-option strong{font-size:1.05rem}.grand-total{font-size:1.25rem}.error{color:#a11919}.full{width:100%}

.oem{max-width:1180px;margin:0 auto 38px;padding:24px;background:#151b25;border:1px solid #30394a;border-radius:18px}.oem h2{font-size:34px;margin:8px 0}.oem p{color:#c5cedb}.oem-tabs{display:flex;gap:10px;margin:20px 0}.oem-tabs button{background:#232b39;color:white}.oem-tabs [aria-pressed=true]{background:#e21d2f}.oem label{display:block;font-weight:700;margin-bottom:8px}.oem-row{display:flex;gap:10px}.oem-row input{flex:1;min-width:0;padding:14px;border:1px solid #b7c1d2;border-radius:10px}.oem button:disabled{opacity:.5;cursor:not-allowed}.oem-result{background:#0b1018;border:1px solid #364155;border-radius:12px;padding:14px;margin:10px 0}.oem-result h3{margin:0}.oem-group{border-left:3px solid #e21d2f;padding:12px;margin:12px 0}.card{display:flex;flex-direction:column}.card-body{display:flex;flex-direction:column;flex:1;gap:8px}.card-body h3{margin:8px 0 0;color:white}.card-body small{color:#c5cedb}.card-body .price{margin-top:auto}.product-img{height:210px;flex-shrink:0}.product-img img{background:#fff;object-fit:contain}@media(max-width:600px){.oem{margin:0 4vw 30px}.oem-row{flex-direction:column}}

/* Visor OEM: únicamente derivados protegidos entregados por el servidor. */
.oem-diagram{padding:14px;margin:12px 0;border:1px solid #344154;border-radius:14px;background:#0c111a}
.oem-diagram h4{margin:0 0 12px;color:#fff}
.oem-diagram img{display:block;max-width:100%;max-height:650px;margin:auto;object-fit:contain;background:#fff;border-radius:8px}
.oem-diagram a{display:inline-block;margin-top:12px;padding:10px 14px;border-radius:8px;background:#df1730;color:#fff;font-weight:700;text-decoration:none}


/* MEBO Commerce 5B.7 — mejoras visuales de escaparate; no afecta checkout ni API. */
:root{--bg:#0b0d12;--card:#141820;--line:#303745;--text:#f7f8fa;--muted:#b8c1ce;--red:#ed102b;--blue:#275cff}
html{scroll-behavior:smooth;scroll-padding-top:100px}
body{background:linear-gradient(180deg,#080b10 0%,#10151d 68%,#0b0e14 100%);line-height:1.45}
header{padding:14px max(24px,calc((100vw - 1180px)/2));background:rgba(9,12,18,.96)}
header img{height:52px;border-radius:9px}nav{gap:26px}nav a{font-size:14px;font-weight:700;color:#e8ecf3}nav a:hover{color:#fff;text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:7px}
nav button{background:#f1f3f6;color:#10141b;border-color:#f1f3f6}
button,.primary,.secondary{transition:transform .15s ease,background-color .15s ease,border-color .15s ease}
button:hover:not(:disabled),.primary:hover,.secondary:hover{transform:translateY(-1px)}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #72a5ff;outline-offset:3px}
.hero{padding:64px 0 48px;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:48px}
.hero h1{font-size:clamp(42px,5.1vw,68px);line-height:1.045;letter-spacing:-.045em;max-width:760px}
.hero p:not(.eyebrow){font-size:17px;line-height:1.65;max-width:610px}
.hero .actions{margin-top:30px;flex-wrap:wrap}
.hero .actions a{padding:14px 20px}
.primary{background:var(--red)}.primary:hover{background:#cf0b23}
.panel{padding:30px;border:1px solid #323b4b;background:linear-gradient(155deg,#1a212c,#10151e);min-height:310px;align-self:stretch}
.panel-kicker,.promo-kicker{display:block;color:#fb6b79;font-size:11px;letter-spacing:.18em;font-weight:800}
.panel h2{font-size:26px;line-height:1.15;letter-spacing:-.025em;margin:12px 0 18px}
.panel ul{list-style:none;margin:0;padding:0}.panel li{position:relative;margin:0;padding:9px 0 9px 26px;font-size:14px;color:#d2d9e4}
.panel li:before{content:'✓';position:absolute;left:0;color:#ff5a70;font-weight:900}
.panel-link{display:inline-block;margin-top:18px;color:#fff;font-size:13px;font-weight:800;text-decoration:underline;text-decoration-color:var(--red);text-underline-offset:5px}
.promo{max-width:1180px;align-items:center;gap:20px;margin-bottom:40px;padding:22px 28px;border-radius:16px;background:linear-gradient(105deg,#2b1119,#171a27 65%,#111b32)}
.promo b{display:block;margin-top:5px;font-size:18px}.promo a{font-size:14px;font-weight:800;color:#fff;white-space:nowrap}
section#catalogo{padding:24px 0 76px}.section-head{margin-bottom:24px}.section-head h2{letter-spacing:-.035em;margin-bottom:4px}.section-subtitle{margin:0;color:var(--muted);font-size:14px}
.catalog-search{display:block;width:min(380px,100%)}.section-head .catalog-search input{width:100%;min-height:48px;border-color:#384353;padding:14px 16px;font-size:14px}
.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.card{min-width:0;border-radius:18px;background:#171b24;border:1px solid #323846;box-shadow:0 14px 28px rgba(0,0,0,.12);transition:border-color .2s ease,transform .2s ease}
.card:hover{border-color:#677386;transform:translateY(-2px)}
.product-img{height:auto;aspect-ratio:1.35/1;min-height:230px;background:#f5f6f8;overflow:hidden;display:flex;align-items:center;justify-content:center}
.product-img img{display:block;width:100%;height:100%;object-fit:contain;background:#f5f6f8;padding:14px}
.no-image{display:flex;flex-direction:column;align-items:center;gap:12px;color:#586273;font-size:44px}.no-image small{font-size:12px;color:#5d6777;font-weight:700}
.card-body{padding:20px;gap:0;min-height:245px}
.card-body .tag{align-self:flex-start;max-width:100%;line-height:1.3;white-space:normal;background:#243344;color:#e8f4ff;font-weight:700}
.card-body .tag.order{background:#3a2b13;color:#ffdf8a}
.card-body h3{font-size:18px;line-height:1.32;letter-spacing:-.01em;margin:14px 0 7px;min-height:48px;overflow-wrap:anywhere}
.card-body .product-meta{display:block;font-size:12px;color:#bfc8d7;overflow-wrap:anywhere}
.price-block{margin-top:auto;padding:18px 0 14px}.price{font-size:28px;line-height:1.15;letter-spacing:-.035em;margin:0;color:#fff}.price span{font-size:12px;font-weight:700;letter-spacing:0;color:#bdc6d3}
.old{display:block;margin-bottom:5px;color:#aeb8c7;font-size:13px}
.card button{min-height:46px;border:0;border-radius:10px;background:var(--red);color:#fff;font-size:14px}.card button:hover:not(:disabled){background:#ce1028}.card button:disabled{background:#414958;color:#e3e8f0}
.empty-results{grid-column:1/-1;padding:32px;border:1px dashed #586273;border-radius:14px;color:#d5dbe4}
.oem{margin-bottom:42px}.special{margin-bottom:90px}.special p{line-height:1.6}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1250px){.hero,section#catalogo,.promo,.oem,.special{margin-left:24px;margin-right:24px}}
@media(max-width:900px){.hero{grid-template-columns:1fr;padding:48px 0 34px;gap:20px}.panel{min-height:0}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-img{min-height:200px}}
@media(max-width:600px){header{padding:12px 16px}header img{height:44px}nav{gap:10px}nav a{display:none}nav button{padding:10px 12px}.hero,section#catalogo,.promo,.oem,.special{margin-left:16px;margin-right:16px}.hero h1{font-size:42px}.hero{padding-top:32px}.hero .actions{flex-direction:column}.hero .actions a{text-align:center}.grid{grid-template-columns:1fr}.product-img{min-height:230px;aspect-ratio:1.35/1}.section-head h2{font-size:30px}.promo{flex-direction:column;align-items:flex-start}.card-body{min-height:0}.card-body h3{min-height:0}.oem{padding:18px}.oem h2{font-size:28px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}

/* MEBO Commerce 5B.8: OEM consultation only; 5B.7 storefront/cart styles preserved. */
.oem-api{max-width:1180px;padding:28px;margin-top:12px}.oem-api [hidden]{display:none!important}.oem-api .section-head{align-items:flex-start;gap:18px}.oem-consultation{display:inline-block;padding:7px 10px;border:1px solid #48536a;border-radius:30px;color:#d4ddec;font-size:12px;white-space:nowrap}.oem-api .oem-tabs{flex-wrap:wrap}.oem-api button{min-height:44px;cursor:pointer}.oem-api .oem-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.oem-api input,.oem-api select{display:block;width:100%;min-height:46px;margin-top:7px;padding:12px;border:1px solid #48536a;border-radius:10px;background:#0e1420;color:#fff;font:inherit}.oem-api #oemStatus{min-height:24px;margin-top:18px;color:#d9e2ef}.oem-selection{padding:18px;border:1px solid #3c4659;border-radius:14px;background:#101620}.oem-selection h3{margin-top:0}.oem-selection label{margin-bottom:16px}.oem-selection button{margin-top:10px}.oem-api .oem-confirm{display:flex;align-items:flex-start;gap:10px;font-size:14px;font-weight:400}.oem-confirm input{width:18px;min-height:18px;margin:2px 0 0;flex-shrink:0}.oem-parts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.oem-result{min-width:0;padding:20px}.oem-result h3{margin:10px 0;overflow-wrap:anywhere}.oem-reference{font-weight:800;color:#ff7b8a!important}.oem-position{font-size:12px;color:#c4cede}.oem-result dl{margin:16px 0}.oem-result dl div{display:flex;justify-content:space-between;gap:16px;padding:6px 0;border-top:1px solid #2a3445;font-size:14px}.oem-result dt{color:#b7c2d2}.oem-result dd{margin:0;text-align:right}.oem-part-actions{display:grid;gap:8px}.oem-fitment-note{font-size:13px}.oem-api select:focus-visible{outline:3px solid #72a5ff;outline-offset:3px}@media(max-width:700px){.oem-api .section-head{display:block}.oem-consultation{margin-top:12px;white-space:normal}.oem-api .oem-controls,.oem-parts{grid-template-columns:1fr}.oem-api .oem-tabs button{flex:1 1 140px}.oem-api{padding:18px}}

/* OEM selector correction: native popup contrast and explicit blocked state. */
.oem-api select{color-scheme:light;background:#fff;color:#111820;border-color:#b4bfce;font-weight:600}.oem-api select option{background:#fff;color:#111820}.oem-api select option:disabled{color:#586273;background:#e9edf2}.oem-api select:disabled{opacity:1;color:#465162;background:#e9edf2;cursor:not-allowed}.oem-api button:disabled{cursor:not-allowed;opacity:1;background:#394353;color:#e1e7f0}.oem-api .oem-help{color:#d7dfeb;font-size:13px;line-height:1.55}.oem-api #oemVersionHelp:empty{display:none}

/* 5B.8.2: OEM chaining and loading, scoped to preserve the 5B.8 storefront. */
.oem-api #oemCancel{margin-left:10px}.oem-api #oemVerified{margin-top:18px}.oem-api #oemStatus{padding:10px 12px;border-left:3px solid var(--red);background:#111b29;border-radius:6px}.oem-api #oemStatus:empty{padding:0;border:0}.oem-api select{max-width:100%;text-overflow:ellipsis}.oem-api button:focus-visible{outline:3px solid #fff;outline-offset:3px}@media(max-width:700px){.oem-api #oemCancel{margin:10px 0 0;width:100%}}

/* MEBO Commerce 5B.8.3: public OEM assembly browser. No private diagrams. */
.oem-assembly-browser{margin-top:16px}
.oem-assembly-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.oem-assembly-heading h3{margin:0 0 6px}
.oem-assembly-count{white-space:nowrap;font-size:12px;color:#cbd5e1;border:1px solid #48536a;border-radius:999px;padding:7px 11px}
.oem-assembly-tools{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:18px 0}
.oem-assembly-tools label{flex:1;max-width:540px;margin:0}
.oem-assembly-tools input{margin-top:8px}
.oem-view-switch{display:flex;border:1px solid #48536a;border-radius:10px;padding:3px;gap:3px}
.oem-api .oem-view-switch button{background:transparent;color:#d8e0eb;border:0;border-radius:8px;padding:9px 14px;min-height:40px}
.oem-api .oem-view-switch button[aria-pressed=true]{background:#e21d2f;color:white}
.oem-assembly-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.oem-assembly-card{display:flex;flex-direction:column;gap:12px;min-width:0;border:1px solid #3c4659;border-radius:14px;background:#171f2c;padding:16px}
.oem-assembly-mark{display:grid;place-items:center;width:42px;height:42px;border:1px solid #46566d;border-radius:11px;color:#cbd5e1;font-size:24px;background:#202c3e}
.oem-assembly-copy{flex:1;min-width:0}.oem-assembly-copy h4{margin:0 0 7px;font-size:15px;color:#fff;overflow-wrap:anywhere;line-height:1.4}
.oem-assembly-copy p{font-size:12px;margin:0;color:#b9c5d6}
.oem-assembly-card button{width:100%;margin:0}
.oem-assembly-grid[data-view=list]{display:flex;flex-direction:column;gap:8px}
.oem-assembly-grid[data-view=list] .oem-assembly-card{display:flex;flex-direction:row;align-items:center;padding:12px 14px}
.oem-assembly-grid[data-view=list] .oem-assembly-card button{width:auto;flex-shrink:0}
.oem-assembly-grid[data-view=list] .oem-assembly-mark{width:36px;height:36px;flex-shrink:0}
.oem-assembly-detail{margin-top:20px}.oem-assembly-detail:empty{display:none}
.oem-assembly-detail-head{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid #48536a;padding-top:20px}
.oem-assembly-detail-head h3{margin:0;overflow-wrap:anywhere}.oem-assembly-detail-head button{flex-shrink:0}
#oemAssemblyEmpty{padding:16px;border:1px dashed #48536a;border-radius:10px}
@media(max-width:900px){.oem-assembly-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.oem-assembly-heading,.oem-assembly-tools,.oem-assembly-detail-head{flex-direction:column;align-items:stretch}.oem-assembly-count{align-self:flex-start}.oem-assembly-tools label{max-width:none}.oem-assembly-grid{grid-template-columns:1fr}.oem-assembly-grid[data-view=list] .oem-assembly-card{flex-wrap:wrap}.oem-assembly-grid[data-view=list] .oem-assembly-card button{width:100%}}

.oem-api .oem-assembly-detail-head .secondary,.oem-api .oem-part-actions .secondary{background:#273448;color:#f7f9fc;border:1px solid #5b6b82}
.oem-api .oem-assembly-detail-head .secondary:hover,.oem-api .oem-part-actions .secondary:hover{background:#34445b}
