/* ═══════════════════════════════════════════════════════════════
   ND|Focus — landing.css
   Mobile first (375px) → tablet → escritorio.
   Reutiliza variables de styles.css (--bg, --gold, --text, fuentes).
═══════════════════════════════════════════════════════════════ */

.landing-body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════════════════════════ */
.ld-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,12,12,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.ld-header-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ld-brand { text-decoration: none; color: var(--text); }
.ld-brand-mark {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}
.ld-brand-pipe { color: var(--gold); margin: 0 3px; font-weight: 400; }

/* ── Toggle móvil ── */
.ld-nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--border2); border-radius: 8px;
  cursor: pointer;
  padding: 0; align-items: center;
}
.ld-nav-toggle-bar {
  width: 20px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.ld-nav-toggle[aria-expanded="true"] .ld-nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.ld-nav-toggle[aria-expanded="true"] .ld-nav-toggle-bar:nth-child(2) { opacity: 0; }
.ld-nav-toggle[aria-expanded="true"] .ld-nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.ld-nav {
  flex-basis: 100%;
  display: none;
  flex-direction: column;
  gap: 16px;
  padding-top: 12px;
}
.ld-nav.ld-nav-open { display: flex; }

.ld-nav-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
}
.ld-nav-list a {
  display: block;
  color: var(--text2);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 4px;
  min-height: 44px;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
}
.ld-nav-list a:hover { color: var(--text); }

.ld-nav-ctas { display: flex; flex-direction: column; gap: 10px; }

/* ══════════════════════════════════════════════════════════════
   BOTONES
══════════════════════════════════════════════════════════════ */
.ld-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, opacity 0.18s;
}
.ld-btn-primary {
  background: var(--gold); color: #0a0a0a;
}
.ld-btn-primary:hover { background: var(--gold-hover); }
.ld-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.ld-btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border2);
}
.ld-btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.ld-btn-text {
  background: transparent; color: var(--text2); padding-left: 4px; padding-right: 4px;
}
.ld-btn-text:hover { color: var(--gold); }

.ld-btn-lg { padding: 13px 26px; font-size: 1rem; }

/* ══════════════════════════════════════════════════════════════
   LAYOUT DE SECCIONES
══════════════════════════════════════════════════════════════ */
.ld-section-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
}
.ld-section { padding: 56px 0; }
.ld-section-alt { background: var(--surface); }

.ld-section h2 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin-bottom: 10px;
}
.ld-section-lead {
  color: var(--text2);
  font-size: 1rem;
  max-width: 60ch;
  margin-bottom: 32px;
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.ld-hero { padding: 64px 0 56px; }
.ld-hero-inner { max-width: 760px; }
.ld-eyebrow {
  color: var(--gold);
  font-family: var(--font-code);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ld-hero h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: 18px;
}
.ld-hero-lead {
  color: var(--text2);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 56ch;
}
.ld-hero-ctas {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}

/* ══════════════════════════════════════════════════════════════
   GRID DE CAPACIDADES
══════════════════════════════════════════════════════════════ */
.ld-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }

.ld-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.ld-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.ld-card p { color: var(--text2); font-size: 0.92rem; line-height: 1.55; }

/* ══════════════════════════════════════════════════════════════
   BENEFICIOS
══════════════════════════════════════════════════════════════ */
.ld-benefits {
  list-style: none;
  display: grid; gap: 20px; grid-template-columns: 1fr;
}
.ld-benefits h3 { font-size: 1.02rem; margin-bottom: 6px; }
.ld-benefits p { color: var(--text2); font-size: 0.92rem; line-height: 1.55; }

/* ══════════════════════════════════════════════════════════════
   PROCESO
══════════════════════════════════════════════════════════════ */
.ld-process {
  list-style: none;
  display: grid; gap: 20px; grid-template-columns: 1fr;
  counter-reset: none;
}
.ld-process li {
  position: relative;
  padding-left: 52px;
}
.ld-process-num {
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 0.95rem;
}
.ld-process h3 { font-size: 1rem; margin-bottom: 4px; }
.ld-process p { color: var(--text2); font-size: 0.92rem; line-height: 1.55; }

