:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --secondary: #10B981;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --background: #FFFFFF;
  --background-alt: #F9FAFB;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
  margin: 0;
  background: #18181b;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #e5e7eb;
  background: transparent;
  line-height: 1.5;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 1rem;              /* baja la barra 1rem desde el top */
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent; /* que no pinte el recuadro entero */
  pointer-events: auto;    /* deja pasar scroll por detrás si lo deseas */
}

/* (B) El “vidrio” real: traslúcido + blur */
.navbar-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(50,50,50, 0.4);    /* muy translúcido */
  backdrop-filter: blur(38px);         /* difumina lo que quede detrás */
  -webkit-backdrop-filter: blur(12px);    /* para Safari */
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  overflow: hidden;                       /* recorta el ::before */
}

/* (C) El degradado de color encima, en modo “overlay” */
.navbar-content::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* se coloca debajo de todo lo que hay dentro de la navbar */

  background: rgba(0,0,0,0.3);

  mix-blend-mode: overlay;  /* mezcla ese degradado con lo de atrás */
}

.logo {
  height: 32px;
}
.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;      /* ajusta al tamaño que te guste */
  color: #e5e7eb;         /* blanco suave */
  letter-spacing: 0.05em;
  cursor: pointer;
}

.navbar-center {
  display: flex;
  gap: 2rem;
}

.navbar-center a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-center a:hover {
  color: var(--primary);
}

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

.login-btn {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.login-btn:hover {
  color: var(--primary);
  background: var(--background-alt);
}

.cta-btn {
  background: #059669;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s;
  border: none;
}

.cta-btn:hover {
  background: #047857;
  transform: translateY(-1px);
}

.cta-btn.big {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.mobile-menu-btn {
  display: none;
}

/* Hero Section */
.hero {
  padding: 12rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-image {
  display: flex;
  justify-content: flex-end; /* manda el placeholder al extremo derecho */
  /* opcional: un poco de padding para que no pegue al 100% */
  padding-left: 1rem;
}
.hero-video {
  width: 100%;
  max-width: 480px;          /* aquí defines el ancho máximo */
  height: 270px;             /* proporción 16:9 */
  background: #23232a;
  border: 2px solid #2d2d36;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 1.3rem;
  font-weight: 600;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
}

.hero-content {
  max-width: 600px;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

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

.secondary-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.secondary-btn:hover {
  background: var(--background-alt);
}

.social-proof {
  margin-top: 2rem;
}

.social-proof p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.platform-logos {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.platform-logos img {
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.platform-logos img:hover {
  opacity: 1;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

/* Features Section */
.features-section {
  padding: 6rem 2rem;
  background: transparent;
}

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

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #23232a;
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 2px 16px #0002;
  transition: transform 0.2s;
  border: 1.5px solid #2d2d36;
  color: #e5e7eb;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--background-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.5rem;
}

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

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

/* How it Works Section */
.how-it-works {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
}

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

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.step p {
  color: var(--text-secondary);
}

/* Pricing Section */
.pricing-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2vh 3vh;
  background: transparent;
}

.pricing-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}
.plan-notice {
  background: #fef3c7;
  color: #92400e;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
}
.pricing-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: #23232a;
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 2px 16px #0002;
  position: relative;
  border: 1.5px solid #2d2d36;
  color: #e5e7eb;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
}
.cancel-change-btn {
  background: #f87171;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}
.cancel-change-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
}

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

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

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.period {
  font-size: 1rem;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.pricing-features i {
  color: var(--primary);
}

/* FAQ Section */
.faq-section {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  background: transparent;
}

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

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.hidden{
  display: none !important;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  color: #ffffff;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question i {
  transition: transform 0.2s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  display: none;
}

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

#plans-loading{
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}


/* CTA Section */
.cta-section {
  padding: 6rem 2rem;
  background: transparent;
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-section .cta-btn {
  background: #059669;
  color: #fff;
}

.cta-section .cta-btn:hover {
  background: #047857;
}

.cta-btn.disabled {
  background: var(--border);
  color: var(--text-secondary);
  cursor: not-allowed;
}

/* Footer */
footer {
  background: #18181b;
  padding: 4rem 2rem 2rem;
}

.footer-content, .footer-bottom {
  color: #e5e7eb;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-secondary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #e5e7eb;
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--primary);
}
.footer-legal {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}
.footer-legal a {
  color: var(--primary);
  text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: #23232a;
  color: #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.social-links a:hover {
  background: var(--primary);
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
}

.hidden{
  display: none !important;
}
/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    margin: 0 auto;
  }

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

  .platform-logos {
    justify-content: center;
  }

  .steps-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .navbar-center {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
  }

  .mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 4px 0;
    transition: all 0.2s;
  }

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

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .secondary-btn {
    justify-content: center;
  }
}

.video-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  margin: 48px 0 0 0;
}

.video-placeholder {
  width: 100%;
  max-width: 520px;
  height: 300px;
  background: #23232a;
  border: 2px solid #2d2d36;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 auto;
  box-shadow: 0 4px 32px #0002;
} 