/* ================================================================
   GROPESTAMPADOS.UY — Premium Stylesheet v2
   Mint #049B7A | Purple #3E2259 | Dark Mode Ultra
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Bebas+Neue&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --mint:        #BFFF00;
  --mint-light:  #C4FF4D;
  --mint-glow:   rgba(191, 255, 0, 0.35);
  --purple:      #8A2BE2;
  --purple-mid:  #FF00FF;
  --purple-glow: rgba(138, 43, 226, 0.5);
  --bg:          #080810;
  --bg-card:     #0f0f1a;
  --bg-surface:  #13131f;
  --bg-glass:    rgba(15, 15, 26, 0.7);
  --border:      rgba(255,255,255,0.07);
  --border-mint: rgba(191, 255, 0, 0.35);
  --text:        #f4f4f8;
  --text-sec:    #8b8ba8;
  --text-dim:    #4a4a62;
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Screen-reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--mint); }

/* ── Typography ─────────────────────────────────────────── */
.font-display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.03em; }

.brand-gradient {
  background: linear-gradient(135deg, var(--mint-light) 0%, #2aedb8 50%, var(--purple-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 30px rgba(191,255,0,0.5);
}

/* ── Ambient BG Canvas ──────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-content { position: relative; z-index: 1; }

/* ── Mesh Gradient Blobs ────────────────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

/* ── Glass effect ───────────────────────────────────────── */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.logo-text-grop {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--mint-light), #2aedb8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.logo-text-rest {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1;
}

.logo-uy {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-sec);
  letter-spacing: 0.05em;
}

/* ── Nav Tabs / Links ───────────────────────────────────── */
.nav-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.2s, text-shadow 0.2s;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--mint);
  transition: width 0.3s cubic-bezier(0.34,1.56,0.64,1);
  border-radius: 1px;
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(255,255,255,0.3);
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Search ─────────────────────────────────────────────── */
.search-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.search-input:focus {
  border-color: var(--mint);
  background: rgba(191,255,0,0.06);
  box-shadow: 0 0 0 3px rgba(191,255,0,0.12);
}
.search-input::placeholder { color: var(--text-dim); }

/* ── Hero ───────────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 8px;
  border-radius: 30px;
  background: rgba(191,255,0,0.08);
  border: 1px solid rgba(191,255,0,0.25);
  color: var(--mint-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hero-title strong {
  display: block;
  background: linear-gradient(135deg, var(--mint-light) 0%, #2aedb8 40%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-sec);
  font-size: 1.05rem;
  max-width: 480px;
  line-height: 1.7;
}

.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  min-width: 100px;
}

.stat-chip .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--mint-light);
  line-height: 1;
}

.stat-chip .lbl {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ── Trust Badges ───────────────────────────────────────── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  transition: border-color 0.2s, color 0.2s;
}

.trust-badge:hover { border-color: var(--border-mint); color: var(--text); }

/* ── Section ────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mint);
  margin-bottom: 10px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--mint);
  border-radius: 1px;
}

/* ── Product Cards ──────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.28s ease,
              border-color 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(191,255,0,0.2);
  border-color: rgba(191,255,0,0.4);
}

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

/* Status-based styles */
.product-card.status-casa {
  border-color: var(--mint);
  box-shadow: 0 0 0 1px var(--mint), 0 0 30px rgba(191,255,0,0.2);
  animation: card-glow 3s ease-in-out infinite;
}

@keyframes card-glow {
  0%,100% { box-shadow: 0 0 0 1px var(--mint), 0 0 20px rgba(191,255,0,0.15); }
  50%      { box-shadow: 0 0 0 1px var(--mint-light), 0 0 40px rgba(191,255,0,0.4); }
}

.product-card.status-sin-stock .card-img { filter: grayscale(80%) brightness(0.5); }
.product-card.status-no-disponible .card-img { filter: grayscale(100%) brightness(0.3); }

/* ── Card Image ─────────────────────────────────────────── */
.card-img-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a18, #15152a);
  aspect-ratio: 1 / 1;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #0d0d1e, #1a0d2e);
}

/* ── Status Badge ───────────────────────────────────────── */
.status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 5;
  border: 1px solid rgba(255,255,255,0.08);
  line-height: 1.5;
}