/* ══════════════════════════════════════════════════════════════
   CONFIANZA
══════════════════════════════════════════════════════════════ */
.ld-stats {
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
.ld-stat {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.ld-stat dt {
  font-family: var(--font-code);
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ld-stat dd { color: var(--text); font-size: 0.95rem; margin: 0; }

/* ══════════════════════════════════════════════════════════════
   FORMULARIO DE CONTACTO
══════════════════════════════════════════════════════════════ */
.ld-contact-inner { max-width: 720px; }
.ld-contact-intro { margin-bottom: 12px; }

.ld-form {
  display: grid; gap: 18px; grid-template-columns: 1fr;
  margin-top: 12px;
}
.ld-field { display: flex; flex-direction: column; gap: 6px; }
.ld-field-full { grid-column: 1 / -1; }

.ld-field label {
  font-size: 0.9rem; font-weight: 700; color: var(--text);
}
.ld-optional { font-weight: 400; color: var(--muted); }

.ld-field input,
.ld-field select,
.ld-field textarea {
  min-height: 44px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 13px;
}
.ld-field textarea { min-height: 100px; resize: vertical; }

.ld-field input:invalid[aria-invalid="true"],
.ld-field select[aria-invalid="true"],
.ld-field textarea[aria-invalid="true"],
.ld-field input[aria-invalid="true"] {
  border-color: var(--red);
}

.ld-field-hint {
  color: var(--muted); font-size: 0.8rem;
}

.ld-field-error {
  display: flex; align-items: center; gap: 6px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 500;
}
.ld-field-error::before {
  content: '⚠';
  font-size: 0.85rem;
}
.ld-field-error[hidden] { display: none; }

.ld-form-footer {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  margin-top: 4px;
}
.ld-form-status {
  font-size: 0.9rem; min-height: 20px;
}
.ld-form-status[data-state="success"] { color: var(--green); }
.ld-form-status[data-state="error"] { color: var(--red); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.ld-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--surface);
}
.ld-footer-inner {
  display: flex; flex-direction: column; gap: 20px;
}
.ld-footer-brand p { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.ld-footer-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.ld-footer-nav a {
  color: var(--text2); text-decoration: none; font-size: 0.88rem;
  min-height: 44px; display: flex; align-items: center;
}
.ld-footer-nav a:hover { color: var(--gold); }
.ld-footer-copy { color: var(--muted); font-size: 0.8rem; }

/* ══════════════════════════════════════════════════════════════
   BREAKPOINTS — tablet (≥640px) y escritorio (≥1024px)
══════════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .ld-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ld-benefits { grid-template-columns: repeat(2, 1fr); }
  .ld-process { grid-template-columns: repeat(2, 1fr); }
  .ld-stats { grid-template-columns: repeat(3, 1fr); }
  .ld-form { grid-template-columns: 1fr 1fr; }
  .ld-hero h1 { font-size: 2.6rem; }
  .ld-hero-ctas { flex-direction: row; align-items: center; }
}

@media (min-width: 900px) {
  .ld-nav-toggle { display: none; }
  .ld-header-inner { flex-wrap: nowrap; }
  .ld-nav {
    display: flex !important;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding-top: 0;
  }
  .ld-nav-list { flex-direction: row; gap: 22px; }
  .ld-nav-list a { border-bottom: none; min-height: auto; padding: 4px 0; }
  .ld-nav-ctas { flex-direction: row; }
}

@media (min-width: 1024px) {
  .ld-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .ld-section { padding: 80px 0; }
  .ld-hero { padding: 96px 0 80px; }
  .ld-hero h1 { font-size: 3.1rem; }
  .ld-section h2 { font-size: 2rem; }
}
