/* PyMood · Landing / marketing */

.landing-page {
  --lp-bg: #f8fafc;
  --lp-panel: #ffffff;
  --lp-text: #0f172a;
  --lp-muted: #64748b;
  --lp-teal: #0d9488;
  --lp-teal-soft: #5eead4;
  --lp-orange: #f98012;
  --lp-navy: #0f172a;
  --lp-line: #e2e8f0;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
}

.landing-page a { text-decoration: none; color: inherit; }

/* Header unificado */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lp-line);
}

.lp-header-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 600;
  color: #9a3412;
  background: linear-gradient(90deg, #fff7ed, #ffedd5);
  border-bottom: 1px solid #fed7aa;
}

.lp-header-demo-text { opacity: 0.95; }

.lp-header-demo-cta {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(249, 128, 18, 0.18);
  color: #c2410c;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.lp-header-demo-cta:hover { background: rgba(249, 128, 18, 0.28); }

.lp-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 40px);
  padding: 12px clamp(20px, 4vw, 56px);
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 60px;
  box-sizing: border-box;
}

.lp-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  min-width: 0;
}

.lp-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
  min-width: 0;
}

.lp-brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.lp-brand-tagline {
  font-size: 11px;
  font-weight: 500;
  color: var(--lp-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.lp-brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--lp-teal), var(--lp-teal-soft));
  display: grid;
  place-items: center;
  color: #042f2e;
  font-size: 13px;
  font-weight: 800;
}

.lp-nav-links {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.5vw, 40px);
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-muted);
  white-space: nowrap;
  min-width: 0;
  padding: 0 clamp(8px, 2vw, 32px);
}

.lp-nav-links a {
  padding: 6px 2px;
  transition: color 0.15s ease;
}

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

.lp-header-utilities {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.lp-header-divider {
  width: 1px;
  height: 28px;
  background: var(--lp-line);
  flex-shrink: 0;
}

.lp-lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #f8fafc;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  flex-shrink: 0;
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.lp-nav-actions .lp-btn {
  padding: 9px 16px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lp-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Header legacy en demo/planes (sin lp-header-main) */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  min-height: 48px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--lp-line);
  backdrop-filter: blur(12px);
}

@media (min-width: 1400px) {
  .lp-header-main { padding: 14px 64px; gap: 48px; }
  .lp-nav-links { gap: 44px; font-size: 15px; }
  .lp-header-utilities { gap: 24px; }
  .lp-nav-actions { gap: 12px; }
  .lp-nav-actions .lp-btn { padding: 10px 18px; font-size: 14px; }
}

@media (max-width: 1200px) and (min-width: 961px) {
  .lp-nav-links { gap: 22px; font-size: 13px; }
  .lp-nav-actions .lp-btn { padding: 8px 13px; font-size: 12px; }
  .lp-header-utilities { gap: 16px; }
  .lp-header-main { gap: 24px; padding: 12px 28px; }
}

.lp-lang-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: 0.15s ease;
  border: 2px solid transparent;
}

.lp-lang-btn:hover {
  transform: scale(1.08);
  background: #fff;
}

.lp-lang-btn.active {
  border-color: var(--lp-teal);
  background: #fff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.18);
}

/* Barra demo legacy (otras páginas) */
.lp-demo-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 6px 20px;
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
  background: linear-gradient(90deg, #fff7ed, #ffedd5);
  border-bottom: 1px solid #fed7aa;
}

.lp-demo-notice a {
  color: var(--lp-orange);
  font-weight: 700;
  text-decoration: none;
}

.lp-demo-notice a:hover { text-decoration: underline; }

.lp-demo-notice-inline {
  margin: 0 0 20px;
  max-width: none;
  border-radius: 12px;
  border: 1px solid #fed7aa;
}

.lp-demo-steps-vertical {
  grid-template-columns: 1fr !important;
}

.lp-step-card {
  text-align: left;
  padding: 20px;
}

.lp-step-card .num {
  margin: 0 0 10px;
}

.lp-demo-expired {
  text-align: center;
  padding-top: 64px;
}

.lp-hero-copy { min-width: 0; }

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
}

.lp-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }

