/* ============================================================
 * TIENDA BARI · CSS COMPLETO · ESTILO IA
 * ============================================================ */
:root {
  --bari: #1f5dac;
  --bari-dark: #154a8f;
  --bari-darker: #0e3a73;
  --bari-light: #3b7bc2;
  --bari-glow: #4f8fde;
  --cyan: #06b6d4;
  --bg: #fafafa;
  --bg-2: #f4f5f7;
  --bg-3: #ecedf0;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-soft: #f0f1f4;
  --text: #0a0e1a;
  --text-2: #4b5563;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --green: #15803d;
  --red: #dc2626;
  --amber: #f59e0b;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 8px 30px rgba(31, 93, 172, 0.15);
}
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img { max-width: 100%; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* TOP BAR */
.top-bar {
  background: #0a0e1a;
  color: rgba(255,255,255,0.65);
  padding: 8px 0;
  font-size: 11.5px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-l, .top-bar-r { display: flex; gap: 18px; align-items: center; }
.top-link { display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; color: inherit; }
.top-link:hover { color: var(--bari-glow); }
.top-link svg { width: 12px; height: 12px; opacity: 0.7; }
.top-divider { width: 1px; height: 12px; background: rgba(255,255,255,0.1); }
@media (max-width: 768px) { .top-bar { display: none; } }

/* HEADER */
.main-header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}
.logo { display: flex; align-items: center; gap: 12px; position: relative; }
.logo-img {
  height: 60px; width: auto; display: block; flex-shrink: 0;
  object-fit: contain;
}
.logo-shop {
  font-size: 23px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--bari); line-height: 1;
}
@media (max-width: 640px) {
  .logo-img { height: 50px; }
  .logo-shop { font-size: 19px; }
}
.logo-mark {
  width: 38px; height: 38px;
  background: var(--bari);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -1.5px;
  position: relative;
  box-shadow: 0 4px 14px rgba(31, 93, 172, 0.3);
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.logo-text { line-height: 1; }
.logo-text .name {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
}
.logo-text .sub {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 500;
}

.search-wrap { position: relative; max-width: 580px; width: 100%; justify-self: center; }
.search-input {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 16px 11px 18px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-input:focus-within {
  background: #fff;
  border-color: var(--bari);
  box-shadow: 0 0 0 4px rgba(31, 93, 172, 0.08), var(--shadow-glow);
}
.search-icon { color: var(--bari); flex-shrink: 0; display: flex; }
.search-icon svg { width: 18px; height: 18px; }
.search-input input {
  flex: 1; border: 0; background: transparent; outline: 0;
  font-family: inherit; font-size: 14px; color: var(--text);
}
.search-input input::placeholder { color: var(--muted); }
.search-kbd { display: flex; gap: 4px; }
.search-kbd kbd {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted-2);
  box-shadow: 0 1px 0 var(--border);
  min-width: 22px;
}

.header-actions { display: flex; align-items: center; gap: 6px; }
.h-action {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  color: var(--text-2);
  transition: all 0.2s;
}
.h-action:hover { background: var(--bg-2); color: var(--bari); }
.h-action svg { width: 19px; height: 19px; }
.h-action .badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--bari);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  min-width: 17px; height: 17px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(31, 93, 172, 0.3);
}
.h-action-text { padding: 0 14px; width: auto; font-size: 13px; font-weight: 500; gap: 7px; }
.h-action-text .h-name { display: inline-block; }
.h-action.user-active {
  background: linear-gradient(135deg, rgba(31, 93, 172, 0.08), rgba(6, 182, 212, 0.04));
  color: var(--bari);
}
.h-action.user-active::after {
  content: '';
  position: absolute;
  top: 6px; right: 8px;
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
}

