/* YSABELLA Licores y Festejos - Premium Dark Theme */
:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #1c1c1c;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #a8841f;
  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --danger: #e74c3c;
  --success: #27ae60;
  --border: #2a2a2a;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-area img {
  width: 70px !important;
  height: 70px !important;
  max-height: 70px !important;
  object-fit: contain !important;
  border-radius: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text strong {
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.logo-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  font-size: 1.2rem;
}

.btn-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation */
.nav-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.98);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  padding: 0.4rem;
  transition: color 0.2s;
}

.nav-item.active, .nav-item:hover {
  color: var(--gold);
}

.nav-item i {
  font-size: 1.3rem;
}

/* Main content */
.main {
  padding-top: 70px;
  padding-bottom: 80px;
  max-width: 900px;
  margin: 0 auto;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 1.25rem;
  text-align: center;
  background: linear-gradient(180deg, #1a1508 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(201,162,39,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  box-shadow: 0 4px 20px rgba(201,162,39,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201,162,39,0.45);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(201,162,39,0.1);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #1da851;
}

/* Sections */
.section {
  padding: 2rem 1.25rem;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Categories tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab.active, .tab:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  font-weight: 600;
}

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-img {
  height: 140px;
  background: linear-gradient(145deg, #1f1a0a, #2a2210);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.product-img .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.product-body {
  padding: 0.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.product-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

.product-price {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.05rem;
}

.btn-add {
  background: var(--gold);
  color: #000;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.2s;
}

.btn-add:hover {
  transform: scale(1.1);
}

/* Offers */
.offers-grid {
  display: grid;
  gap: 1rem;
}

.offer-card {
  background: linear-gradient(135deg, #1a1508, #221c0c);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.offer-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.offer-content h3 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.offer-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.2s;
}

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

.service-card .icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.service-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.service-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Brands */
.brands-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.brands-scroll::-webkit-scrollbar { display: none; }

.brand-chip {
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.7rem 1.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

/* Support & Afiliaciones */
.info-cards {
  display: grid;
  gap: 1rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.info-card h3 {
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.info-card p, .info-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-card ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--bg-dark);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.cart-overlay.open .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 {
  font-size: 1.2rem;
  color: var(--gold);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-item-price {
  font-size: 0.8rem;
  color: var(--gold);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.qty-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cart-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cart-total span:last-child {
  color: var(--gold);
}

.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

/* Checkout modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-dark);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  border-radius: 20px 20px 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border: 1px solid var(--border);
  border-bottom: none;
}

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

.modal-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-dark);
  z-index: 1;
}

.modal-header h2 {
  color: var(--gold);
  font-size: 1.2rem;
}

.modal-body {
  padding: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.payment-info {
  background: var(--bg-elevated);
  border: 1px solid var(--gold-dark);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.payment-info strong {
  color: var(--gold);
}

.modal-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--gold);
  z-index: 4000;
  opacity: 0;
  transition: all 0.3s;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Utility */
.hidden { display: none !important; }

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

/* Responsive */
@media (min-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .hero h1 {
    font-size: 2.4rem;
  }
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none;
  }
  .main {
    padding-bottom: 2rem;
  }
  .header {
    padding: 0.9rem 2rem;
  }
  .desktop-nav {
    display: flex;
    gap: 1.5rem;
  }
  .desktop-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
  }
  .desktop-nav a:hover {
    color: var(--gold);
  }
}

.desktop-nav {
  display: none;
}

/* Install banner */
.install-banner {
  position: fixed;
  bottom: 70px;
  left: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #1a1508, #2a2210);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1500;
  box-shadow: var(--shadow);
}

.install-banner p {
  flex: 1;
  font-size: 0.9rem;
}

.install-banner.hidden {
  display: none;
}

.product-card.out-of-stock {
  opacity: 0.65;
}
.product-card.out-of-stock .product-img {
  filter: grayscale(0.6);
}

