/* Tervo landing page styles. */

.lp {
  overflow-x: hidden;
  color: var(--color-text);
}
.lp img, .lp svg { display: block; }
.lp .wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(140%) blur(10px);
}

.lp-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.lp-brand b {
  color: var(--color-primary);
  font-weight: 700;
}

.lp-navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.lp-navlinks a {
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

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

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.lp-btn-primary {
  color: #fff;
  background: var(--color-primary);
}

.lp-btn-primary:hover {
  color: #fff;
  background: var(--color-primary-hover);
}

.lp-btn-primary:visited {
  color: #fff;
}

.lp-navlinks .lp-btn-primary {
  color: #fff;
  box-shadow: 0 1px 0 rgba(18, 59, 56, 0.16);
}

.lp-navlinks .lp-btn-primary:hover {
  color: #fff;
  background: var(--color-primary-hover);
}

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

.lp-btn-ghost:hover {
  background: var(--color-surface-muted);
  border-color: var(--color-border-strong);
}

.lp-btn-light {
  color: var(--teal-900);
  background: #fff;
}

.lp-btn-light:hover {
  background: var(--teal-50);
}

.lp-btn-lg {
  height: 52px;
  padding: 0 26px;
  font-size: 1.05rem;
}

.lp-hero {
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--color-surface) 100%);
  border-bottom: 1px solid var(--color-border);
}

.lp-hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0 88px;
}

.lp-hero .wrap > * {
  min-width: 0;
}

.lp-eyebrow {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 6px 12px;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.lp-h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 4.6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.lp-h1 .accent {
  color: var(--color-primary);
}

.lp-lead {
  max-width: 38ch;
  margin: 0 0 30px;
  color: var(--slate-700);
  font-size: 1.22rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.lp-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.lp-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.lp-proof span {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.lp-mock {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lp-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--color-surface-muted);
  border-bottom: 1px solid var(--color-border);
}

.lp-mock-bar .dot {
  width: 10px;
  height: 10px;
  background: var(--slate-300);
  border-radius: 50%;
}

.lp-mock-bar .ttl {
  margin-left: 8px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.lp-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--color-border);
}

.lp-metrics div {
  padding: 18px 16px;
  border-right: 1px solid var(--color-border);
}

.lp-metrics div:last-child {
  border-right: 0;
}

.lp-metrics strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text);
  font-size: 1.7rem;
  line-height: 1;
}

