/* ==========================================================================
   ECStudioPR Store - Master E-Commerce Design System (tienda.css)
   Exact Match to Website Look & Feel (styles.css)
   ========================================================================== */

:root {
  --brand-blue:       #030759;          /* Azul marino principal    */
  --brand-blue-mid:   #050e8f;          /* Azul medio hover         */
  --brand-blue-glow:  rgba(3,7,89,0.6);
  --brand-green:      #52BF04;          /* Verde brillante brand    */
  --brand-green-dark: #3F8C08;          
  --brand-green-glow: rgba(82,191,4,0.5);

  --bg-dark: #030718;
  --bg-card: rgba(3, 7, 89, 0.25);
  --bg-card-hover: rgba(5, 14, 143, 0.45);
  --border-glow: rgba(82, 191, 4, 0.2);
  --border-active: rgba(82, 191, 4, 0.6);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Unbounded', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --glass-bg: rgba(3, 7, 89, 0.45);
  --glass-border: rgba(82, 191, 4, 0.3);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --shadow-neon: 0 10px 30px -10px rgba(82, 191, 4, 0.4);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #3F8C08, #52BF04, #050e8f);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.6rem 1rem;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Header Navbar */
.store-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 7, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.1rem 2.5rem;
}

.nav-container {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo-img {
  height: 38px;
  display: block;
}

.search-bar-wrap {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1.2rem 0.75rem 2.8rem;
  background: rgba(3, 7, 89, 0.3);
  border: 1px solid rgba(82, 191, 4, 0.3);
  border-radius: 30px;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  transition: all 0.3s ease;
}
.search-input:focus {
  outline: none;
  background: rgba(3, 7, 89, 0.6);
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(82, 191, 4, 0.2);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.cart-trigger-btn {
  background: linear-gradient(135deg, rgba(82, 191, 4, 0.2), rgba(3, 7, 89, 0.6));
  border: 1px solid var(--brand-green);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
}
.cart-trigger-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
  background: var(--brand-green);
  color: #000;
}

.cart-count-badge {
  background: var(--brand-green);
  color: #000;
  font-size: 0.75rem;
  font-weight: 900;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  max-width: 1350px;
  margin: 2.5rem auto;
  padding: 4rem 3rem;
  background: radial-gradient(circle at top left, rgba(82, 191, 4, 0.15), transparent 50%),
              radial-gradient(circle at bottom right, rgba(3, 7, 89, 0.6), transparent 50%),
              rgba(3, 7, 24, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.hero-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-green);
  background: rgba(82, 191, 4, 0.12);
  border: 1px solid rgba(82, 191, 4, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
}
.hero-title span {
  color: var(--brand-green);
  text-shadow: 0 0 20px rgba(82, 191, 4, 0.4);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  border-left: 3px solid var(--brand-green);
  padding-left: 1rem;
}
.stat-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-badge-card {
  background: rgba(3, 7, 89, 0.5);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

/* Category Filter Bar */
.categories-container {
  max-width: 1350px;
  margin: 0 auto 3rem auto;
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.cat-btn {
  background: rgba(3, 7, 89, 0.3);
  border: 1px solid rgba(82, 191, 4, 0.2);
  color: var(--text-muted);
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cat-btn:hover, .cat-btn.active {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #000;
  box-shadow: var(--shadow-neon);
}

/* Sections */
.section-block {
  max-width: 1350px;
  margin: 0 auto 4.5rem auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(82, 191, 4, 0.2);
  padding-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.section-title span {
  color: var(--brand-green);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(15px);
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(82, 191, 4, 0.25);
}

.product-img-wrap {
  height: 220px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #020617;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(3, 7, 24, 0.85);
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.production-time-badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(3, 7, 24, 0.88);
  border: 1px solid rgba(82, 191, 4, 0.3);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.product-rating {
  font-size: 0.78rem;
  margin: 0.4rem 0 0.8rem 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

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

.product-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--brand-green);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-price-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}
.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-green);
  font-family: var(--font-mono);
}

.btn-add-cart {
  background: var(--brand-green);
  color: #000;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-add-cart:hover {
  background: #fff;
  transform: scale(1.05);
}

/* Modals & Cart Drawer */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 24, 0.9);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: rgba(3, 7, 89, 0.95);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: rgba(3, 7, 24, 0.96);
  border-left: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
}
.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
}

.cart-footer {
  padding: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 7, 89, 0.6);
}

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

.btn-checkout {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.btn-checkout:hover {
  background: var(--brand-green);
  color: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
}

/* UNIFORM SOCIAL MEDIA BUTTONS (FB, IG, BE, WA) */
.footer-social, .nav-social-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(82, 191, 4, 0.45);
  background: rgba(3, 7, 89, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 250, 252, 0.85);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.social-btn:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
  background: rgba(82, 191, 4, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(82, 191, 4, 0.3);
}
