/* ============================================================
   717tech — Homepage Styles
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */

.home-page {
  background-color: #080808;
  background-image: none;
}
.home-page .hero {
  background-color: #080808;
  background-image:
    linear-gradient(rgba(4,7,8,0.32), rgba(4,7,8,0.46)),
    url('../assets/fondohomepage.jpg');
  background-size: cover;
  background-position: center top;
}

/* Brick texture background */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

  /* Dark brick pattern */
  background-color: #111;
  background-image:
    /* Horizontal mortar lines */
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 34px,
      rgba(0, 0, 0, 0.55) 34px,
      rgba(0, 0, 0, 0.55) 37px
    ),
    /* Vertical joints - offset rows */
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 74px,
      rgba(0, 0, 0, 0.3) 74px,
      rgba(0, 0, 0, 0.3) 77px
    );
}

/* Green glow from the right (neon ambiance) */
.hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(61,255,110,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

/* --- Left: Text content --- */
.hero-text { display: flex; flex-direction: column; gap: 28px; }

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
}

.hero-headline {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--text);
}
.hero-headline .green {
  color: var(--green);
  font-style: normal;
}

.hero-body {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.7;
  max-width: 400px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-badges span {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-badges span::before {
  content: '•';
  color: var(--green);
  font-size: 1rem;
}

/* --- Right: Neon 717 box --- */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-28px);
}

.neon-frame {
  width: 340px;
  height: 280px;
  border: 2.5px solid var(--green);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(0,0,0,0.3);

  /* Multi-layer neon glow */
  box-shadow:
    0 0 10px  var(--green-glow),
    0 0 30px  rgba(0,255,87,0.5),
    0 0 70px  rgba(0,255,87,0.25),
    0 0 120px rgba(0,255,87,0.1),
    inset 0 0 40px rgba(0,255,87,0.06);

  animation: pulseFrame 3s ease-in-out infinite;
}

@keyframes pulseFrame {
  0%, 100% {
    box-shadow:
      0 0 10px  var(--green-glow),
      0 0 30px  rgba(0,255,87,0.5),
      0 0 70px  rgba(0,255,87,0.25),
      0 0 120px rgba(0,255,87,0.1),
      inset 0 0 40px rgba(0,255,87,0.06);
  }
  50% {
    box-shadow:
      0 0 15px  var(--green-glow),
      0 0 45px  rgba(0,255,87,0.65),
      0 0 90px  rgba(0,255,87,0.35),
      0 0 160px rgba(0,255,87,0.15),
      inset 0 0 60px rgba(0,255,87,0.1);
  }
}

.neon-digits {
  font-size: 7rem;
  font-weight: 900;
  letter-spacing: -4px;
  color: var(--green);
  text-shadow:
    0 0 10px var(--green-glow),
    0 0 30px rgba(0,255,87,0.8),
    0 0 60px rgba(0,255,87,0.5),
    0 0 100px rgba(0,255,87,0.3);
  animation: pulseText 3s ease-in-out infinite;
  user-select: none;
}

@keyframes pulseText {
  0%, 100% {
    text-shadow:
      0 0 10px var(--green-glow),
      0 0 30px rgba(0,255,87,0.8),
      0 0 60px rgba(0,255,87,0.5),
      0 0 100px rgba(0,255,87,0.3);
  }
  50% {
    text-shadow:
      0 0 15px var(--green-glow),
      0 0 50px rgba(0,255,87,1),
      0 0 90px rgba(0,255,87,0.7),
      0 0 140px rgba(0,255,87,0.4);
  }
}

/* ============================================================
   FEATURES BAR
   ============================================================ */
