/* =================================================================
   Estilos CSS — Boost3DStudio
   ================================================================= */

/* ── Ancho máximo del contenido ─────── */
.max-w-site {
  max-width: min(1400px, 92vw);
  margin-inline: auto;
}

/* =================================================================
   GALERÍA
   ================================================================= */
/* =================================================================
   GALERÍA
   ================================================================= */
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(.25,.46,.45,.94),
              opacity  0.4s ease;
}
.gallery-item:hover .gallery-img {
  transform: scale(1.08);
  opacity: 1;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Altura de cada item normal de galería - Removido para Masonry */
.gallery-img-std  { min-height: auto; width: 100%; height: auto; }
.gallery-img-tall { min-height: auto; width: 100%; height: auto; }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  display: block;
}



/* En móvil el overlay siempre es visible (no hay hover en touch) */
@media (max-width: 640px) {
  .gallery-img     { opacity: 1; }
  .gallery-overlay { opacity: 1; }
}

/* =================================================================
   LIGHTBOX
   ================================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}

/* Full-screen backdrop (click to close) */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 0;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}
.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.15);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 90vw;
  max-height: 85vh;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 0.75rem;
  transition: opacity 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-caption {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.03em;
}

/* Navigation arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
  z-index: 10001;
}
.lightbox-nav:hover {
  opacity: 1;
  background: rgba(255,255,255,0.15);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }

/* Lightbox responsive for mobile */
@media (max-width: 640px) {
  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close {
    top: 0.5rem;
    right: 0.75rem;
    font-size: 2rem;
  }
}


/* =================================================================
   BOTONES FLOTANTES — WhatsApp y Facebook
   ================================================================= */

/* Contenedor del grupo de botones */
.fab-group {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

/* Cada enlace flotante (fila con tooltip + círculo) */
.fab-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.fab-link:hover { transform: scale(1.1); }

/* Tooltip de texto que aparece a la izquierda del botón */
.fab-label {
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #ffffff;
  white-space: nowrap;
  font-family: Inter, sans-serif;
  font-size: 0.75rem;
  /* Start hidden, animated in by JS */
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.fab-label--visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.fab-label--hidden {
  opacity: 0 !important;
  transform: translateX(10px) !important;
  pointer-events: none !important;
}
.fab-label--whatsapp { color: #25d366; }
.fab-label--facebook { color: #1877f2; }

/* Show tooltip on hover (even after auto-hide) */
.fab-link:hover .fab-label {
  opacity: 1 !important;
  transform: translateX(0) !important;
  pointer-events: auto !important;
}

/* Círculo del botón */
.fab-btn {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: box-shadow 0.3s ease;
}
.fab-btn--whatsapp {
  background: #25d366;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
}
.fab-btn--facebook {
  background: #1877f2;
  box-shadow: 0 4px 16px rgba(24,119,242,.35);
}

/* Iconos SVG dentro del botón */
.fab-icon--lg { width: 28px; height: 28px; } /* WhatsApp */
.fab-icon--md { width: 26px; height: 26px; } /* Facebook */


/* ── Móvil: botones más pequeños y sin tooltip largo ─── */
@media (max-width: 640px) {
  .fab-group {
    bottom: 1rem;
    right: 1rem;
    gap: 0.6rem;
  }
  .fab-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .fab-icon--lg { width: 24px; height: 24px; }
  .fab-icon--md { width: 22px; height: 22px; }

  .fab-label {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    max-width: 160px;
    white-space: normal;
    line-height: 1.2;
  }
}

@media (max-width: 380px) {
  .fab-group {
    bottom: 0.75rem;
    right: 0.75rem;
  }
  .fab-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .fab-icon--lg { width: 20px; height: 20px; }
  .fab-icon--md { width: 18px; height: 18px; }
}

/* =================================================================
   HERO BACKGROUND LOGO (using img + mix-blend-mode)
   ================================================================= */
.hero-bg-logo {
  position: relative;
  overflow: hidden;
}
.hero-bg-logo > * {
  position: relative;
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 999px;
  max-width: 97vw;
  height: auto;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: lighten;
  user-select: none;
  -webkit-user-drag: none;
}

/* =================================================================
   NAVBAR LOGO IMAGE
   ================================================================= */
.navbar-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

@media (min-width: 640px) {
  .navbar-logo {
    height: 44px;
  }
}