.lp-metrics span {
  color: var(--color-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.lp-mock table {
  width: 100%;
  border-collapse: collapse;
}

.lp-mock th,
.lp-mock td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  text-align: left;
  overflow-wrap: anywhere;
}

.lp-mock th {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lp-mock td .id {
  font-family: var(--font-mono);
  font-weight: 600;
}

.lp-mock tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill::before {
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.pill.apto {
  color: var(--green-700);
  background: var(--green-100);
}

.pill.novedad {
  color: var(--amber-700);
  background: var(--amber-100);
}

.pill.noapto {
  color: var(--red-700);
  background: var(--red-100);
}

.lp-section {
  padding: 92px 0;
}

.lp-section.tint {
  background: var(--color-surface-muted);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.lp-head {
  max-width: 640px;
  margin: 0 0 52px;
}

.lp-head .k {
  margin: 0 0 12px;
  color: var(--teal-700);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lp-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.lp-head p {
  margin: 0;
  color: var(--slate-700);
  font-size: 1.1rem;
  line-height: 1.55;
}

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

.lp-feature {
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.lp-feature .ico {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: var(--radius-sm);
}

.lp-feature .ico svg {
  width: 22px;
  height: 22px;
}

.lp-feature h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.lp-feature p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.55;
}

.lp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: st;
}

.lp-step {
  position: relative;
  padding: 28px 22px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.lp-step .n {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  color: #fff;
  background: var(--color-primary);
  border-radius: 50%;
  counter-increment: st;
  font-weight: 700;
}

.lp-step .n::before {
  content: counter(st);
}

.lp-step h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.lp-step p {
  margin: 0;
  color: var(--slate-700);
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.lp-state {
  padding: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.lp-state .pill {
  margin-bottom: 14px;
}

.lp-state p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.55;
}

.lp-contact-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.lp-contact-wrap .lp-head {
  margin-bottom: 0;
}

.lp-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.lp-field {
  display: grid;
  gap: 7px;
}

.lp-field.full,
.lp-form-message,
.lp-contact .lp-btn,
.hp-field {
  grid-column: 1 / -1;
}

.lp-field label {
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.lp-field input,
.lp-field select,
.lp-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font: inherit;
}

.lp-field input,
.lp-field select {
  height: 44px;
  padding: 0 12px;
}

.lp-field textarea {
  min-height: 128px;
  padding: 12px;
  resize: vertical;
}

.lp-field input:focus,
.lp-field select:focus,
.lp-field textarea:focus {
  outline: 2px solid rgba(31, 95, 91, 0.18);
  border-color: var(--color-primary);
}

.lp-form-message {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.lp-form-message.success {
  display: block;
  color: var(--green-700);
  background: var(--green-100);
}

.lp-form-message.error {
  display: block;
  color: var(--red-700);
  background: var(--red-100);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lp-band {
  color: #fff;
  background: var(--teal-900);
}

.lp-band .wrap {
  padding: 76px 0;
  text-align: center;
}

.lp-band h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0;
}

.lp-band p {
  max-width: 52ch;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.15rem;
  line-height: 1.55;
}

.lp-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.lp-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 32px 0;
}

.lp-footer .lp-brand {
  font-size: 1.05rem;
}

.lp-footer .meta {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.lp-legal-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.lp-legal-links a {
  color: inherit;
  text-decoration: none;
}

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

.lp-footer .lp-maker {
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .lp .wrap {
    width: 100%;
    max-width: 100%;
    padding-right: 24px;
    padding-left: 24px;
  }

  .lp-hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 60px;
  }

  .lp-h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
    white-space: normal;
    text-wrap: wrap;
  }

  .lp-lead {
    max-width: 100%;
  }

  .lp-features,
  .lp-states,
  .lp-contact-wrap {
    grid-template-columns: 1fr;
  }

  .lp-contact-wrap {
    gap: 28px;
  }

  .lp-steps {
    grid-template-columns: 1fr 1fr;
  }

  .lp-navlinks .hide-sm {
    display: none;
  }

  .lp-section {
    padding: 64px 0;
  }
}

@media (max-width: 560px) {
  .lp .wrap {
    width: 100%;
    max-width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

  .lp-nav .wrap {
    min-height: 64px;
  }

  .lp-navlinks {
    gap: 12px;
  }

  .lp-navlinks .lp-btn-primary {
    height: 40px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .lp-h1 {
    width: 100%;
    max-width: 100%;
    font-size: 2rem;
    white-space: normal;
    text-wrap: wrap;
  }

  .lp-lead {
    max-width: 100%;
  }

  .lp-steps,
  .lp-metrics {
    grid-template-columns: 1fr;
  }

  .lp-contact {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .lp-metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .lp-metrics div:last-child {
    border-bottom: 0;
  }
}

/* ============================================================
   NAVY + TEAL · v2 overrides
   Navy bookends (hero + closing band) with teal accents.
   These later rules win over the lighter originals above.
   ============================================================ */

/* Hero becomes the navy brand moment */
.lp-hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-bottom: 1px solid var(--navy-700);
}

.lp-eyebrow {
  color: #aee3da;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.lp-h1 { color: var(--color-on-brand); }
.lp-h1 .accent { color: var(--teal-bright); }

.lp-lead { color: rgba(255, 255, 255, 0.82); }

.lp-proof { color: rgba(255, 255, 255, 0.7); }
.lp-proof span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Ghost CTA in the hero (scoped so the white-background footer ghost is untouched) */
.lp-hero .lp-btn-ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
}
.lp-hero .lp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Closing band: navy instead of deep teal */
.lp-band { background: var(--navy-900); }

.lp-legal {
  padding: 72px 0 86px;
  background: var(--color-surface);
}

.lp-legal .wrap {
  max-width: 860px;
}

.lp-legal .k {
  margin: 0 0 12px;
  color: var(--teal-700);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lp-legal h1 {
  margin: 0 0 16px;
  color: var(--navy-900);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.lp-legal-lead {
  max-width: 720px;
  margin: 0 0 40px;
  color: var(--slate-700);
  font-size: 1.12rem;
  line-height: 1.6;
}

.lp-legal section {
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
}

.lp-legal h2 {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: 1.2rem;
}

.lp-legal p,
.lp-legal li {
  color: var(--slate-700);
  line-height: 1.65;
}

.lp-legal p {
  margin: 0;
}

.lp-legal ul {
  margin: 0;
  padding-left: 20px;
}

.lp-legal a {
  color: var(--color-primary);
  font-weight: 700;
}

.lp-legal code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
