/* RD Model Directory v1.2.0 */
body.rdmd-on #left-column { display: none !important; }
body.rdmd-on #content-wrapper { flex: 0 0 100% !important; max-width: 100% !important; }
/* en la página de marca solo interesa elegir modelo: se oculta el listado de productos */
body.rdmd-on #products, body.rdmd-on #js-product-list-top, body.rdmd-on #js-product-list-bottom, body.rdmd-on #infinity-loader-icon { display: none !important; }
.rdmd { --rdmd-ink:#111; --rdmd-mute:#6b7280; --rdmd-line:#e5e7eb; --rdmd-bg:#f6f7f9; --rdmd-acc:#2f7d32; margin: 6px 0 28px; }
.rdmd-head { display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; justify-content:space-between; margin-bottom:18px; }
.rdmd-search { position:relative; flex:1 1 320px; max-width:460px; }
.rdmd-search svg { position:absolute; left:12px; top:50%; width:18px; height:18px; transform:translateY(-50%); fill:none; stroke:var(--rdmd-mute); stroke-width:2; stroke-linecap:round; }
.rdmd-search input { width:100%; height:44px; padding:0 14px 0 40px; border:1px solid var(--rdmd-line); border-radius:10px; font-size:15px; background:#fff; color:var(--rdmd-ink); }
.rdmd-search input:focus { outline:none; border-color:var(--rdmd-ink); }
.rdmd-jump { display:flex; flex-wrap:wrap; gap:6px; }
.rdmd-jump a { padding:6px 12px; border:1px solid var(--rdmd-line); border-radius:999px; font-size:13px; font-weight:600; color:var(--rdmd-ink); background:#fff; text-decoration:none; }
.rdmd-jump a:hover { border-color:var(--rdmd-ink); }
.rdmd-sec { margin-bottom:22px; scroll-margin-top:90px; }
.rdmd-title { display:flex; align-items:baseline; gap:8px; margin:0 0 10px; padding:9px 14px; border-radius:8px; background:var(--rdmd-bg); font-size:16px; font-weight:700; color:var(--rdmd-ink); }
.rdmd-title span { font-size:12px; font-weight:600; color:var(--rdmd-mute); }
.rdmd-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(118px, 1fr)); gap:8px; }
.rdmd-item { display:flex; flex-direction:column; justify-content:center; min-height:42px; padding:7px 10px; border:1px solid var(--rdmd-line); border-radius:8px; background:#fff; color:var(--rdmd-ink) !important; text-align:center; text-decoration:none !important; font-size:14px; font-weight:600; line-height:1.2; transition:border-color .12s, box-shadow .12s; }
.rdmd-item:hover { border-color:var(--rdmd-acc); box-shadow:0 0 0 1px var(--rdmd-acc) inset; }
.rdmd-item small { margin-top:2px; font-size:11px; font-weight:500; color:var(--rdmd-mute); }
.rdmd-item[hidden], .rdmd-sec[hidden] { display:none !important; }
.rdmd-empty { padding:24px; text-align:center; color:var(--rdmd-mute); }
@media (max-width: 767px) {
  .rdmd-grid { grid-template-columns:repeat(auto-fill, minmax(96px, 1fr)); gap:6px; }
  .rdmd-item { font-size:13px; min-height:38px; padding:6px; }
  .rdmd-jump { flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; }
  .rdmd-jump a { flex:0 0 auto; }
}
/* Service Pack: tarjeta modelo + referencias */
.rdmd-sptitle { flex:1 1 100%; }
.rdmd-sptitle h1 { margin:0 0 2px; font-size:26px; font-weight:800; color:var(--rdmd-ink); }
.rdmd-sptitle p { margin:0; color:var(--rdmd-mute); font-size:14px; }
.rdmd-sp .rdmd-grid { grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); }
.rdmd-card { display:flex; flex-direction:column; gap:7px; padding:9px 10px 10px; border:1px solid var(--rdmd-line); border-radius:8px; background:#fff; }
.rdmd-card[hidden] { display:none !important; }
.rdmd-model { font-size:14px; font-weight:700; line-height:1.2; color:var(--rdmd-ink) !important; text-decoration:none !important; }
.rdmd-model:hover { color:var(--rdmd-acc) !important; }
.rdmd-refs { display:flex; flex-wrap:wrap; gap:5px; }
.rdmd-ref { display:inline-flex; align-items:baseline; gap:4px; padding:3px 8px; border-radius:6px; background:var(--rdmd-bg); border:1px solid transparent; font-size:12px; color:var(--rdmd-ink) !important; text-decoration:none !important; }
.rdmd-ref b { font-weight:700; }
.rdmd-ref small { font-size:11px; color:var(--rdmd-mute); }
.rdmd-ref:hover { border-color:var(--rdmd-acc); background:#fff; }
@media (max-width: 767px) {
  .rdmd-sp .rdmd-grid { grid-template-columns:1fr 1fr; }
  .rdmd-sptitle h1 { font-size:21px; }
}
/* Hub (Herramientas): subcategorías en tarjetas, el listado de productos sigue debajo */
body.rdmd-hubon #left-column { display: none !important; }
body.rdmd-hubon #content-wrapper { flex: 0 0 100% !important; max-width: 100% !important; }
.rdmd-hubgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:8px; }
.rdmd-hubitem { display:flex; flex-direction:column; gap:3px; padding:12px 14px; border:1px solid var(--rdmd-line); border-radius:10px; background:#fff; color:var(--rdmd-ink) !important; text-decoration:none !important; transition:border-color .12s, box-shadow .12s; }
.rdmd-hubitem span { font-size:14px; font-weight:700; line-height:1.25; }
.rdmd-hubitem small { font-size:12px; color:var(--rdmd-mute); }
.rdmd-hubitem:hover { border-color:var(--rdmd-acc); box-shadow:0 0 0 1px var(--rdmd-acc) inset; }
.rdmd-huball { background:var(--rdmd-ink); border-color:var(--rdmd-ink); }
.rdmd-huball span, .rdmd-huball small { color:#fff; }
@media (max-width: 767px) {
  .rdmd-hubgrid { grid-template-columns:1fr 1fr; gap:6px; }
  .rdmd-hubitem { padding:10px 11px; }
  .rdmd-hubitem span { font-size:13px; }
}
