/*
Theme Name: Astra HEIBERS Dark Edition
Theme URI: https://heibers.online
Description: Sistema de diseno de alto rendimiento inspirado en KTM Motorsport, Spartan Helmets y FP Moto. Modo oscuro total, animaciones y responsive para HEIBERS.
Author: Anderson Rivas & Hermes Agent
Template: astra
Version: 2.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

/* ==========================================================================
   1. SISTEMA DE TOKENS Y PALETA DARK PURA (KTM / SPARTAN / FP MOTO)
   ========================================================================== */
:root {
  --hb-void: #050507;
  --hb-card: #0d0d12;
  --hb-card-hover: #14141c;
  --hb-surface: #111116;
  --hb-orange: #ff5500;
  --hb-orange-hover: #ff6a1a;
  --hb-orange-glow: rgba(255, 85, 0, 0.45);
  --hb-red: #e50914;
  --hb-border: #1f1f2a;
  --hb-border-focus: #3a3a4d;
  --hb-text: #f3f4f6;
  --hb-text-dim: #9ca3af;
  --hb-text-muted: #5e6473;
  --hb-radius-sm: 6px;
  --hb-radius-md: 10px;
  --hb-radius-lg: 16px;
  --hb-trans: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. REINICIO MODO OSCURO TOTAL (CERO FUGAS DE BLANCO)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body, #page, .ast-container, #content, .site-content, .entry-content, .ast-article-single, .woocommerce, .woocommerce-page {
  background-color: var(--hb-void) !important;
  color: var(--hb-text) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .site-title, .entry-title, .product_title {
  font-family: 'Space Grotesk', sans-serif !important;
  color: #ffffff !important;
  text-transform: uppercase;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   3. HEADER & NAVEGACION PROFESIONAL
   ========================================================================== */
.main-header-bar, .ast-primary-header-bar, header, .ast-mobile-header-wrap {
  background-color: rgba(10, 10, 14, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 2px solid var(--hb-orange) !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.8) !important;
}

.main-header-menu a, .ast-header-break-point .main-navigation ul a {
  color: #e5e7eb !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase !important;
  transition: var(--hb-trans);
}

.main-header-menu a:hover, .main-header-menu .current-menu-item > a {
  color: var(--hb-orange) !important;
  text-shadow: 0 0 12px var(--hb-orange-glow);
}

.custom-logo {
  max-height: 46px !important;
  width: auto !important;
  filter: drop-shadow(0 0 8px rgba(255, 85, 0, 0.2));
}

/* ==========================================================================
   4. SECCION HERO PRO (INSPIRADA EN KTM RACING)
   ========================================================================== */
.hb-hero-master {
  position: relative;
  background: radial-gradient(circle at 75% 40%, #201712 0%, var(--hb-void) 70%);
  padding: 80px 24px 60px 24px;
  border-bottom: 2px solid var(--hb-border);
  overflow: hidden;
}

.hb-hero-master::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--hb-orange-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.hb-hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hb-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hb-tag-accent {
  background: var(--hb-orange);
  color: #000000;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hb-tag-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  border: 1px solid var(--hb-border);
  text-transform: uppercase;
}

.hb-hero-title {
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.05;
  margin: 0 0 20px 0;
  color: #ffffff;
}

.hb-text-gradient {
  background: linear-gradient(135deg, var(--hb-orange) 0%, #ff8844 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hb-hero-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--hb-text-dim);
  max-width: 600px;
  margin-bottom: 35px;
}

.hb-hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hb-btn-primary {
  background: linear-gradient(135deg, var(--hb-orange), #d44400) !important;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 16px 36px !important;
  border-radius: var(--hb-radius-sm) !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  box-shadow: 0 8px 24px var(--hb-orange-glow) !important;
  transition: var(--hb-trans) !important;
}

.hb-btn-primary:hover {
  background: var(--hb-orange-hover) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--hb-orange-glow) !important;
}

.hb-btn-secondary {
  background: var(--hb-card) !important;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 16px 30px !important;
  border-radius: var(--hb-radius-sm) !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  border: 1px solid var(--hb-border) !important;
  transition: var(--hb-trans) !important;
}

.hb-btn-secondary:hover {
  background: var(--hb-card-hover) !important;
  border-color: var(--hb-orange) !important;
  transform: translateY(-3px);
}

.hb-hero-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  border-top: 1px solid var(--hb-border);
  padding-top: 25px;
  max-width: 550px;
}

.hb-spec-item strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  color: var(--hb-orange);
}

.hb-spec-item span {
  font-size: 12px;
  color: var(--hb-text-muted);
}

.hb-hero-visual {
  position: relative;
}

.hb-visual-card {
  background: radial-gradient(circle at center, #1b1b26 0%, #0d0d14 70%);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-lg);
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  transition: var(--hb-trans);
}

.hb-visual-card:hover {
  border-color: var(--hb-orange);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 25px var(--hb-orange-glow);
}

.hb-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.9));
  transition: transform 0.5s ease;
}

.hb-visual-card:hover .hb-hero-img {
  transform: scale(1.05) rotate(-1deg);
}

.hb-visual-tag {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 5, 7, 0.9);
  border: 1px solid var(--hb-border);
  border-radius: 30px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--hb-text);
  white-space: nowrap;
}

.hb-pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   5. CINTA DE CONFIANZA Y PASARELAS (FP MOTO STYLE)
   ========================================================================== */
.hb-trust-ribbon {
  background: #09090d;
  border-bottom: 1px solid var(--hb-border);
  padding: 24px 20px;
}

.hb-trust-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.hb-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hb-trust-icon {
  font-size: 28px;
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--hb-radius-sm);
}

