/* ============================================
   SCOTT PUNTA DEL ESTE
   Estética premium — fondo negro, acento amarillo SCOTT
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --bg-3: #1c1c1c;
  --line: #2a2a2a;
  --text: #ffffff;
  --text-dim: #b3b3b3;
  --text-muted: #6a6a6a;
  --accent: #FFD300;        /* SCOTT yellow */
  --accent-2: #ffe34d;
  --danger: #ff3b30;
  --success: #25D366;       /* WhatsApp green */
  --radius: 4px;
  --radius-lg: 12px;
  --maxw: 1400px;
  --shadow: 0 10px 40px rgba(0,0,0,0.5);
  --shadow-hover: 0 20px 60px rgba(255,211,0,0.15);
  --t: 0.3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

h1 { font-size: clamp(3rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

a { color: inherit; text-decoration: none; transition: var(--t); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--t);
  background: transparent;
  color: var(--text);
  user-select: none;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-ghost {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost-sm, .btn-primary-sm {
  padding: 10px 18px;
  font-size: 12px;
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  transition: var(--t);
}
.btn-ghost-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary-sm { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-primary-sm:hover { background: #fff; border-color: #fff; }
.btn-block { width: 100%; }

/* ============================================
   TOPBAR & HEADER
   ============================================ */
.topbar {
  background: #000;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-dim);
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--accent); font-weight: 600; }

.site-header {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 30px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { max-height: 50px; }
.logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.logo-text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--t);
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  padding: 10px;
  position: relative;
  transition: var(--t);
}
.icon-btn:hover { color: var(--accent); }
.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.mobile-menu-btn { display: none; }

.search-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.98);
  padding: 30px 0;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: var(--t);
}
.search-overlay.active { transform: translateY(0); opacity: 1; visibility: visible; }
.search-overlay .container {
  display: flex; gap: 12px; align-items: center;
}
.search-overlay input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--accent);
  padding: 14px 0;
  color: #fff;
  font-size: 18px;
  outline: none;
}
.search-overlay button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 20px;
  cursor: pointer;
}

/* ============================================
   HERO FIXED (parallax) — foto se va al scrollear
   ============================================ */
.hero-fixed {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-fixed-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,211,0,0.12), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04), transparent 50%),
    linear-gradient(135deg, #0a0a0a 0%, #141414 50%, #000 100%),
    url('../img/hero-main.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
  z-index: -1;
}
.hero-fixed-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.7) 90%, rgba(0,0,0,0.95) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.hero-fixed-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px;
  width: 100%;
}
/* En mobile, el background-attachment: fixed falla en muchos browsers.
   Lo dejamos como background normal en mobile. */
@media (max-width: 768px) {
  .hero-fixed-bg, .hero-fixed-overlay {
    position: absolute;
    height: 100%;
  }
}

/* ============================================
   HERO (legacy slider — usado en algunas páginas)
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slider {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #0a0a0a;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,211,0,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05), transparent 50%);
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.05);
}
.hero-slide.active { opacity: 1; transform: scale(1); transition: opacity 1.2s ease, transform 8s ease; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.85) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.6) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
}
.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 6px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}
.hero-content h1 { margin-bottom: 12px; }
.hero-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.4em;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* === PROMO TASA 0% === */
.promo-tasa {
  background: var(--accent);
  margin: 0;
}
.promo-tasa-link {
  display: block;
  color: #000;
  text-decoration: none;
  transition: var(--t);
}
.promo-tasa-link:hover {
  background: #fff;
  color: #000;
}
.promo-tasa-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  flex-wrap: wrap;
  text-align: center;
}
.promo-tasa-flag {
  background: #000;
  color: var(--accent);
  padding: 4px 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
}
.promo-tasa strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.promo-tasa-arrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-dim);
  max-width: 550px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 30px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: var(--t);
}
.hero-dot.active { background: var(--accent); width: 60px; }

/* ============================================
   CATEGORIES
   ============================================ */
.categories { padding: 80px 0; background: var(--bg-2); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: block;
  border: 1px solid var(--line);
  transition: var(--t);
}
.cat-card:hover { transform: translateY(-8px); border-color: var(--accent); }
.cat-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-3);
  transition: transform 0.6s ease;
}
.cat-card:hover .cat-bg { transform: scale(1.08); }
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.9));
  z-index: 1;
}
.cat-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  z-index: 2;
}
.cat-info span {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
}
.cat-info h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 8px 0 4px;
}
.cat-info small {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
}

/* ============================================
   SHOP
   ============================================ */
