/* ================================================================
   PQ ONLINE STORE — ESTILOS PRINCIPALES
   Diseño: Dark Fashion / Mobile-First / Mano derecha
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #08080f;
  --bg2:         #0f0f1a;
  --bg3:         #141422;
  --bg4:         #1a1a2e;
  --gold:        #c9a14a;
  --gold-l:      #e5c070;
  --gold-d:      #a07830;
  --rose:        #f0a0c0;
  --sky:         #7ec8e3;
  --slate:       #8899aa;
  --text:        #f5f0eb;
  --text-2:      #c8c0b8;
  --muted:       #7a7585;
  --border:      rgba(201,161,74,0.18);
  --border-w:    rgba(255,255,255,0.08);
  --glass:       rgba(255,255,255,0.04);
  --glass2:      rgba(255,255,255,0.07);
  --whatsapp:    #25D366;
  --radius:      14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --trans:       all 0.28s cubic-bezier(.4,0,.2,1);
  --shadow:      0 24px 64px rgba(0,0,0,.55);
  --shadow-sm:   0 8px 24px rgba(0,0,0,.35);
  --glow-gold:   0 0 32px rgba(201,161,74,.22);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 58px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 12px;
  background: rgba(8,8,15,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: var(--trans);
}
.site-header.scrolled {
  background: rgba(8,8,15,.98);
  box-shadow: 0 4px 32px rgba(0,0,0,.4);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img { height: 38px; width: auto; }
.logo-text-wrap { line-height: 1.2; }
.logo-main {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.5px;
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-w);
  background: var(--glass);
  transition: var(--trans);
}
.hamburger:hover { border-color: var(--border); background: var(--glass2); }
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--trans);
}
.hamburger.open { border-color: var(--gold); background: rgba(201,161,74,.1); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Botón WhatsApp del header */
.header-wa {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  background: var(--whatsapp);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: var(--trans);
}
.header-wa:hover { background: #1da851; transform: scale(1.03); }
.header-wa svg { width: 16px; height: 16px; fill: white; flex-shrink: 0; }

@media (min-width: 640px) { .header-wa { display: flex; } }

/* NAV MÓVIL ─────────────────────────────────────────────────── */
.nav-drawer {
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 490;
  background: rgba(8,8,15,.97);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer.open { transform: translateX(0); }

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--trans);
  cursor: pointer;
}
.nav-item:hover, .nav-item.active {
  background: var(--glass2);
  color: var(--gold);
}
.nav-item .nav-icon { font-size: 22px; flex-shrink: 0; }

.nav-divider {
  height: 1px;
  background: var(--border-w);
  margin: 8px 0;
}

.nav-admin-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  transition: var(--trans);
}
.nav-admin-link:hover { color: var(--gold); }

/* NAV DESKTOP ──────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .hamburger { display: none; }
  .nav-drawer {
    position: static;
    background: none;
    transform: none;
    flex-direction: row;
    gap: 2px;
    padding: 0;
    overflow: visible;
  }
  .nav-item {
    padding: 7px 12px;
    font-size: 14px;
    gap: 6px;
    border-radius: 10px;
  }
  .nav-item .nav-icon { font-size: 16px; }
  .nav-divider { display: none; }
  .nav-admin-link { display: none; }
}

/* ── HERO SLIDER ────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  margin-top: 58px;
  height: calc(100svh - 58px);
  min-height: 480px;
  overflow: hidden;
  background: var(--bg2);
}

.slider-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(.4,0,.2,1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  user-select: none;
  pointer-events: none;
}

.slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,15,.05) 0%,
    transparent 30%,
    transparent 55%,
    rgba(8,8,15,.7) 100%
  );
  pointer-events: none;
}

/* Slider vacío */
.slider-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 20px;
  padding: 32px;
  text-align: center;
}
.slider-empty-icon { font-size: 64px; opacity: .4; }
.slider-empty h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.slider-empty p { font-size: 15px; color: var(--muted); max-width: 280px; }

/* Navegación del slider */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(8,8,15,.55);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  cursor: pointer;
}
.slider-btn:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 20;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: var(--trans);
  cursor: pointer;
  border: none;
}
.dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 4px;
}

/* ── INFO BANNER ─────────────────────────────────────────────── */
.info-banner {
  background: linear-gradient(135deg, var(--bg2) 0%, var(--bg3) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 16px;
}
.info-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border-w);
  background: var(--glass);
  color: var(--text-2);
  white-space: nowrap;
}
.badge.gold { border-color: rgba(201,161,74,.4); color: var(--gold-l); }
.badge.green { border-color: rgba(37,211,102,.3); color: #4cd97e; }
.info-detail {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
  max-width: 500px;
}

/* ── SECCIONES ──────────────────────────────────────────────── */
.section {
  padding: 40px 0;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title-emoji { font-size: 1.2em; }
.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--glass);
  transition: var(--trans);
  cursor: pointer;
  white-space: nowrap;
}
.see-all:hover { background: rgba(201,161,74,.12); border-color: var(--gold); }