.hb-trust-info strong {
  display: block;
  font-size: 13px;
  font-family: 'Space Grotesk', sans-serif;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.hb-trust-info span {
  font-size: 12px;
  color: var(--hb-text-muted);
}

/* ==========================================================================
   6. SECCIONES Y SELECTORES DE CATEGORIA (KTM MODELS)
   ========================================================================== */
.hb-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 20px;
}

.hb-section-header {
  margin-bottom: 40px;
}

.hb-section-header h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  margin: 10px 0 0 0;
}

.hb-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 2px solid var(--hb-border);
  padding-bottom: 15px;
}

.hb-view-all {
  color: var(--hb-orange);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: var(--hb-trans);
}

.hb-view-all:hover {
  color: #ffffff;
  padding-right: 5px;
}

.hb-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.hb-cat-card {
  position: relative;
  height: 380px;
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-md);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px 25px;
  transition: var(--hb-trans);
}

.hb-cat-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.hb-cat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(to top, #060608 20%, transparent 100%);
  z-index: 1;
}

.hb-cat-content {
  position: relative;
  z-index: 2;
}

.hb-cat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: rgba(255, 85, 0, 0.4);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.hb-cat-content h3 {
  font-size: 19px;
  margin: 0 0 8px 0;
  color: #ffffff;
}

.hb-cat-content p {
  color: var(--hb-text-dim);
  font-size: 13px;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.hb-cat-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--hb-orange);
  letter-spacing: 0.06em;
}

.hb-cat-card:hover {
  border-color: var(--hb-orange);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 25px var(--hb-orange-glow);
}

.hb-cat-card:hover .hb-cat-bg {
  transform: scale(1.08);
  opacity: 0.55;
}

/* ==========================================================================
   7. CATALOGO Y PRODUCT CARDS EN MODO OSCURO PURO
   ========================================================================== */
.woocommerce ul.products, .woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  background: var(--hb-card) !important;
  border: 1px solid var(--hb-border) !important;
  border-radius: var(--hb-radius-md) !important;
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: var(--hb-trans) !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  border-color: var(--hb-orange) !important;
  background: var(--hb-card-hover) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 20px var(--hb-orange-glow) !important;
}

.woocommerce ul.products li.product img {
  border-radius: var(--hb-radius-sm) !important;
  background: #08080c !important;
  object-fit: contain !important;
  height: 250px !important;
  width: 100% !important;
  transition: transform 0.4s ease !important;
  padding: 10px;
}

.woocommerce ul.products li.product:hover img {
  transform: scale(1.04);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 14px 0 8px 0 !important;
  line-height: 1.35 !important;
  min-height: 44px;
}

.woocommerce ul.products li.product .price {
  color: var(--hb-orange) !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 800 !important;
  font-size: 21px !important;
  margin-bottom: 16px !important;
  display: block !important;
}

/* Botones de tienda */
.button, 
.woocommerce #respond input#submit, 
.woocommerce a.button, 
.woocommerce button.button, 
.woocommerce input.button {
  background: linear-gradient(135deg, var(--hb-orange), #c73c00) !important;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 13px !important;
  border-radius: var(--hb-radius-sm) !important;
  border: none !important;
  padding: 12px 20px !important;
  text-align: center !important;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.3) !important;
  transition: var(--hb-trans) !important;
}

.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--hb-orange-hover) !important;
  box-shadow: 0 6px 22px var(--hb-orange-glow) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   8. PROPUESTA DE VALOR TECNICA (SPARTAN STYLE)
   ========================================================================== */
.hb-tech-banner {
  background: var(--hb-surface);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-lg);
  padding: 50px 40px;
}

.hb-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.hb-tech-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--hb-orange);
  line-height: 1;
  display: block;
  margin-bottom: 15px;
}

.hb-tech-box h4 {
  font-size: 17px;
  margin: 0 0 12px 0;
  color: #ffffff;
}

.hb-tech-box p {
  color: var(--hb-text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   9. FOOTER PROFESIONAL DE HEIBERS
   ========================================================================== */
.hb-footer {
  background-color: #060608;
  border-top: 2px solid var(--hb-orange);
  padding: 70px 20px 30px 20px;
  margin-top: 80px;
  color: var(--hb-text-dim);
  font-size: 14px;
}

.hb-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.hb-footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.hb-footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--hb-orange);
}

.hb-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hb-footer-col ul li {
  margin-bottom: 12px;
}

.hb-footer-col ul li a {
  color: var(--hb-text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hb-footer-col ul li a:hover {
  color: var(--hb-orange);
  padding-left: 5px;
}

.hb-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--hb-border);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: var(--hb-text-muted);
}

/* ==========================================================================
   10. RESPONSIVE Y ESCALADO MOVIL AUTOMATICO
   ========================================================================== */
@media (max-width: 900px) {
  .hb-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hb-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hb-hero-actions {
    justify-content: center;
  }
  .hb-hero-specs {
    margin: 0 auto;
  }
  .hb-hero-visual {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products, .woocommerce-page ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    padding: 12px !important;
  }
  .woocommerce ul.products li.product img {
    height: 170px !important;
  }
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    min-height: auto !important;
  }
  .woocommerce ul.products li.product .price {
    font-size: 16px !important;
  }
  .button, .woocommerce a.button {
    padding: 9px 12px !important;
    font-size: 11px !important;
  }
  .hb-tech-banner {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products, .woocommerce-page ul.products {
    grid-template-columns: 1fr !important;
  }
  .hb-hero-title {
    font-size: 34px;
  }
  .hb-hero-actions a {
    width: 100%;
    text-align: center;
  }
}