.shop { padding: 100px 0; }
.shop-header { text-align: center; margin-bottom: 50px; }
.shop-header h2 { margin-bottom: 16px; }
.shop-header p { color: var(--text-dim); max-width: 600px; margin: 0 auto; }

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.filter-tabs .tab {
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 18px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.15em;
  cursor: pointer;
  position: relative;
  transition: var(--t);
}
.filter-tabs .tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--t);
}
.filter-tabs .tab:hover { color: var(--text); }
.filter-tabs .tab.active { color: var(--text); }
.filter-tabs .tab.active::after { transform: scaleX(1); }

.shop-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius-lg);
}
.sidebar h4 {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 24px 0 12px;
  font-weight: 700;
}
.sidebar h4:first-child { margin-top: 0; }
.filter-list { list-style: none; }
.filter-list button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 8px 0;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: var(--t);
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
}
.filter-list button:hover { color: var(--text); border-color: var(--text-muted); }
.filter-list button.active { color: var(--accent); border-color: var(--accent); font-weight: 600; }

.price-range { padding: 8px 0 16px; }
.price-range input[type=range] {
  width: 100%;
  margin: 8px 0;
  accent-color: var(--accent);
}
.price-values {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 8px;
}

.shop-main { min-width: 0; }
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  color: var(--text-dim);
  font-size: 14px;
}
.shop-toolbar select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-family: 'Inter';
  font-size: 14px;
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--t);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}
.product-img {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-3);
  overflow: hidden;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img img { transform: scale(1.08); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: 2px;
  text-transform: uppercase;
}
.product-badge.spro { background: #000; color: #fff; }
.product-badge.acc { background: var(--text-dim); color: #000; }
.product-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-cat {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.1;
}
.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}
.product-price small {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
  display: block;
}
.product-actions {
  display: flex;
  gap: 8px;
  padding: 0 20px 20px;
}
.product-actions button {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--t);
}
.product-actions button:first-child:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.product-actions button:last-child:hover { border-color: var(--accent); color: var(--accent); }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
}

/* ============================================
   BANNER SECONDARY
   ============================================ */
.banner-secondary {
  min-height: 70vh;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%),
    url('../img/banner-secondary.svg');
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  margin: 60px 0;
  position: relative;
}
.banner-secondary::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 6px;
  background: var(--accent);
}
.banner-content { padding: 80px 24px; max-width: 700px; }
.banner-content .tag {
  display: inline-block;
  color: var(--accent);
  font-family: 'Barlow Condensed';
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 13px;
  margin-bottom: 16px;
}
.banner-content h2 { margin-bottom: 20px; }
.banner-content p { color: var(--text-dim); margin-bottom: 28px; max-width: 500px; }

/* ============================================
   VIDEO
   ============================================ */
.video-section { padding: 80px 0; background: var(--bg-2); }
.video-header { text-align: center; margin-bottom: 40px; }
.video-header .tag {
  color: var(--accent);
  font-family: 'Barlow Condensed';
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 13px;
  display: block;
  margin-bottom: 12px;
}
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ============================================
   USADAS HIGHLIGHT
   ============================================ */
.usadas-highlight { padding: 80px 0; }
.usadas-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.usadas-img {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,211,0,0.1) 0%, transparent 60%),
    url('../img/usadas.svg');
  background-size: cover;
  background-position: center;
  background-color: var(--bg-3);
  border: 1px solid var(--line);
}
.usadas-info .tag {
  color: var(--accent);
  font-family: 'Barlow Condensed';
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 13px;
  display: block;
  margin-bottom: 12px;
}
.usadas-info h2 { margin-bottom: 16px; }
.usadas-info p { color: var(--text-dim); margin-bottom: 24px; }
.usadas-info .btn + .btn { margin-left: 12px; }

/* ============================================
   NEWS PREVIEW
   ============================================ */
