/* Buscador, filtros por marca y comparador de los catálogos */
.cf-bar{margin:0 0 26px;}
.cf-search{display:flex; align-items:center; gap:10px; background:#fff; border:1px solid rgba(10,18,64,0.14); border-radius:100px; padding:4px 18px; max-width:620px; box-shadow:0 10px 26px -18px rgba(10,18,64,0.4);}
.cf-search:focus-within{border-color:#1B2FC4; box-shadow:0 0 0 3px rgba(27,47,196,0.15);}
.cf-search svg{width:20px; height:20px; color:#5C647A; flex:none;}
.cf-search input{flex:1; min-width:0; border:0; outline:0; background:transparent; font:inherit; font-size:15.5px; padding:11px 0; color:#12142B;}
.cf-chips{display:flex; flex-wrap:wrap; gap:8px; margin-top:14px;}
.cf-chip{border:1px solid rgba(10,18,64,0.14); background:#fff; color:#12142B; border-radius:100px; padding:7px 14px; font:inherit; font-size:14px; font-weight:600; cursor:pointer; transition:all .15s;}
.cf-chip span{color:#5C647A; font-weight:500; margin-left:2px;}
.cf-chip:hover{border-color:#1B2FC4; color:#1B2FC4;}
.cf-chip.active{background:#1B2FC4; border-color:#1B2FC4; color:#fff;}
.cf-chip.active span{color:rgba(255,255,255,0.8);}
.cf-chip.cf-oferta{border-color:#FFC72C;}
.cf-count{margin-top:12px; font-size:14px; color:#5C647A; min-height:1em;}
.cf-empty{background:#F3F4FA; border-radius:14px; padding:22px; color:#5C647A; margin-top:6px;}
.cf-empty a{color:#1B2FC4; font-weight:600;}

.cf-cmp{display:inline-flex; align-items:center; gap:8px; margin-top:12px; background:none; border:0; padding:4px 0; font:inherit; font-size:13.5px; color:#5C647A; cursor:pointer;}
.cf-cmp:hover{color:#1B2FC4;}
.cf-box{width:18px; height:18px; border:1.5px solid rgba(10,18,64,0.3); border-radius:5px; display:inline-flex; align-items:center; justify-content:center; background:#fff;}
.cf-box svg{width:13px; height:13px; opacity:0; color:#fff;}
.cf-cmp.on{color:#1B2FC4; font-weight:600;}
.cf-cmp.on .cf-box{background:#1B2FC4; border-color:#1B2FC4;}
.cf-cmp.on .cf-box svg{opacity:1;}

.cf-tray{position:fixed; left:50%; bottom:18px; transform:translateX(-50%); z-index:60; background:#0A1240; color:#fff; border-radius:18px; padding:12px 14px; display:flex; align-items:center; gap:14px; box-shadow:0 20px 50px -18px rgba(0,0,0,0.6); max-width:calc(100% - 24px);}
.cf-tray[hidden]{display:none;}
.cf-tray.shake{animation:cfShake .35s;}
@keyframes cfShake{25%{transform:translateX(calc(-50% - 6px));}75%{transform:translateX(calc(-50% + 6px));}}
.cf-tray-items{display:flex; gap:8px; overflow-x:auto;}
.cf-tray-item{display:flex; align-items:center; gap:8px; background:rgba(255,255,255,0.1); border-radius:12px; padding:5px 8px; white-space:nowrap;}
.cf-tray-item img{width:34px; height:34px; object-fit:contain; background:#fff; border-radius:8px;}
.cf-tray-item b{font-size:13px; max-width:150px; overflow:hidden; text-overflow:ellipsis;}
.cf-tray-item button{background:none; border:0; color:#fff; font-size:18px; cursor:pointer; opacity:.7;}
.cf-tray-act{display:flex; align-items:center; gap:10px; flex:none;}
.cf-tray-act small{color:rgba(255,255,255,0.7); font-size:12.5px;}
.cf-go{background:#FFC72C; color:#0A1240; border:0; border-radius:100px; padding:10px 18px; font:inherit; font-weight:700; cursor:pointer;}
.cf-go[disabled]{opacity:.45; cursor:default;}
.cf-clear{background:none; border:0; color:rgba(255,255,255,0.75); font:inherit; font-size:13px; cursor:pointer; text-decoration:underline;}

.cf-modal{position:fixed; inset:0; z-index:80; background:rgba(10,18,64,0.55); display:flex; align-items:center; justify-content:center; padding:16px;}
.cf-modal[hidden]{display:none;}
.cf-modal-box{background:#fff; border-radius:20px; width:min(1000px,100%); max-height:92vh; overflow:auto; padding:22px 24px 26px;}
.cf-modal-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:14px;}
.cf-modal-head h2{font-family:'Space Grotesk',sans-serif; color:#0A1240; font-size:24px;}
.cf-x{background:#F3F4FA; border:0; width:40px; height:40px; border-radius:50%; font-size:24px; cursor:pointer;}
.cf-table-wrap{overflow-x:auto;}
.cf-table{width:100%; border-collapse:collapse; font-size:14.5px;}
.cf-table th{width:120px; text-align:left; vertical-align:top; color:#5C647A; font-size:12px; text-transform:uppercase; letter-spacing:.06em; padding:10px 8px 10px 0;}
.cf-table td{vertical-align:top; padding:10px 12px; border-bottom:1px solid rgba(10,18,64,0.08); min-width:180px; color:#12142B;}
.cf-table tr:first-child td{text-align:center; border-bottom:0;}
.cf-table td img{width:140px; height:140px; object-fit:contain; display:block; margin:0 auto 8px;}
.cf-table td a{color:#0A1240;}
.cf-table td a:hover{color:#1B2FC4;}
.cf-wa{display:inline-block; margin-top:18px; background:#25D366; color:#fff; font-weight:700; padding:12px 20px; border-radius:100px;}

@media (max-width:640px){
  .cf-tray{left:12px; right:12px; transform:none; flex-direction:column; align-items:stretch;}
  .cf-tray.shake{animation:none;}
  .cf-tray-act{justify-content:space-between;}
}
