/* ═══════════════════════════════════════════════════════════════════════════
   Joyería 24 — Estilos de página principal
   Archivo: css/index.css
   Responsabilidad: Banner y galería (solo index.html)
   Requiere: global.css (cargado antes)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Banner Carrusel ───────────────────────────────────────────────────── */
.banner-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.banner-track {
  display: flex;
  transition: transform 0.6s ease;
}
.banner-slide {
  min-width: 100%;
  aspect-ratio: 1 / 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #000;
}
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}
.banner-dot.activo {
  background: rgba(255,255,255,0.9);
}

/* ── Gallery ───────────────────────────────────────────────────────────── */
.gallery > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.gallery div { padding: 20px; }
.gallery div a { color: black; }
.gallery div h4 {
  font-weight: 300;
  padding-bottom: 5px;
  border-bottom: 1px solid black;
}
.gallery hgroup h5,
.gallery h2 { font-weight: 300; }

/* Imágenes de galería */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
}
.gallery article {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
}
.gallery a { text-decoration: none; color: white; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery p {
  position: absolute;
  bottom: 5%;
  left: 5%;
  z-index: 2;
  padding: 10px 20px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.7);
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Index
   ══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 767px) {
  .banner-carousel { height: auto; }
  .banner-track { height: auto; }
  .banner-slide {
    aspect-ratio: 1920 / 680;
    height: auto;
    background-size: cover;
    background-color: transparent;
  }

  .gallery div { padding: 20px 10%; }
  .gallery div h4 { font-size: 1.3rem; }
  .gallery hgroup h5 { font-size: 1rem; }
  .gallery hgroup h2 { font-size: 2rem; }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 100px 300px 300px 300px;
  }
  .gallery div:nth-child(1) { grid-column: 1/4; grid-row: 1/2; }
  .gallery article:nth-child(2) { grid-column: 1/2; grid-row: 2/4; }
  .gallery article:nth-child(6) { grid-column: 3/4; grid-row: 3/5; }

  .gallery img:hover {
    transition: all 0.5s ease;
    transform: scale(1.1);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   DARK MODE — Index
   ══════════════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  .gallery div a { color: white; background-color: #0d0d0d; }
}
