/* IR App v4 - Sidebar + fixed panes */
:root{
  --bg:#0b0b0d;
  --panel:#121218;
  --panel2:#171722;
  --text:#f3f3f5;
  --muted:#b8b8c2;
  --red:#e11d2e;
  --line:rgba(255,255,255,.09);
  --shadow: 0 14px 40px rgba(0,0,0,.5);
  --radius:18px;
  --radius2:14px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(225,29,46,.28), transparent 55%),
    radial-gradient(900px 500px at 115% 10%, rgba(225,29,46,.20), transparent 55%),
    var(--bg);
}

.app{
  height:100%;
  display:grid;
  grid-template-columns: 330px 1fr;
}

.sidebar{
  position:relative;
  border-right:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  backdrop-filter: blur(10px);
  min-height:100%;
  overflow:hidden;
  transition: width .18s ease;
}

.sidebar.collapsed{ width:74px; }
.sidebar.collapsed .sb-tabs,
.sidebar.collapsed .sb-panels{
  opacity:0;
  pointer-events:none;
}

.sb-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}

.brand{display:flex;align-items:center;gap:12px;min-width:0}
.logo{
  width:44px;height:44px;border-radius:14px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(135deg, var(--red), #a80f1b);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(225,29,46,.22);
  flex:0 0 auto;
}
.brand-txt{min-width:0}
.brand-title{font-weight:900;letter-spacing:.2px}
.brand-sub{color:var(--muted);font-size:12px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.iconbtn{
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
  font-size:18px;
  font-weight:900;
}
.iconbtn:hover{border-color: rgba(225,29,46,.55); background: rgba(225,29,46,.08);}
.iconbtn:active{transform: translateY(1px);}

.sb-tabs{
  display:flex;
  gap:10px;
  padding:12px 14px;
}
.sb-tab{
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  color:var(--text);
  border-radius:999px;
  padding:9px 12px;
  font-weight:900;
  cursor:pointer;
}
.sb-tab.active{border-color: rgba(225,29,46,.7); background: rgba(225,29,46,.10); box-shadow: 0 0 0 4px rgba(225,29,46,.10);}

.sb-panels{
  height: calc(100% - 118px);
  overflow:auto;
  padding: 0 14px 16px;
}

.sb-panel{display:none}
.sb-panel.active{display:block}

.field{margin-top:12px}
label{display:block;color:var(--muted);font-size:12px;margin-bottom:6px;letter-spacing:.2px}
select,input[type="text"]{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
  font-size:14px;
}
select:focus,input[type="text"]:focus{
  border-color: rgba(225,29,46,.6);
  box-shadow: 0 0 0 4px rgba(225,29,46,.12);
}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hint{color:var(--muted);font-size:12.5px;line-height:1.35;margin-top:8px}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;}
.btn{
  margin-top:14px;
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
  font-weight:900;
}
.btn:hover{border-color: rgba(225,29,46,.55); background: rgba(225,29,46,.08);}
.btn:active{transform: translateY(1px);}
.btn.primary{border-color: rgba(225,29,46,.55); background: linear-gradient(135deg, rgba(225,29,46,.22), rgba(225,29,46,.08));}

.file{display:none}

.sb-footer{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.countline{display:flex;align-items:center;gap:10px}
.dot{width:10px;height:10px;border-radius:999px;background:var(--red);box-shadow:0 0 0 4px rgba(225,29,46,.12)}
.mini{color:var(--muted);font-size:12.5px;margin-top:10px;line-height:1.35}

.cats{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.cat{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  border-radius:14px;
  padding:12px 12px;
  cursor:pointer;
}
.cat:hover{border-color: rgba(225,29,46,.55); background: rgba(225,29,46,.06);}
.cat .cname{font-weight:900}
.cat .ccount{color:var(--muted);font-weight:800;font-size:12px}

/* Main */
.main{min-height:100%; display:flex; flex-direction:column;}
.main-head{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.mh-title{font-weight:900;letter-spacing:.2px}
.pill{
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  border-radius:999px;
  padding:8px 12px;
  color:var(--muted);
  font-weight:800;
  font-size:12.5px;
}

.content{
  flex:1 1 auto;
  padding:16px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:16px;
  min-height:0;
}
@media (max-width: 1080px){
  .app{grid-template-columns: 1fr;}
  .sidebar{position:sticky; top:0; z-index:10}
  .content{grid-template-columns: 1fr;}
}

.pane{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
  box-shadow: var(--shadow);
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.pane-head{
  padding:14px 14px 10px;
  border-bottom:1px solid var(--line);
  background: rgba(0,0,0,.16);
  display:flex;justify-content:space-between;align-items:baseline;gap:10px;
}
.pane-title{font-weight:900}
.pane-sub{color:var(--muted);font-size:12.5px}
.pane-body{
  padding:14px;
  overflow:auto;
  min-height:0;
}

.list{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media(max-width: 720px){ .list{grid-template-columns:1fr;} }

.card{
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  border-radius: var(--radius2);
  padding:12px;
  display:flex;
  gap:12px;
  cursor:pointer;
  transition: border-color .15s ease, transform .08s ease, background .15s ease;
}
.card:hover{border-color: rgba(225,29,46,.55); background: rgba(225,29,46,.06);}
.card:active{transform: translateY(1px);}

.thumb{
  width:72px;height:72px;border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  overflow:hidden;
  flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb .ph{color: rgba(255,255,255,.35);font-weight:900;letter-spacing:.6px;font-size:12px}

.meta{min-width:0}
.meta .title{font-weight:900;margin:0 0 4px;font-size:13.5px;line-height:1.2}
.meta .sub{margin:0;color:var(--muted);font-size:12.5px;line-height:1.25}

.empty{
  padding:14px;
  color:var(--muted);
  border: 1px dashed rgba(255,255,255,.16);
  border-radius: var(--radius);
  background: rgba(0,0,0,.15);
}

.detail{color:var(--muted);border:1px dashed rgba(255,255,255,.16);border-radius:var(--radius);padding:14px;background: rgba(0,0,0,.15);}

.detail-top{
  display:grid;
  grid-template-columns: 300px 1fr;
  gap:14px;
}
@media(max-width: 720px){ .detail-top{grid-template-columns:1fr;} }

.imgbox{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,.30);
  overflow:hidden;
  min-height:220px;
  display:flex;align-items:center;justify-content:center;
}
.imgbox img{width:100%;height:100%;object-fit:cover;display:block}
.imgbox .ph{color: rgba(255,255,255,.45);font-weight:900;letter-spacing:.7px;text-align:center;padding:18px}

.d-title{font-weight:1000;font-size:18px;letter-spacing:.2px;line-height:1.15}
.d-sub{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap}
.tag{
  border:1px solid var(--line);
  background: rgba(0,0,0,.20);
  border-radius:999px;
  padding:7px 10px;
  color:var(--muted);
  font-weight:900;
  font-size:12px;
}
.tag strong{color:var(--text)}
.d-func{margin-top:10px;color:var(--text);line-height:1.35}

.tabs{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.tab{
  border:1px solid var(--line);
  background: rgba(0,0,0,.20);
  color:var(--text);
  border-radius:999px;
  padding:10px 12px;
  font-weight:1000;
  cursor:pointer;
}
.tab.active{border-color: rgba(225,29,46,.7); background: rgba(225,29,46,.10); box-shadow: 0 0 0 4px rgba(225,29,46,.10);}

.tabpanes{margin-top:12px}
.tabpane{display:none}
.tabpane.active{display:block}

.kv{display:grid;grid-template-columns: 1fr 1fr; gap:10px}
@media(max-width:720px){ .kv{grid-template-columns:1fr;} }
.kv .item{
  border:1px solid var(--line);
  background: rgba(0,0,0,.16);
  border-radius:14px;
  padding:10px 12px;
}
.kv .k{color:var(--muted);font-size:12px;margin-bottom:2px}
.kv .v{font-weight:1000;word-break:break-word}

.block{margin-top:14px}
.btitle{font-weight:1000;margin-bottom:8px}
.bullets{margin:0;padding-left:18px;color:var(--text);line-height:1.35}
.bullets li{margin:6px 0;color:var(--text)}
.note{margin-top:12px;border:1px solid rgba(225,29,46,.35);background: rgba(225,29,46,.08);padding:10px 12px;border-radius:14px;color:var(--text);}

.locgrid{display:grid;grid-template-columns: 1fr 340px; gap:14px; align-items:start}
@media(max-width: 900px){ .locgrid{grid-template-columns:1fr;} }
.p{color:var(--text);line-height:1.35}

.compat{margin-top:12px;display:flex;flex-direction:column;gap:10px}
.fit{
  border:1px solid var(--line);
  background: rgba(0,0,0,.16);
  border-radius:14px;
  padding:10px 12px;
  display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;
}
.fit .l{font-weight:1000}
.fit .r{color:var(--muted);font-weight:900}



/* Content: single pane (lista ancha) */
.content{grid-template-columns:1fr !important}
.pane.left.full{grid-column:1 / -1}
.pane.left.full .pane-body{max-height:calc(100vh - 220px); overflow:auto}


/* ===== Modal (Ficha completa) ===== */
.modal{position:fixed;inset:0;display:none;z-index:1000}
.modal.show{display:block}
.modalBackdrop{position:absolute;inset:0;background:rgba(0,0,0,.86);backdrop-filter: blur(12px);-webkit-backdrop-filter:blur(12px)}
.modalCard{position:relative;max-width:1180px;width:calc(100% - 24px);max-height:calc(100% - 24px);margin:12px auto;border-radius:22px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg, rgba(13,13,16,.98), rgba(5,5,7,.99));box-shadow:0 34px 95px rgba(0,0,0,.78);overflow:hidden;display:flex;flex-direction:column}
.modalTop{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 14px;border-bottom:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.42)}
.modalH{font-size:16px;font-weight:900;letter-spacing:.2px}
.modalSub{font-size:12.5px;color:var(--muted);margin-top:2px}
.modalBody{padding:14px;overflow:auto}
.modalBottom{padding:12px 14px;border-top:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.48);display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.modalGrid{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:980px){.modalGrid{grid-template-columns:460px 1fr}}
.pillRow{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.iconBtn{width:40px;height:40px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.03);color:var(--text);cursor:pointer;font-weight:900}
.iconBtn:hover{border-color:rgba(225,29,46,.55);background:rgba(225,29,46,.08)}
.secH{margin-top:2px;font-weight:900}
.imgbox.big{min-height:340px}



/* Modal tabs */
.panel{display:none}
.panel.active{display:block}

.locBlock{margin-top:10px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:rgba(0,0,0,.18)}
.locSub{margin-top:6px;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.6px}
.locUl{margin:8px 0 0 18px;color:var(--text);font-size:13.5px;line-height:1.35}
.locUl li{margin:6px 0}

/* ===== Login ===== */
.loginScreen{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.72);backdrop-filter:blur(8px)}
.loginCard{width:520px;max-width:calc(100% - 24px);border-radius:22px;border:1px solid rgba(255,255,255,.14);background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.20));box-shadow:0 30px 80px rgba(0,0,0,.55);padding:16px}
.loginBrand{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.logoDot{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg, var(--red), #a80f1b);border:1px solid rgba(255,255,255,.12)}
.loginTitle{font-weight:900;font-size:18px}
.loginSub{color:var(--muted);font-size:13px;margin-top:2px}
.loginGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:520px){.loginGrid{grid-template-columns:1fr}}
.loginActions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px;flex-wrap:wrap}

/* ===== Drop Zone ===== */
.dropZone{position:absolute;inset:0;background:rgba(0,0,0,.65);display:flex;align-items:center;justify-content:center;z-index:1500}
.dropInner{border:1px dashed rgba(255,255,255,.22);border-radius:18px;padding:22px 18px;background:rgba(0,0,0,.25);text-align:center;min-width:280px}
.dropTitle{font-weight:900;font-size:18px}
.dropSub{color:var(--muted);margin-top:6px;font-size:13px}

/* Login hardening */
.loginScreen{pointer-events:auto}
.loginCard{position:relative;z-index:2001;pointer-events:auto}
.loginCard *{pointer-events:auto}

/* Drop-in sobre cuadros de imagen (Admin) */
.droptarget{position:relative}
.droptarget.adminCan::after{
  content:"Arrastrá una imagen aquí o hacé click";
  position:absolute;left:12px;right:12px;bottom:12px;
  padding:10px 12px;border-radius:14px;
  border:1px dashed rgba(225,29,46,.35);
  background:linear-gradient(135deg, rgba(225,29,46,.16), rgba(0,0,0,.20));
  color:rgba(255,255,255,.86);
  font-weight:900;font-size:12px;text-align:center;
  pointer-events:none;
}
.droptarget.dragOver{
  outline:2px solid rgba(225,29,46,.75);
  outline-offset:2px;
  box-shadow:0 0 0 6px rgba(225,29,46,.12);
}


.thumb.mediaReady{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.18));
}
.thumb img{object-fit:contain;background:rgba(255,255,255,.96)}
.thumbFallback{
  width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background: radial-gradient(circle at 30% 25%, rgba(225,29,46,.22), transparent 45%), rgba(5,5,8,.92);
  color:rgba(255,255,255,.88);padding:8px;text-align:center;
}
.thumbFallback .type{font-size:11px;font-weight:1000;letter-spacing:.4px;line-height:1.1}
.thumbFallback .part{font-size:10px;color:rgba(255,255,255,.55);margin-top:6px;line-height:1.15;word-break:break-word}
.galleryViewer{position:relative}
.galleryViewer video,.galleryViewer img{
  width:100%;height:100%;display:block;object-fit:contain;background:rgba(255,255,255,.96)
}
.galleryCaption{
  position:absolute;left:12px;right:12px;bottom:12px;padding:10px 12px;border-radius:14px;
  background:rgba(0,0,0,.55);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(6px);
  color:var(--text);font-size:12px;font-weight:800
}
.galleryThumbs{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.galleryThumb{
  width:78px;height:78px;border-radius:14px;border:1px solid var(--line);overflow:hidden;
  background:rgba(0,0,0,.28);cursor:pointer;display:flex;align-items:center;justify-content:center;position:relative;
}
.galleryThumb:hover{border-color:rgba(225,29,46,.55);background:rgba(225,29,46,.06)}
.galleryThumb.active{border-color:rgba(225,29,46,.72);box-shadow:0 0 0 4px rgba(225,29,46,.12)}
.galleryThumb img,.galleryThumb video{width:100%;height:100%;object-fit:cover;display:block;background:rgba(255,255,255,.96)}
.galleryThumb .badge{
  position:absolute;right:6px;bottom:6px;border-radius:999px;padding:4px 6px;font-size:10px;font-weight:1000;
  background:rgba(0,0,0,.72);border:1px solid rgba(255,255,255,.12);color:var(--text)
}
.galleryEmpty{padding:18px;text-align:center;color:var(--muted);line-height:1.45}


/* ===== V10.4: nombres de imagen + referencia Google ===== */
.mediaCaption{margin-top:8px;color:var(--muted);font-size:12px;font-weight:800;word-break:break-word}
.googleRefBox{padding:12px;border:1px solid var(--line);border-radius:16px;background:rgba(0,0,0,.18)}
.googleQuery{margin-top:8px;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);font-size:12.5px;line-height:1.35;word-break:break-word;color:var(--text)}
.googleActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.googleActions a.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}

