/* DeAza Tecnología — Estilos globales
   Identidad: azul marino (#0A2A6B) + dorado tenue (#C9A24A) sobre blanco
   Mobile-first responsive · breakpoint principal: 768px
   ------------------------------------------------------------------ */

/* ───── Tokens ───── */
:root {
  /* Colores marca */
  --dz-blue: #0A2A6B;
  --dz-blue-dark: #06184A;
  --dz-blue-darker: #040E2E;
  --dz-blue-accent: #1D4ED8;
  --dz-blue-tint: #EEF2FB;
  --dz-blue-soft: #F5F7FC;
  --dz-gold: #C9A24A;
  --dz-gold-dark: #A8853A;
  --dz-gold-tint: #FBF6E8;

  /* Neutrales */
  --dz-ink: #0F172A;
  --dz-ink-soft: #1E293B;
  --dz-muted: #64748B;
  --dz-muted-soft: #94A3B8;
  --dz-border: #E2E8F0;
  --dz-border-soft: #EEF1F5;
  --dz-bg: #F4F6F9;
  --dz-white: #FFFFFF;

  /* Estados */
  --dz-green: #15803D;
  --dz-green-tint: #ECFDF5;
  --dz-red: #DC2626;
  --dz-amber: #B45309;
  --dz-amber-tint: #FEF3C7;

  /* Tipografía */
  --dz-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --dz-max-width: 1280px;
  --dz-radius: 10px;
  --dz-radius-lg: 14px;
}

/* ───── Reset ───── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--dz-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--dz-ink);
  background: var(--dz-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, button, select, textarea { font-family: inherit; }

/* ───── Header ───── */
.dz-utility-bar {
  background: var(--dz-blue-darker);
  color: white;
  font-size: 12px;
  display: none; /* desktop only */
}
.dz-utility-bar .container {
  max-width: var(--dz-max-width);
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dz-utility-bar .left,
.dz-utility-bar .right {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0.9;
}
.dz-utility-bar .left span { display: flex; align-items: center; gap: 6px; }
.dz-utility-bar .sep { opacity: 0.4; }

@media (min-width: 768px) {
  .dz-utility-bar { display: block; }
}

.dz-header-main { background: var(--dz-blue); color: white; }
.dz-header-main .container {
  max-width: var(--dz-max-width);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
@media (min-width: 768px) {
  .dz-header-main .container { padding: 18px 32px; gap: 28px; flex-wrap: nowrap; }
}

.dz-mobile-menu-btn {
  background: transparent;
  border: none;
  color: white;
  padding: 0;
  display: grid;
  place-items: center;
}
@media (min-width: 768px) {
  .dz-mobile-menu-btn { display: none; }
}

.dz-logo { display: block; cursor: pointer; flex: 1; text-align: center; }
.dz-logo img { height: 28px; width: auto; display: inline-block; }
@media (min-width: 768px) {
  .dz-logo { flex: none; text-align: left; }
  .dz-logo img { height: 36px; }
}

.dz-header-location {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.dz-header-location .label { font-size: 10px; opacity: 0.7; letter-spacing: 0.4px; }
.dz-header-location .value { font-weight: 700; font-size: 12px; }
@media (min-width: 1024px) {
  .dz-header-location { display: flex; }
}

.dz-search {
  flex: 0 0 100%;
  order: 5;
  display: flex;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}
.dz-search-categories {
  display: none;
  background: #F8FAFC;
  color: var(--dz-ink);
  border: none;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  gap: 6px;
  border-right: 1px solid var(--dz-border);
  letter-spacing: 0.2px;
}
.dz-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 13px;
  background: white;
  color: var(--dz-ink);
}
.dz-search-btn {
  background: var(--dz-gold);
  color: var(--dz-blue-darker);
  border: none;
  width: 44px;
  display: grid;
  place-items: center;
}
@media (min-width: 768px) {
  .dz-search { flex: 1; order: 0; height: 44px; }
  .dz-search-categories { display: flex; }
  .dz-search input { padding: 0 18px; font-size: 14px; }
  .dz-search-btn { width: 56px; }
}

.dz-header-account,
.dz-header-wishlist {
  display: none;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  align-items: center;
  gap: 8px;
}
.dz-header-account .label,
.dz-header-wishlist .label { opacity: 0.75; font-size: 11px; }
.dz-header-account .value,
.dz-header-wishlist .value { font-weight: 700; font-size: 13px; }
@media (min-width: 1024px) {
  .dz-header-account, .dz-header-wishlist { display: flex; }
}

.dz-header-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.dz-header-cart .text { display: none; }
.dz-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--dz-gold);
  color: var(--dz-blue-darker);
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  padding: 0 5px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}
@media (min-width: 768px) {
  .dz-header-cart { padding: 8px 14px; gap: 10px; }
  .dz-header-cart .text { display: block; }
  .dz-header-cart .text .label { opacity: 0.75; font-size: 11px; line-height: 1.1; }
  .dz-header-cart .text .value { font-weight: 700; font-size: 13px; }
  .dz-cart-badge { top: -6px; right: -8px; font-size: 11px; min-width: 18px; height: 18px; padding: 0 6px; }
}