.badge-casa          { background: rgba(191,255,0,0.85);   color: #fff; box-shadow: 0 0 12px rgba(191,255,0,0.6); }
.badge-pocas         { background: rgba(245,124,0,0.85);   color: #fff; }
.badge-disponible    { background: rgba(34,197,94,0.8);    color: #fff; }
.badge-encargue      { background: rgba(6,182,212,0.8);    color: #fff; }
.badge-sin-stock     { background: rgba(239,68,68,0.85);   color: #fff; }
.badge-no-disponible { background: rgba(55,55,75,0.9);     color: #9ca3af; }

/* ── Card Body ──────────────────────────────────────────── */
.card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 11px;
  color: var(--text-dim);
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  margin-bottom: 12px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: 0.03em;
  line-height: 1;
}

.card-stock {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }

.btn-mint {
  background: var(--mint);
  color: #fff;
  padding: 13px 28px;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(191,255,0,0.35);
}
.btn-mint:hover { background: var(--mint-light); box-shadow: 0 8px 28px rgba(191,255,0,0.5); }

.btn-outline-mint {
  background: rgba(191,255,0,0.1);
  color: var(--mint-light);
  border: 1px solid rgba(191,255,0,0.4);
  padding: 13px 24px;
  font-size: 14px;
}
.btn-outline-mint:hover { 
  background: rgba(191,255,0,0.2); 
  border-color: var(--mint-light);
  color: #fff;
  box-shadow: 0 0 15px rgba(191,255,0,0.3);
}

.btn-outline {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 13px 24px;
  font-size: 14px;
}
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 800;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { background: #1ebe5d; box-shadow: 0 10px 32px rgba(37,211,102,0.5); }

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 8px;
}

.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-sec);
  border: 1px solid var(--border);
  padding: 10px 18px;
  font-size: 13px;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.1); }

/* ── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: linear-gradient(160deg, #0f0f1e 0%, #13131f 100%);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(40px);
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1);
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-overlay { align-items: center; }
  .modal-box {
    border-bottom: 1px solid var(--border);
    border-radius: 24px;
    transform: scale(0.94) translateY(16px);
  }
  .modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
}

.modal-drag-handle {
  display: block;
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ── Floating WhatsApp ──────────────────────────────────── */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  animation: float-bounce 3s ease-in-out infinite;
}

.float-wa:hover { transform: scale(1.12); box-shadow: 0 10px 32px rgba(37,211,102,0.6); }

@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.float-wa-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: rgba(15,15,26,0.96);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.float-wa:hover .float-wa-tooltip { opacity: 1; }

/* ── Hamburger ──────────────────────────────────────────── */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ────────────────────────────────────────── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1);
}
#mobile-menu.open { max-height: 600px; }

/* ── Loader ─────────────────────────────────────────────── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(191,255,0,0.15);
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Feature rows ───────────────────────────────────────── */
.feature-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  background: rgba(191,255,0,0.05);
  border-color: rgba(191,255,0,0.2);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(191,255,0,0.1);
  border: 1px solid rgba(191,255,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

/* ── Admin Panel Link ───────────────────────────────────── */
.admin-access-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px;
}
.admin-access-link:hover { color: var(--text-sec); }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.anim-fade-up { animation: fadeInUp 0.55s ease both; }
.animate-fade-in { animation: fadeIn 0.3s ease-out both; }

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.10s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.20s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.30s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.40s; }

/* Intersection Observer class */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Admin Styles ───────────────────────────────────────── */
.admin-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

.admin-input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(191,255,0,0.12);
  background: rgba(191,255,0,0.04);
}

.admin-input::placeholder { color: var(--text-dim); }

.counter-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.counter-btn:hover { background: var(--mint); border-color: var(--mint); color: #fff; }

.product-row {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  transition: border-color 0.2s;
}
.product-row:hover { border-color: rgba(191,255,0,0.25); }

.btn-danger {
  background: rgba(239,68,68,0.08);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }

.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}
.image-upload-area:hover { border-color: var(--mint); background: rgba(191,255,0,0.04); }

.image-preview { width: 100%; max-height: 200px; object-fit: contain; border-radius: 10px; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: linear-gradient(to top, rgba(191,255,0,0.03), transparent);
}

/* ── Utility ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); }
.no-select { user-select: none; }

/* ── Mobile-first tweaks ────────────────────────────────── */
@media (max-width: 640px) {
  .hero-title { line-height: 0.95; }
  .modal-box  { border-radius: 20px 20px 0 0; }
  .stat-chip  { padding: 12px 16px; }
}
