:root{
  --brand-primary: #0d6efd;
  --brand-bg: #f6f8fb;
}

body{
  background: var(--brand-bg);
}

.navbar{
  backdrop-filter: blur(8px);
}

.icon-circle{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 1.2rem;
}

.empty-state{
  background: #fff;
  border: 1px dashed rgba(0,0,0,.15);
  border-radius: 16px;
  padding: 28px;
  text-align:center;
}

.product-card{
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1.2rem rgba(0,0,0,.08) !important;
}

.qr-mini{
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  padding: 4px;
}

.qr-big{
  width: 220px;
  height: 220px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  padding: 10px;
}

.quick-panel{
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 14px;
  overflow: hidden;
}

.quick-panel .section-title{
  font-size: .8rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  padding: 10px 12px;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.quick-panel a{
  text-decoration: none;
}

.quick-item{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.quick-item:hover{
  background: #f6f8fb;
}

.stat-card{
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.06);
  padding: 18px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1.2rem rgba(0,0,0,.08);
}
.stat-icon{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 1.5rem;
}

.upload-drop{
  border: 1px dashed rgba(0,0,0,.25);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  transition: background .15s ease, border-color .15s ease;
}
.upload-drop.is-dragover{
  background: #f0f7ff;
  border-color: var(--brand-primary);
}
.upload-icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(220,53,69,.08);
  color: #dc3545;
  font-size: 1.4rem;
}

.doc-card{
  transition: transform .15s ease, box-shadow .15s ease;
}
.doc-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 .5rem 1.2rem rgba(0,0,0,.06) !important;
}

/* Grid de categorías (home) */
.category-card{
  background: linear-gradient(180deg, rgba(13,110,253,.06), rgba(255,255,255,1));
  border: 1px solid rgba(0,0,0,.06) !important;
  border-radius: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.category-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 .6rem 1.4rem rgba(0,0,0,.08);
}

/* Selector móvil: cards cuadrados */
.category-square{
  width: calc((100% - 16px) / 3);
  max-width: 130px;
  height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 10px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.category-square:hover{
  transform: translateY(-2px);
  box-shadow: 0 .6rem 1.2rem rgba(0,0,0,.08);
  border-color: rgba(13,110,253,.25);
}
.category-square__icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(13,110,253,.10);
  color: #0d6efd;
  font-size: 1.2rem;
}
.category-square__name{
  font-weight: 700;
  font-size: .78rem;
  text-align: center;
  line-height: 1.1;
  color: rgba(0,0,0,.85);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-square__meta{
  display:flex;
  align-items:center;
  gap: 6px;
}

/* Embed card (product description URL -> iframe) */
.embed-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.embed-card__header{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: linear-gradient(180deg, rgba(13,110,253,.06), rgba(255,255,255,1));
}
.embed-card__body{
  padding: 12px 14px 14px;
}
.embed-card__icon{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(13,110,253,.12);
  color: #0d6efd;
}
