/* ============================================================ */
/* PUNTO ÍNTIMO TUCUMÁN — DISCRETO PREMIUM DESIGN SYSTEM         */
/* Crafted with Lenis, GSAP, Impeccable & Anti-Slop Guidelines   */
/* ============================================================ */

:root {
  --bg-deep: #08080b;
  --bg-base: #0e0e13;
  --bg-surface: #14141c;
  --bg-card: #1b1b26;
  --bg-card-hover: #222230;
  --bg-input: #101017;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(217, 70, 239, 0.45);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --brand-magenta: #d946ef;
  --brand-purple: #a855f7;
  --brand-rose: #f43f5e;
  --brand-emerald: #10b981;
  --brand-gold: #f59e0b;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 40px -10px rgba(217, 70, 239, 0.28);
  
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ============================================================ */
/* BASE & RESET                                                 */
/* ============================================================ */
html {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(at 0% 0%, rgba(192, 38, 211, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Lenis Recommended Integration */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #262635;
  border-radius: 9999px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-purple);
}

/* Text Selection */
::selection {
  background: rgba(217, 70, 239, 0.35);
  color: #ffffff;
}

/* Focus Ring Accessibility */
:focus-visible {
  outline: 2px solid var(--brand-magenta);
  outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--brand-magenta);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* ============================================================ */
/* GLASSMORPHISM & ELEVATION                                    */
/* ============================================================ */
.glass-nav {
  background: rgba(14, 14, 19, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.glass-card {
  background: rgba(20, 20, 28, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
}

.glass-card:hover {
  border-color: var(--border-hover);
}

.glass-pill {
  background: rgba(27, 27, 38, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
}

/* Glow Utilities */
.glow-magenta {
  box-shadow: 0 0 35px -8px rgba(217, 70, 239, 0.25);
}
.glow-magenta-hover:hover {
  box-shadow: 0 0 30px -4px rgba(217, 70, 239, 0.35);
}
.glow-emerald {
  box-shadow: 0 0 35px -8px rgba(16, 185, 129, 0.25);
}

/* ============================================================ */
/* PRODUCT CARDS                                                */
/* ============================================================ */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              background-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-4px);
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6), 
              0 0 24px -6px rgba(217, 70, 239, 0.22);
}

.product-card .img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-deep);
}

.product-card .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .img-container img {
  transform: scale(1.05);
}

/* ============================================================ */
/* CATEGORY TABS & HORIZONTAL SCROLL                            */
/* ============================================================ */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-tab {
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.category-tab.active {
  background: linear-gradient(135deg, #c026d3, #9333ea);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(192, 38, 211, 0.4);
  border-color: rgba(217, 70, 239, 0.5);
}

/* ============================================================ */
/* FAQ ACCORDION                                                */
/* ============================================================ */
.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.faq-card:hover {
  border-color: rgba(217, 70, 239, 0.35);
  background: var(--bg-card);
}

.faq-card.open {
  border-color: rgba(217, 70, 239, 0.45);
  background: var(--bg-card);
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-card.open .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-magenta);
}

/* ============================================================ */
/* ANIMATIONS & MICRO-INTERACTIONS                              */
/* ============================================================ */
@keyframes pulseSubtle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.05); }
}

.animate-pulse-subtle {
  animation: pulseSubtle 8s ease-in-out infinite;
}

@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3) rotate(-8deg); }
  75% { transform: scale(0.9) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.badge-pop {
  animation: badgePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* WhatsApp Floating Pulse */
@keyframes floatPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.whatsapp-pulse {
  animation: floatPulse 2.5s infinite;
}

/* Flying Cart Particle */
.flying-particle {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d946ef, #a855f7);
  box-shadow: 0 0 16px rgba(217, 70, 239, 0.8);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
