/* Contact CTA Component - 2025 Glass Design */

.contact-cta {
  padding: var(--space-24) 0;
  background: linear-gradient(180deg,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(26, 26, 26, 0.9) 50%,
    rgba(10, 10, 10, 0.95) 100%
  );
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center,
    rgba(212, 175, 55, 0.08) 0%,
    rgba(230, 200, 74, 0.04) 40%,
    transparent 70%
  );
  animation: contact-cta-glow 20s ease-in-out infinite alternate;
  pointer-events: none;
}

.contact-cta::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(230, 57, 70, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(230, 200, 74, 0.05) 0%, transparent 50%);
  animation: floating-gradients 25s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes contact-cta-glow {
  0% { 
    transform: rotate(0deg) scale(0.8); 
    opacity: 0.3; 
  }
  100% { 
    transform: rotate(180deg) scale(1.2); 
    opacity: 0.6; 
  }
}

@keyframes floating-gradients {
  0% { 
    transform: rotate(0deg) translateX(0) translateY(0); 
    opacity: 0.4;
  }
  25% { 
    transform: rotate(90deg) translateX(20px) translateY(-30px); 
    opacity: 0.6;
  }
  50% { 
    transform: rotate(180deg) translateX(-20px) translateY(20px); 
    opacity: 0.5;
  }
  75% { 
    transform: rotate(270deg) translateX(-30px) translateY(-10px); 
    opacity: 0.7;
  }
  100% { 
    transform: rotate(360deg) translateX(0) translateY(0); 
    opacity: 0.4;
  }
}

.cta-glass-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
  animation: cta-container-slide 1.2s ease-out both;
  z-index: 10;
}

@keyframes cta-container-slide {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cta-glass-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(212, 175, 55, 0.6),
    transparent
  );
  animation: cta-line-glow 3s ease-in-out infinite alternate;
  z-index: 2;
}

.cta-glass-container::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    linear-gradient(45deg, 
      rgba(212, 175, 55, 0.03) 0%, 
      transparent 30%, 
      rgba(230, 57, 70, 0.02) 60%, 
      transparent 100%
    );
  animation: wave-gradient 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes cta-line-glow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

@keyframes wave-gradient {
  0% { 
    transform: rotate(0deg) scaleX(1) scaleY(1);
    opacity: 0.5;
  }
  33% { 
    transform: rotate(120deg) scaleX(1.1) scaleY(0.8);
    opacity: 0.3;
  }
  66% { 
    transform: rotate(240deg) scaleX(0.9) scaleY(1.2);
    opacity: 0.4;
  }
  100% { 
    transform: rotate(360deg) scaleX(1) scaleY(1);
    opacity: 0.5;
  }
}

.cta-glass-container h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: var(--font-weight-black);
  color: var(--color-white);
  margin-bottom: var(--space-6);
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: cta-title-slide 1s ease-out 0.3s both;
}

@keyframes cta-title-slide {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-glass-container p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: var(--space-12);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: cta-text-slide 1s ease-out 0.5s both;
}

@keyframes cta-text-slide {
  0% {
    opacity: 0;
    transform: translateY(-15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cta-whatsapp,
.cta-phone,
.cta-calculator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-10);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: var(--border-radius-full);
  transition: all var(--duration-normal) var(--ease-out-quart);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
}

.cta-whatsapp {
  background: linear-gradient(135deg,
    rgba(37, 211, 102, 0.9) 0%,
    rgba(34, 139, 58, 0.8) 100%
  );
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  animation: cta-whatsapp-slide 0.8s ease-out 0.6s both;
}

@keyframes cta-whatsapp-slide {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.cta-whatsapp:hover {
  background: linear-gradient(135deg,
    rgba(37, 211, 102, 1) 0%,
    rgba(34, 139, 58, 0.9) 100%
  );
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(37, 211, 102, 0.4),
    0 0 25px rgba(37, 211, 102, 0.3);
  color: var(--color-white);
}

.cta-phone {
  background: linear-gradient(135deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 100%
  );
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
  animation: cta-phone-slide 0.8s ease-out 0.7s both;
}

@keyframes cta-phone-slide {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-phone:hover {
  background: linear-gradient(135deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 100%
  );
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(212, 175, 55, 0.4),
    0 0 25px rgba(212, 175, 55, 0.3);
  color: var(--color-white);
}

.cta-calculator {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: cta-calculator-slide 0.8s ease-out 0.8s both;
}

@keyframes cta-calculator-slide {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.cta-calculator:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

/* Shimmer effect for all CTA buttons */
.cta-whatsapp::before,
.cta-phone::before,
.cta-calculator::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--duration-slow) var(--ease-out-quart);
}

.cta-whatsapp:hover::before,
.cta-phone:hover::before,
.cta-calculator:hover::before {
  left: 100%;
}

.cta-whatsapp i,
.cta-phone i,
.cta-calculator i {
  font-size: 1.2em;
  transition: all var(--duration-normal) var(--ease-bounce);
}

.cta-whatsapp:hover i,
.cta-phone:hover i,
.cta-calculator:hover i {
  transform: scale(1.1) rotate(10deg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-cta {
    padding: var(--space-20) 0;
  }
  
  .cta-glass-container {
    padding: var(--space-12) var(--space-8);
    margin: 0 var(--space-4);
  }
  
  .cta-actions {
    flex-direction: column;
    gap: var(--space-4);
    align-items: stretch;
  }
  
  .cta-whatsapp,
  .cta-phone,
  .cta-calculator {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    align-self: center;
  }
}

@media (max-width: 480px) {
  .contact-cta {
    padding: var(--space-16) 0;
  }
  
  .cta-glass-container {
    padding: var(--space-10) var(--space-6);
    margin: 0 var(--space-3);
  }
  
  .cta-glass-container h2 {
    font-size: 2rem;
  }
  
  .cta-glass-container p {
    font-size: 1.1rem;
    margin-bottom: var(--space-10);
  }
  
  .cta-whatsapp,
  .cta-phone,
  .cta-calculator {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
  }
}