/* Cursor personalizado - tijeras doradas */
* { cursor: none; }
.custom-cursor {
  width: 20px; height: 20px;
  border: 2px solid #D4AF37;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s, background 0.3s;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}
.custom-cursor-dot {
  width: 6px; height: 6px;
  background: #D4AF37;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}
.custom-cursor.hovered { transform: translate(-50%, -50%) scale(2); background: rgba(212,175,55,0.1); }

/* Cards con tilt 3D - Proporción mejorada */
.services-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  border-radius: 16px;
  min-height: 180px;
  display: flex;
  align-items: center;
}
.services-item:hover { 
  transform: rotateY(5deg) rotateX(-3deg) scale(1.02); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Tilt genérico para cualquier card */
.tilt-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.tilt-card:hover {
  transform: rotateY(5deg) rotateX(-3deg) scale(1.015);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Productos - cards 3D */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.product-card:hover {
  transform: translateY(-8px) rotateY(3deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Seguimiento - panels */
.tracking-panel {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.tracking-panel:hover {
  transform: rotateY(3deg) scale(1.01);
}

/* Team / Nosotros - cards */
.team-card {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}
.team-card:hover { transform: rotateY(5deg) scale(1.03); }

/* Blog - posts */
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-6px) rotateY(2deg);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Configuración - menu items */
.config-item {
  transition: transform 0.3s ease, background 0.3s ease;
}
.config-item:hover {
  transform: translateX(8px) rotateY(3deg);
  background: rgba(212,175,55,0.08);
}

/* Mejora de recuadro de servicios - proporción balanceada */
.services-img {
  flex-shrink: 0;
}
.services-img img {
  object-fit: cover;
  max-height: 140px;
}

/* Partículas CSS */
@keyframes particleFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}
.particle { position: absolute; pointer-events: none; }

/* Gradientes animados */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animated-gradient {
  background: linear-gradient(-45deg, #A78BFA, #D4AF37, #7C3AED, #B45309);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

/* Efecto glass mejorado */
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Texto con shimmer */
@keyframes textShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.text-shimmer {
  background: linear-gradient(90deg, #D4AF37 25%, #fff 50%, #D4AF37 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 3s linear infinite;
}

/* Botón WhatsApp mejorado - Fila horizontal inferior */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  animation: whatsappPulse 2s infinite;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

/* Scroll indicator */
.scroll-indicator { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(to right, #D4AF37, #A78BFA); z-index: 9999; transition: width 0.1s; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s, transform 0.8s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s, transform 0.8s; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s, transform 0.8s; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Wave footer */
.wave-footer {
  position: relative;
  overflow: hidden;
}
.wave-footer::before {
  content: '';
  position: absolute;
  top: -50px; left: 0; right: 0;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23A78BFA' fill-opacity='1' d='M0,256L48,250.7C96,245,192,235,288,240C384,245,480,267,576,261.3C672,256,768,224,864,213.3C960,203,1056,213,1152,229.3C1248,245,1344,267,1392,277.3L1440,288L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
  animation: wave 10s linear infinite;
}
@keyframes wave {
  0% { background-position: 0 0; }
  100% { background-position: 1440px 0; }
}