/* ===== V10.7: Compatibles modernos en cards ===== */
.compat-list{margin:0;padding:0;list-style:none}
.compatPanelV107{display:flex;flex-direction:column;gap:12px;width:100%}
.compatNotice{
  display:flex;gap:12px;align-items:flex-start;
  padding:12px 14px;border-radius:18px;
  border:1px solid rgba(225,29,46,.34);
  background:linear-gradient(135deg, rgba(225,29,46,.14), rgba(255,255,255,.035));
  box-shadow:0 12px 30px rgba(0,0,0,.16);
}
.compatNoticeIcon{
  width:30px;height:30px;border-radius:12px;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
  background:rgba(225,29,46,.20);border:1px solid rgba(225,29,46,.45);
  color:#fff;font-weight:1000;font-size:17px;line-height:1;
}
.compatNoticeTitle{font-weight:1000;font-size:14px;color:var(--text);margin-bottom:2px}
.compatNoticeText{color:var(--muted);font-size:13px;line-height:1.35}
.compatNoticeText strong{color:var(--text)}
.compatHeaderRow{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:2px 2px 0;
}
.compatMiniLabel{font-size:11px;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.7px}
.compatTitle{font-size:18px;font-weight:1000;color:var(--text);margin-top:2px}
.compatCounter{
  border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.045);
  border-radius:999px;padding:8px 12px;font-size:12px;font-weight:1000;color:var(--text);
}
.compatLegend{display:flex;gap:8px;flex-wrap:wrap;margin-top:-2px}
.compatLegend span{
  border:1px solid rgba(255,255,255,.10);background:rgba(0,0,0,.18);
  border-radius:999px;padding:6px 9px;color:var(--muted);font-size:11px;font-weight:900;
}
.compatScroll{max-height:360px;overflow:auto;padding-right:4px;display:flex;flex-direction:column;gap:12px}
.compatScroll::-webkit-scrollbar{width:8px}
.compatScroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:999px}
.compatScroll::-webkit-scrollbar-track{background:rgba(255,255,255,.04);border-radius:999px}
.compatGroup{display:flex;flex-direction:column;gap:8px}
.compatGroupTitle{
  display:flex;align-items:center;gap:8px;font-weight:1000;color:var(--text);
  font-size:13px;text-transform:uppercase;letter-spacing:.55px;margin:2px 2px 0;
}
.compatGroupTitle span{
  min-width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;background:rgba(225,29,46,.16);border:1px solid rgba(225,29,46,.28);font-size:11px;
}
.compatCards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:10px}
@media(min-width:1100px){.compatCards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.compatCard{
  position:relative;overflow:hidden;
  border:1px solid rgba(255,255,255,.11);
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(0,0,0,.18));
  border-radius:18px;padding:12px 13px;min-height:104px;
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}
.compatCard::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:4px;
  background:linear-gradient(180deg, rgba(225,29,46,.95), rgba(225,29,46,.18));
}
.compatCardTop{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.compatMake{font-size:11px;color:var(--muted);font-weight:1000;text-transform:uppercase;letter-spacing:.65px;line-height:1.1}
.compatModel{font-size:15px;color:var(--text);font-weight:1000;line-height:1.15;margin-top:3px}
.compatYear{
  flex:0 0 auto;border-radius:999px;padding:6px 9px;
  background:rgba(225,29,46,.14);border:1px solid rgba(225,29,46,.28);
  color:var(--text);font-size:12px;font-weight:1000;white-space:nowrap;
}
.compatMeta{display:flex;flex-direction:column;gap:6px;margin-top:10px;color:var(--muted);font-size:12.5px;line-height:1.25}
.compatMeta span{display:block}
.compatMeta b{color:var(--text);font-weight:1000}
.compatEmpty{
  border:1px solid var(--line);background:rgba(255,255,255,.035);border-radius:16px;padding:16px;
  display:flex;flex-direction:column;gap:4px;color:var(--muted);
}
.compatEmpty strong{color:var(--text)}

/* Se conserva compatibilidad con la lista compacta anterior */
.fit{align-items:flex-start}
.fit .r{line-height:1.35}
@media(max-width:640px){
  .compatScroll{max-height:420px}
  .compatNotice{padding:11px 12px;border-radius:16px}
  .compatTitle{font-size:16px}
  .compatCard{border-radius:16px;padding:11px 12px}
  .compatCardTop{flex-direction:column}
  .compatYear{white-space:normal}
}


/* ===== V10.13 Detalles ordenados + lectura mejorada ===== */
#mDetails{max-width:100%;}
#mKv.kv{display:block;}
.detailsModern{display:flex;flex-direction:column;gap:12px;max-width:100%;}
.detailSummary{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.detailChip{
  min-width:0;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.050), rgba(0,0,0,.32));
  border-radius:16px;
  padding:12px 12px;
  overflow:hidden;
  min-height:96px;
}
.detailChip span{
  display:block;
  color:rgba(255,255,255,.66);
  font-size:11px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.65px;
  margin-bottom:7px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.detailChip strong{
  display:block;
  color:var(--text);
  font-size:14px;
  line-height:1.22;
  font-weight:900;
  word-break:break-word;
}
.commercialBox{
  display:grid;
  grid-template-columns:1.28fr .95fr;
  gap:12px;
  border:1px solid rgba(225,29,46,.32);
  background:
    radial-gradient(650px 140px at 10% 0%, rgba(225,29,46,.20), transparent 62%),
    linear-gradient(180deg, rgba(50,7,12,.90), rgba(13,7,9,.96));
  border-radius:18px;
  padding:14px;
}
.boxEyebrow,
.detailSectionHead{
  color:rgba(255,255,255,.68);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.80px;
}
.commercialMain{
  margin-top:7px;
  font-size:17px;
  line-height:1.22;
  font-weight:950;
}
.commercialYears{margin-top:7px;color:rgba(255,255,255,.74);font-size:13px;line-height:1.3;}
.validationBox{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.34);
  border-radius:15px;
  padding:12px;
  color:rgba(255,255,255,.88);
  font-size:13px;
  line-height:1.38;
  align-self:stretch;
}
.validationBox.wide{margin:0;}
.detailSection{
  border:1px solid rgba(255,255,255,.085);
  background:rgba(0,0,0,.24);
  border-radius:18px;
  padding:13px;
}
.infoGrid{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-auto-flow:dense;
  gap:10px;
}
.infoGrid.smart{grid-template-columns:repeat(4,minmax(0,1fr));}
.infoGrid.smart.physical{grid-template-columns:repeat(4,minmax(0,1fr));}
.infoCard{
  border:1px solid rgba(255,255,255,.095);
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(0,0,0,.30));
  border-radius:15px;
  padding:12px 13px;
  min-height:92px;
}
.infoCard.wide{grid-column:span 2;}
.infoCard.priority{grid-column:span 2;}
.infoCard.compact{min-height:78px;}
.infoTitle{
  color:rgba(255,255,255,.63);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.58px;
  margin-bottom:7px;
}
.infoText{
  color:var(--text);
  font-size:13.6px;
  line-height:1.36;
  font-weight:760;
}
.detailTwoCols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.cleanList{
  margin:10px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.cleanList li{
  position:relative;
  padding-left:18px;
  color:rgba(255,255,255,.88);
  font-size:13.3px;
  line-height:1.36;
}
.cleanList li::before{
  content:"";
  position:absolute;
  left:0;
  top:.55em;
  width:7px;
  height:7px;
  border-radius:999px;
  background:var(--red);
  box-shadow:0 0 0 3px rgba(225,29,46,.13);
}
#mNotes{display:none;}
@media(max-width:1180px){
  .detailSummary{grid-template-columns:repeat(3,minmax(0,1fr));}
  .infoGrid,.infoGrid.smart,.infoGrid.smart.physical{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px){
  .detailSummary,.infoGrid,.infoGrid.smart,.infoGrid.smart.physical,.detailTwoCols,.commercialBox{grid-template-columns:1fr;}
  .infoCard.wide,.infoCard.priority{grid-column:auto;}
  .commercialMain{font-size:15px;}
  .detailChip,.infoCard{min-height:auto;}
}


.galleryPassiveViewer{
  min-height: 420px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:30px 24px; border-radius:22px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.18));
  border:1px dashed rgba(255,255,255,.14); color:var(--text);
}
.galleryPassiveIcon{
  width:72px; height:72px; border-radius:20px; display:flex; align-items:center; justify-content:center;
  background: radial-gradient(circle at 30% 25%, rgba(225,29,46,.22), transparent 45%), rgba(5,5,8,.92);
  border:1px solid rgba(255,255,255,.10); font-size:36px; font-weight:1000; margin-bottom:14px;
}
.galleryPassiveTitle{font-size:22px; font-weight:1000; margin-bottom:10px;}
.galleryPassiveText{max-width:560px; color:var(--muted); line-height:1.5;}
.galleryPassiveText.small{font-size:12px; margin-top:8px;}
.galleryThumb.passive{background:rgba(255,255,255,.03);}
.galleryThumbPlaceholder{
  width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  color:rgba(255,255,255,.78);
}
.galleryThumbPlaceholder span{font-size:22px; font-weight:1000; line-height:1;}
.galleryThumbPlaceholder small{font-size:11px; font-weight:800; letter-spacing:.02em;}


.galleryUploadGrid{
  display:grid;
  grid-template-columns:repeat(5,minmax(112px,1fr));
  gap:10px;
  width:100%;
  margin-top:12px;
}
.galleryUploadBtn{
  min-height:74px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(0,0,0,.18));
  color:var(--text);
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:3px;
  padding:10px 12px;
  text-align:left;
}
.galleryUploadBtn:hover{border-color:rgba(225,29,46,.6);background:rgba(225,29,46,.08)}
.galleryUploadBtn strong{font-size:12px;line-height:1.1;font-weight:1000}
.galleryUploadBtn small{font-size:10.5px;line-height:1.2;color:var(--muted)}
.galleryUploadPlus{
  width:22px;height:22px;border-radius:999px;display:flex;align-items:center;justify-content:center;
  background:rgba(225,29,46,.18);border:1px solid rgba(225,29,46,.35);font-weight:1000;margin-bottom:2px;
}
@media(max-width:980px){.galleryUploadGrid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){.galleryUploadGrid{grid-template-columns:1fr;}}
