/* ═══════════════════════════════════════════════════════
   La Pikadera.COM — Premium E-Commerce Stylesheet
   Luxury Optimized Design System (v2.1 - Reparado)
   ═══════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --color-white:       #FFFFFF;
  --color-bg:          #FBFBFB;
  --color-orange:      #E8510A;
  --color-orange-deep: #C4420A;
  --color-orange-glow: rgba(232, 81, 10, 0.12);
  --color-orange-glass: rgba(232, 81, 10, 0.05);
  --color-orange-soft: rgba(232, 81, 10, 0.08);

  --color-charcoal:    #121417;
  --color-charcoal-80: #1E2126;
  --color-charcoal-60: #3D4450;
  --color-gray-100:    #F5F5F3;
  --color-gray-200:    #EEEEEE;
  --color-gray-300:    #DDDDDD;
  --color-gray-500:    #828282;
  --color-whatsapp:    #25D366;
  --color-whatsapp-deep: #1EBE58;

  --font-primary: 'Montserrat', sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 50px;
  --radius-full: 999px;

  /* Premium Layered Shadows */
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.04);
  --shadow-mb:      0 8px 30px rgba(0,0,0,0.05);
  --shadow-card:    0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0,0,0,0.05);
  --shadow-hover:   0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0,0,0,0.1);
  --shadow-btn:     0 4px 14px 0 rgba(232, 81, 10, 0.39);
  --shadow-fab:     0 12px 32px -8px rgba(37, 211, 102, 0.5);
  --shadow-premium: 0 20px 40px -15px rgba(0,0,0,0.2);

  --transition-premium: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  --transition-elastic: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-fast:    0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1320px;
  --nav-height: 80px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-primary);
  background: var(--color-white);
  color: var(--color-charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  width: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLL ANIMATIONS ── */
[data-anim] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-anim].anim-in { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════
   TOP NAV BAR & MOBILE NAV
════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition-premium);
}
.topbar.scrolled { background: rgba(255,255,255,0.95); height: 72px; box-shadow: var(--shadow-sm); }
.topbar__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem; height: 100%; display: flex; align-items: center; gap: 2.5rem; }

.topbar__logo { display: flex; align-items: baseline; font-weight: 900; font-size: 1.5rem; letter-spacing: -1.2px; }
.logo-pike { color: var(--color-charcoal); }
.logo-accent { color: var(--color-orange); }
.logo-dot { color: var(--color-orange); font-weight: 900; font-size: 1.1rem; opacity: 0.6; margin-left: 1px; }

.topbar__nav { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.nav-link { padding: 0.6rem 1.1rem; font-size: 0.9rem; font-weight: 600; color: var(--color-charcoal-60); border-radius: var(--radius-sm); }
.nav-link:hover { color: var(--color-orange); background: var(--color-orange-soft); }

.hamburger { display: none; flex-direction: column; gap: 6px; padding: 10px; z-index: 1100; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--color-charcoal); border-radius: 4px; transition: var(--transition-fast); }