/* ── SCROLL HORIZONTAL ──────────────────────────────────────── */
.h-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 16px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { display: none; }

/* ── TARJETA DE CATÁLOGO (vertical 9:16) ─────────────────────── */
.cat-card {
  flex: 0 0 auto;
  width: 130px;
  aspect-ratio: 9/16;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--border-w);
  cursor: pointer;
  transition: var(--trans);
  scroll-snap-align: start;
}
@media (min-width: 480px)  { .cat-card { width: 150px; } }
@media (min-width: 768px)  { .cat-card { width: 170px; } }
@media (min-width: 1024px) { .cat-card { width: 185px; } }

.cat-card:hover { transform: scale(1.02); border-color: var(--gold); box-shadow: var(--glow-gold); }
.cat-card:active { transform: scale(0.97); }

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}
.cat-card:hover img { transform: scale(1.05); }

.cat-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
}
.cat-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.cat-card-count {
  font-size: 9.5px;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

/* Catálogo sin imágenes */
.cat-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  color: var(--muted);
}
.cat-card-placeholder span { font-size: 32px; }
.cat-card-placeholder p { font-size: 10px; text-align: center; padding: 0 8px; }

/* ── GRID DE CATÁLOGOS ──────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 480px)  { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }

/* ── CATEGORÍAS DESTACADAS ──────────────────────────────────── */
.categories-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px;
}
@media (min-width: 640px) { .categories-row { grid-template-columns: repeat(4, 1fr); } }

.category-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border-w);
  cursor: pointer;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.category-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color, #fff) 0%, transparent 100%);
  opacity: 0.06;
  transition: var(--trans);
}
.category-pill:hover { border-color: var(--color, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.category-pill:hover::before { opacity: 0.12; }
.category-pill:active { transform: translateY(0); }
.category-icon { font-size: 28px; flex-shrink: 0; }
.category-text h3 { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700; }
.category-text p  { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── VISOR MODAL ─────────────────────────────────────────────── */
.viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,.97);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.viewer-overlay.open { opacity: 1; pointer-events: all; }

.viewer-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.viewer-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass2);
  border: 1px solid var(--border-w);
  color: var(--text);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  flex-shrink: 0;
}
.viewer-back:hover { background: var(--glass2); color: var(--gold); }
.viewer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  flex: 1;
}
.viewer-count { font-size: 12px; color: var(--muted); flex-shrink: 0; }

.viewer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.viewer-body::-webkit-scrollbar { width: 4px; }
.viewer-body::-webkit-scrollbar-track { background: transparent; }
.viewer-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.viewer-gallery {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.viewer-img-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.viewer-img-wrap img { width: 100%; display: block; }
.viewer-img-wrap:hover::after {
  content: '💬 Consultar por WhatsApp';
  position: absolute;
  inset: 0;
  background: rgba(37,211,102,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.viewer-footer {
  flex-shrink: 0;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--whatsapp);
  color: white;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;
  transition: var(--trans);
  cursor: pointer;
}
.wa-btn:hover { background: #1da851; transform: scale(1.01); }
.wa-btn svg { width: 22px; height: 22px; fill: white; }

/* ── WHATSAPP FAB ─────────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 800;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  animation: pulsewa 3s ease-in-out infinite;
  text-decoration: none;
}
.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37,211,102,.6);
  animation: none;
}
.wa-fab svg { width: 30px; height: 30px; fill: white; }

@keyframes pulsewa {
  0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 6px 36px rgba(37,211,102,.65), 0 0 0 8px rgba(37,211,102,.1); }
}

/* ── SEPARADOR DORADO ────────────────────────────────────────── */
.gold-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .35;
  margin: 0 16px;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 36px 16px 100px;
  text-align: center;
}
.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.footer-tagline { font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.footer-info {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.8;
}
.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--whatsapp);
  color: white;
  font-weight: 600;
  font-size: 14px;
  transition: var(--trans);
}
.footer-wa:hover { background: #1da851; transform: scale(1.03); }
.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-w);
  font-size: 11px;
  color: var(--muted);
}

/* ── LOADING / EMPTY ─────────────────────────────────────────── */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--border-w);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-msg {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
}
.empty-msg .e-icon { font-size: 48px; margin-bottom: 12px; }
.empty-msg p { font-size: 14px; }

/* ── FADE IN ANIMACIÓN ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── TOAST / NOTIFICACIÓN ────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 88px;
  right: 16px;
  z-index: 9999;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--trans);
  max-width: 280px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: #4cd97e; color: #4cd97e; }
.toast.error   { border-color: #ff6b6b; color: #ff6b6b; }

/* ── SKELETON LOADER ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
