/* ─────────────────────────────── */
/* 🌙 BASE GENERAL */
/* ─────────────────────────────── */
:root {
  --color-primario: #1c1c1c;
  --color-secundario: #2f2f2f;
  --color-texto: #fff;
  --color-acento: #ff7400;
  --fuente-base: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: var(--fuente-base);
  background-color: var(--color-secundario);
  color: var(--color-texto);
  min-height: 100vh;
}

/* ─────────────────────────────── */
/* 🔹 HEADER */
/* ─────────────────────────────── */
.header {
  background-color: var(--color-primario);
  width: 100%;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.marcaDiv h1 {
  color: var(--color-acento);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  cursor: pointer;
}

.stock-linea {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.dot-stock {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9e9e9e;
  flex-shrink: 0;
}


.search-container {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  flex: 1;
  max-width: 600px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.search-container span {
  color: var(--color-secundario);
  padding: 8px;
}

.search-container input {
  border: none;
  outline: none;
  padding: 10px;
  width: 100%;
  font-size: 1rem;
  color: #222;
}

.icons {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--color-acento);
  font-size: 1.8rem;
  cursor: pointer;
}

.icons span:hover {
  opacity: 0.8;
}

/* Nav bar */
.navbar {
  background-color: var(--color-primario);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.navbar ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 10px 0;
}

.navbar li {
  margin: 5px 20px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.navbar a:hover {
  opacity: 0.8;
}

/* ─────────────────────────────── */
/* 🔹 MAIN CONTENT */
/* ─────────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: visible;
  padding-bottom: 40px;
}

/* 🖼️ BANNERS FULL WIDTH - FIX FOOTER */
.banners {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-primario);

}

.banners-grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.banners-grid::-webkit-scrollbar {
  display: none;
}

.grid-container {
  position: relative;
  /* referencia para el overlay */
  width: 100%;
  height: 360px;
  overflow: hidden;
  flex: 0 0 100%;
  cursor: pointer;
}

.grid-container img {
  position: absolute;
  /* clave */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.frente {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(45, 45, 48, 0.7);
  z-index: 2;
  /* sobre la imagen */
}

.frente h1 {
  font-size: 2rem;
  color: #fff;
}


/* Flechas banners */
.banners .scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s;
}

.banners .scroll-arrow:hover {
  background: rgba(255, 116, 0, 0.85);
  transform: translateY(-50%) scale(1.05);
}

.banners .scroll-arrow.left {
  left: 10px;
}

.banners .scroll-arrow.right {
  right: 10px;
}


.grid-container img {
  transition: transform 0.6s ease;
  filter: brightness(0.65);
}

.grid-container:hover img {
  transform: scale(1.05);
  filter: brightness(0.55);
}

.frente {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 35px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

.frente h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
  animation: fadeIn 0.7s ease forwards;
}

.frente h2 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-top: 8px;
  opacity: 0.9;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Si querés versión responsive */
@media(max-width: 768px) {
  .grid-container img {
    height: 250px;
  }

  .frente h1 {
    font-size: 1.5rem;
  }

  .frente h2 {
    font-size: 1rem;
  }
}



/* ─────────────────────────────── */
/* 🛍️ PRODUCTOS */
/* ─────────────────────────────── */
.novedades {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 30px;
}

.novedadesTitulo {
  font-size: 1.8rem;
  margin: 0 30px 0px;
  color: var(--color-texto);
  border-left: 5px solid var(--color-acento);
  padding-left: 10px;
  font-weight: 700;
}

.productos-grid {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 30px 20px;
  padding-top: 15px;
}

.productos-grid::-webkit-scrollbar {
  display: none;
}

.producto {
  flex: 0 0 auto;
  width: 250px !important;
  background: #fff;
  color: #1c1c1c;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  cursor: pointer;
}

.producto:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.producto img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f9f9f9;

}

.detalle {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  gap: 6px;
}

.detalle h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
  margin: 2px 0;
  min-height: 40px;
}

.detalle .marca {
  font-size: 0.85rem;
  color: #666;
}

.detalle .badge {
  align-self: flex-start;
  background: var(--color-acento);
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detalle .precio {
  margin-top: auto;
  font-weight: 700;
  color: var(--color-acento);
  font-size: 1.25rem;
  text-align: right;
}

/* Flechas productos */
.novedades .scroll-arrow {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
}

.novedades .scroll-arrow:hover {
  background: rgba(255, 116, 0, 0.85);
  transform: translateY(-50%) scale(1.05);
}

.novedades .scroll-arrow.left {
  left: 10px;
}

.novedades .scroll-arrow.right {
  right: 10px;
}

/* ─────────────────────────────── */
/* 🔹 FOOTER */
/* ─────────────────────────────── */
.footer {
  margin-top: auto;
  text-align: center;
  padding: 20px 0;
  background-color: var(--color-secundario);
  border-top: 2px solid #444;
}

.footer img {
  width: 60px;
  display: block;
  margin: 0 auto 5px;
}

.footer p {
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #ccc;
}

/* ─────────────────────────────── */
/* 📱 RESPONSIVE */
/* ─────────────────────────────── */
@media (max-width: 1024px) {
  .banners-grid img {
    height: 300px;
  }

  .producto {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
  }

  .search-container {
    max-width: 100%;
    margin: 10px 0;
  }

  .icons {
    justify-content: center;
    width: 100%;
  }

  .producto {
    width: 220px;
  }

  .banners-grid img {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .producto {
    width: 190px;
  }

  .producto img {
    height: 150px;
  }

  .detalle {
    padding: 10px;
  }

  .detalle h3 {
    font-size: 0.9rem;
  }

  .detalle .precio {
    font-size: 1.1rem;
  }

  .banners-grid img {
    height: 200px;
  }

  .scroll-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
}