/* ═══════════════════════════════════════════════════════════
   American Scan Puntos - Design System
   Branding: Navy #032a56 | Cyan #00d2ff | Silver #f0f4f9
═══════════════════════════════════════════════════════════ */

:root {
  --primary:        #032a56;
  --primary-light:  #0a468d;
  --primary-dark:   #021d3a;
  --accent:         #00d2ff;
  --accent-glow:    rgba(0,210,255,0.25);
  --bg:             #f0f4f9;
  --bg-card:        #ffffff;
  --text:           #1a2332;
  --text-muted:     #8fa0b0;
  --border:         #e2eaf4;
  --success:        #00c48c;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-full:    999px;
  --shadow-sm:      0 2px 8px rgba(3,42,86,.06);
  --shadow-lg:      0 20px 60px rgba(3,42,86,.15);
  --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
  --header-h:       72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ─── HEADER ─────────────────────────────────────────────── */
#main-header {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--header-h);
  background: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.header-inner {
  max-width: 1440px; margin: 0 auto; min-height: 100%;
  display: flex; align-items: center; gap: 1.5rem; padding: 0.5rem 1.5rem;
}
.header-search { flex: 1; max-width: 600px; }
.search-box {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: var(--radius-full); padding: .55rem 1.2rem;
  transition: var(--transition);
}
.search-box:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-box input {
  flex: 1; background: none; border: none; color: #fff; outline: none;
}
.search-box input::placeholder { color: rgba(255,255,255,0.7); }
.header-right { display: flex; align-items: center; gap: 1rem; }
.store-name { color: #fff; font-weight: 700; font-size: .9rem; }
.store-location { color: rgba(255,255,255,.6); font-size: .8rem; display: block; text-align: right;}

.cart-btn {
  display: flex; align-items: center; gap: .5rem;
  background: var(--accent); color: var(--primary-dark);
  border: none; border-radius: var(--radius-full);
  padding: .6rem 1.25rem; font-weight: 700;
  transition: var(--transition); cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,210,255,.35);
}
.cart-btn:hover { background: #fff; transform: translateY(-2px); }

/* ─── HERO BANNER ────────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #0d5a96 100%);
  min-height: 190px; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 2rem;
}
.hero-content {
  position: relative; z-index: 2; max-width: 600px; margin-left: max(0px, calc((100vw - 1440px)/2));
}
.hero-tag {
  display: inline-block; background: rgba(0,210,255,.18);
  border: 1px solid rgba(0,210,255,.35); color: var(--accent);
  padding: .3rem .9rem; border-radius: var(--radius-full);
  font-weight: 700; font-size: .8rem; margin-bottom: 0.5rem;
}
.hero-title { font-size: 2.8rem; font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 0.5rem; }
.hero-highlight { background: linear-gradient(90deg, var(--accent), #7ef9ff); -webkit-background-clip: text; color: transparent; }
.hero-sub { color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hero-badges span {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: .8rem; padding: .3rem .8rem; border-radius: var(--radius-full);
}

.hero-visual { position: absolute; right: 0; top: 0; bottom: 0; width: 40%; display: flex; align-items: center; justify-content: center; }
.hero-circle { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(0,210,255,.15), transparent 70%); }
.hero-circle-1 { width: 400px; height: 400px; right: -50px; }
.floating-icon { font-size: 3rem; animation: float 3s ease-in-out infinite; animation-delay: var(--d); margin: 0 1rem; position: relative; z-index: 10; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* ─── LAYOUT & GRID ──────────────────────────────────────── */
.shop-layout { display: flex; max-width: 1440px; margin: 0 auto; padding: 2rem 1.5rem; gap: 2rem; align-items: flex-start;}
.shop-sidebar { width: 240px; flex-shrink: 0; position: sticky; top: calc(var(--header-h) + 20px); }
.sidebar-header { font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.category-nav { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.cat-btn {
  width: 100%; text-align: left; padding: .85rem 1.25rem; background: none; border: none;
  font-weight: 500; color: var(--text); cursor: pointer; border-left: 3px solid transparent;
  transition: var(--transition); display: flex; justify-content: space-between; align-items: center;
}
.cat-btn:hover { background: var(--bg); color: var(--primary); }
.cat-btn.active { background: rgba(3,42,86,.04); border-left-color: var(--accent); font-weight: 700; color: var(--primary); }

.promo-card { background: var(--bg-card); border-radius: var(--radius-md); padding: 1rem; border: 1px solid var(--border); display: flex; gap: 0.75rem; align-items: center; }

.shop-main { flex: 1; }
.products-header h2 { font-size: 1.5rem; color: var(--text); margin-bottom: 1.5rem; font-weight: 800;}
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

/* ─── PRODUCT CARD ───────────────────────────────────────── */
.product-card {
  background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column; transition: var(--transition);
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.product-img-wrap { height: 220px; background: #f8fafc; display: flex; align-items: center; justify-content: center; padding: 1rem; position: relative; }
.product-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: .75rem; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .25rem; }
.product-name { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: .75rem; color: var(--primary); }

.price-points { font-size: 1.4rem; font-weight: 900; color: var(--text); display: flex; align-items: center; gap: 0.25rem; margin-top: auto;}
.price-points span { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

.btn-add-cart {
  margin-top: 1rem; width: 100%; background: var(--primary); color: #fff;
  border: none; padding: .75rem; border-radius: var(--radius-md);
  font-weight: 700; cursor: pointer; transition: var(--transition);
}
.btn-add-cart:hover { background: var(--primary-light); }

/* ─── RESPONSIVE (MÓVIL Y TABLET) ────────────────────────── */
@media (max-width: 900px) {
  .shop-layout { flex-direction: column; align-items: stretch; padding: 1rem; }
  .shop-sidebar { width: 100%; position: static; }
  
  /* Menú de categorías horizontal en móvil */
  .category-nav { 
    display: flex; overflow-x: auto; white-space: nowrap; 
    border-radius: var(--radius-md); padding: 0.5rem; gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Ocultar scroll en Firefox */
  }
  .category-nav::-webkit-scrollbar { display: none; } /* Ocultar scroll en Chrome */
  
  .cat-btn { 
    width: auto; padding: 0.6rem 1rem; border-left: none; 
    border-radius: var(--radius-full); background: var(--bg);
    font-size: 0.85rem; justify-content: center; gap: 0.5rem;
  }
  .cat-btn.active { 
    background: var(--primary); color: #fff; 
  }

  .hero-visual { display: none; }
  .hero-content { margin: 0 auto; text-align: center; }
  .hero-badges { justify-content: center; }
  
  /* Reorganización de la cabecera para subir el botón de Redimir */
  .header-inner { 
    flex-direction: row; flex-wrap: wrap; 
    gap: 0.75rem; padding: 0.75rem; 
    align-items: center; 
  }
  .header-logo { width: 100%; text-align: center; justify-content: center; display: flex; }
  .header-search { flex: 1; min-width: 0; }
  .header-right { width: auto; flex-shrink: 0; }
  
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 600px) {
  .header-right { width: auto; justify-content: flex-end; }
  .store-name, .store-location { text-align: left; }
  .header-info { display: none; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .hero-title { font-size: 1.8rem; }
  .hero-banner { padding: 1.5rem; }
  .product-img-wrap { height: 140px; }
  .price-points { font-size: 1.05rem; }
  .product-name { font-size: 0.85rem; }
  .btn-add-cart { font-size: 0.8rem; padding: 0.5rem; }
}
