/*
 * SGS-Visitor — Landing Page Styles
 * Light-first. Full-width. Reuses theme.css tokens.
 */

.landing-page {
  font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.landing-section { padding: 6rem 0; position: relative; }
.landing-container { max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 3rem; }

/* ── Navbar ─────────────────────────────────────────────────── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0; background: var(--bg-primary); opacity: .97;
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-color);
  transition: background .3s, box-shadow .3s;
}
.landing-nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; padding: 0 3rem; }
.nav-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav-brand-icon { width: 40px; height: 40px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff; }
.nav-brand-text { font-weight: 800; font-size: 1.2rem; color: var(--text-primary); }
.nav-brand-text span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: .95rem; font-weight: 600; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: .8rem; }
.btn-theme-toggle { width: 38px; height: 38px; border-radius: 6px; background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-secondary); cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.btn-theme-toggle:hover { background: var(--accent-muted); border-color: var(--accent); color: var(--accent); }
.nav-cta .btn-login-link { color: var(--text-secondary); text-decoration: none; font-size: .95rem; font-weight: 600; padding: .5rem 1rem; border-radius: 6px; transition: all .15s; }
.nav-cta .btn-login-link:hover { color: var(--accent); background: var(--accent-muted); }
.nav-cta .btn-signup { background: var(--accent); color: #fff; border: none; padding: .6rem 1.5rem; border-radius: 6px; font-size: .95rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: all .15s; box-shadow: 0 2px 8px rgba(99,102,241,.3); }
.nav-cta .btn-signup:hover { background: var(--accent-hover); box-shadow: 0 4px 16px rgba(99,102,241,.4); transform: translateY(-1px); }
.nav-hamburger { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
  .landing-container, .nav-inner { padding: 0 1.25rem; }
  .nav-hamburger { display: block; }
  .nav-links, .nav-cta { display: none; }
  .nav-links.mobile-open, .nav-cta.mobile-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); padding: 1.2rem 1.5rem; gap: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 5rem; background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,.06) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(59,130,246,.05) 0%, transparent 50%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--accent-muted); color: var(--accent); font-size: .85rem; font-weight: 700; padding: .45rem 1rem; border-radius: 20px; margin-bottom: 1.5rem; border: 1px solid rgba(99,102,241,.15); }
.hero h1 { font-size: 3.8rem; font-weight: 900; line-height: 1.08; margin-bottom: 1.5rem; letter-spacing: -.03em; }
.hero h1 .gradient-text { background: linear-gradient(135deg, var(--accent), #818cf8, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.2rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 2.5rem; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 2.5rem; }
.btn-hero-primary { background: var(--accent); color: #fff; border: none; padding: .85rem 2.2rem; border-radius: 6px; font-size: 1.05rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: all .2s; box-shadow: 0 4px 16px rgba(99,102,241,.35); display: inline-flex; align-items: center; gap: .6rem; }
.btn-hero-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,.45); }
.btn-hero-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); padding: .85rem 1.8rem; border-radius: 6px; font-size: 1.05rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; gap: .6rem; }
.btn-hero-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-muted); }
.hero-stats { display: flex; gap: 2.5rem; }
.hero-stat-value { font-size: 1.8rem; font-weight: 800; }
.hero-stat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* Hero mockup */
.hero-visual { position: relative; }
.hero-mockup { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.15); padding: 1.8rem; }
.hero-mockup-bar { display: flex; gap: .4rem; margin-bottom: 1.2rem; }
.hero-mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.hero-mockup-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; background: var(--bg-tertiary); border-radius: 6px; font-size: .9rem; margin-bottom: .5rem; }
.hero-mockup-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; flex-shrink: 0; }
.hero-mockup-name { font-weight: 600; flex: 1; }
.hero-mockup-badge { font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 10px; }
.hero-float-card { position: absolute; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.15); padding: 1rem 1.2rem; animation: float 3s ease-in-out infinite; }
.hero-float-card.top-right { top: -1.2rem; right: -2rem; }
.hero-float-card.bottom-left { bottom: -1.2rem; left: -2rem; animation-delay: 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 2.4rem; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
}

