/* ============================================================
   STC – Soluciones Tecnológicas Integrales
   assets/css/catalog.css
   ============================================================ */

/* ── RESET & VARIABLES ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0d1f4e;
  --navy2:  #0a1738;
  --blue:   #1565C0;
  --cyan:   #1a8fc1;
  --cyan2:  #29b6f6;
  --silver: #4a5568;
  --light:  #e8f4fd;
  --bg:     #f4f6fb;
  --text:   #1a2340;
  --white:  #ffffff;
  --green:  #25D366;
}

body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); }

/* ── TOPBAR ───────────────────────────────────────────────── */
.topbar {
  background: var(--navy2);
  padding: 9px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.topbar-msg  { color: rgba(255,255,255,.75); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-right a {
  color: rgba(255,255,255,.65); font-size: 13px; text-decoration: none;
  display: flex; align-items: center; gap: 5px; transition: color .2s;
}
.topbar-right a:hover { color: #fff; }
.tb-socials {
  display: flex; gap: 12px;
  margin-left: 10px; padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.15);
}
.tb-socials i { color: rgba(255,255,255,.6); font-size: 20px; cursor: pointer; transition: color .2s; }
.tb-socials i:hover { color: var(--cyan2); }

/* ── HEADER ───────────────────────────────────────────────── */
header {
  background: var(--cyan2);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo { text-decoration: none; flex-shrink: 0; }
.logo .l1 { font-size: 34px; font-weight: 900; color: var(--navy); letter-spacing: -1.5px; line-height: 1; }
.logo .l2 { font-size: 11px; font-weight: 700; color: var(--navy2); opacity: .8; letter-spacing: .4px; margin-top: 2px; }

.search-wrap {
  flex: 1;
  display: flex; align-items: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  height: 52px;
  border: 2px solid var(--blue);
}
.search-wrap input  { flex: 1; border: none; outline: none; padding: 0 20px; font-size: 15px; color: var(--text); }
.search-btn {
  background: var(--blue); border: none;
  width: 56px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; font-size: 22px; flex-shrink: 0;
  transition: opacity .2s;
}
.search-btn:hover { opacity: .85; }

.header-actions { display: flex; gap: 12px; flex-shrink: 0; }
.hbtn {
  border: none; border-radius: 10px; padding: 13px 22px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 8px; transition: opacity .2s;
}
.hbtn:hover    { opacity: .88; }
.hbtn-cart     { background: var(--navy); color: #fff; }
.hbtn-wha      { background: var(--green); color: #fff; }

/* ── NAVIGATION ───────────────────────────────────────────── */
nav {
  background: var(--navy);
  padding: 0 40px;
  display: flex; align-items: center;
  overflow-x: auto;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
nav::-webkit-scrollbar { display: none; }
.nav-item {
  color: rgba(255,255,255,.78); font-size: 14px; font-weight: 600;
  padding: 16px 20px; white-space: nowrap; cursor: pointer;
  border-bottom: 3px solid transparent; transition: all .2s;
}
.nav-item:hover,
.nav-item.active { color: #fff; border-bottom-color: var(--cyan2); }

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb {
  padding: 13px 40px;
  background: #fff;
  border-bottom: 1px solid #e8edf5;
  font-size: 13px; color: var(--silver);
}
.breadcrumb a    { color: var(--blue); text-decoration: none; }
.breadcrumb span { margin: 0 6px; color: #ccc; }

/* ── MAIN LAYOUT ──────────────────────────────────────────── */
.main-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 70vh;
  background: var(--bg);
}
@media (max-width: 768px) { .main-layout { grid-template-columns: 1fr; } }

/* ── SIDEBAR ──────────────────────────────────────────────── */
.sidebar {
  background: #fff;
  border-right: 1px solid #e8edf5;
  padding: 24px 0;
  align-self: start;
  position: sticky;
  top: 62px;
}
.sidebar-section       { padding: 0 18px 20px; }
.sidebar-section-title {
  font-size: 12px; font-weight: 800; color: var(--navy);
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
}
.sidebar-cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px; border-radius: 8px; cursor: pointer;
  font-size: 14px; color: var(--silver);
  transition: all .2s; margin-bottom: 2px;
}
.sidebar-cat:hover          { background: var(--light); color: var(--blue); }
.sidebar-cat.active         { background: var(--light); color: var(--blue); font-weight: 700; }
.cat-count                  { font-size: 11px; background: #e8edf5; color: var(--silver); padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.sidebar-cat.active .cat-count { background: var(--blue); color: #fff; }

/* price filter */
.price-block               { padding: 0 18px 20px; }
.price-block h4,
.stock-block h4 {
  font-size: 12px; font-weight: 800; color: var(--navy);
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 2px solid var(--light);
}
.price-inputs              { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.price-inputs input        { width: 100%; border: 1px solid #dde8f5; border-radius: 7px; padding: 8px 10px; font-size: 13px; color: var(--text); outline: none; }
.price-inputs input:focus  { border-color: var(--cyan2); }
.price-inputs span         { color: var(--silver); flex-shrink: 0; }
.apply-btn                 { width: 100%; background: var(--blue); color: #fff; border: none; border-radius: 8px; padding: 9px; font-size: 13px; font-weight: 700; cursor: pointer; transition: opacity .2s; }
.apply-btn:hover           { opacity: .88; }

/* stock filter */
.stock-block    { padding: 0 18px 24px; }
.check-item     { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--silver); padding: 5px 0; cursor: pointer; }
.check-item input { accent-color: var(--blue); width: 15px; height: 15px; cursor: pointer; }

/* ── CONTENT AREA ─────────────────────────────────────────── */
.content-area { padding: 20px; }

/* toolbar */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  margin-bottom: 18px;
  background: #fff;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid #e8edf5;
}
.toolbar-left         { font-size: 13px; color: var(--silver); }
.toolbar-left strong  { color: var(--text); font-weight: 700; }
.toolbar-right        { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tb-select            { border: 1px solid #dde8f5; border-radius: 7px; padding: 7px 12px; font-size: 13px; color: var(--text); outline: none; cursor: pointer; background: #fff; }
.tb-select:focus      { border-color: var(--cyan2); }
.view-btns            { display: flex; gap: 4px; }
.view-btn             { width: 30px; height: 30px; border: 1px solid #dde8f5; border-radius: 6px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--silver); font-size: 15px; transition: all .2s; }
.view-btn.active,
.view-btn:hover       { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── PRODUCT GRID ─────────────────────────────────────────── */
.prod-grid       { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.prod-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.prod-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.prod-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }

.prod-card {
  background: #fff; border-radius: 12px;
  border: 1px solid #e8edf5;
  overflow: hidden; cursor: pointer;
  transition: all .22s;
  position: relative;
  display: flex; flex-direction: column;
}
.prod-card:hover { border-color: var(--cyan2); box-shadow: 0 6px 24px rgba(13,31,78,.12); transform: translateY(-2px); }

.prod-img-wrap {
  background: #f8fafc; height: 180px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.prod-img-wrap img              { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .3s; }
.prod-card:hover .prod-img-wrap img { transform: scale(1.04); }
.no-img                         { font-size: 64px; color: var(--blue); opacity: .4; }

.badge-dest { position: absolute; top: 10px; left: 10px; background: #f97316; color: #fff; font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 6px; z-index: 2; }
.badge-desc { position: absolute; top: 10px; left: 10px; background: #16a34a; color: #fff; font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 6px; z-index: 2; }
.badge-out  { position: absolute; top: 10px; right: 10px; background: #fee2e2; color: #b91c1c; font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 6px; z-index: 2; }
.badge-low  { position: absolute; top: 10px; right: 10px; background: #fef3c7; color: #b45309; font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 6px; z-index: 2; }

.prod-body       { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.prod-cat-lbl    { font-size: 11px; color: var(--silver); margin-bottom: 4px; }
.prod-name       { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 8px; flex: 1; }
.prod-price-row  { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.prod-price      { font-size: 20px; font-weight: 900; color: var(--blue); }
.prod-old        { font-size: 12px; color: #9ca3af; text-decoration: line-through; }
.prod-actions    { display: flex; gap: 8px; }
.btn-ver {
  flex: 1; background: var(--light); color: var(--blue);
  border: 1px solid #bdd9f0; border-radius: 8px;
  padding: 9px 0; font-size: 12px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: all .2s;
}
.btn-ver:hover  { background: #c4ddf8; }
.btn-wha        { width: 38px; height: 38px; background: var(--green); color: #fff; border: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; flex-shrink: 0; transition: opacity .2s; }
.btn-wha:hover  { opacity: .85; }

/* empty state */
.empty           { text-align: center; padding: 60px 20px; color: var(--silver); grid-column: 1/-1; }
.empty i         { font-size: 56px; opacity: .25; margin-bottom: 10px; display: block; }

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 24px 0 8px; }
.page-btn   { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #dde8f5; background: #fff; color: var(--silver); font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.page-btn.active,
.page-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── MODAL ────────────────────────────────────────────────── */
.modal-ov       { position: fixed; inset: 0; background: rgba(10,23,56,.6); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-ov.open  { opacity: 1; pointer-events: all; }
.modal          { background: #fff; border-radius: 18px; width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; }
.modal-header   { background: var(--navy); padding: 16px 22px; border-radius: 18px 18px 0 0; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 10; }
.modal-header h3 { color: #fff; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 88%; }
.modal-close    { background: rgba(255,255,255,.15); border: none; width: 32px; height: 32px; border-radius: 8px; color: #fff; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.modal-body     { padding: 22px; }
.modal-img      { background: #f8fafc; border-radius: 12px; height: 220px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; overflow: hidden; }
.modal-img img  { max-width: 100%; max-height: 100%; object-fit: contain; padding: 16px; }
.m-brand        { font-size: 11px; color: var(--silver); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.m-name         { font-size: 22px; font-weight: 800; color: var(--navy); margin: 4px 0; }
.m-cat          { font-size: 12px; color: var(--silver); margin-bottom: 12px; }
.m-price        { font-size: 32px; font-weight: 900; color: var(--blue); margin-bottom: 18px; }
.m-sec          { font-size: 12px; font-weight: 800; color: var(--silver); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.m-sec i        { font-size: 14px; color: var(--cyan); }
.spec-grid      { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.spec-box       { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.spec-box .sk   { font-size: 11px; color: var(--silver); margin-bottom: 3px; }
.spec-box .sv   { font-size: 13px; font-weight: 700; color: var(--navy); }
.stock-row      { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 10px; padding: 13px 16px; margin-bottom: 20px; }
.sdot           { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.sinfo .sn      { font-size: 15px; font-weight: 800; color: var(--navy); }
.sinfo .sl      { font-size: 12px; color: var(--silver); }
.modal-btns     { display: flex; gap: 10px; }
.mbtn           { flex: 1; border: none; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .2s; }
.mbtn:hover     { opacity: .88; }
.mbtn-info      { background: var(--light); color: var(--blue); }
.mbtn-wha       { background: var(--green); color: #fff; }

/* ── TRUST BAR ────────────────────────────────────────────── */
.trust-bar      { background: var(--navy); padding: 14px 32px; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 8px; }
.trust-item     { display: flex; align-items: center; gap: 10px; padding: 6px 12px; }
.trust-item i   { font-size: 24px; color: var(--cyan2); }
.trust-item .tt { color: #fff; font-size: 12px; font-weight: 700; }
.trust-item .ts { color: rgba(255,255,255,.5); font-size: 11px; margin-top: 1px; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer         { background: var(--navy2); padding: 36px 32px 0; }
.footer-grid   { display: grid; grid-template-columns: 200px 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.fl1           { font-size: 28px; font-weight: 900; color: var(--cyan2); letter-spacing: -1px; line-height: 1; }
.fl2           { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.45); letter-spacing: .5px; }
.foot-desc     { color: rgba(255,255,255,.5); font-size: 13px; margin-top: 10px; line-height: 1.65; }
.foot-col h4   { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.foot-col a    { display: block; color: rgba(255,255,255,.5); font-size: 13px; margin-bottom: 8px; text-decoration: none; transition: color .2s; cursor: pointer; }
.foot-col a:hover { color: var(--cyan2); }
.foot-news     { background: var(--cyan2); border-radius: 14px; padding: 20px; }
.foot-news h4  { color: var(--navy); font-size: 15px; font-weight: 800; margin-bottom: 5px; }
.foot-news p   { color: var(--navy); font-size: 12px; opacity: .8; margin-bottom: 13px; line-height: 1.5; }
.news-form     { display: flex; gap: 8px; }
.news-form input  { flex: 1; border: none; border-radius: 7px; padding: 10px 12px; font-size: 13px; outline: none; min-width: 0; }
.news-form button { background: var(--navy); color: #fff; border: none; border-radius: 7px; padding: 10px 14px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: opacity .2s; }
.news-form button:hover { opacity: .85; }
.foot-bottom   { padding: 14px 0; text-align: center; color: rgba(255,255,255,.35); font-size: 12px; }

/* ── WHATSAPP FLOTANTE ────────────────────────────────────── */
.wha-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  background: var(--green); color: #fff; border: none;
  width: 56px; height: 56px; border-radius: 50%;
  font-size: 28px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wha-float:hover { transform: scale(1.1); }