.lp-btn.ghost {
  background: transparent;
  border-color: var(--lp-line);
  color: var(--lp-text);
}

.lp-btn.primary {
  background: linear-gradient(135deg, var(--lp-teal), #0891b2);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.25);
}

.lp-btn.orange {
  background: linear-gradient(135deg, var(--lp-orange), #ea580c);
  color: #fff;
  box-shadow: 0 10px 24px rgba(249, 128, 18, 0.28);
}

.lp-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.lp-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-teal);
  font-weight: 700;
  margin-bottom: 12px;
}

.lp-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.lp-hero h1 em {
  font-style: normal;
  color: var(--lp-teal);
}

.lp-hero-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--lp-muted);
  max-width: 560px;
  margin-bottom: 24px;
}

.lp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.lp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.lp-stat {
  background: var(--lp-panel);
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.lp-stat .n {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lp-teal);
}

.lp-stat .l {
  font-size: 11px;
  color: var(--lp-muted);
  margin-top: 4px;
  line-height: 1.3;
}

.lp-hero-visual {
  position: relative;
  min-width: 0;
}

.lp-showcase-frame {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--lp-line);
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  overflow: visible;
}

.lp-showcase-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 12px;
}

.lp-showcase-light {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.lp-showcase-dark {
  margin-top: 24px;
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: visible;
}

.lp-bigdata {
  background: linear-gradient(155deg, #081226 0%, #0f172a 55%, #134e4a 100%);
  color: #fff;
  border-radius: 24px;
  padding: 28px 24px 32px;
  margin: 0 auto 40px;
  max-width: 1180px;
  width: calc(100% - 56px);
  overflow: visible;
}

.lp-showcase-pipeline {
  margin-top: 0;
  padding: 12px 10px 14px;
  background: rgba(0, 0, 0, 0.2);
}

.lp-showcase-pipeline img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.lp-showcase-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

.lp-caption-card {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  font-size: 12px;
}

.lp-caption-card strong { display: block; color: var(--lp-teal); margin-bottom: 4px; }

.lp-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 28px;
}

.lp-section h2 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.lp-section-lead {
  color: var(--lp-muted);
  max-width: 640px;
  margin-bottom: 24px;
  line-height: 1.55;
}

.lp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lp-feature {
  background: var(--lp-panel);
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  padding: 22px;
}

.lp-feature .ico { font-size: 28px; margin-bottom: 12px; }
.lp-feature h3 { font-size: 16px; margin-bottom: 8px; }
.lp-feature p { font-size: 14px; color: var(--lp-muted); line-height: 1.5; }

.lp-bigdata .lp-showcase-frame img {
  background: #0a1628;
}

.lp-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lp-plan {
  background: var(--lp-panel);
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.lp-plan.featured {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 20px 50px rgba(13, 148, 136, 0.12);
  transform: scale(1.02);
}

.lp-plan .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-teal);
  margin-bottom: 8px;
}