/* Categories nav (desktop) */
.dz-cat-nav {
  display: none;
  background: var(--dz-blue-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dz-cat-nav .container {
  max-width: var(--dz-max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  overflow-x: auto;
}
.dz-cat-nav .all {
  background: rgba(201,162,74,0.15);
  color: var(--dz-gold);
  border: 1px solid rgba(201,162,74,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 7px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.dz-cat-nav .sep { width: 1px; height: 18px; background: rgba(255,255,255,0.15); margin: 0 12px; flex-shrink: 0; }
.dz-cat-nav a {
  color: white;
  opacity: 0.9;
  padding: 7px 12px;
  border-radius: 6px;
  font-weight: 500;
  white-space: nowrap;
}
.dz-cat-nav a.active { color: var(--dz-gold); font-weight: 700; }
@media (min-width: 768px) { .dz-cat-nav { display: block; } }

/* ───── Mobile drawer ───── */
.dz-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
}
.dz-drawer-overlay.open { display: block; }
.dz-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: white;
  z-index: 1001;
  display: none;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.dz-drawer.open { display: flex; transform: translateX(0); }
.dz-drawer .head {
  background: var(--dz-blue);
  color: white;
  padding: 20px 18px;
}
.dz-drawer .head .top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.dz-drawer .head img { height: 28px; width: auto; }
.dz-drawer .close-btn {
  background: transparent; border: none; color: white; padding: 4px;
}
.dz-drawer .user {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; background: rgba(255,255,255,0.08); border-radius: 10px;
}
.dz-drawer .user .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--dz-gold); color: var(--dz-blue-darker);
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.dz-drawer .user .name { font-size: 13px; font-weight: 700; }
.dz-drawer .user .sub { font-size: 11px; opacity: 0.7; }
.dz-drawer .body { flex: 1; overflow-y: auto; padding: 8px 0; }
.dz-drawer .section-title {
  font-size: 10px; font-weight: 800; color: var(--dz-gold);
  letter-spacing: 1.2px; padding: 14px 18px 6px;
}
.dz-drawer a.item {
  display: block; padding: 10px 18px; font-size: 13px;
  color: var(--dz-ink); font-weight: 600;
}
.dz-drawer a.item:hover { background: var(--dz-blue-soft); }

/* ───── Buttons ───── */
.dz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--dz-radius);
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
}
.dz-btn:hover { opacity: 0.9; }
.dz-btn:active { transform: translateY(1px); }
.dz-btn.primary { background: var(--dz-blue); color: white; }
.dz-btn.gold { background: var(--dz-gold); color: var(--dz-blue-darker); font-weight: 800; }
.dz-btn.outline { background: transparent; color: var(--dz-blue); border: 1px solid var(--dz-border); }
.dz-btn.dark { background: var(--dz-blue-darker); color: white; }
.dz-btn.full { width: 100%; }
.dz-btn.lg { padding: 14px 24px; font-size: 14px; }

/* ───── Footer ───── */
.dz-footer {
  background: var(--dz-blue-darker);
  color: white;
  margin-top: 64px;
}
.dz-footer .back-top {
  background: var(--dz-blue-dark);
  text-align: center;
  padding: 14px 0;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dz-footer .container {
  max-width: var(--dz-max-width);
  margin: 0 auto;
  padding: 36px 16px 20px;
}
.dz-footer .cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.dz-footer .col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--dz-gold);
  letter-spacing: 0.4px;
  margin: 0 0 14px;
}
.dz-footer .col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  opacity: 0.7;
}
.dz-footer .col ul a { cursor: pointer; }
.dz-footer .brand-col p {
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.6;
  margin: 16px 0 0;
}
.dz-footer .socials {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.dz-footer .socials .social {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
}
.dz-footer .trust {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dz-footer .trust-item { display: flex; gap: 12px; align-items: center; }
.dz-footer .trust-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(201,162,74,0.1);
  border: 1px solid rgba(201,162,74,0.25);
  display: grid; place-items: center;
}
.dz-footer .trust-item .t { font-size: 12px; font-weight: 700; color: white; }
.dz-footer .trust-item .s { font-size: 11px; opacity: 0.6; margin-top: 2px; }
.dz-footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 24px;
  padding-top: 20px;
  font-size: 11px;
  opacity: 0.55;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dz-footer .bottom .flag {
  display: inline-flex;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}
.dz-footer .bottom .flag span:nth-child(1) { width: 16px; background: #FCD116; }
.dz-footer .bottom .flag span:nth-child(2) { width: 16px; background: #003893; }
.dz-footer .bottom .flag span:nth-child(3) { width: 16px; background: #CE1126; }

@media (min-width: 768px) {
  .dz-footer .container { padding: 48px 32px 24px; }
  .dz-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; }
  .dz-footer .trust { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .dz-footer .bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ───── WhatsApp floating button ───── */
.dz-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
}
.dz-whatsapp:hover { transform: scale(1.05); }
.dz-whatsapp::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.5;
  animation: dz-pulse 2s infinite;
}
@keyframes dz-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}
.dz-whatsapp-tooltip {
  position: fixed;
  bottom: 32px;
  right: 86px;
  background: white;
  color: var(--dz-ink);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  z-index: 998;
  display: none;
  white-space: nowrap;
}
.dz-whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: white;
}
.dz-whatsapp-tooltip.show { display: block; animation: dz-fade-in 0.2s; }
@keyframes dz-fade-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 480px) {
  .dz-whatsapp-tooltip { display: none !important; }
}
@media (max-width: 767px) {
  .dz-whatsapp { bottom: 90px; }
}

