/* ============================================================
   HOME — Sistema de páginas y sección previa compacta
   ============================================================ */

/* — Sistema de páginas: ver base.css ——————————————————————— */

/* ============================================================
   SECCIÓN HOME-PREVIEW — carrusel + redes en una sola vista
   ============================================================ */

#home-preview {
  padding: 4rem 0 5rem;
}

.home-preview-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3.5rem;
  align-items: center;
}

/* ============================================================
   CARRUSEL DE GALERÍA — 3 imágenes verticales con flechas
   ============================================================ */

.home-preview-gallery .section-label {
  display: block;
  margin-bottom: 0.8rem;
  padding-left: 3rem; /* Alinear aprox con el inicio de las imágenes */
}

.hgal-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hgal-viewport {
  flex: 1;
  overflow: hidden;
}

.hgal-track {
  display: flex;
  gap: 0.75rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 3 imágenes visibles con proporción vertical 2:3 */
.hgal-slide {
  flex: 0 0 calc((100% - 1.5rem) / 3);
  aspect-ratio: 2 / 3;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hgal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hgal-slide:hover img {
  transform: scale(1.05);
}

/* Flechas de navegación */
.hgal-arrow {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--fg);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  padding: 0;
  padding-bottom: 2px;
}

.hgal-arrow:hover {
  background: rgba(212, 120, 154, 0.22);
  border-color: rgba(212, 120, 154, 0.45);
  transform: scale(1.08);
}

/* ============================================================
   REDES SOCIALES COMPACTAS — solo título + iconos
   ============================================================ */

.home-preview-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  text-align: center;
}

.home-social-heading {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.home-social-icons {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  justify-content: center;
}

.home-icon-link {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.home-icon-link:hover {
  transform: translateY(-4px) scale(1.1);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(212, 120, 154, 0.3);
}

.home-icon-link svg,
.home-icon-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.home-apple-icon {
  border-radius: 50%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .home-preview-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .home-preview-social {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .home-social-heading {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hgal-slide {
    flex: 0 0 calc((100% - 0.75rem) / 2);
  }

  .home-icon-link {
    width: 46px;
    height: 46px;
  }

  .home-icon-link svg,
  .home-icon-link img {
    width: 24px;
    height: 24px;
  }
}
