:root {
  --brand: #3155f5;
  --brand-dark: #1d39bf;
  --brand-soft: #eef2ff;
  --accent: #ff3b5c;
  --accent-soft: #fff0f3;
  --ink: #111827;
  --muted: #687386;
  --line: #e3e8ef;
  --line-strong: #d7dde7;
  --surface: #ffffff;
  --soft: #f5f7fb;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #f59e0b;
  --shadow-sm: 0 3px 12px rgba(15, 23, 42, .045);
  --shadow: 0 10px 30px rgba(15, 23, 42, .07);
  --shadow-hover: 0 18px 42px rgba(15, 23, 42, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
.place-items-center { place-items: center; }
.object-fit-cover { object-fit: cover; }

.store-container {
  width: min(1480px, calc(100% - 34px));
  margin-inline: auto;
}

.top-strip {
  color: #fff;
  background: linear-gradient(90deg, #2028a4, #6335d8 58%, #b1199b);
  font-size: .82rem;
  font-weight: 500;
}
.store-header-sticky {
  position: sticky;
  top: 0;
  z-index: 1035;
  background: rgba(255,255,255,.985);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}
.store-navbar { background: transparent; transition: .22s ease; }
.navbar-grid {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 18px;
  transition: min-height .22s ease;
}
.store-navbar.shrink .navbar-grid { min-height: 64px; }

.category-trigger {
  height: 48px;
  min-width: 142px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
  transition: .2s ease;
}
.category-trigger:hover,
.category-trigger[aria-expanded="true"] {
  color: var(--brand);
  border-color: rgba(49,85,245,.28);
  background: var(--brand-soft);
  transform: translateY(-1px);
}
.category-trigger::after { margin-left: 3px; }
.category-dropdown {
  width: 330px;
  margin-top: 12px !important;
  padding: 12px;
  border-radius: 18px;
  overflow: hidden;
}
.category-dropdown-title {
  padding: 7px 10px 11px;
  color: #64748b;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.category-dropdown-item {
  min-height: 47px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
  color: #344054;
  font-size: .9rem;
  transition: .18s ease;
}
.category-dropdown-item:hover { color: var(--brand); background: var(--brand-soft); }
.category-dropdown-item small { display: block; margin-top: 1px; color: #8a94a6; font-size: .72rem; }
.category-dropdown-all { margin-bottom: 6px; background: #f7f8fb; }
.category-menu-icon {
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.category-menu-arrow { margin-left: auto; color: #a2aabb; font-size: .7rem; }
.category-dropdown-footer { margin: 8px -12px -12px; padding: 12px 20px; background: #f7f8fb; border-top: 1px solid var(--line); }
.category-dropdown-footer a { color: var(--accent); font-size: .84rem; font-weight: 700; }

.store-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #3155f5, #7168ff);
  border-radius: 13px;
  box-shadow: 0 9px 20px rgba(49,85,245,.28);
}
.brand-name { color: var(--ink); font-size: 1.55rem; font-weight: 800; letter-spacing: -.045em; }

.nav-search {
  min-width: 0;
  height: 50px;
  display: grid;
  grid-template-columns: 48px 1fr 44px;
  align-items: center;
  overflow: hidden;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  transition: .2s ease;
}
.nav-search:focus-within {
  background: #fff;
  border-color: rgba(49,85,245,.48);
  box-shadow: 0 0 0 4px rgba(49,85,245,.09), 0 8px 24px rgba(15,23,42,.06);
}
.nav-search-icon { display: grid; place-items: center; color: #6b7280; font-size: .95rem; }
.nav-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 8px 0 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: .95rem;
}
.nav-search input::placeholder { color: #8b94a5; }
.nav-search-submit {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #596cff);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(49,85,245,.24);
}
.nav-search-submit:hover { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.header-action {
  min-height: 48px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 13px;
  transition: .18s ease;
}
.header-action:hover { color: var(--brand); background: var(--brand-soft); }
.header-action-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.header-action:hover .header-action-icon { color: var(--brand); border-color: rgba(49,85,245,.25); }
.header-action-copy { max-width: 110px; flex-direction: column; line-height: 1.15; overflow: hidden; }
.header-action-copy small { color: #8a94a6; font-size: .68rem; }
.header-action-copy strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; font-weight: 700; }
.mobile-menu-button { cursor: pointer; }
.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
}

.quick-nav { background: #fff; border-top: 1px solid #f0f2f6; }
.quick-nav-link {
  min-height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4b5565;
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: .18s ease;
}
.quick-nav-link:hover { color: var(--brand); border-bottom-color: var(--brand); }
.quick-nav-highlight { color: var(--accent); font-weight: 700; }

.mobile-category-menu { width: min(365px, 90vw) !important; }
.mobile-category-link {
  min-height: 52px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #344054;
  border-radius: 12px;
  font-weight: 500;
}
.mobile-category-link:hover { color: var(--brand); background: var(--brand-soft); }
.mobile-category-link > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: #f6f7fb;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.mobile-category-all { color: var(--brand); background: var(--brand-soft); }

.home-main { display: grid; gap: 18px; }
.hero-zone { min-width: 0; }
.hero-zone .carousel { border-radius: 24px; }
.hero-shell {
  height: clamp(350px, 33vw, 500px);
  min-height: 350px;
  position: relative;
  overflow: hidden;
  background: #101433;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  box-shadow: 0 15px 42px rgba(15,23,42,.14);
}
.hero-shell > img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,12,35,.86) 0%, rgba(16,19,52,.68) 35%, rgba(16,19,52,.08) 62%, rgba(16,19,52,0) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: clamp(28px, 5vw, 76px);
  color: #fff;
}
.hero-copy { width: min(580px, 52%); }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: .78rem;
  font-weight: 600;
}
.hero-title {
  max-width: 570px;
  margin: 17px 0 12px;
  color: inherit;
  font-size: clamp(2.25rem, 4.6vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .98;
}
.hero-text { max-width: 540px; margin: 0; color: rgba(255,255,255,.83); font-size: clamp(.95rem, 1.25vw, 1.12rem); line-height: 1.55; }
.hero-actions { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn-hero-primary,
.btn-hero-secondary {
  min-height: 48px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-weight: 700;
}
.btn-hero-primary { color: var(--ink); background: #fff; border: 1px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.btn-hero-primary:hover { color: var(--brand); background: #fff; transform: translateY(-1px); }
.btn-hero-secondary { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn-hero-secondary:hover { color: #fff; background: rgba(255,255,255,.18); }
.hero-shell-light .hero-overlay { background: linear-gradient(90deg, rgba(255,250,238,.94) 0%, rgba(255,245,225,.78) 40%, rgba(255,245,225,.05) 66%, transparent 100%); }
.hero-shell-light .hero-content { color: #2a2119; }
.hero-shell-light .hero-kicker { color: #74411e; background: rgba(255,255,255,.58); border-color: rgba(113,74,37,.16); }
.hero-shell-light .hero-text { color: #6f5b49; }
.hero-shell-light .btn-hero-primary { color: #fff; background: #d86a25; border-color: #d86a25; }
.hero-shell-light .btn-hero-secondary { color: #6c492e; background: rgba(255,255,255,.48); border-color: rgba(90,56,30,.16); }
.hero-control {
  width: 44px;
  height: 44px;
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(18,24,45,.44);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}
.hero-control:hover { background: rgba(18,24,45,.72); }
.hero-control-prev { left: 16px; }
.hero-control-next { right: 16px; }
.hero-indicators { margin-bottom: 16px; }
.hero-indicators [data-bs-target] { width: 9px; height: 9px; margin: 0 4px; border: 0; border-radius: 99px; opacity: .55; }
.hero-indicators .active { width: 30px; opacity: 1; }

.benefits-strip {
  min-height: 78px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.benefit-item { padding: 15px 22px; display: flex; align-items: center; justify-content: center; gap: 12px; border-right: 1px solid var(--line); }
.benefit-item:last-child { border-right: 0; }
.benefit-item > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 13px;
}
.benefit-item strong, .benefit-item small { display: block; }
.benefit-item strong { font-size: .86rem; }
.benefit-item small { margin-top: 2px; color: var(--muted); font-size: .72rem; }

.section-surface {
  min-width: 0;
  padding: clamp(18px, 2.2vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.section-head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.compact-head { margin-bottom: 14px; }
.section-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-title { margin: 0; color: var(--ink); font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 800; letter-spacing: -.035em; }
.section-subtitle { margin: 5px 0 0; color: var(--muted); font-size: .88rem; }
.section-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); white-space: nowrap; font-size: .82rem; font-weight: 700; }
.section-link:hover { color: var(--brand-dark); }
.section-category-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid rgba(49,85,245,.08);
  border-radius: 14px;
}

.category-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(126px, 1fr);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-bubble {
  min-height: 146px;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #fbfcff, #f5f7fb);
  border: 1px solid var(--line);
  border-radius: 16px;
  scroll-snap-align: start;
  transition: .2s ease;
}
.category-bubble:hover { color: var(--brand); border-color: rgba(49,85,245,.22); box-shadow: 0 12px 26px rgba(15,23,42,.08); transform: translateY(-3px); }
.category-bubble-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  font-size: 1.25rem;
}
.category-bubble strong { font-size: .84rem; }
.category-bubble small { margin-top: 3px; color: var(--muted); font-size: .7rem; }

.product-section { overflow: hidden; }
.rail-actions { display: flex; align-items: center; gap: 8px; }
.rail-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #4b5565;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: .18s ease;
}
.rail-arrow:hover { color: var(--brand); border-color: rgba(49,85,245,.28); background: var(--brand-soft); }
.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(205px, calc((100% - 56px) / 5));
  gap: 14px;
  overflow-x: auto;
  padding: 3px 2px 8px;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
}
.product-rail::-webkit-scrollbar { display: none; }
.product-card {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(15,23,42,.045);
  scroll-snap-align: start;
  transition: .23s ease;
}
.product-card:hover { border-color: rgba(49,85,245,.22); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-media {
  aspect-ratio: 1.15 / 1;
  padding: 14px;
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfcfe, #f6f8fb);
  border-bottom: 1px solid #eef1f5;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.product-card:hover .product-media img { transform: scale(1.035); }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.badge-sale, .badge-new, .badge-stock { padding: 6px 8px; border-radius: 999px; font-size: .65rem; font-weight: 800; line-height: 1; box-shadow: 0 4px 10px rgba(15,23,42,.08); }
.badge-sale { color: #fff; background: var(--accent); }
.badge-new { color: #0b6b35; background: #dcfce7; }
.badge-stock { color: #8a4b00; background: #fef3c7; }
.product-body { padding: 13px 14px 14px; }
.product-brand { margin-bottom: 4px; color: #7c8799; font-size: .68rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.product-title { min-height: 2.55em; display: -webkit-box; overflow: hidden; color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-title:hover { color: var(--brand); }
.product-rating { margin-top: 7px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.product-rating span { color: #ffb300; font-size: .72rem; letter-spacing: -.04em; }
.product-rating small { color: #8791a2; font-size: .66rem; }
.product-price-row { min-height: 28px; margin-top: 7px; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.product-price { color: #e52b47; font-size: 1.12rem; font-weight: 800; letter-spacing: -.025em; }
.product-old-price { color: #9aa3b2; font-size: .73rem; text-decoration: line-through; }
.product-delivery { margin-top: 5px; color: #6b7586; font-size: .67rem; }
.product-delivery i { color: var(--success); }
.product-actions { margin-top: 11px; display: grid; grid-template-columns: 1fr 40px; gap: 7px; }
.add-cart-btn { min-height: 40px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 11px; font-size: .78rem; }
.view-product-btn { width: 40px; height: 40px; display: grid; place-items: center; color: #536074; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.view-product-btn:hover { color: var(--brand); background: var(--brand-soft); border-color: rgba(49,85,245,.25); }

.btn-brand { color: #fff; background: linear-gradient(135deg, var(--brand), #5369ff); border: 1px solid var(--brand); border-radius: 12px; font-weight: 600; box-shadow: 0 7px 16px rgba(49,85,245,.2); }
.btn-brand:hover, .btn-brand:focus { color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); border-color: var(--brand-dark); }
.btn-soft { display: inline-flex; align-items: center; justify-content: center; color: var(--brand); background: var(--brand-soft); border: 1px solid rgba(49,85,245,.08); border-radius: 11px; font-weight: 600; }
.btn-soft:hover { color: var(--brand-dark); background: #e4e9ff; }

.panel-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.thin-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 18px rgba(15,23,42,.045); }
.form-control, .form-select { min-height: 45px; border: 1px solid #dfe5ec; border-radius: 12px; padding: .7rem .82rem; }
textarea.form-control { min-height: auto; }
.form-control:focus, .form-select:focus { border-color: rgba(49,85,245,.55); box-shadow: 0 0 0 4px rgba(49,85,245,.09); }

.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 84px; height: 84px; padding: 5px; object-fit: contain; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; }
.qty-control { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.qty-control button, .qty-control input { width: 38px; height: 36px; text-align: center; background: #fff; border: 0; }
.qty-control button:hover { background: #f1f5f9; }

.footer { margin-top: 4rem; color: #cbd5e1; background: #0f172a; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer-title { color: #fff; font-weight: 700; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; position: relative; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.icon-btn:hover { color: var(--brand); }
.floating-actions { position: fixed; right: 18px; bottom: 20px; z-index: 1040; display: grid; gap: .65rem; }
.float-btn { min-width: 48px; height: 48px; padding: 0 .9rem; display: flex; align-items: center; justify-content: center; gap: .55rem; color: #fff; border-radius: 15px; box-shadow: 0 12px 26px rgba(15,23,42,.2); font-size: .9rem; }
.float-quote { background: var(--brand); }
.float-whatsapp { background: #16a34a; }
.float-top { min-width: 48px; padding: 0; opacity: 0; pointer-events: none; background: #334155; transition: .2s; }
.float-top.show { opacity: 1; pointer-events: auto; }
.toast-container { z-index: 1080; }
.empty-state { padding: 4rem 1.5rem; text-align: center; color: var(--muted); }
.empty-state i { margin-bottom: 1rem; color: #cbd5e1; font-size: 3rem; }

/* Compatibilidad con portada anterior y páginas secundarias */
.benefit-card { height: 100%; padding: 1rem; display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.benefit-card h6, .benefit-card p { margin: 0; }
.benefit-card p { color: var(--muted); font-size: .77rem; }
.benefit-icon { width: 42px; height: 42px; flex: 0 0 42px; display: inline-grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 13px; }
.category-card { padding: 1.1rem; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.category-card:hover { color: var(--brand); transform: translateY(-2px); }
.category-icon { width: 54px; height: 54px; margin: 0 auto .7rem; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 50%; }
.category-card h6 { margin: 0 0 .15rem; }
.category-card small { color: var(--muted); }

/* Administración */
.admin-body { background: #f4f6fa; }
.admin-sidebar { width: 260px; min-height: 100vh; position: fixed; inset: 0 auto 0 0; color: #dbe3ef; background: #101827; border-right: 1px solid rgba(255,255,255,.06); }
.admin-sidebar .nav-link { margin: .18rem .75rem; padding: .72rem .85rem; color: #c6d0df; border-radius: 10px; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: #fff; background: rgba(255,255,255,.09); }
.admin-main { min-height: 100vh; margin-left: 260px; }
.admin-topbar { position: sticky; top: 0; z-index: 1020; background: #fff; border-bottom: 1px solid var(--line); }
.metric-card { height: 100%; padding: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 5px 16px rgba(15,23,42,.04); }
.metric-icon { width: 45px; height: 45px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); border-radius: 13px; }
.table-modern { --bs-table-bg: transparent; }
.table-modern thead th { color: #64748b; border-bottom: 1px solid var(--line); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.table-modern td { vertical-align: middle; border-bottom-color: #edf0f4; }
.admin-login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; background: #f5f7fb; }
.admin-login-visual { padding: 5rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; color: #fff; background: linear-gradient(140deg,#0e1b3f,#3155f5 70%,#7687ff); }
.admin-login-visual::after { content: ""; width: 420px; height: 420px; position: absolute; right: -140px; bottom: -130px; background: rgba(255,255,255,.08); border-radius: 50%; }
.admin-login-form { padding: 2rem; display: grid; place-items: center; }
.admin-login-card { width: min(440px,100%); padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 20px 55px rgba(15,23,42,.12); }

@media (max-width: 1199.98px) {
  .navbar-grid { grid-template-columns: auto minmax(260px, 1fr) auto; }
  .product-rail { grid-auto-columns: minmax(215px, calc((100% - 42px) / 4)); }
}

@media (max-width: 991.98px) {
  .store-container { width: min(100% - 24px, 960px); }
  .navbar-grid { min-height: 76px; grid-template-columns: auto 1fr auto; gap: 10px; }
  .store-brand { grid-column: 1; }
  .header-actions { grid-column: 3; }
  .nav-search { grid-column: 1 / -1; grid-row: 2; height: 48px; margin-bottom: 12px; }
  .store-navbar.shrink .navbar-grid { min-height: 68px; }
  .store-navbar.shrink .nav-search { margin-bottom: 8px; }
  .hero-copy { width: min(620px, 67%); }
  .benefits-strip { grid-template-columns: repeat(2, 1fr); }
  .benefit-item:nth-child(2) { border-right: 0; }
  .benefit-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .product-rail { grid-auto-columns: minmax(215px, calc((100% - 28px) / 3)); }
  .admin-sidebar { z-index: 1050; transform: translateX(-100%); transition: .25s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-login-shell { grid-template-columns: 1fr; }
  .admin-login-visual { display: none; }
}

@media (max-width: 767.98px) {
  .top-strip { font-size: .74rem; }
  .brand-name { font-size: 1.25rem; }
  .brand-mark { width: 38px; height: 38px; }
  .header-action { padding: 0; }
  .header-action-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .hero-shell { height: 420px; }
  .hero-shell > img { object-position: 66% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(9,12,35,.91) 0%, rgba(16,19,52,.72) 63%, rgba(16,19,52,.24) 100%); }
  .hero-shell-light .hero-overlay { background: linear-gradient(90deg, rgba(255,250,238,.96) 0%, rgba(255,245,225,.84) 66%, rgba(255,245,225,.24) 100%); }
  .hero-content { padding: 28px 24px 48px; align-items: flex-end; }
  .hero-copy { width: 100%; }
  .hero-title { max-width: 85%; font-size: clamp(2rem, 9vw, 3.1rem); }
  .hero-text { max-width: 82%; }
  .hero-control { width: 38px; height: 38px; top: 42%; }
  .hero-control-prev { left: 10px; }
  .hero-control-next { right: 10px; }
  .benefit-item { justify-content: flex-start; padding: 13px; }
  .section-head { align-items: center; }
  .section-subtitle { display: none; }
  .category-scroll { grid-auto-columns: 118px; }
  .category-bubble { min-height: 132px; }
  .category-bubble-icon { width: 56px; height: 56px; }
  .product-rail { grid-auto-columns: minmax(200px, 44vw); }
  .section-category-icon { display: none; }
}

@media (max-width: 575.98px) {
  .store-container { width: min(100% - 18px, 540px); }
  .top-strip .store-container { justify-content: center !important; text-align: center; }
  .navbar-grid { gap: 7px; }
  .store-brand { gap: 7px; }
  .brand-name { font-size: 1.12rem; }
  .header-actions { gap: 3px; }
  .header-action-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
  .nav-search { grid-template-columns: 41px 1fr 41px; border-radius: 14px; }
  .nav-search input { font-size: .87rem; }
  .nav-search-submit { width: 35px; height: 35px; border-radius: 10px; }
  .home-main { gap: 12px; padding-top: 10px !important; }
  .hero-shell { min-height: 390px; height: 390px; border-radius: 19px; }
  .hero-shell > img { object-position: 72% center; }
  .hero-content { padding: 24px 19px 46px; }
  .hero-kicker { padding: 6px 10px; font-size: .7rem; }
  .hero-title { max-width: 96%; margin: 13px 0 9px; }
  .hero-text { max-width: 95%; font-size: .88rem; }
  .hero-actions { margin-top: 18px; }
  .btn-hero-primary, .btn-hero-secondary { min-height: 43px; padding: 0 14px; font-size: .79rem; }
  .benefits-strip { border-radius: 15px; }
  .benefit-item { gap: 8px; padding: 11px 9px; }
  .benefit-item > span { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
  .benefit-item strong { font-size: .75rem; }
  .benefit-item small { font-size: .63rem; }
  .section-surface { padding: 15px 12px; border-radius: 16px; }
  .section-head { margin-bottom: 13px; }
  .section-title { font-size: 1.18rem; }
  .section-link { font-size: .75rem; }
  .rail-arrow { width: 34px; height: 34px; }
  .product-rail { grid-auto-columns: minmax(190px, 76vw); gap: 10px; }
  .product-media { padding: 10px; }
  .floating-actions .float-btn span { display: none; }
  .floating-actions .float-btn { min-width: 48px; padding: 0; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item > :last-child { grid-column: 2; justify-self: start !important; text-align: left !important; }
}


/* =========================================================
   NovaShop 2.2 · corrección de carga y cabecera
   Las reglas son deliberadamente explícitas para evitar que
   una caché anterior o estilos del hosting deformen el navbar.
   ========================================================= */
.store-header-sticky .navbar-grid {
  width: min(1480px, calc(100% - 34px));
  margin-inline: auto;
  display: grid !important;
  grid-template-columns: 142px auto minmax(360px, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
}
.store-header-sticky .store-brand,
.store-header-sticky .header-actions,
.store-header-sticky .header-action,
.store-header-sticky .quick-nav .store-container {
  display: flex !important;
  align-items: center !important;
}
.store-header-sticky .nav-search {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) 46px !important;
  align-items: center !important;
}
.store-header-sticky .nav-search input {
  width: 100% !important;
  min-width: 0 !important;
}
.store-header-sticky .category-trigger {
  white-space: nowrap;
}
@media (max-width: 1199.98px) {
  .store-header-sticky .navbar-grid {
    grid-template-columns: auto minmax(260px, 1fr) auto !important;
  }
}
@media (max-width: 991.98px) {
  .store-header-sticky .navbar-grid {
    width: min(100% - 24px, 960px);
    grid-template-columns: auto 1fr auto !important;
  }
  .store-header-sticky .store-brand { grid-column: 1 !important; grid-row: 1 !important; }
  .store-header-sticky .header-actions { grid-column: 3 !important; grid-row: 1 !important; }
  .store-header-sticky .nav-search { grid-column: 1 / -1 !important; grid-row: 2 !important; }
}
@media (max-width: 575.98px) {
  .store-header-sticky .navbar-grid { width: min(100% - 18px, 540px); }
}
