/* Main Variables */
:root {
  --primary-color: #4F46E5;
  --primary-hover: #4338CA;
  --secondary-color: #8B5CF6;
  --accent-color: #06b6d4;
  --dark-bg: #111827;
  --darker-bg: #0F172A;
  --light-bg: #1e293b;
  --light-text: #F9FAFB;
  --gray-text: #9CA3AF;
  --border-color: #374151;
  --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-subtitle {
  color: var(--gray-text);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.card {
  background-color: var(--light-bg);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.btn {
  display: inline-block;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--light-text);
}

.btn-outline:hover {
  background: rgba(79, 70, 229, 0.1);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Header */
header {
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--light-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--gray-text);
  text-decoration: none;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--light-text);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--darker-bg);
  padding: 2rem;
  transition: right 0.3s ease;
  z-index: 2000;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.mobile-nav-links a {
  color: var(--gray-text);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
}

.mobile-nav-links a:hover {
  color: var(--light-text);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1500;
  display: none;
}

.overlay.active {
  display: block;
}

/* Hero Section */
.hero {
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.15), transparent 70%),
              radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.1), transparent 70%);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 400px;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-text p {
  color: var(--gray-text);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition);
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-image img:hover {
  transform: perspective(1000px) rotateY(0);
}

/* Dashboard Section */
.dashboard-section {
  padding: 3rem 0 5rem;
  background-color: var(--dark-bg);
}

.dashboard-image {
  text-align: center;
  margin: 0 auto;
}

.dashboard-image img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

/* Login Info Section */
.login-info {
  padding: 2rem 0;
  background-color: rgba(79, 70, 229, 0.05);
  border-top: 1px solid rgba(79, 70, 229, 0.1);
  border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.login-info-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.login-info-text {
  font-size: 1.1rem;
  color: var(--light-text);
  line-height: 1.6;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
}

.feature-icon {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray-text);
}

/* Showcase Section */
.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 6rem;
}

.showcase-item:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.showcase-item:nth-child(even) .showcase-image {
  order: 2;
}

.showcase-item:nth-child(even) .showcase-content {
  order: 1;
}

.showcase-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.showcase-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.showcase-text {
  color: var(--gray-text);
  margin-bottom: 1.5rem;
}

.feature-list {
  margin-bottom: 2rem;
}

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

.feature-list-item svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 1rem;
  color: var(--secondary-color);
  flex-shrink: 0;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  text-align: center;
}

.pricing-card.featured {
  transform: scale(1.05);
  border-color: var(--primary-color);
  position: relative;
}

.pricing-card.featured::before {
  content: "Recomendado";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  margin: 1.5rem 0;
}

.price span {
  font-size: 1.125rem;
  color: var(--gray-text);
  font-weight: normal;
}

.pricing-features {
  margin: 2rem 0;
  text-align: left;
}

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

.pricing-feature svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  color: var(--secondary-color);
  flex-shrink: 0;
}

/* Testimonial Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  position: relative;
  padding-top: 3rem;
}

.testimonial-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  top: -2rem;
  left: 2rem;
  border: 3px solid var(--light-bg);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: var(--gray-text);
}

.testimonial-author {
  font-weight: 600;
}

.testimonial-position {
  color: var(--gray-text);
  font-size: 0.875rem;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

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

.faq-toggle {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.faq-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--primary-color);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
  color: var(--gray-text);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  height: auto;
  margin-top: 1rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 1rem;
  padding: 4rem 2rem;
  text-align: center;
  margin: 5rem auto;
  max-width: 1100px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path d="M54 40l6 6-6 6-6-6 6-6zM6 40l6 6-6 6-6-6 6-6zm24-24l6 6-6 6-6-6 6-6zm0 24l6 6-6 6-6-6 6-6zm24-24l6 6-6 6-6-6 6-6zM6 16l6 6-6 6-6-6 6-6z" fill="white" opacity="0.1" /></svg>') repeat;
  opacity: 0.2;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.cta-text {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  background-color: white;
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.125rem;
}

.cta-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background-color: var(--darker-bg);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-about {
  margin-bottom: 1.5rem;
}

.footer-about p {
  color: var(--gray-text);
  margin-top: 1rem;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--light-text);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-color);
}

.social-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--light-text);
}

.copyright {
  text-align: center;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  color: var(--gray-text);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content, 
  .showcase-item,
  .showcase-item:nth-child(even),
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .showcase-item .showcase-image,
  .showcase-item .showcase-content,
  .showcase-item:nth-child(even) .showcase-image,
  .showcase-item:nth-child(even) .showcase-content {
    order: 0;
  }
  
  .showcase-image {
    margin-bottom: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.75rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .hero-text h1 {
    font-size: 2.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeIn {
  animation: fadeIn 0.8s ease forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* Loading animation */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--darker-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 48px;
  height: 48px;
  border: 3px solid var(--gray-text);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loader::after {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-bottom-color: var(--primary-color);
  border-right-color: var(--secondary-color);
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}