/* ==================== BASE ==================== */
body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ==================== ANIMACIONES ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% { 
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); 
    transform: scale(1);
  }
  70% { 
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); 
    transform: scale(1.05);
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); 
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ==================== WHATSAPP FLOAT ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg,
.whatsapp-float img {
  width: 32px;
  height: 32px;
}

/* ==================== BEFORE / AFTER SLIDER ==================== */
.before-after-container {
  position: relative;
  cursor: ew-resize;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.before-wrapper {
  width: 50%;
  transition: width 0.05s ease-out;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
}

.before-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: white;
  border: 4px solid #1693a5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #1693a5;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  cursor: ew-resize;
  z-index: 10;
  transition: transform 0.05s ease-out, box-shadow 0.3s ease;
}

.slider-handle:hover {
  box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 5;
}

/* ==================== FAQ ==================== */
.faq-item {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.faq-item:hover {
  border-color: #1693a5;
  box-shadow: 0 8px 30px rgba(22, 147, 165, 0.1);
}

.faq-content {
  transition: all 0.3s ease;
}

.faq-icon {
  transition: transform 0.3s ease;
  font-size: 1.5rem;
  font-weight: bold;
}

/* ==================== FORMULARIO ==================== */
input, textarea, select {
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: #1693a5 !important;
  box-shadow: 0 0 0 4px rgba(22, 147, 165, 0.15) !important;
}

/* Placeholder styling */
::placeholder {
  color: #9ca3af;
}

/* ==================== BOTONES ==================== */
.btn-primary {
  background: linear-gradient(135deg, #1693a5 0%, #45b5c4 100%);
  color: white;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(22, 147, 165, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(22, 147, 165, 0.5);
}

.btn-secondary {
  background: white;
  color: #1693a5;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ==================== CARDS ==================== */
.card-hover {
  transition: all 0.4s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ==================== PRICING CARDS ==================== */
.pricing-card {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1693a5, #45b5c4);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.pricing-card:hover::before {
  transform: scaleX(1);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(22, 147, 165, 0.2);
}

.pricing-card.featured {
  border: 3px solid #1693a5;
  background: linear-gradient(135deg, #d2f2f0 0%, #ffffff 100%);
}

.pricing-card.featured::before {
  transform: scaleX(1);
  height: 6px;
}

/* ==================== BADGES ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-primary {
  background: rgba(22, 147, 165, 0.15);
  color: #1693a5;
}

.badge-accent {
  background: rgba(251, 191, 36, 0.2);
  color: #b45309;
}

.badge-white {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* ==================== GRADIENTS ==================== */
.gradient-primary {
  background: linear-gradient(135deg, #1693a5 0%, #45b5c4 100%);
}

.gradient-hero {
  background: linear-gradient(135deg, #1693a5 0%, #45b5c4 50%, #1693a5 100%);
}

/* ==================== TEXT ==================== */
.text-gradient {
  background: linear-gradient(135deg, #a0ded6 0%, #d2f2f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== FOOTER ==================== */
footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: #a0ded6;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float svg,
  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
  
  h1 {
    line-height: 1.2;
  }
  
  .slider-handle {
    width: 40px;
    height: 40px;
  }
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== UTILITIES ==================== */
.shadow-soft {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.shadow-primary {
  box-shadow: 0 10px 40px rgba(22, 147, 165, 0.25);
}

/* Hide scrollbar but allow scrolling */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}