* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #080808;
  color: #ffffff;
  min-height: 100vh;
}

.home-marquee {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid #cfcfcf;
  background: #f2f2f2;
}

.home-marquee .track {
  display: flex;
  gap: 36px;
  padding: 10px 18px;
  white-space: nowrap;
  animation: marquee-scroll 18s linear infinite;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: #000;
}

.home-navbar-wrapper {
  width: 100%;
  max-width: 1250px;
  margin: 14px auto 8px;
  padding: 0 14px;
  box-sizing: border-box;
}

.home-page {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto 80px;
  padding: 0 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero {
  width: 100%;
}

.hero-banner {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid #1f1f1f;
  background: #000;
  aspect-ratio: 16 / 9;
  min-height: 360px;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.05));
  pointer-events: none;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.hero-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 800;
  color: #d40000;
  letter-spacing: 0.16em;
}

.hero-text.left { left: 6%; }
.hero-text.right { right: 6%; }

.shop-preview {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-header h2 {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.see-more {
  border: 1px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.see-more:hover {
  background: #ffffff;
  color: #050505;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.product-card {
  background: #0b0b0b;
  border: 1px solid #0a0a0a;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #ffffff;
}

.img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(180deg, #0d0d0d, #040404);
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.product-meta .info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-meta .title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-meta .price {
  margin: 0;
  font-size: 0.83rem;
  color: #f5f5f5;
  letter-spacing: 0.02em;
}

.cart-btn {
  width: 28px;
  height: 24px;
  border: none;
  border-radius: 0;
  background: transparent url('../imagenes/carro.png') center/24px no-repeat;
  display: inline-block;
  cursor: pointer;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cart-btn:hover {
  transform: translateY(-2px);
  filter: invert(14%) sepia(100%) saturate(7458%) hue-rotate(-5deg) brightness(98%) contrast(112%);
}

.home-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.gallery-admin {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  background: #0d0d0d;
}

.gallery-admin-trigger {
  margin: 14px 0;
  text-align: right;
}

.gallery-admin-trigger button {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.gallery-admin-trigger button:hover {
  background: #ffffff;
  color: #050505;
}

.gallery-admin h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-admin-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gallery-admin-controls input[type="file"] {
  color: #fff;
  font-size: 0.9rem;
}

.gallery-admin-controls button {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.gallery-admin-controls button:hover {
  background: #fff;
  color: #050505;
}

.gallery-admin-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.gallery-admin-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #2d2d2d;
}

.gallery-admin-item button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #2d2d2d;
  background: #0f0f0f;
  color: #fff;
  cursor: pointer;
}

.gallery-admin-item button:hover {
  background: #ffffff;
  color: #050505;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 12000;
}

.modal-content {
  background: #0f0f0f;
  border: 1px solid #2d2d2d;
  border-radius: 14px;
  padding: 20px;
  width: min(600px, 92vw);
  color: #fff;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h2 {
  margin: 0 0 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-content .close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 24px;
  cursor: pointer;
}

.dropzone {
  border: 1px dashed #ffffff;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
}

.dropzone.dragging {
  background: rgba(255,255,255,0.06);
}

.gallery-admin-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  background: #0f0f0f;
  cursor: grab;
}

.gallery-order-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #2d2d2d;
}

.drag-handle {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: grab;
  margin-left: auto;
}

.drag-handle img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}
.tab-btn {
  padding: 10px 12px;
  border: 1px solid #2d2d2d;
  background: #0f0f0f;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-right: 6px;
  border-radius: 10px;
}

.tab-btn.active {
  border-color: #ffffff;
}

.gallery-tabs {
  margin-bottom: 14px;
}

.gallery-preview {
  margin-top: 10px;
}

.gallery-preview img {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #2d2d2d;
}

.btn-primary-inline {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #050505;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 100%;
  margin-top: 14px;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .home-page {
    padding: 0 10px;
    gap: 28px;
  }

  .hero-banner {
    aspect-ratio: 4 / 5;
    min-height: 420px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
  }

  .home-marquee .track {
    gap: 20px;
    font-size: 0.82rem;
    animation-duration: 22s;
  }

  .hero-text {
    font-size: clamp(2.6rem, 8vw, 3.6rem);
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .home-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 6px;
  }

  .home-gallery .gallery-item {
    min-width: 100%;
    flex: 0 0 100%;
    scroll-snap-align: center;
  }
}

@media (max-width: 520px) {
  .hero-banner {
    border-radius: 18px;
    min-height: 360px;
  }

  .hero-text {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
    letter-spacing: 0.12em;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
  }

  .home-gallery {
    display: flex;
    gap: 8px;
  }

  .home-gallery .gallery-item {
    min-width: 100%;
  }
}