.news-preview { padding: 80px 0; background: var(--bg-2); }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.link-arrow {
  color: var(--accent);
  font-family: 'Barlow Condensed';
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 14px;
  text-transform: uppercase;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--t);
  cursor: pointer;
}
.news-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.news-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-3);
}
.news-body { padding: 24px; }
.news-date { font-size: 12px; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.news-title { margin: 10px 0 12px; font-size: 22px; }
.news-excerpt { color: var(--text-dim); font-size: 14px; }

/* ============================================
   CONTACT
   ============================================ */
.contact { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact h2 { margin-bottom: 20px; }
.contact > div > p { color: var(--text-dim); margin-bottom: 30px; }
.contact-list { list-style: none; }
.contact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.contact-list strong { color: var(--accent); margin-right: 8px; font-weight: 600; }

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: var(--radius-lg);
}
.contact-form h3 { margin-bottom: 24px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-family: 'Inter';
  font-size: 14px;
  border-radius: var(--radius);
  outline: none;
  transition: var(--t);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #000;
  border-top: 1px solid var(--line);
  padding: 60px 0 0;
  color: var(--text-dim);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid h5 {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid p { font-size: 14px; margin: 12px 0; line-height: 1.6; }
.footer-logo { margin-bottom: 16px; }
.newsletter {
  display: flex;
  margin-top: 12px;
}
.newsletter input {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
}
.newsletter button {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: var(--t);
}
.newsletter button:hover { background: #fff; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   WHATSAPP FLOATING + POPUP
   ============================================ */
.wpp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  transition: var(--t);
  animation: wppPulse 2s infinite;
}
.wpp-float:hover { transform: scale(1.1); }
@keyframes wppPulse {
  0% { box-shadow: 0 10px 30px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 10px 30px rgba(37,211,102,0.4), 0 0 0 18px rgba(37,211,102,0); }
}

.wpp-popup {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  z-index: 91;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: var(--t);
}
.wpp-popup.active { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.wpp-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.1);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  z-index: 2;
}
.wpp-popup-header {
  background: var(--success);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.wpp-popup-header img {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}
.wpp-popup-header strong { display: block; font-size: 15px; }
.wpp-popup-header span { font-size: 12px; opacity: 0.85; }
.wpp-popup-body {
  background: #ECE5DD url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath fill='%23000' fill-opacity='0.03' d='M0 0h40v40H0z'/%3E%3C/svg%3E");
  padding: 20px;
  min-height: 80px;
}
.wpp-msg {
  background: #fff;
  padding: 12px 14px;
  border-radius: 0 12px 12px 12px;
  font-size: 14px;
  color: #333;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.wpp-popup-btn {
  display: block;
  background: var(--success);
  color: #fff;
  text-align: center;
  padding: 14px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--t);
}
.wpp-popup-btn:hover { background: #1ea756; color: #fff; }

/* ============================================
   CART DRAWER
   ============================================ */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--t);
  display: flex;
  flex-direction: column;
}
.cart-drawer.active { transform: translateX(0); }
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: var(--t);
}
.cart-backdrop.active { opacity: 1; visibility: visible; }
.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 { font-size: 24px; }
.cart-header button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item img {
  width: 70px; height: 70px;
  object-fit: contain;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 6px;
}
.cart-item-info h5 { font-size: 14px; margin-bottom: 4px; font-family: 'Barlow Condensed'; }
.cart-item-info .price { color: var(--accent); font-weight: 600; font-size: 13px; }
.cart-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.cart-qty button {
  width: 22px; height: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  border-radius: 3px;
}
.cart-qty span { font-size: 12px; min-width: 20px; text-align: center; }
.cart-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
}
.cart-remove:hover { color: var(--danger); }
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 16px;
}
.cart-total strong { color: var(--accent); font-size: 24px; font-family: 'Barlow Condensed'; }
.cart-footer .btn { margin-bottom: 8px; }
.cart-footer small {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 8px;
}

/* ============================================
   MODAL (Product detail)
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.active { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
}
.modal-content {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 3;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.product-modal-img {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 400px;
}
.product-modal-img img { max-height: 400px; object-fit: contain; }
.product-modal-info { padding: 40px; }
.product-modal-info .product-cat { margin-bottom: 8px; }
.product-modal-info h2 { font-size: 36px; margin-bottom: 16px; }
.product-modal-info .price-big {
  font-size: 36px;
  color: var(--accent);
  font-family: 'Barlow Condensed';
  font-weight: 700;
  margin-bottom: 8px;
}
.product-modal-info .price-cuotas {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 24px;
}
.product-modal-info .desc {
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 14px;
}
.product-modal-info .desc-prelines {
  white-space: pre-line;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text);
}
.product-modal-info .specs {
  list-style: none;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
}
.product-modal-info .specs li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.product-modal-info .specs li:last-child { border: none; }
.product-modal-info .specs li span:first-child { color: var(--text-muted); }
.product-modal-info .modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.product-modal-info .modal-actions .btn { flex: 1; min-width: 160px; }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 480px;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  z-index: 95;
  box-shadow: var(--shadow);
  transform: translateY(150%);
  transition: transform 0.5s ease;
}
.cookie-banner.active { transform: translateY(0); }
.cookie-banner p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.5;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-prefs label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cookie-prefs h3 { padding: 30px 30px 0; }
.cookie-prefs label { padding: 14px 30px; margin: 0; }
.cookie-prefs .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 20px 30px 30px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .shop-body { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .cat-grid { grid-template-columns: 1fr; }
  .usadas-flex { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .product-modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-2);
    flex-direction: column;
    padding: 80px 30px 30px;
    transition: right var(--t);
    z-index: 99;
    gap: 24px;
  }
  .main-nav.active { right: 0; }
  .mobile-menu-btn { display: inline-flex; }
  .hero { min-height: 70vh; }
  .hero-content { padding: 60px 24px; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .wpp-popup { width: calc(100% - 48px); right: 24px; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; }
  .filter-tabs .tab { white-space: nowrap; padding: 16px 18px; font-size: 14px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* Animations on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