/* NAV */
.main-nav { background: transparent; border-bottom: 1px solid var(--border); }
.nav-inner {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 0;
  overflow-x: auto; scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { background: var(--bg-2); color: var(--text); }
.nav-link.active { background: var(--bari); color: #fff; }
.nav-link.special {
  background: linear-gradient(135deg, rgba(31, 93, 172, 0.08), rgba(6, 182, 212, 0.05));
  color: var(--bari);
  font-weight: 600;
}
.nav-link.special:hover {
  background: linear-gradient(135deg, rgba(31, 93, 172, 0.14), rgba(6, 182, 212, 0.08));
}
.nav-link svg { width: 13px; height: 13px; }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .h-action-text .h-name { display: none; }
  .h-action-text { padding: 0; width: 42px; }
  .search-wrap { grid-column: 1 / -1; order: 3; max-width: 100%; }
  .header-inner { grid-template-columns: auto 1fr; gap: 12px; padding: 12px 0; }
}

/* HERO */
.hero {
  position: relative;
  padding: 60px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(31, 93, 172, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(31, 93, 172, 0.04) 0%, transparent 50%),
    var(--bg);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(31, 93, 172, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 93, 172, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-content { max-width: 580px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--bari), var(--cyan));
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff;
}
.hero-badge span { font-size: 12px; font-weight: 500; color: var(--text-2); }
.hero-badge span b { color: var(--text); font-weight: 600; }
.hero h1 {
  font-size: 54px; line-height: 1.05;
  font-weight: 800;
  letter-spacing: -2px;
  margin: 0 0 22px;
  color: var(--text);
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--bari), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-desc {
  font-size: 17px; line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 32px;
  max-width: 520px; font-weight: 400;
}
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bari);
  color: #fff;
  padding: 13px 22px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.25s;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: var(--bari-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 93, 172, 0.25);
}
.btn-primary svg { width: 16px; height: 16px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-secondary:hover { background: #fff; border-color: var(--bari); color: var(--bari); }
.btn-secondary svg { width: 16px; height: 16px; }

/* HERO VISUAL (AI card) */
.hero-visual { position: relative; }
.ai-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 60px -10px rgba(31, 93, 172, 0.18), 0 18px 36px -12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}
.ai-card::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(31, 93, 172, 0.12), transparent 60%);
  pointer-events: none;
}
.ai-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}
.ai-card-title { display: flex; align-items: center; gap: 10px; }
.ai-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--bari), var(--cyan));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  position: relative;
}
.ai-avatar::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--bari), var(--cyan));
  opacity: 0.3;
  filter: blur(8px);
  z-index: -1;
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
.ai-avatar svg { width: 18px; height: 18px; }
.ai-card-title h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.2px; }
.ai-card-title p { margin: 1px 0 0; font-size: 11.5px; color: var(--muted-2); }
.ai-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--green); font-weight: 500;
}
.ai-status .dot {
  width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ai-msgs { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.ai-msg {
  padding: 11px 14px;
  border-radius: 13px;
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 90%;
}
.ai-msg.user { background: var(--bg-2); align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-msg.bot {
  background: linear-gradient(135deg, rgba(31, 93, 172, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(31, 93, 172, 0.12);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.ai-msg.typing {
  background: var(--bg-2);
  display: inline-flex; align-items: center; gap: 4px;
  width: fit-content; align-self: flex-start;
  padding: 12px 16px;
}
.typing-dot {
  width: 6px; height: 6px;
  background: var(--bari);
  border-radius: 50%;
  animation: typingDot 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}
.ai-card-footer {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(229, 231, 235, 0.6);
  display: flex; align-items: center;
  font-size: 11px; color: var(--muted-2);
}
.ai-card-footer .input-fake {
  flex: 1;
  background: rgba(244, 245, 247, 0.8);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.ai-card-footer .input-fake svg { width: 14px; height: 14px; color: var(--bari); }
.ai-card-footer .ai-send {
  width: 32px; height: 32px;
  background: var(--bari);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-left: 8px;
}
.ai-card-footer .ai-send svg { width: 14px; height: 14px; }
.floater {
  position: absolute;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.floater-1 { top: -10px; left: -20px; animation: float 6s ease-in-out infinite; }
.floater-2 { bottom: 20px; right: -10px; animation: float 6s ease-in-out infinite 1.5s; }
.floater svg { width: 14px; height: 14px; color: var(--bari); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 1024px) { .hero-inner { grid-template-columns: 1fr; gap: 36px; } .floater { display: none; } }
@media (max-width: 768px) {
  .hero { padding: 40px 0 50px; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero-desc { font-size: 14.5px; }
  .ai-card { padding: 18px; }
}

/* QUICK ACTIONS */
.quick-actions { padding: 18px 0 40px; }
.qa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.qa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.qa-card:hover {
  transform: translateY(-3px);
  border-color: var(--bari);
  box-shadow: var(--shadow-glow);
}
.qa-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(31, 93, 172, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
.qa-card:hover::before { opacity: 1; }
.qa-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(31, 93, 172, 0.1), rgba(6, 182, 212, 0.05));
  color: var(--bari);
}
.qa-icon svg { width: 19px; height: 19px; }
.qa-card.gradient .qa-icon {
  background: linear-gradient(135deg, var(--bari), var(--cyan));
  color: #fff;
}
.qa-card h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.2px; color: var(--text); }
.qa-card p { margin: 0; font-size: 12.5px; color: var(--muted-2); line-height: 1.4; }
.qa-arrow {
  position: absolute; top: 22px; right: 22px;
  color: var(--muted);
  transition: all 0.25s;
}
.qa-card:hover .qa-arrow { color: var(--bari); transform: translate(3px, -3px); }
.qa-arrow svg { width: 16px; height: 16px; }
@media (max-width: 768px) { .qa-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* SECTIONS */
.sec { padding: 50px 0; }
.sec.alt { background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.sec-title-block { max-width: 600px; }
.sec-pretitle {
  display: inline-block;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--bari);
  margin-bottom: 8px;
}
.sec-title { font-size: 28px; font-weight: 700; letter-spacing: -0.8px; color: var(--text); margin: 0 0 4px; line-height: 1.15; }
.sec-desc { font-size: 14px; color: var(--muted-2); margin: 0; }
.sec-link {
  color: var(--bari); font-weight: 500; font-size: 13px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
}
.sec-link:hover { background: var(--bari); color: #fff; border-color: var(--bari); }
.sec-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.sec-link:hover svg { transform: translateX(2px); }

/* CATEGORÍAS GRID */
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cat-tile:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--shadow-glow); }
.cat-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(31, 93, 172, 0.04) 100%);
  pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
.cat-tile:hover::before { opacity: 1; }
.cat-tile-img {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: all 0.3s;
}
.cat-tile:hover .cat-tile-img {
  background: linear-gradient(135deg, rgba(31, 93, 172, 0.1), rgba(6, 182, 212, 0.05));
}
.cat-tile-img svg { width: 32px; height: 32px; }
.cat-tile-name { font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 2px; letter-spacing: -0.2px; }
.cat-tile-count { font-size: 11.5px; color: var(--muted); }
.cat-tile-arrow {
  position: absolute; top: 22px; right: 22px;
  color: var(--muted);
  transition: all 0.25s;
  opacity: 0;
}
.cat-tile:hover .cat-tile-arrow { opacity: 1; color: var(--bari); transform: translate(3px, -3px); }
.cat-tile-arrow svg { width: 16px; height: 16px; }
@media (max-width: 768px) { .cats-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .cat-tile { padding: 16px; min-height: 150px; } .cat-tile-img { width: 50px; height: 50px; } .cat-tile-img svg { width: 26px; height: 26px; } }

/* DEAL OF THE DAY */
.deal-banner {
  position: relative; overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #0e3a73 0%, var(--bari) 50%, var(--bari-light) 100%);
  padding: 36px 40px;
  margin: 14px 0;
  color: #fff;
}
.deal-banner::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 60%);
  pointer-events: none;
}
.deal-banner::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.deal-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: center; }
.deal-pretitle {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 14px;
}
.deal-info h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.6px; margin: 0 0 8px; line-height: 1.15; }
.deal-info p { font-size: 13.5px; opacity: 0.85; margin: 0 0 22px; }
.countdown { display: flex; gap: 10px; }
.cd-box {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  min-width: 56px;
}
.cd-num { font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.cd-lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; margin-top: 3px; }
.deal-prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.deal-prod {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 14px;
  position: relative;
  cursor: pointer;
  color: var(--text);
  transition: all 0.25s;
}
.deal-prod:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
.deal-discount {
  position: absolute; top: -8px; left: -8px;
  background: linear-gradient(135deg, var(--bari), var(--cyan));
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 9px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(31, 93, 172, 0.4);
}
.deal-prod-img {
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}
.deal-prod-img svg { width: 70%; height: 70%; }
.deal-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.deal-prod-name { font-size: 11.5px; font-weight: 600; margin: 0 0 5px; line-height: 1.3; min-height: 30px; }
.deal-prod-precio { display: flex; align-items: baseline; gap: 6px; }
.deal-prod-precio b { font-size: 16px; font-weight: 700; color: var(--bari); letter-spacing: -0.3px; }
.deal-prod-precio s { font-size: 11px; color: var(--muted); font-weight: 400; }
@media (max-width: 1024px) { .deal-grid { grid-template-columns: 1fr; } .deal-prods { grid-template-columns: 1fr 1fr; } }

/* CAROUSEL */
.carousel-wrap { position: relative; }
.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
}
.carousel-track::-webkit-scrollbar { height: 4px; }
.carousel-track::-webkit-scrollbar-track { background: transparent; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.carousel-arrow {
  position: absolute; top: calc(50% - 24px);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
  color: var(--text);
}
.carousel-arrow:hover { background: var(--bari); color: #fff; border-color: var(--bari); transform: scale(1.05); }
.carousel-arrow.left { left: -18px; }
.carousel-arrow.right { right: -18px; }
.carousel-arrow svg { width: 18px; height: 18px; }

/* PRODUCT CARD */
.p-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  min-width: 218px; max-width: 218px;
  cursor: pointer;
  position: relative;
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.32s, border-color 0.32s;
  display: flex; flex-direction: column;
  text-decoration: none;
}
.p-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--bari) 40%, #fff);
  box-shadow: 0 16px 36px -14px rgba(31, 93, 172, 0.30), 0 6px 14px rgba(16, 32, 64, 0.06);
}
.p-rank {
  position: absolute; top: 10px; left: 10px;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  z-index: 2; letter-spacing: 0.3px;
}
.p-tags {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 4px;
  align-items: flex-end;
  z-index: 2;
}
.p-tag {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  letter-spacing: 0.3px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  color: var(--text);
  border: 1px solid var(--border);
}
.p-tag.new { background: rgba(21, 128, 61, 0.95); color: #fff; border-color: transparent; }
.p-tag.off { background: rgba(31, 93, 172, 0.95); color: #fff; border-color: transparent; }
.p-tag.hot { background: rgba(220, 38, 38, 0.95); color: #fff; border-color: transparent; }
.p-tag.b2b { background: linear-gradient(135deg, rgba(31, 93, 172, 0.95), rgba(6, 182, 212, 0.95)); color: #fff; border-color: transparent; }
.p-img {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f7f9fc, #eef2f7);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.p-img svg { width: 60%; height: 60%; transition: transform 0.55s cubic-bezier(0.2,0.7,0.3,1); }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s cubic-bezier(0.2,0.7,0.3,1); }
.p-card:hover .p-img svg, .p-card:hover .p-img img { transform: scale(1.07); }
.p-attr {
  position: absolute; left: 10px; bottom: 10px;
  padding: 3px 9px; border-radius: 100px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  color: #1e293b; font-size: 10.5px; font-weight: 700;
  box-shadow: 0 2px 6px rgba(16,32,64,0.10);
}
.p-wish {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-4px); transition: all 0.25s;
  color: var(--muted-2); z-index: 3;
}
.p-tags ~ .p-wish, .p-img .p-wish { top: auto; bottom: 10px; right: 10px; }
.p-card:hover .p-wish { opacity: 1; transform: translateY(0); }
.p-wish:hover { color: var(--red); border-color: var(--red); }
.p-wish svg { width: 14px; height: 14px; }
.p-body { padding: 13px 15px 15px; flex: 1; display: flex; flex-direction: column; }
.p-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.p-tipo {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--bari); font-weight: 700;
}
.p-sku {
  font-size: 10px; font-weight: 600; color: var(--muted-2);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  background: var(--bg-2); padding: 2px 7px; border-radius: 5px;
}
.p-name {
  font-size: 13.5px; font-weight: 650; color: var(--text);
  margin: 0 0 8px; line-height: 1.32; letter-spacing: -0.2px;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-stock {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: #15803d;
  margin-bottom: 11px;
}
.p-stock-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}
.p-precio-row { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.p-precio-block .p-old { font-size: 11px; color: var(--muted); text-decoration: line-through; }
.p-precio { font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; line-height: 1; }
.p-unidad { font-size: 11px; color: var(--muted-2); font-weight: 500; margin-left: 2px; }
.p-cart {
  height: 36px; padding: 0 12px;
  background: var(--bari);
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; font-family: inherit;
  border: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.p-cart span { display: inline; }
.p-cart:hover { background: var(--bari-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 93, 172, 0.32); }
.p-cart svg { width: 15px; height: 15px; }

/* TRENDING */
.trending {
  padding: 50px 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(31, 93, 172, 0.05), transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(6, 182, 212, 0.04), transparent 50%),
    var(--bg);
}
.trending-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.trending-pill {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px 8px 12px;
  font-size: 12.5px; color: var(--text); font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all 0.25s;
  cursor: pointer;
}
.trending-pill:hover { border-color: var(--bari); background: #fff; color: var(--bari); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.trend-up { color: var(--bari); display: flex; }
.trend-up svg { width: 12px; height: 12px; }
.trending-pill .count { background: var(--bg-2); color: var(--muted-2); font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 8px; margin-left: 2px; }

/* SPLIT BANNERS */
.split-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.split-banner {
  position: relative; overflow: hidden;
  border-radius: 22px;
  padding: 30px 32px;
  color: #fff;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.3s;
  cursor: pointer;
}
.split-banner:hover { transform: translateY(-3px); }
.split-banner.dark { background: linear-gradient(135deg, #0a0e1a 0%, #1a2647 100%); }
.split-banner.dark::before {
  content: '';
  position: absolute; top: -20%; right: -20%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(31, 93, 172, 0.4), transparent 60%);
}
.split-banner.blue { background: linear-gradient(135deg, var(--bari-darker), var(--bari)); }
.split-banner.blue::before {
  content: '';
  position: absolute; bottom: -30%; left: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 60%);
}
.sb-content { position: relative; z-index: 1; }
.sb-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  font-size: 10.5px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 12px;
}
.split-banner h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.6px; margin: 0 0 6px; line-height: 1.1; }
.split-banner p { opacity: 0.8; margin: 0 0 16px; font-size: 13px; }
.sb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--text);
  padding: 9px 18px; border-radius: 10px;
  font-size: 12.5px; font-weight: 600;
  position: relative; z-index: 1;
  width: fit-content;
}
.sb-btn svg { width: 14px; height: 14px; }
@media (max-width: 768px) { .split-banners { grid-template-columns: 1fr; } }

/* FEATURES */
.features { padding: 40px 0; background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.f-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.f-item { display: flex; align-items: center; gap: 14px; }
.f-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(31, 93, 172, 0.08), rgba(6, 182, 212, 0.04));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--bari);
  flex-shrink: 0;
}
.f-icon svg { width: 20px; height: 20px; }
.f-text .ttl { font-size: 13.5px; font-weight: 600; color: var(--text); letter-spacing: -0.2px; }
.f-text .desc { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
@media (max-width: 768px) { .f-grid { grid-template-columns: 1fr 1fr; gap: 18px; } }

/* CTA / NEWSLETTER */
.cta-section {
  padding: 70px 0;
  position: relative; overflow: hidden;
  background: var(--text);
  color: #fff;
}
.cta-section::before {
  content: '';
  position: absolute; top: -50%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(31, 93, 172, 0.4), transparent 60%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute; bottom: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; }
.cta-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px 6px 8px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.cta-badge-icon {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--bari-glow), var(--cyan));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px;
}
.cta-badge span { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.85); }
.cta-section h2 { font-size: 38px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; margin: 0 0 12px; }
.cta-section h2 .gr {
  background: linear-gradient(135deg, var(--bari-glow), var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.cta-section p { opacity: 0.75; margin: 0 0 28px; font-size: 15.5px; max-width: 480px; margin-left: auto; margin-right: auto; margin-bottom: 28px; }
.cta-form {
  display: flex; gap: 8px;
  max-width: 460px; margin: 0 auto;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 6px;
}
.cta-form input {
  flex: 1; background: transparent; border: 0; outline: 0;
  padding: 12px 16px; color: #fff;
  font-family: inherit; font-size: 14px;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.4); }
.cta-form button {
  background: #fff; color: var(--text);
  border-radius: 11px;
  padding: 10px 22px;
  font-weight: 600; font-size: 13.5px;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.cta-form button:hover { background: var(--bari-glow); color: #fff; }
.cta-form button svg { width: 14px; height: 14px; }
@media (max-width: 768px) { .cta-section h2 { font-size: 26px; } .cta-form { flex-direction: column; padding: 8px; } .cta-form button { width: 100%; justify-content: center; padding: 12px; } }

/* FOOTER */
footer {
  background: #050810;
  color: rgba(255,255,255,0.6);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-col h4 { color: #fff; font-size: 13.5px; font-weight: 600; margin: 0 0 16px; letter-spacing: -0.2px; }
.footer-col p { font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 12.5px; transition: color 0.2s; }
.footer-col a:hover { color: var(--bari-glow); }
.footer-bottom {
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: rgba(255,255,255,0.4);
  flex-wrap: wrap; gap: 10px;
}
.payments { display: flex; gap: 5px; }
.pay { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); padding: 3px 7px; border-radius: 4px; font-size: 9.5px; font-weight: 600; color: rgba(255,255,255,0.7); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* BOTTOM NAV MÓVIL */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border);
  padding: 6px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 200;
  justify-content: space-around;
  align-items: center;
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--muted-2);
  font-size: 10.5px; font-weight: 500;
  padding: 6px 12px; border-radius: 10px;
  position: relative; flex: 1; min-width: 60px;
  transition: color 0.2s;
}
.bn-item.active { color: var(--bari); }
.bn-item.active::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  background: var(--bari);
  border-radius: 0 0 4px 4px;
}
.bn-item svg { width: 22px; height: 22px; }
.bn-item .bn-badge {
  position: absolute; top: 4px; right: 16px;
  background: var(--bari); color: #fff;
  font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid rgba(255,255,255,0.95);
}
.mobile-cart-fab {
  display: none;
  position: fixed; bottom: calc(78px + env(safe-area-inset-bottom)); right: 16px;
  width: 54px; height: 54px;
  background: var(--bari);
  color: #fff;
  border-radius: 50%;
  align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(31, 93, 172, 0.45);
  z-index: 150;
}
.mobile-cart-fab svg { width: 22px; height: 22px; }
.mobile-cart-fab .badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}
@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  .mobile-cart-fab { display: flex; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .container { padding: 0 16px; }
  .sec-title { font-size: 22px; }
  .sec-head { align-items: flex-start; flex-direction: column; }
  .deal-banner { padding: 24px; }
  .deal-info h2 { font-size: 22px; }
  .p-card { min-width: 168px; max-width: 168px; }
  .p-name { font-size: 12.5px; }
  .p-precio { font-size: 16px; }
  .p-cart span { display: none; }
  .p-cart { width: 36px; padding: 0; }
}

