/* Efectos sutiles temáticos de barbería */

/* ============================================
   1. EFECTO BRILLO METÁLICO EN TÍTULOS
   ============================================ */
@keyframes metallicShine {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.metallic-text {
  background: linear-gradient(
    90deg,
    var(--amber) 0%,
    var(--amber-light) 25%,
    #ffffff 50%,
    var(--amber-light) 75%,
    var(--amber) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallicShine 4s ease-in-out infinite;
  animation-play-state: paused;
}

.metallic-text:hover {
  animation-play-state: running;
}

/* ============================================
   2. DIVIDER POLO DE BARBERO SUTIL
   ============================================ */
@keyframes barberPole {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 0;
  }
}

.barber-divider {
  height: 3px;
  width: 100%;
  max-width: 200px;
  margin: 2rem auto;
  background: repeating-linear-gradient(
    45deg,
    var(--amber),
    var(--amber) 10px,
    var(--cream) 10px,
    var(--cream) 20px,
    var(--primary) 20px,
    var(--primary) 30px,
    var(--cream) 30px,
    var(--cream) 40px
  );
  background-size: 60px 60px;
  animation: barberPole 20s linear infinite;
  opacity: 0.6;
  border-radius: 2px;
}

/* ============================================
   3. EFECTO "AFEITADO" EN BOTONES
   ============================================ */
@keyframes shaveWipe {
  0% {
    left: -100%;
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

.btn-shave {
  position: relative;
  overflow: hidden;
}

.btn-shave::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-20deg);
  transition: none;
}

.btn-shave:hover::before {
  animation: shaveWipe 0.8s ease-out;
}

/* ============================================
   4. EFECTO ESPUMA SUBTIL EN CARDS
   ============================================ */
@keyframes foamRise {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  50% {
    opacity: 0.15;
  }
  100% {
    transform: translateY(-30px) scale(1.5);
    opacity: 0;
  }
}

.card-foam {
  position: relative;
  overflow: hidden;
}

.card-foam::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--cream) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.card-foam:hover::after {
  animation: foamRise 2s ease-out infinite;
}

/* ============================================
   5. EFECTO TIJERAS EN SEPARADORES
   ============================================ */
@keyframes scissorsCut {
  0% {
    clip-path: inset(0 50% 0 50%);
  }
  50% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 50% 0 50%);
  }
}

.scissors-reveal {
  position: relative;
}

.scissors-reveal::before,
.scissors-reveal::after {
  content: '✂';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--amber);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scissors-reveal::before {
  left: -25px;
}

.scissors-reveal::after {
  right: -25px;
  transform: translateY(-50%) scaleX(-1);
}

.scissors-reveal:hover::before,
.scissors-reveal:hover::after {
  opacity: 0.6;
}

/* ============================================
   6. EFECTO REFLEJO NAVAJA EN IMÁGENES
   ============================================ */
@keyframes bladeShine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(200%) rotate(45deg);
  }
}

.blade-shine {
  position: relative;
  overflow: hidden;
}

.blade-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 30%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(25deg);
  transition: none;
  pointer-events: none;
}

.blade-shine:hover::after {
  animation: bladeShine 1s ease-out;
}

/* ============================================
   7. PARTÍCULAS DE TALCO SUTILES (BACKGROUND)
   ============================================ */
@keyframes talcFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.03;
  }
  90% {
    opacity: 0.03;
  }
  100% {
    transform: translateY(-100vh) translateX(20px);
    opacity: 0;
  }
}

.talc-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.talc-particles::before,
.talc-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--cream);
  border-radius: 50%;
  animation: talcFloat 30s linear infinite;
}

.talc-particles::before {
  left: 10%;
  animation-delay: 0s;
}

.talc-particles::after {
  left: 70%;
  animation-delay: 15s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .barber-divider {
    max-width: 120px;
    height: 2px;
  }
  
  .metallic-text {
    animation-duration: 3s;
  }
}
