/* Custom styles for Colchones Libertad */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation */
.nav-text {
  color: #5B2C6F;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #F59E0B;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(250, 245, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(91, 44, 111, 0.1);
}

#navbar.scrolled .nav-text {
  color: #5B2C6F;
}

#navbar.scrolled .nav-link {
  color: #5B2C6F;
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-line {
  transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 1.25rem;
}

.mobile-link {
  position: relative;
  padding-left: 1rem;
}

.mobile-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #F59E0B;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-link:hover::before {
  opacity: 1;
}

/* Hero geometric shapes */
.geo-shape {
  position: absolute;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.geo-circle-1 {
  width: 400px;
  height: 400px;
  background: #F59E0B;
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.geo-circle-2 {
  width: 200px;
  height: 200px;
  background: #E9D5FF;
  border-radius: 50%;
  bottom: 20%;
  left: 5%;
  animation-delay: 2s;
}

.geo-circle-3 {
  width: 150px;
  height: 150px;
  background: #F59E0B;
  border-radius: 50%;
  top: 40%;
  right: 10%;
  animation-delay: 4s;
}

.geo-square-1 {
  width: 120px;
  height: 120px;
  background: #E9D5FF;
  top: 60%;
  left: 15%;
  transform: rotate(45deg);
  animation-delay: 1s;
}

.geo-square-2 {
  width: 80px;
  height: 80px;
  background: #F59E0B;
  top: 20%;
  left: 10%;
  transform: rotate(20deg);
  animation-delay: 3s;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 75px solid transparent;
  border-right: 75px solid transparent;
  border-bottom: 130px solid #E9D5FF;
  top: 15%;
  right: 25%;
  animation-delay: 2.5s;
}

.geo-diamond-1 {
  width: 100px;
  height: 100px;
  background: #F59E0B;
  bottom: 30%;
  right: 5%;
  transform: rotate(45deg);
  animation-delay: 1.5s;
}

.geo-circle-4 {
  width: 300px;
  height: 300px;
  background: #F59E0B;
  border-radius: 50%;
  top: -80px;
  left: -80px;
  animation-delay: 0s;
}

.geo-square-3 {
  width: 150px;
  height: 150px;
  background: #E9D5FF;
  bottom: -40px;
  right: 10%;
  transform: rotate(30deg);
  animation-delay: 2s;
}

.geo-circle-5 {
  width: 250px;
  height: 250px;
  background: #fff;
  border-radius: 50%;
  bottom: -80px;
  right: 5%;
  animation-delay: 1s;
}

.geo-diamond-2 {
  width: 80px;
  height: 80px;
  background: #fff;
  top: 20%;
  left: 10%;
  transform: rotate(45deg);
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Dot patterns */
.dot-pattern {
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: radial-gradient(circle, rgba(245, 158, 11, 0.4) 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.6;
}

/* Service cards */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5B2C6F, #F59E0B);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

/* Testimonial cards */
.testimonial-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(91, 44, 111, 0.15);
}

/* Scroll reveal animations */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .geo-shape {
    animation: none;
  }
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Button hover effects */
button:hover,
a:hover {
  cursor: pointer;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #faf5ff;
}

::-webkit-scrollbar-thumb {
  background: #5B2C6F;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a1d5c;
}