/* ============ DETALLE DE PRODUCTO ============ */
.breadcrumbs {
  padding: 20px 0 0;
  font-size: 12.5px;
  color: var(--muted-2);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--bari); }
.breadcrumbs .sep { color: var(--muted); opacity: 0.6; }
.breadcrumbs .current { color: var(--text); font-weight: 500; }

.pd-wrap { padding: 24px 0 50px; }
.pd-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
}
.pd-gallery-wrap { display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.pd-thumbs { display: flex; flex-direction: column; gap: 8px; }
.pd-thumb {
  width: 84px; height: 84px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer;
  transition: border-color 0.2s;
}
.pd-thumb:hover { border-color: var(--bari-light); }
.pd-thumb.active { border-color: var(--bari); box-shadow: 0 0 0 4px rgba(31, 93, 172, 0.08); }
.pd-thumb img, .pd-thumb svg { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb svg { width: 60%; height: 60%; object-fit: contain; }
.pd-main-img {
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-main-img svg { width: 65%; height: 65%; }

.pd-tipo {
  color: var(--bari);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 12px;
}
.pd-info h1 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.8px;
}
.pd-clave-rating {
  display: flex; align-items: center; gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.pd-clave { font-size: 12px; color: var(--muted-2); }
.pd-clave b { color: var(--text); font-weight: 600; }
.pd-rating-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted-2); }

.pd-precio-block {
  background: linear-gradient(135deg, rgba(31, 93, 172, 0.04), rgba(6, 182, 212, 0.02));
  border: 1px solid rgba(31, 93, 172, 0.12);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 22px;
}
.pd-precio-label {
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin-bottom: 6px;
}
.pd-precio {
  font-size: 38px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
  display: flex; align-items: baseline; gap: 10px;
}
.pd-precio .unidad { font-size: 14px; color: var(--muted-2); font-weight: 500; }
.pd-precio-prev { font-size: 15px; color: var(--muted); text-decoration: line-through; margin-top: 6px; }
.pd-tier-note {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(21, 128, 61, 0.08);
  border: 1px solid rgba(21, 128, 61, 0.18);
  padding: 5px 11px;
  font-size: 11.5px;
  color: var(--green);
  font-weight: 500;
  margin-top: 10px;
  border-radius: 100px;
}
.pd-tier-note.public { background: var(--bg-2); border-color: var(--border); color: var(--muted-2); }
.pd-tier-note svg { width: 13px; height: 13px; }

.pd-variantes { margin-bottom: 20px; }
.pd-variantes-label {
  font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text);
  font-weight: 700;
  margin-bottom: 10px;
}
.pd-variantes-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-variante {
  border: 1.5px solid var(--border);
  background: #fff;
  padding: 11px 20px;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  transition: all 0.2s;
  border-radius: 10px;
  min-width: 90px;
  text-align: center;
}
.pd-variante:hover { border-color: var(--bari-light); }
.pd-variante.active { border-color: var(--bari); background: var(--bari); color: #fff; }

.pd-cantidad-row { display: flex; gap: 14px; margin: 22px 0; align-items: center; }
.pd-cantidad { display: flex; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.pd-cantidad button { border: 0; background: #fff; width: 42px; height: 48px; font-size: 18px; color: var(--text); transition: background 0.2s; }
.pd-cantidad button:hover { background: var(--bg-2); }
.pd-cantidad input { width: 60px; border: 0; text-align: center; font-family: inherit; font-size: 15px; font-weight: 600; outline: 0; color: var(--text); }

.pd-actions { display: flex; gap: 10px; margin-bottom: 22px; }
.btn-add-cart {
  flex: 1;
  background: var(--bari); color: #fff;
  border: 0; padding: 15px;
  font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 12px;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: var(--shadow-glow);
}
.btn-add-cart:hover { background: var(--bari-dark); box-shadow: 0 12px 28px rgba(31, 93, 172, 0.3); }
.btn-add-cart svg { width: 16px; height: 16px; }
.btn-wish-big {
  width: 52px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: all 0.2s;
}
.btn-wish-big:hover { border-color: var(--red); color: var(--red); }
.btn-wish-big svg { width: 19px; height: 19px; }

.pd-meta-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.pd-meta-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  font-size: 13px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.pd-meta-list svg { width: 17px; height: 17px; color: var(--bari); flex-shrink: 0; }
.pd-meta-list b { color: var(--text); }

/* TABS */
.pd-tabs { margin-top: 50px; }
.pd-tab-heads {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-tab-heads::-webkit-scrollbar { display: none; }
.pd-tab-head {
  padding: 15px 22px;
  border: 0; background: none;
  font-family: inherit;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--muted-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all 0.2s;
}
.pd-tab-head:hover { color: var(--text); }
.pd-tab-head.active { color: var(--bari); border-bottom-color: var(--bari); }
.pd-tab-content { padding: 30px 0; color: var(--text-2); line-height: 1.75; font-size: 14.5px; }
.pd-tab-content p { margin: 0 0 14px; }
.pd-tab-content h4 { color: var(--text); font-size: 15.5px; margin: 18px 0 12px; font-weight: 600; }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
.specs-table tr:nth-child(odd) td { background: var(--bg-2); }
.specs-table td:first-child {
  color: var(--muted-2); font-weight: 500;
  width: 40%;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 1.5px;
}
.specs-table td:last-child { color: var(--text); font-weight: 600; }

.docs-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: all 0.2s;
}
.doc-link:hover { border-color: var(--bari); background: var(--bg-2); }
.doc-link svg { width: 22px; height: 22px; color: var(--bari); flex-shrink: 0; }
.doc-link .doc-title { font-size: 13px; font-weight: 600; color: var(--text); }
.doc-link .doc-meta { font-size: 11px; color: var(--muted-2); }

@media (max-width: 1024px) { .pd-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 768px) {
  .pd-gallery-wrap { grid-template-columns: 1fr; }
  .pd-thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .pd-thumb { flex-shrink: 0; }
  .pd-info h1 { font-size: 22px; }
  .pd-precio { font-size: 28px; }
  .docs-list { grid-template-columns: 1fr; }
}

/* CATEGORÍA / LISTADO */
.cat-page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 24px;
}
.cat-page-title { font-size: 28px; font-weight: 700; letter-spacing: -0.6px; margin: 0 0 6px; color: var(--text); }
.cat-page-count { color: var(--muted-2); font-size: 13.5px; }

.cat-page-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding: 32px 0; }
.cat-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}
.filter-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
}
.filter-block h4 {
  margin: 0 0 12px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  font-weight: 700;
}
.filter-option {
  display: flex; align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.filter-option input { margin-right: 10px; accent-color: var(--bari); }
.filter-option:hover { color: var(--text); }
.filter-option .count { margin-left: auto; color: var(--muted); font-size: 11.5px; }

.cat-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cat-toolbar select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  outline: 0;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.products-grid .p-card { min-width: 0; max-width: none; }

@media (max-width: 1024px) {
  .cat-page-layout { grid-template-columns: 1fr; }
  .cat-sidebar { position: static; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) { .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.pagination { display: flex; justify-content: center; gap: 6px; margin: 36px 0; }
.pagination a, .pagination span {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--bari); color: var(--bari); }
.pagination .active { background: var(--bari); color: #fff; border-color: var(--bari); }

/* LOGIN / REGISTRO */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
  background:
    radial-gradient(circle at 20% 30%, rgba(31, 93, 172, 0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.06), transparent 50%),
    var(--bg);
}
.auth-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 24px;
  padding: 36px 32px;
  max-width: 440px; width: 100%;
  box-shadow: 0 30px 60px -10px rgba(31, 93, 172, 0.15), 0 18px 36px -12px rgba(0, 0, 0, 0.06);
}
.auth-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--bari), var(--cyan));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin: 0 auto 18px;
  position: relative;
}
.auth-icon::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 19px;
  background: linear-gradient(135deg, var(--bari), var(--cyan));
  opacity: 0.3; filter: blur(10px); z-index: -1;
  animation: pulseGlow 3s ease-in-out infinite;
}
.auth-icon svg { width: 26px; height: 26px; }
.auth-card h2 { text-align: center; font-size: 22px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); }
.auth-card .sub { text-align: center; color: var(--muted-2); margin: 0 0 24px; font-size: 13px; }
.auth-form .form-field { margin-bottom: 14px; }
.auth-form label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit; font-size: 14px;
  background: #fff;
  transition: all 0.2s;
  outline: 0;
}
.auth-form input:focus { border-color: var(--bari); box-shadow: 0 0 0 4px rgba(31, 93, 172, 0.08); }
.auth-btn {
  width: 100%;
  background: var(--bari);
  color: #fff;
  border: 0; padding: 13px;
  border-radius: 11px;
  font-weight: 600; font-size: 14px;
  margin-top: 8px;
  box-shadow: var(--shadow-glow);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn:hover { background: var(--bari-dark); }
.auth-btn svg { width: 16px; height: 16px; }
.auth-err {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--red);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.auth-err svg { width: 16px; height: 16px; }
.auth-help {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center; font-size: 12.5px; color: var(--muted-2);
  line-height: 1.7;
}
.auth-help a { color: var(--bari); font-weight: 600; }
/* ============================================================
 * PARCHE CSS · Clases nuevas del index v2 (categorías reales)
 * Agrega esto al final de tienda.css
 * ============================================================ */

/* SAFETY NET: Limita SVGs sin clase explícita */
.hero-eyebrow svg,
.section-h svg,
.ai-avatar svg,
.cat-icon svg,
.hero-eyebrow > svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============ HERO V2 ============ */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(31, 93, 172, 0.06) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  max-width: 580px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(31, 93, 172, 0.06);
  border: 1px solid rgba(31, 93, 172, 0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bari, #1f5dac);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero-eyebrow svg {
  width: 14px !important;
  height: 14px !important;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
  color: #0a0e1a;
}

.hero-grad {
  background: linear-gradient(135deg, #1f5dac 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 520px;
}

.hero-stats .stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
}

.hero-stats .stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0a0e1a;
  line-height: 1;
}

