/* ================================
   Custom CSS para Giovanni's Cleaning Service
   ================================ */
@import "tailwindcss";

/* --- 1. Glassmorphism para tarjetas y navbar --- */
.glass-card {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s, backdrop-filter 0.3s;
}

/* Navbar fija con efecto blur dinámico */
nav.glass-card {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999 !important;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s, backdrop-filter 0.3s;
}

body.scrolled nav.glass-card {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

/* --- 2. Hero con parallax y overlay --- */
.hero-image-overlay {
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Efecto Parallax */
  position: relative;
  z-index: 0;
  overflow: hidden;
  transition: transform 0.5s ease-out;
}

.hero-image-overlay:hover {
  transform: scale(1.02);
}

/* Overlay semi-transparente con shimmer suave */
.hero-image-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
  backdrop-filter: blur(2px);
  animation: shimmer 5s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: -500px 0;
  }

  100% {
    background-position: 500px 0;
  }
}

/* --- 3. Botón Minimal con glow y efecto hover --- */
.minimal-button {
  background-color: #3b82f6;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4),
    0 2px 4px -1px rgba(59, 130, 246, 0.2);
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.minimal-button:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(59, 130, 246, 0.6),
    0 4px 8px -2px rgba(59, 130, 246, 0.4);
}

/* --- 4. Botón flotante WhatsApp con bounce --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  font-size: 30px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 2px 8px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 24px;
  }
}

/* --- 5. Textos y títulos con gradiente animado --- */
.hero-title span {
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  /* CORRECCIÓN: Añadir la propiedad estándar 'background-clip' */
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Título de sección */
.site-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
}

/* --- 6. Accesibilidad y utilidades --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- 7. Ajustes generales del hero y overlays --- */
.hero-image-overlay {
  position: relative;
  z-index: 0 !important;
  overflow: hidden;
}