/* ── Features ───────────────────────────────────────────────── */
.features-section { background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label { display: inline-flex; align-items: center; gap: .4rem; background: var(--accent-muted); color: var(--accent); font-size: .8rem; font-weight: 700; padding: .4rem .9rem; border-radius: 20px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.section-title { font-size: 2.5rem; font-weight: 800; margin-bottom: .8rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.7; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 2rem; transition: all .2s; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--feature-color, var(--accent)); opacity: 0; transition: opacity .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.12); border-color: rgba(99,102,241,.25); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.2rem; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .95rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } .section-title { font-size: 2rem; } }
@media (min-width: 769px) and (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-section { background: var(--bg-primary); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; align-items: start; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 2.2rem 1.8rem; transition: all .2s; position: relative; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(0,0,0,.12); }
.pricing-card.featured::before { content: 'Recomendado'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem 1rem; border-radius: 10px; text-transform: uppercase; }
.pricing-plan-name { font-size: 1rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.pricing-price { font-size: 3rem; font-weight: 900; margin-bottom: .2rem; line-height: 1; }
.pricing-price .currency { font-size: 1.4rem; vertical-align: super; font-weight: 700; }
.pricing-price .period { font-size: .9rem; color: var(--text-muted); font-weight: 500; }
.pricing-desc { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.5; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.pricing-features li { font-size: .95rem; padding: .4rem 0; display: flex; align-items: flex-start; gap: .6rem; color: var(--text-secondary); }
.pricing-features li i { color: var(--success); font-size: .8rem; margin-top: 4px; flex-shrink: 0; }
.pricing-features li.disabled { color: var(--text-muted); opacity: .5; }
.pricing-features li.disabled i { color: var(--text-muted); }
.btn-pricing { width: 100%; padding: .75rem; border-radius: 6px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all .15s; text-align: center; display: block; text-decoration: none; }
.btn-pricing-primary { background: var(--accent); color: #fff; border: none; box-shadow: 0 2px 8px rgba(99,102,241,.3); }
.btn-pricing-primary:hover { background: var(--accent-hover); }
.btn-pricing-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-pricing-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-muted); }

@media (max-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

/* ── Resellers ──────────────────────────────────────────────── */
.resellers-section { background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%); }
.reseller-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.reseller-content h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; }
.reseller-content p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.8rem; }
.reseller-benefits { list-style: none; padding: 0; margin: 0 0 2rem; }
.reseller-benefits li { display: flex; align-items: flex-start; gap: .8rem; padding: .6rem 0; font-size: 1rem; }
.reseller-benefits li i { color: var(--accent); font-size: 1.15rem; margin-top: 3px; flex-shrink: 0; }
.reseller-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.reseller-stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 1.5rem; text-align: center; transition: all .2s; }
.reseller-stat-card:hover { border-color: rgba(99,102,241,.3); transform: translateY(-2px); }
.reseller-stat-value { font-size: 2rem; font-weight: 800; color: var(--accent); }
.reseller-stat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; margin-top: .3rem; }

@media (max-width: 768px) { .reseller-grid { grid-template-columns: 1fr; } .reseller-content h2 { font-size: 1.8rem; } }

/* ── Registro ───────────────────────────────────────────────── */
.registro-section { background: var(--bg-primary); }
.registro-box { max-width: 640px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 3rem 2.5rem; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.registro-box h2 { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: .4rem; }
.registro-box .registro-sub { text-align: center; font-size: .95rem; color: var(--text-muted); margin-bottom: 1.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--text-secondary); margin-bottom: .35rem; }
.form-group input, .form-group select { width: 100%; padding: .65rem .9rem; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-primary); font-size: 1rem; font-family: inherit; outline: none; transition: border .15s, box-shadow .15s; }
.form-group input:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.form-group input::placeholder { color: var(--text-muted); }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7394' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem; }
.btn-registro { width: 100%; padding: .8rem; background: var(--accent); color: #fff; border: none; border-radius: 6px; font-size: 1.05rem; font-weight: 700; cursor: pointer; font-family: inherit; margin-top: .8rem; transition: all .15s; box-shadow: 0 2px 8px rgba(99,102,241,.3); display: flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-registro:hover { background: var(--accent-hover); }
.btn-registro:active { transform: scale(.98); }
.btn-registro:disabled { opacity: .5; cursor: not-allowed; }
.registro-error { color: var(--danger); font-size: .88rem; text-align: center; min-height: 1.2em; margin-top: .5rem; }
.registro-footer-note { text-align: center; font-size: .85rem; color: var(--text-muted); margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border-color); line-height: 1.6; }
.registro-footer-note a { color: var(--accent); text-decoration: none; }

@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } .registro-box { padding: 2rem 1.5rem; } }

/* ── Footer ─────────────────────────────────────────────────── */
.landing-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.footer-brand-icon { width: 36px; height: 36px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff; }
.footer-brand-text { font-weight: 800; font-size: 1.1rem; }
.footer-desc { font-size: .95rem; color: var(--text-muted); line-height: 1.6; max-width: 360px; }
.footer-col h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: .95rem; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--border-color); font-size: .85rem; color: var(--text-muted); }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-bottom { flex-direction: column; gap: .6rem; text-align: center; } }

/* ── Animations ─────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(15px); transition: opacity .4s ease, transform .4s ease; }
.stagger.visible > *:nth-child(1) { transition-delay: .05s; }
.stagger.visible > *:nth-child(2) { transition-delay: .1s; }
.stagger.visible > *:nth-child(3) { transition-delay: .15s; }
.stagger.visible > *:nth-child(4) { transition-delay: .2s; }
.stagger.visible > *:nth-child(5) { transition-delay: .25s; }
.stagger.visible > *:nth-child(6) { transition-delay: .3s; }
.stagger.visible > *:nth-child(7) { transition-delay: .35s; }
.stagger.visible > *:nth-child(8) { transition-delay: .4s; }
.stagger.visible > *:nth-child(9) { transition-delay: .45s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }
