/* CeroFila.app Custom Styles - Breaking away from generic AI app designs */

/* Custom Animated Background */
.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.animated-bg .shape {
  position: absolute;
  filter: blur(40px);
  opacity: 0.15;
  animation: float 25s infinite ease-in-out;
}

.animated-bg .shape:nth-child(1) {
  background: linear-gradient(45deg, #FF3366, #FF6633);
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
  border-radius: 43% 57% 70% 30% / 30% 40% 60% 70%;
  animation-delay: 0s;
}

.animated-bg .shape:nth-child(2) {
  background: linear-gradient(45deg, #3366FF, #33CCFF);
  width: 350px;
  height: 350px;
  top: 60%;
  right: -50px;
  border-radius: 62% 38% 46% 54% / 38% 30% 70% 62%;
  animation-delay: -5s;
}

.animated-bg .shape:nth-child(3) {
  background: linear-gradient(45deg, #FFCC33, #FF9900);
  width: 250px;
  height: 250px;
  bottom: 10%;
  left: 30%;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(5%, 10%) rotate(5deg) scale(1.05);
  }
  50% {
    transform: translate(10%, -5%) rotate(10deg) scale(1.1);
  }
  75% {
    transform: translate(-5%, 5%) rotate(-5deg) scale(0.95);
  }
}

/* Custom 3D Card Effect */
.card-3d {
  perspective: 1500px;
  transform-style: preserve-3d;
}

.card-3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
  transform: rotateY(10deg) rotateX(5deg);
}

/* Custom Notification Animation */
.notification-bell {
  position: relative;
}

.notification-bell .bell-icon {
  transition: transform 0.3s ease;
}

.notification-bell:hover .bell-icon {
  transform: rotate(15deg);
}

.notification-bell .ping {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #FF3366;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Custom Scroll Animation */
.scroll-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animation.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Button Styles */
.btn-cerofila {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #FF3366, #FF6633);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(255, 51, 102, 0.3);
  z-index: 1;
}

.btn-cerofila::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: all 0.6s ease;
  z-index: -1;
}

.btn-cerofila:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 51, 102, 0.4);
}

.btn-cerofila:hover::before {
  left: 100%;
}

.btn-cerofila-outline {
  background: transparent;
  border: 2px solid #FF3366;
  color: #FF3366;
  padding: 0.9rem 2.5rem;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-cerofila-outline:hover {
  background-color: #FF3366;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 51, 102, 0.2);
}

/* Custom Text Gradient */
.text-gradient {
  background: linear-gradient(90deg, #FF3366, #FF6633);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Custom Navbar */
.navbar-cerofila {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-cerofila .nav-link {
  position: relative;
  padding: 0.5rem 0;
  margin: 0 1rem;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

.navbar-cerofila .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FF3366, #FF6633);
  transition: width 0.3s ease;
}

.navbar-cerofila .nav-link:hover {
  color: #FF3366;
}

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

/* Custom Phone Display */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 560px;
  background: #111;
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  padding: 10px;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: all 0.5s ease;
}

.phone-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 30px;
  background: #111;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
}

/* Restaurant Queue Animation */
.queue-animation {
  position: relative;
  height: 60px;
  margin: 20px 0;
}

.person {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FF3366;
  animation: moveInLine 10s infinite linear;
}

.person:nth-child(2) {
  animation-delay: 1s;
  background: #FF6633;
}

.person:nth-child(3) {
  animation-delay: 2s;
  background: #FFCC33;
}

.person:nth-child(4) {
  animation-delay: 3s;
  background: #33CCFF;
}

.person:nth-child(5) {
  animation-delay: 4s;
  background: #3366FF;
}

@keyframes moveInLine {
  0% {
    left: 0;
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Custom Features Display */
.feature-card {
  border-radius: 20px;
  padding: 2rem;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #FF3366, #FF6633);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(255, 51, 102, 0.1);
  color: #FF3366;
}

/* Custom Testimonial Slider */
.testimonial-card {
  border-radius: 20px;
  padding: 2rem;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-card::before {
  content: '\201C'; /* Unicode para comilla doble de apertura */
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 120px;
  color: rgba(255, 51, 102, 0.1);
  font-family: serif;
  line-height: 1;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

/* Custom Pricing Table */
.pricing-table {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.pricing-table:hover {
  transform: translateY(-10px);
}

.pricing-header {
  padding: 2rem;
  background: linear-gradient(135deg, #FF3366, #FF6633);
  color: white;
  text-align: center;
}

.pricing-features {
  padding: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.pricing-feature-icon {
  margin-right: 1rem;
  color: #FF3366;
}

/* Custom FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.faq-answer {
  padding-top: 1rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Notification Animation */
@keyframes notification {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.notification {
  animation: notification 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* QR Code Animation */
.qr-animation {
  position: relative;
}

.qr-animation::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #FF3366;
  animation: qrScan 2s infinite ease-in-out;
}

@keyframes qrScan {
  0% {
    top: 0;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 0;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #FF3366, #FF6633);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #FF6633, #FF3366);
}
