: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; left: 0; width: 100%; z-index: 100; background: transparent; pointer-events: auto;}
.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); backdrop-filter: blur(38px); -webkit-backdrop-filter: blur(12px); border-radius: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  overflow: hidden; }
.navbar-content::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: rgba(0,0,0,0.3); mix-blend-mode: overlay;}
.logo { height: 32px;}
.logo-text { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.8rem; color: #e5e7eb; 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;}
#buyPackBtn{ cursor: pointer;}
.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; padding-left: 1rem;}
.hero-video { width: 100%; max-width: 480px; height: 270px; 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);}

/* ================= TRUST BADGES ================= */
.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);}
.trust-badges { position: relative; padding: 4rem 2rem 2rem; isolation: isolate; /* asegura el z-index del pseudo-elemento */}
.trust-badges::before { content: ""; position: absolute;inset: 0; margin: auto; width: min(1100px, 92vw); height: 100%; background: radial-gradient(ellipse at center,
              rgba(79,70,229,.14) 0%,
              rgba(16,185,129,.10) 30%,
              transparent 70%); filter: blur(20px); opacity: .6; z-index: -1;}
.trust-headline { max-width: 900px; margin: 0 auto 1.25rem; text-align: center;}
.trust-title { font-size: 2rem; line-height: 1.2; margin: 0 0 .5rem 0;}
.trust-subtitle { color: var(--text-secondary); font-size: 1rem; line-height: 1.6;}
.trust-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 1.25rem; justify-content: center; margin-top: 5vh;}
.trust-item { display: inline-flex; align-items: center; justify-content: center; gap: 0.9rem; max-width: 520px; min-height: 108px; padding: 1rem 1.25rem;
  border: 1.5px solid #2d2d36; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.15);}
.trust-item img { width: 200px; height: 200px; object-fit: contain; flex: 0 0 44px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));}
.trust-text { display: flex; flex-direction: column; line-height: 1.2;}
.trust-text strong { font-size: 1.06rem; color: #e5e7eb;}
/* Responsive */
@media (max-width: 820px){
  .trust-title { font-size: 1.75rem; }
  .trust-inner { grid-template-columns: 1fr;}
  .trust-item { max-width: 600px; margin: 0 auto;}
}

/* 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);}
.how-it-works .steps-container { --steps-gap: 2rem;}
.how-it-works .step { position: relative; }
.how-it-works .step:not(:last-child)::after { content: "\f061";  font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 50%;
  right: calc((var(--steps-gap) / 2) * -1 - 18px);  transform: translateY(-50%); width: 36px; height: 36px; border-radius: 9999px; display: inline-flex;
  align-items: center; justify-content: center; background: #23232a; color: #e5e7eb; border: 1.5px solid #2d2d36; box-shadow: 0 2px 10px rgba(0,0,0,.25); z-index: 1; }
.how-it-works .step:not(:last-child)::after:hover { filter: brightness(1.05);}
/* En tu CSS, a <=1024px pasas a 1 columna. Aquí recolocamos la flecha debajo del step y giramos. */
@media (max-width: 1024px) {
  /* Deja espacio inferior para la flecha en cada step excepto el último */
  .how-it-works .step { padding-bottom: 2.25rem;}
  .how-it-works .step:not(:last-child)::after { top: auto; right: 50%; bottom: -4px; transform: translateX(50%) rotate(90deg);}
}

/* PLANS 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;}
.plan-change-help{ max-width: 1100px; margin: 0 auto 0.75rem; display: flex; justify-content: flex-end; position: relative; padding: 0 1rem;}
.info-chip{ display: inline-flex; align-items: center; gap: .5rem; font: 500 0.95rem/1 Inter, system-ui, sans-serif; background: #111827; 
  color: #e5e7eb; border: 1px solid #374151; border-radius: 9999px; padding: .4rem .8rem; cursor: pointer;
   transition: background .15s ease, border-color .15s ease, transform .05s ease;}
.info-chip:hover{ background:#0b1220; border-color:#4b5563; }
.info-chip:active{ transform: translateY(1px); }
.plan-popover{ position: absolute;  right: 50%;top: calc(100% + 1vh); transform: translateX(50%); width: min(640px, 92vw); background: #0b0f1a; color: #e5e7eb;
  border: 1px solid #1f2937; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.45); padding: 16px 18px; z-index: 1000;}
.plan-popover[hidden]{ display:none; }
.plan-popover h4{ margin: 0 0 .5rem; font-size: 1rem; color: #f9fafb; }
.plan-popover ul{ margin:0; padding-left: 1.1rem; }
.plan-popover li{ margin: .4rem 0; color: #cbd5e1; }
@media (max-width: 640px){
  .plan-change-help{ justify-content: center; }
  .plan-popover{ left: 50%; right: auto; transform: translateX(-50%); }
}
/* ======== Estados de features en planes ======== */
.feature-divider { border-top: 1px solid #374151; margin: 0.75rem 1rem; opacity: 0.6;}
.pricing-features li { position: relative; }
.feature-soon { opacity: .95;}
.feature-soon i { color: #f59e0b; }
.feature-soon .feature-badge {  background: rgba(245, 158, 11, .16); border: 1px solid rgba(245, 158, 11, .35); color: #fbbf24;}
.feature-planned i { color: #94a3b8; } /* slate-400 */
.feature-planned .feature-badge { background: rgba(148,163,184,.14); border: 1px solid rgba(148,163,184,.35); color: #cbd5e1;}
.feature-badge { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .5rem; border-radius: 9999px;
 font: 600 .75rem/1 Inter, system-ui, sans-serif; letter-spacing: .01em;}
.feature-badge[data-hint]{ position: relative; }
.feature-badge[data-hint]:hover::after{ content: attr(data-hint); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); background: #0b0f1a; 
  color: #e5e7eb; border: 1px solid #1f2937; border-radius: 8px; padding: .35rem .5rem; font-size: .8rem; white-space: nowrap; box-shadow: 0 10px 20px rgba(0,0,0,.35); z-index: 10;}
.cta-btn[data-hint]{ position: relative;}
.cta-btn[data-hint]:hover::after{ content: attr(data-hint); position:absolute; left:50%; transform:translateX(-50%); bottom: calc(100% + 8px); background:#0b0f1a; 
  color:#e5e7eb; border:1px solid #1f2937; font-size:.85rem; padding:.35rem .5rem; border-radius:8px; white-space: nowrap; pointer-events: none; z-index: 999;}
.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);}
#plans-loading{ text-align: center; padding: 2rem; color: var(--text-secondary);}

/* 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: 2px solid #6f6f6f; 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;}

/* 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 .cta-subtext{
  display:flex;
  flex-direction: column;
  align-items: center;
  font-size:.85rem;
  line-height:1.2;
  opacity:.85;
  margin-top:2px;
}


/* 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;
} 

/* ——— Modal genérico ——— */
.modal[aria-hidden="true"] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.modal-dialog {
  position: relative;
  max-width: 900px;
  margin: 8vh auto;
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}
.modal-dialog {
  color: #0b0f1a; /* texto oscuro para buen contraste sobre #fff */
}

.modal-title {
  font: 700 1.25rem/1.3 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #0b0f1a;
  margin: 4px 0 8px;
  text-align: center;
}

.modal-desc {
  font: 400 0.98rem/1.55 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #374151; /* gris oscuro legible */
  text-align: center;
  margin: 0 0 14px;
}

.modal-caption {
  font: 500 0.9rem/1.45 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #6b7280; /* gris medio para leyenda */
  text-align: center;
  margin: 8px 0 0;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
body.modal-open { overflow: hidden; }

/* Logo clicable */
.logo-text { cursor: pointer; text-decoration: none; color: inherit; }
.logo-text:focus { outline: 2px solid #333; outline-offset: 2px; }