.hero-stats .stat span {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* AI CARD */
.hero-right {
  display: flex;
  justify-content: center;
  position: relative;
}

.ai-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(31, 93, 172, 0.15);
  border-radius: 20px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 60px -20px rgba(31, 93, 172, 0.2),
              0 10px 30px -10px rgba(6, 182, 212, 0.15);
  position: relative;
}

.ai-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, #1f5dac, #06b6d4);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  pointer-events: none;
}

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1f5dac, #06b6d4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(31, 93, 172, 0.3);
}

.ai-avatar svg {
  width: 22px !important;
  height: 22px !important;
}

.ai-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
  color: #0a0e1a;
}

.ai-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #15803d;
  font-weight: 600;
  margin-top: 2px;
}

.ai-dot {
  width: 7px;
  height: 7px;
  background: #15803d;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(21, 128, 61, 0.6);
  animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ai-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 16px;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-chips .chip {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(31, 93, 172, 0.06);
  border: 1px solid rgba(31, 93, 172, 0.12);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 500;
  color: #1f5dac;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-chips .chip:hover {
  background: rgba(31, 93, 172, 0.1);
  border-color: rgba(31, 93, 172, 0.25);
  transform: translateY(-1px);
}

/* ============ SECCIONES ============ */
.section-pad {
  padding: 60px 0;
}

.section-gray {
  background: #fafbff;
}

.section-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.section-h h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0;
  color: #0a0e1a;
}

.see-all {
  font-size: 13.5px;
  font-weight: 600;
  color: #1f5dac;
  text-decoration: none;
  transition: gap 0.2s;
}

.see-all:hover {
  text-decoration: underline;
}

/* ============ CATEGORÍAS GRID ============ */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.cat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cat-card:hover {
  border-color: #1f5dac;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(31, 93, 172, 0.12);
}

.cat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(31, 93, 172, 0.06), rgba(6, 182, 212, 0.04));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.cat-icon svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 44px;
  max-height: 44px;
}

.cat-name {
  font-size: 14px;
  font-weight: 700;
  color: #0a0e1a;
  letter-spacing: -0.2px;
}

.cat-num {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

/* ============ PRODUCTOS GRID ============ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; }
}

@media (max-width: 768px) {
  .hero { padding: 40px 0 50px; }
  .hero-title { font-size: 36px; letter-spacing: -1px; }
  .hero-desc { font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section-pad { padding: 40px 0; }
  .section-h h2 { font-size: 22px; }
  .cats-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .cat-card { padding: 16px 12px; }
  .cat-icon { width: 48px; height: 48px; }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-stats .stat { padding: 10px 12px; }
  .hero-stats .stat strong { font-size: 18px; }
}