.lp-plan h3 { font-size: 20px; margin-bottom: 6px; }
.lp-plan .price { font-size: 32px; font-weight: 800; margin: 12px 0; }
.lp-plan .price small { font-size: 14px; font-weight: 500; color: var(--lp-muted); }
.lp-plan ul { list-style: none; margin: 16px 0 20px; flex: 1; }
.lp-plan li { font-size: 14px; color: var(--lp-muted); padding: 6px 0; border-bottom: 1px solid var(--lp-faint, #f1f5f9); }
.lp-plan li::before { content: "✓ "; color: var(--lp-teal); font-weight: 700; }

.lp-demo-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.lp-step {
  background: var(--lp-panel);
  border: 1px solid var(--lp-line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.lp-step .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.12);
  color: var(--lp-teal);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin: 0 auto 10px;
  font-size: 13px;
}

.lp-step p { font-size: 12px; color: var(--lp-muted); line-height: 1.4; }

.lp-footer {
  border-top: 1px solid var(--lp-line);
  padding: 0;
  text-align: center;
  color: var(--lp-muted);
  font-size: 13px;
  background: #0f172a;
  color: #94a3b8;
}

.lp-footer-meta {
  padding: 20px 28px 28px;
  margin: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.lp-footer-meta a { color: #5eead4; }

.lp-footer-visitors {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  overflow: hidden;
  text-align: left;
}

.lp-footer-visitors .lp-visitor-count strong {
  color: #5eead4;
}

.lp-footer-visitors .lp-flag-marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.lp-footer-visitors .lp-visit-item {
  color: #cbd5e1;
  font-size: 13px;
}

.lp-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(155deg, #f8fafc, #ecfdf5);
}

.lp-auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.lp-auth-card h1 { font-size: 24px; margin-bottom: 8px; }
.lp-auth-card p { color: var(--lp-muted); font-size: 14px; margin-bottom: 20px; }

.lp-auth-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-muted);
  margin: 12px 0 6px;
}

.lp-auth-card input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  font-size: 14px;
}

.lp-auth-card input:focus {
  outline: none;
  border-color: var(--lp-teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.lp-auth-card .lp-btn { width: 100%; justify-content: center; margin-top: 18px; }

@media (max-width: 960px) {
  .lp-hero {
    grid-template-columns: 1fr;
    padding: 32px 20px 24px;
  }
  .lp-hero-visual { order: -1; }
  .lp-features, .lp-plans, .lp-demo-steps, .lp-stats {
    grid-template-columns: 1fr;
  }
  .lp-header-main {
    gap: 12px;
    padding: 10px 16px;
    min-height: 52px;
  }
  .lp-nav-links { display: none; }
  .lp-brand-tagline { display: none; }
  .lp-brand-name { font-size: 14px; }
  .lp-brand-badge { width: 32px; height: 32px; font-size: 12px; }
  .lp-header-utilities {
    gap: 10px;
    flex-wrap: nowrap;
  }
  .lp-header-divider { height: 22px; }
  .lp-lang-switch { padding: 2px; }
  .lp-lang-btn { width: 24px; height: 24px; font-size: 14px; }
  .lp-nav-actions { gap: 6px; }
  .lp-nav-actions .lp-btn { padding: 7px 11px; font-size: 11px; }
  .lp-nav-actions .lp-btn.ghost { display: none; }
  .lp-header-demo { font-size: 10px; padding: 4px 12px; }
  .lp-nav {
    flex-wrap: wrap;
    padding: 8px 14px;
    gap: 8px;
  }
  .lp-nav-right {
    width: 100%;
    justify-content: space-between;
  }
  .lp-nav-actions {
    flex: 1;
    justify-content: flex-end;
  }
  .lp-bigdata {
    width: calc(100% - 32px);
    padding: 24px 20px 28px;
  }
  .lp-section { padding: 32px 20px; }
  .lp-plan.featured { transform: none; }
  .lp-demo-notice { padding: 10px 16px; font-size: 12px; }
}

.hidden { display: none !important; }

.lp-auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

.lp-visitor-bar,
.lp-footer-visitors {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 28px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
  overflow: hidden;
}

.lp-footer-visitors {
  padding: 14px 28px;
  gap: 20px;
  text-align: left;
}

.lp-visitor-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lp-visitor-count strong {
  font-size: 16px;
  color: #5eead4;
}

.lp-visitor-label {
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lp-flag-marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.lp-flag-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: lp-marquee 36s linear infinite;
}

.lp-visit-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #cbd5e1;
  white-space: nowrap;
}

.lp-visit-flag {
  font-size: 18px;
  line-height: 1;
}

.lp-flag-item {
  font-size: 22px;
  line-height: 1;
}

@keyframes lp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .lp-visitor-bar,
  .lp-footer-visitors {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
  }
  .lp-footer-meta { padding: 16px; }
}

@media (max-width: 600px) {
  .lp-header-main { padding: 8px 12px; }
  .lp-header-utilities { gap: 8px; }
  .lp-header-divider { display: none; }
  .lp-nav-actions .lp-btn { padding: 6px 9px; font-size: 10px; }
  .lp-header-demo-text { display: none; }
  .lp-header-demo { justify-content: center; }
}

@media (max-width: 480px) {
  .lp-nav-actions .lp-btn.primary { display: none; }
  .lp-hero-ctas .lp-btn { width: 100%; justify-content: center; }
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-lang-btn { width: 28px; height: 28px; font-size: 15px; }
}