.mobile-nav {
  position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
  background: white; z-index: 1050; padding: 6rem 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.mobile-nav.open { right: 0; }
.mobile-nav__link { font-size: 1.2rem; font-weight: 700; color: var(--color-charcoal); border-bottom: 1px solid var(--color-gray-100); padding-bottom: 0.8rem; }

/* ════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════ */
.hero { position: relative; min-height: 95vh; display: flex; align-items: center; overflow: hidden; padding-top: var(--nav-height); background: #0D0F12; }
.hero__bg { position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(232, 81, 10, 0.15) 0%, transparent 50%), linear-gradient(145deg, #0D0F12 0%, #1A1D23 100%); z-index: 0; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(13, 15, 18, 0.8) 100%); z-index: 1; }
.hero__content { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 0 2.5rem; width: 100%; }

.hero__badge { display: inline-block; padding: 0.5rem 1.2rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-full); color: var(--color-white); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 2rem; }
.hero__headline { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; color: var(--color-white); line-height: 1.05; letter-spacing: -2px; margin-bottom: 2rem; max-width: 850px; }
.hero__highlight { color: var(--color-orange); }
.hero__sub { font-size: 1.2rem; font-weight: 700; color: var(--color-orange); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 1rem; }
.hero__desc { font-size: 1.15rem; color: rgba(255,255,255,0.5); max-width: 600px; line-height: 1.8; margin-bottom: 3rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 4rem; }

.hero__stats { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 1rem; }
.hero__stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-number { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; color: white; letter-spacing: -1px; }
.stat-label { font-size: 0.7rem; color: rgba(255,255,255,0.4); text-transform: uppercase; font-weight: 700; letter-spacing: 0.1em; }
.hero__divider { width: 1px; height: 30px; background: rgba(255,255,255,0.1); }

.hero__scroll-hint { position: absolute; bottom: 3rem; right: 2.5rem; color: white; display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; z-index: 2; opacity: 0.6; transition: var(--transition-fast); }
.hero__scroll-hint:hover { opacity: 1; color: var(--color-orange); }
.scroll-arrow { width: 40px; height: 2px; background: var(--color-orange); position: relative; }
.scroll-arrow::after { content:''; position: absolute; right: 0; top: -4px; width: 10px; height: 10px; border-right: 2px solid var(--color-orange); border-bottom: 2px solid var(--color-orange); transform: rotate(-45deg); }

/* ════════════════════════════════════════
   TRUST BAR & SECTIONS
════════════════════════════════════════ */
.trustbar { background: var(--color-white); padding: 3rem 0; border-bottom: 1px solid var(--color-gray-200); }
.trustbar__inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; padding: 0 2rem; }
.trust-item { display: flex; align-items: center; gap: 1.2rem; }
.trust-icon-box { width: 48px; height: 48px; background: var(--color-orange-soft); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-orange); }
.trust-item svg { width: 24px; height: 24px; stroke: currentColor; }
.trust-text { display: flex; flex-direction: column; }
.trust-title { font-size: 0.9rem; font-weight: 800; color: var(--color-charcoal); }
.trust-sub { font-size: 0.75rem; color: var(--color-gray-500); font-weight: 500; }

.section-header { text-align: center; max-width: 800px; margin: 0 auto 5rem; padding: 0 2rem; }
.section-tag { display: inline-block; padding: 0.4rem 1.2rem; background: var(--color-orange-soft); color: var(--color-orange); font-weight: 800; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; border-radius: var(--radius-full); margin-bottom: 1.2rem; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--color-charcoal); line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 1.5rem; }
.section-sub { font-size: 1.1rem; color: var(--color-gray-500); max-width: 600px; margin: 0 auto; }
.highlight { color: var(--color-orange); }

/* ════════════════════════════════════════
   BUTTONS (REDESIGN 2.1)
════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-primary); font-weight: 700; border-radius: var(--radius-pill);
  transition: all var(--transition-elastic); cursor: pointer; border: none; white-space: nowrap;
}

.btn--lg { padding: 1.2rem 2.8rem; font-size: 1rem; letter-spacing: 0.02em; }
.btn--md { padding: 0.8rem 1.8rem; font-size: 0.9rem; }
.btn--sm { padding: 0.5rem 1.2rem; font-size: 0.8rem; }
.btn--card { padding: 0.65rem 0.8rem; font-size: 0.8rem; flex: 1; }

.btn--primary { background: var(--color-orange); color: white; box-shadow: var(--shadow-btn); }
.btn--primary:hover { transform: translateY(-4px) scale(1.02); background: var(--color-orange-deep); box-shadow: 0 10px 25px rgba(232, 81, 10, 0.4); }

.btn--secondary { background: #f1f3f5; color: var(--color-charcoal); border: 1px solid rgba(0,0,0,0.05); }
.btn--secondary:hover { background: #e9ecef; transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-mb); }

.btn--whatsapp { background: var(--color-whatsapp); color: white; box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2); }
.btn--whatsapp:hover { background: var(--color-whatsapp-deep); transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); }

.btn--white { background: white; color: var(--color-charcoal); box-shadow: var(--shadow-sm); }
.btn--white:hover { transform: translateY(-4px); box-shadow: var(--shadow-mb); }

.btn--outline { border: 2px solid rgba(255,255,255,0.2); color: white; background: transparent; }
.btn--outline:hover { background: rgba(255,255,255,0.05); border-color: white; transform: translateY(-4px); }

.btn--outline-white { border: 2px solid white; color: white; background: transparent; }
.btn--outline-white:hover { background: white; color: var(--color-charcoal); transform: translateY(-4px); }

.whatsapp-icon { width: 20px; height: 20px; fill: currentColor; }

/* ════════════════════════════════════════
   CARDS & CATALOG
════════════════════════════════════════ */
.catalog { padding: 8rem 2rem; background: #F8F9FA; }
.carousel-wrap { max-width: var(--max-width); margin: 0 auto; position: relative; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

.product-card { background: white; border-radius: var(--radius-lg); border: 1px solid rgba(0,0,0,0.04); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition-premium); }
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.card__image-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--color-gray-100); }
.card__image { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-premium); }
.product-card:hover .card__image { transform: scale(1.08); }

.card__badge { position: absolute; top: 1rem; left: 1rem; padding: 0.35rem 0.8rem; border-radius: var(--radius-full); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; color: white; letter-spacing: 0.05em; z-index: 2; }
.card__badge--hot { background: var(--color-orange); }
.card__badge--new { background: var(--color-charcoal); }
.card__badge--popular { background: #7C3AED; }
.card__badge--deal { background: #059669; }

.card__overlay { position: absolute; inset: 0; background: rgba(18, 20, 23, 0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; z-index: 1; }
.product-card:hover .card__overlay { opacity: 1; }
.overlay-btn { padding: 0.7rem 1.4rem; background: white; color: var(--color-charcoal); border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 800; transform: translateY(10px); transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.product-card:hover .overlay-btn { transform: translateY(0); }

.card__body { padding: 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; text-align: left; }
.card__category { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-gray-500); }
.card__title { font-size: 1.15rem; font-weight: 800; color: var(--color-charcoal); line-height: 1.3; }
.card__desc { font-size: 0.9rem; color: var(--color-gray-500); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__footer { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--color-gray-100); display: flex; flex-direction: column; gap: 0.7rem; }
.card__footer .card__price { font-size: 1.3rem; font-weight: 900; color: var(--color-orange); }
.card__footer .card__btns { display: flex; gap: 0.5rem; }

/* ════════════════════════════════════════
   HOW IT WORKS & STEPS
════════════════════════════════════════ */
.how-it-works { padding: 8rem 2.5rem; background: var(--color-charcoal); color: white; }
.section-header--light .section-tag--light { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.section-title--light { color: white; }

.steps-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; }
.step { position: relative; padding: 2.5rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); transition: var(--transition-premium); overflow: hidden; }
.step:hover { background: rgba(255,255,255,0.06); transform: translateY(-8px); border-color: var(--color-orange); }
.step__number { position: absolute; top: 1.5rem; right: 2rem; font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.03); line-height: 1; transition: var(--transition-premium); }
.step:hover .step__number { color: var(--color-orange); opacity: 0.1; transform: scale(1.2); }
.step__icon { width: 56px; height: 56px; background: var(--color-orange-soft); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--color-orange); margin-bottom: 2rem; }
.step__icon svg { width: 28px; height: 28px; stroke-width: 2; }
.step__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; color: white; }
.step__desc { font-size: 0.95rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ════════════════════════════════════════
   CTA BANNER & FOOTER
════════════════════════════════════════ */
.cta-banner { position: relative; padding: 8rem 2.5rem; background: #0D0F12; color: white; text-align: center; overflow: hidden; }
.cta-banner__bg { position: absolute; inset: 0; background: radial-gradient(circle at 10% 90%, rgba(232, 81, 10, 0.2), transparent 40%); opacity: 0.6; }
.cta-banner__content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.cta-banner__title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: 1.2rem; letter-spacing: -1.5px; }
.cta-banner__sub { font-size: 1.2rem; color: rgba(255,255,255,0.6); margin-bottom: 3rem; }
.cta-banner__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }

