
:root {
  --primary-color: #6366f1;
  --secondary-color: #4f46e5;
  --background: #ffffff;
  --text-color: #1f2937;
  --card-bg: #f3f4f6;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --border-color: #e5e7eb;
}

[data-theme="dark"] {
  --primary-color: #818cf8;
  --secondary-color: #6366f1;
  --background: #111827;
  --text-color: #f3f4f6;
  --card-bg: #1f2937;
  --nav-bg: rgba(17, 24, 39, 0.8);
  --border-color: #374151;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.nav-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

#theme-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--text-color);
}

[data-theme="light"] .moon,
[data-theme="dark"] .sun {
  display: none;
}

.hero {
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  opacity: 0.9;
}

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

.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-primary:hover, .btn-secondary:hover {
  transform: translateY(-2px);
}

.code-window {
  background: var(--card-bg);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.code-header {
  background: var(--nav-bg);
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.code-window pre {
  padding: 1.5rem;
  margin: 0;
  overflow-x: auto;
}

.code-window code {
  font-family: 'Fira Code', monospace;
  color: var(--text-color);
}

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

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.how-it-works {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: bold;
}

footer {
  background: var(--card-bg);
  padding: 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

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

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}


/* Agregar al final del archivo CSS existente */

/* Testimonials Section */
.testimonials {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

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

.testimonial-card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.testimonial-content {
  margin-bottom: 1.5rem;
}

.quote-icon {
  font-size: 3rem;
  color: var(--primary-color);
  height: 40px;
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  font-size: 1.1rem;
}

.author-info p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Pricing Section */
.pricing {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.pricing-subtitle {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0.8;
}

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

.pricing-card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.price {
  font-size: 3rem;
  font-weight: bold;
  margin: 1rem 0;
  color: var(--primary-color);
}

.currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.period {
  font-size: 1rem;
  opacity: 0.7;
}

.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.pricing-card .btn-primary {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
}

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

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

@media (max-width: 768px) {
  .pricing-card.popular {
    transform: scale(1);
  }

  .pricing-card.popular:hover {
    transform: translateY(-5px);
  }
}



/* Reemplazar los estilos existentes del logo y agregar los nuevos */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.logo-i {
  color: var(--primary-color);
  font-style: italic;
  font-weight: 900;
  transform: skew(-10deg);
  display: inline-block;
  position: relative;
  padding-right: 2px;
}

.logo-i::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 6px;
  height: 6px;
  background: var(--secondary-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.logo-dot {
  color: var(--primary-color);
  display: inline-block;
  animation: blink 3s infinite;
}

.logo-dev {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Animaciones para el logo */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Efecto hover en el logo */
.logo:hover .logo-i {
  transform: skew(-10deg) translateY(-2px);
  transition: transform 0.3s ease;
}

.logo:hover .logo-dev {
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientShift 2s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Asegúrate de que el footer logo tenga los mismos estilos */
.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.footer-logo .logo-i,
.footer-logo .logo-dot,
.footer-logo .logo-dev {
  /* Heredar los mismos estilos que el logo principal */
}

/* Versión alternativa del logo para modo oscuro */
[data-theme="dark"] .logo-i::after {
  box-shadow: 0 0 10px var(--primary-color);
}
