/* ============================================================
   11-ALBUM.css — COMPARTIR FOTOS + CARRUSEL DE GALERÍA
   ============================================================
   Tres componentes:
   1. Sección "Comparte fotos + Música" (2 columnas con divisor)
   2. Carrusel de fotos (gallery)
   3. Texto introductorio del álbum

   Las fotos del carrusel van en assets/album/
   ============================================================ */


/* ─────── COMPARTE FOTOS + MÚSICA (2 columnas) ─────── */

.share {
  max-width: 960px;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 2rem;
  align-items: stretch;
}
.share__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  color: var(--accent);
}
.share__icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.7rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.share__icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(60%) sepia(34%) saturate(498%) hue-rotate(2deg) brightness(94%) contrast(86%);
}
.share__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  line-height: 1;
}
.share__title-upper {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  padding-left: 0.4em;
}
.share__title-script {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  color: var(--accent);
  margin-top: 0;
  margin-left: 0.4em;
}
.share__text {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--accent);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}
.share__divider {
  background: var(--accent);
  opacity: 0.55;
  align-self: stretch;
  margin: 2rem 0;
}

@media (max-width: 720px) {
  .share {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 3rem 2rem;
  }
  .share__divider {
    height: 1px;
    width: 60%;
    margin: 2rem auto;
  }
  .share__col { padding: 1rem 0; }
  .share__icon { width: 76px; height: 76px; }
}


/* ─────── CARRUSEL DE FOTOS ─────── */

.gallery {
  position: relative;
  max-width: none;
  width: 100%;
  padding: 4rem 0;
  overflow: hidden;
}
.gallery__viewport {
  overflow: hidden;
  width: 100%;
}
.gallery__track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.5, 0, 0.5, 1);
  will-change: transform;
}
.gallery__slide {
  position: relative;
  flex: 0 0 25%;
  padding: 0;
}
.gallery__slide img,
.gallery__slide .gallery__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.gallery__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #efe7d8 0%, #d6c8ad 100%);
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  z-index: -1;
}
.gallery__slide img[src=""],
.gallery__slide img:not([src]) { opacity: 0; }

/* Flechas del carrusel */
.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: var(--accent);
  backdrop-filter: blur(4px);
  transition: background 0.2s, color 0.2s;
}
.gallery__arrow:hover {
  background: var(--accent);
  color: var(--bg);
}
.gallery__arrow--prev { left: 1rem; }
.gallery__arrow--next { right: 1rem; }

@media (max-width: 900px) {
  .gallery__slide { flex: 0 0 50%; }
  .gallery__arrow { width: 38px; height: 38px; }
}
@media (max-width: 600px) {
  .gallery__slide { flex: 0 0 100%; }
  .gallery__arrow--prev { left: 0.5rem; }
  .gallery__arrow--next { right: 0.5rem; }
}


/* ─────── TEXTO INTRODUCTORIO DEL ÁLBUM ─────── */

.album__intro {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 2rem;
}