.footer { background: #08090A; padding: 6rem 2.5rem 2rem; color: white; }
.footer__inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 4rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer__logo { font-size: 1.6rem; font-weight: 900; margin-bottom: 1.2rem; display: block; }
.footer__tagline { font-size: 0.95rem; color: rgba(255,255,255,0.4); margin-bottom: 2rem; }
.footer__social { display: flex; gap: 1rem; }
.social-link { width: 44px; height: 44px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition-fast); }
.social-link:hover { background: var(--color-orange); transform: translateY(-5px); }
.social-link svg { width: 22px; height: 22px; fill: white; }

.footer__col-title { font-size: 0.75rem; text-transform: uppercase; font-weight: 800; letter-spacing: 0.15em; color: rgba(255,255,255,0.3); margin-bottom: 1.8rem; }
.footer__link { display: block; padding: 0.5rem 0; font-size: 0.95rem; color: rgba(255,255,255,0.5); }
.footer__link:hover { color: var(--color-orange); transform: translateX(5px); }
.footer__contact-item { display: block; margin-bottom: 1rem; font-size: 0.95rem; color: rgba(255,255,255,0.5); }

.footer__bottom { max-width: var(--max-width); margin: 2rem auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.2); }

.fab-whatsapp { position: fixed; bottom: 2.5rem; right: 2.5rem; z-index: 1000; width: 64px; height: 64px; background: var(--color-whatsapp); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-fab); transition: var(--transition-premium); }
.fab-whatsapp:hover { transform: scale(1.1) rotate(5deg); }
.fab-whatsapp svg { width: 34px; height: 34px; fill: white; }

/* ════════════════════════════════════════
   END OF BASE STYLESHEET
════════════════════════════════════════ */

/* ════════════════════════════════════════
   FILTROS DE CATÁLOGO + SUBCATEGORÍAS
════════════════════════════════════════ */
.filtros-catalogo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  max-width: var(--max-width);
}

/* Segunda fila — subcategorías */
.filtros-sub {
  margin-top: -1rem;
  margin-bottom: 2rem;
  padding: 0.8rem 1rem;
  background: var(--color-orange-glass);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-orange-glow);
}

.filtro-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-charcoal-60);
  background: white;
  border: 1.5px solid var(--color-gray-200);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filtro-btn:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
  background: var(--color-orange-soft);
}

.filtro-btn--active {
  background: var(--color-orange);
  color: white;
  border-color: var(--color-orange);
  box-shadow: 0 4px 14px rgba(232, 81, 10, 0.3);
}

/* Subcategoría en tarjeta de producto */
.card__subcategory {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-orange);
  background: var(--color-orange-soft);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  vertical-align: middle;
  letter-spacing: 0;
  text-transform: none;
}

/* Vista toggle */
.vista-toggle-wrap {
  display: flex;
  justify-content: flex-end;
  max-width: var(--max-width);
  margin: 0 auto 1rem;
  padding: 0 1rem;
}

.vista-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-charcoal-60);
  background: white;
  border: 1.5px solid var(--color-gray-200);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.vista-toggle:hover,
.vista-toggle.activo { color: var(--color-orange); border-color: var(--color-orange); background: var(--color-orange-soft); }

/* Vista lista */
.catalog-grid--list {
  grid-template-columns: 1fr;
}

.catalog-grid--list .product-card {
  flex-direction: row;
  max-height: 160px;
}

.catalog-grid--list .card__image-wrap {
  width: 160px;
  min-width: 160px;
  aspect-ratio: auto;
}

.catalog-grid--list .card__body {
  padding: 1rem 1.3rem;
}
