/* Landing principal, legales y contacto — diseño editorial limpio sobre tokens Submitt */

.landing-body {
  background: var(--bg);
  color: var(--text);
}

.l-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER ---- */
.l-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.l-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.l-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.l-nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.14s ease;
}

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

.l-nav-mobile-only {
  display: none;
}

.l-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.l-theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.l-theme-btn:hover {
  color: var(--text);
  background: var(--subtle);
}

.l-header .popover-floating {
  top: 48px;
  right: 0;
}

.l-mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---- HERO ---- */
.l-hero {
  padding: 72px 0 64px;
}

.l-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.l-h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--text);
}

.l-hero-lead {
  margin: 0 0 26px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
}

.l-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-lg {
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 550;
  border-radius: 9px;
}

.l-portals-inline {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.l-portals-inline img {
  height: 15px;
  width: auto;
  display: block;
  opacity: 0.85;
}

/* ---- CHROME + SIDEPANEL BROWSER FRAME ---- */
.l-browser {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.l-browser-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.l-browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.l-browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--border-strong);
}

.l-stage-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--bg);
  border-radius: 7px;
  border: 1px solid var(--border);
}

.l-stage-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.l-stage-tab.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.l-browser-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: 318px;
}

.l-portal-pane {
  padding: 20px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.l-portal-job-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.l-portal-job-meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.l-portal-q-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.l-portal-q-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.l-portal-q-label {
  font-size: 11.5px;
  color: var(--muted);
}

.l-portal-q-chip {
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text);
}

.l-sp-pane {
  padding: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.l-sp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.l-sp-portal-tag {
  font-size: 11.5px;
  font-weight: 550;
  color: var(--text);
}

.l-sp-match {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ok-soft);
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}

.l-sp-card {
  padding: 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.l-sp-status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.l-sp-detail {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.l-sp-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.l-sp-note {
  font-size: 11.5px;
  color: var(--muted);
}

/* ---- EDITORIAL STEPS ROW (NO BOXES) ---- */
.l-section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.l-section-surface {
  background: var(--surface);
}

.l-sec-head {
  max-width: 560px;
  margin-bottom: 36px;
}

.l-sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.l-h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  margin: 0 0 10px;
  color: var(--text);
}

.l-sec-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.l-steps-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.l-step-col {
  padding: 24px 24px 0 0;
}

.l-step-col:last-child {
  padding-right: 0;
}

.l-step-index {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 10px;
}

.l-step-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.l-step-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---- CAPABILITIES SPLIT ---- */
.l-cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
}

.l-cap-item {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.l-cap-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.l-cap-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- PRICING ---- */
.l-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.l-plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.l-plan-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.l-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.l-plan-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.l-plan-price {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.l-plan-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.l-plan-desc {
  margin: 2px 0 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  flex: 1;
}

.l-pricing-footnote {
  text-align: center;
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---- FAQ ---- */
.l-faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: start;
}

.l-faq-list {
  display: flex;
  flex-direction: column;
}

.l-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.l-faq-item:first-child {
  border-top: 1px solid var(--border);
}

.l-faq-item summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.l-faq-item summary::-webkit-details-marker {
  display: none;
}

.l-faq-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 0;
}

.l-faq-item[open] summary::after {
  content: "−";
}

.l-faq-item p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- FOOTER ---- */
.l-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 40px 0 28px;
}

.l-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.l-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.l-footer-links a,
.l-footer-bottom a {
  text-decoration: none;
  font-size: 13px;
  color: var(--muted);
}

.l-footer-links a:hover,
.l-footer-bottom a:hover {
  color: var(--text);
}

.l-footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.l-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.l-auth-main {
  min-height: calc(100vh - 196px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: radial-gradient(circle at 50% 0%, var(--auth-glow) 0%, var(--bg) 68%);
}

/* ---- LEGAL & CONTACT DOCS ---- */
.l-doc-wrap {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 52px 24px 80px;
}

.l-doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
}

.l-doc-card h1 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
}

.l-doc-updated {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--muted);
}

.l-doc-card h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 8px;
}

.l-doc-card p,
.l-doc-card li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.l-doc-card ul {
  padding-left: 18px;
  margin: 8px 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .l-hero-grid,
  .l-steps-row,
  .l-cap-grid,
  .l-plans-grid,
  .l-faq-wrap,
  .l-browser-split {
    grid-template-columns: 1fr;
  }

  .l-portal-pane {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .l-hero {
    padding: 44px 0;
  }

  .l-section {
    padding: 52px 0;
  }

  .l-step-col {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
  }

  .l-step-col:last-child {
    border-bottom: none;
  }
}

@media (max-width: 900px) {
  .l-mobile-toggle {
    display: inline-flex;
  }

  .l-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-strong);
    padding: 8px 24px 14px;
    z-index: 39;
  }

  .l-nav.open {
    display: flex;
  }

  .l-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }

  .l-nav a:last-child {
    border-bottom: none;
  }

  .l-nav-mobile-only {
    display: block;
  }

  .l-doc-card {
    padding: 24px 20px;
  }
}

@media (max-width: 560px) {
  .l-wrap {
    padding: 0 16px;
  }

  .l-header-actions #navAuthLink {
    display: none;
  }
}