/* ───── Mobile bottom nav ───── */
.dz-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--dz-border);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}
.dz-bottom-nav button {
  background: transparent;
  border: none;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--dz-muted);
  position: relative;
}
.dz-bottom-nav button.active { color: var(--dz-blue); }
.dz-bottom-nav button.active span { font-weight: 800; }
.dz-bottom-nav button span { font-size: 10px; font-weight: 600; }
.dz-bottom-nav .nav-badge {
  position: absolute;
  top: 0;
  right: 50%;
  margin-right: -16px;
  background: var(--dz-gold);
  color: var(--dz-blue-darker);
  font-size: 9px;
  font-weight: 800;
  border-radius: 10px;
  padding: 0 5px;
  min-width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
}
@media (min-width: 768px) {
  .dz-bottom-nav { display: none; }
}
@media (max-width: 767px) {
  body { padding-bottom: 70px; }
}

/* ───── Container helper ───── */
.dz-container {
  max-width: var(--dz-max-width);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .dz-container { padding: 0 32px; }
}

/* ───── Section heading ───── */
.dz-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.dz-section-head h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.4px;
}
.dz-section-head a {
  font-size: 12px;
  color: var(--dz-blue);
  font-weight: 700;
}
@media (min-width: 768px) {
  .dz-section-head h2 { font-size: 26px; }
}

/* ───── Cards / products ───── */
.dz-product-card {
  background: white;
  border: 1px solid var(--dz-border);
  border-radius: var(--dz-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.dz-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.08);
}
.dz-product-img {
  position: relative;
  aspect-ratio: 1;
  background: repeating-linear-gradient(135deg, oklch(0.97 0.008 220), oklch(0.97 0.008 220) 10px, oklch(0.95 0.012 220) 10px, oklch(0.95 0.012 220) 20px);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: var(--dz-muted);
  text-align: center;
  padding: 12px;
}
.dz-product-discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--dz-amber);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
}
.dz-product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--dz-gold);
  color: var(--dz-blue-darker);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.dz-product-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.dz-product-brand {
  font-size: 10px;
  font-weight: 700;
  color: var(--dz-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.dz-product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dz-ink);
  line-height: 1.3;
  min-height: 34px;
}
.dz-product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}
.dz-product-price .now {
  font-size: 16px;
  font-weight: 800;
  color: var(--dz-ink);
  letter-spacing: -0.3px;
}
.dz-product-price .was {
  font-size: 11px;
  color: var(--dz-muted);
  text-decoration: line-through;
}
.dz-product-add {
  margin-top: 8px;
  background: var(--dz-blue-tint);
  color: var(--dz-blue);
  border: none;
  height: 34px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}
.dz-product-add:hover { background: var(--dz-blue); color: white; }

/* ───── Toast ───── */
.dz-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dz-ink);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1100;
}
.dz-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 768px) {
  .dz-toast { bottom: 30px; }
}