.features-bar {
  background: #0b0b0b;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.features-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.feature-item svg { color: var(--green); flex-shrink: 0; }

/* ============================================================
   PRODUCTS PREVIEW
   ============================================================ */
.products-preview {
  padding: 80px 24px;
}
.products-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-header .view-all {
  font-size: 0.875rem;
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.section-header .view-all:hover { gap: 10px; }

/* Category filter */
.cat-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cat-btn {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition);
}
.cat-btn:hover, .cat-btn.active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-dim);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(61,255,110,0.12);
}
.product-img {
  aspect-ratio: 1 / 1;
  background: #1d1d1d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; box-sizing: border-box; padding: 14px; object-fit: contain; }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--green);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
}
.product-body { padding: 16px; }
.product-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 6px;
}
.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.product-stock-status {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
}
.product-stock-status.out-of-stock { color: #ff6363; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
}
.add-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--green);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}
.add-btn:hover { background: #fff; transform: scale(1.1); }
.add-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  background: #555;
}
.add-btn:disabled:hover { background: #555; transform: none; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  margin: 0 24px 80px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f1f12 0%, #0a1a0e 100%);
  border: 1.5px solid rgba(61,255,110,0.3);
  padding: 56px 48px;
  max-width: calc(1280px - 48px);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  left: -80px; top: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(61,255,110,0.15), transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 8px;
}
.cta-content h2 span { color: var(--green); }
.cta-content p { color: var(--text-muted); font-size: 0.95rem; }
.cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ============================================================
   RESPONSIVE — Homepage
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding: 60px 24px;
  }
  .hero-body { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .neon-frame { width: 260px; height: 220px; }
  .neon-digits { font-size: 5.5rem; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 24px; }
  .cta-actions { justify-content: center; }
  .features-inner { gap: 24px; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 2.8rem; }
  .neon-frame { width: 220px; height: 180px; }
  .neon-digits { font-size: 4.5rem; }
  .product-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Homepage hero logo image */
.neon-frame {
  width: min(100%, 620px);
  height: 410px;
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.hero-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transform: scale(1.04);
  filter: drop-shadow(0 0 7px var(--green)) drop-shadow(0 0 20px rgba(0,255,87,0.85)) drop-shadow(0 0 48px rgba(0,255,87,0.38));
  animation: heroLogoFlicker 3.6s steps(1, end) infinite;
}
@keyframes heroLogoFlicker {
  0%, 8%, 10%, 48%, 51%, 74%, 76%, 100% { opacity: 1; filter: drop-shadow(0 0 7px var(--green)) drop-shadow(0 0 20px rgba(0,255,87,0.85)) drop-shadow(0 0 48px rgba(0,255,87,0.38)); }
  9%, 49%, 75% { opacity: 0.35; filter: drop-shadow(0 0 3px var(--green)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-image { animation: none; }
}

@media (max-width: 900px) {
  .hero-visual { transform: translateY(-18px); }
  .neon-frame { width: min(100%, 500px); height: 340px; }
  .hero-logo-image { width: 100%; height: 100%; transform: scale(1.03); }
}

@media (max-width: 600px) {
  .hero-visual { transform: translateY(-8px); }
  .neon-frame { width: min(100%, 380px); height: 280px; }
  .hero-logo-image { width: 100%; height: 100%; transform: scale(1.02); }
}

/* ============================================================
   HOMEPAGE — Category and featured showcase
   ============================================================ */
.category-showcase,
.featured-products {
  padding: 68px 24px 0;
}
.featured-products { padding-top: 70px; padding-bottom: 68px; }
.showcase-inner { max-width: 810px; margin: 0 auto; }
.showcase-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.showcase-heading .section-eyebrow { margin-bottom: 9px; }
.featured-label {
  margin: 0;
  animation: softFeaturedBlink 4.8s ease-in-out infinite;
}
@keyframes softFeaturedBlink {
  0%, 100% { opacity: 1; text-shadow: 0 0 4px rgba(61,255,110,0.18); }
  50% { opacity: 0.72; text-shadow: 0 0 9px rgba(61,255,110,0.4); }
}
.showcase-heading .view-all {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a9a9a9;
  font-size: 0.82rem;
  transition: color var(--transition), gap var(--transition);
}
.showcase-heading .view-all:hover { color: var(--green); gap: 11px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.category-card {
  min-height: 106px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background: #151515;
  border: 1px solid #242424;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.category-card:hover {
  background: #1a1a1a;
  border-color: var(--green);
  transform: translateY(-2px);
}
.category-icon {
  color: #a5a5a5;
  line-height: 1;
}
.category-icon svg { display: block; width: 22px; height: 22px; }
.category-card:hover .category-icon { color: var(--green); }
.category-card strong { font-size: 0.78rem; font-weight: 600; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.featured-grid .product-card { border-radius: 0; }
.featured-grid .product-img { aspect-ratio: 1 / 1; }
.featured-grid .product-body { padding: 13px 14px 16px; }
.featured-grid .product-name { font-size: 0.88rem; margin-bottom: 10px; }
.featured-grid .product-price { font-size: 0.98rem; }
.featured-grid .add-btn { width: 28px; height: 28px; font-size: 1rem; }
.price-stack { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-old-price { color: #737373; font-size: 0.68rem; }
.product-img img { transition: transform 0.35s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }
.image-fallback { color: #888; font-size: 3rem; }
.brands-strip {
  padding: 34px 24px 40px;
  text-align: center;
  background: #0b0b0b;
  border-top: 1px solid var(--border);
}
.brands-strip .section-eyebrow { margin-bottom: 18px; font-size: 0.62rem; color: #8b8b8b; }
.brands-list {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 25px;
  color: #777;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .category-showcase, .featured-products { padding-left: 16px; padding-right: 16px; }
  .showcase-heading { align-items: flex-start; flex-direction: column; }
  .showcase-heading .view-all { align-self: flex-end; margin-top: -38px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: 1fr; }
  .brands-strip { padding-left: 16px; padding-right: 16px; }
}
