/* Vektor: presentación pública. Sin estilos ni scripts embebidos. */

:root {
  --landing-cream: #f7f3e9;
  --landing-paper: #fffdf8;
  --landing-ink: #10241f;
  --landing-muted: #587168;
  --landing-green: #173f34;
  --landing-green-bright: #2f7a65;
  --landing-line: rgba(23, 63, 52, 0.14);
}

body:has(.landing-page) {
  padding-bottom: 0;
}

.landing-page {
  overflow: hidden;
  background: var(--landing-cream);
  color: var(--landing-ink);
}

.landing-page section[id] { scroll-margin-top: 5rem; }

.landing-shell {
  width: min(100% - 2rem, 74rem);
  margin-inline: auto;
}

.landing-header {
  position: sticky;
  z-index: 1030;
  top: 0;
  border-bottom: 1px solid var(--landing-line);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(16px);
}

.landing-nav {
  display: flex;
  min-height: 4.6rem;
  align-items: center;
  gap: 2rem;
}

.landing-links {
  display: flex;
  align-items: center;
  gap: 1.65rem;
  margin-left: auto;
}

.landing-links a,
.landing-login {
  color: var(--landing-muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.landing-links a:hover,
.landing-login:hover {
  color: var(--landing-green-bright);
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-nav-cta {
  min-height: 2.6rem;
  padding-inline: 1rem;
  font-size: 0.82rem;
}

.landing-hero {
  position: relative;
  isolation: isolate;
  min-height: 42rem;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #102b24;
}

.landing-hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("../images/landing/hero-aprendia-general.01708fe7a5d2.webp");
  background-position: center;
  background-size: cover;
}

.landing-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 27, 22, 0.98) 0%, rgba(7, 27, 22, 0.94) 34%, rgba(7, 27, 22, 0.58) 58%, rgba(7, 27, 22, 0.08) 84%),
    linear-gradient(0deg, rgba(7, 27, 22, 0.46), transparent 45%);
  content: "";
}

.landing-hero::after {
  position: absolute;
  z-index: -1;
  top: 12%;
  left: -8rem;
  width: 27rem;
  height: 27rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255, 255, 255, 0.02), 0 0 0 8rem rgba(255, 255, 255, 0.015);
  content: "";
}

.landing-hero-inner {
  padding-block: 6rem 7rem;
}

.landing-hero-copy {
  max-width: 39rem;
  color: #f8fbf9;
}

.landing-kicker,
.landing-eyebrow {
  margin-bottom: 1rem;
  color: #dba151;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  font-weight: 820;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.landing-lead {
  max-width: 35rem;
  margin: 1.5rem 0 0;
  color: rgba(239, 248, 244, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
}

.landing-primary-cta {
  min-height: 3.3rem;
  padding-inline: 1.4rem;
}

.landing-secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #f3f8f5;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.landing-secondary-cta:hover { color: #fff; }

.landing-play {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.65rem;
}

.landing-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.15rem;
  margin: 1.7rem 0 0;
  color: rgba(239, 248, 244, 0.72);
  font-size: 0.78rem;
  font-weight: 650;
}

.landing-checks span {
  margin-right: 0.25rem;
  color: #e4b46e;
}

.landing-proof {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--landing-line);
  background: var(--landing-paper);
}

.landing-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.landing-proof-grid > div {
  display: flex;
  min-height: 7.5rem;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 2rem;
  border-right: 1px solid var(--landing-line);
}

.landing-proof-grid > div:first-child { border-left: 1px solid var(--landing-line); }

.landing-proof strong {
  color: var(--landing-green);
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.landing-proof span {
  margin-top: 0.15rem;
  color: var(--landing-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.landing-section {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.landing-section-heading h2,
.landing-product h2,
.landing-support h2,
.landing-final-cta h2 {
  margin: 0;
  color: var(--landing-ink);
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.landing-eyebrow {
  color: var(--landing-green-bright);
}

.landing-heading-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  align-items: end;
  gap: 4rem;
}

.landing-heading-split > p,
.landing-heading-centered > p,
.landing-product-copy > p,
.landing-support-card > div > p:last-child {
  margin: 0;
  color: var(--landing-muted);
  line-height: 1.75;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3.5rem 0 0;
}

.landing-step {
  position: relative;
  min-height: 19rem;
  padding: 2rem;
  border: 1px solid var(--landing-line);
  border-radius: 1.4rem;
  background: var(--landing-paper);
  overflow: hidden;
}

.landing-step-featured {
  background: var(--landing-green);
  color: #f3f8f5;
  transform: translateY(-1rem);
}

.landing-step-number {
  position: absolute;
  top: 1rem;
  right: 1.35rem;
  color: rgba(23, 63, 52, 0.1);
  font-size: 4.7rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.landing-step-featured .landing-step-number { color: rgba(255, 255, 255, 0.08); }

.landing-step-icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 1rem;
  background: #e1eee9;
  color: var(--landing-green);
  font-size: 1.4rem;
  font-weight: 800;
}

.landing-step-featured .landing-step-icon {
  background: #e1a650;
  color: #132c25;
}

.landing-step h3 {
  max-width: 15rem;
  margin: 4.5rem 0 0.75rem;
  color: var(--landing-ink);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.landing-step-featured h3 { color: #fff; }

.landing-step p {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.landing-step-featured p { color: rgba(239, 248, 244, 0.72); }

.landing-product {
  padding-block: clamp(5rem, 9vw, 8rem);
  background: #e8eee9;
}

.landing-product-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(30rem, 1.28fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.landing-product-copy > p { margin-top: 1.3rem; }

.landing-feature-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.75rem 0;
}

.landing-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--landing-muted);
  font-size: 0.87rem;
}

.landing-feature-list li > span:first-child {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--landing-green);
  color: #fff;
  font-size: 0.68rem;
}

.landing-feature-list strong { color: var(--landing-ink); }

.landing-text-link {
  color: var(--landing-green-bright);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.landing-product-preview {
  position: relative;
}

.landing-product-preview::before {
  position: absolute;
  inset: 8% -9% -8% 10%;
  border-radius: 2rem;
  background: #dba151;
  content: "";
  transform: rotate(3deg);
}

.preview-window {
  position: relative;
  border: 1px solid rgba(16, 36, 31, 0.16);
  border-radius: 1.4rem;
  background: #f9f7ef;
  box-shadow: 0 30px 80px rgba(16, 36, 31, 0.18);
  overflow: hidden;
}

.preview-bar {
  display: flex;
  height: 3rem;
  align-items: center;
  gap: 0.35rem;
  padding-inline: 1rem;
  border-bottom: 1px solid rgba(16, 36, 31, 0.1);
  background: #fffdf8;
}

.preview-bar > span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #cdd8d3;
}

.preview-bar > span:nth-child(1) { background: #da8d7f; }
.preview-bar > span:nth-child(2) { background: #e6b95f; }
.preview-bar > span:nth-child(3) { background: #73aa98; }

.preview-bar strong {
  margin-left: auto;
  color: var(--landing-green);
  font-size: 0.8rem;
}

.preview-bar strong span { color: #c27a24; }

.preview-body { padding: clamp(1.2rem, 4vw, 2.25rem); }

.preview-welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.preview-welcome small {
  color: var(--landing-green-bright);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.preview-welcome h3 {
  margin: 0.3rem 0 0;
  color: var(--landing-ink);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.preview-welcome p {
  margin: 0.25rem 0 0;
  color: var(--landing-muted);
  font-size: 0.75rem;
}

.preview-streak {
  padding: 0.35rem 0.6rem;
  border: 1px solid #efd5ac;
  border-radius: 999px;
  background: #fff1d7;
  color: #9b5c12;
  font-size: 0.72rem;
  font-weight: 800;
}

.preview-progress {
  height: 0.45rem;
  margin: 1.3rem 0;
  border-radius: 999px;
  background: #dfe9e5;
  overflow: hidden;
}

.preview-progress span {
  display: block;
  width: 46%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f7a65, #df9f45);
}

.preview-route {
  display: grid;
  gap: 0.65rem;
}

.preview-route li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #d9e5e0;
  border-radius: 0.85rem;
  background: #fff;
}

.preview-route li > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #bdd2ca;
  border-radius: 0.65rem;
  color: #54766b;
  font-size: 0.72rem;
  font-weight: 800;
}

.preview-route li.done > span {
  border-color: #65a790;
  background: #e0f2eb;
  color: #187456;
}

.preview-route li.current {
  border-color: #2f6b5c;
  background: #173f34;
  color: #fff;
}

.preview-route li.current > span {
  border-color: #dfaa60;
  background: #dba151;
  color: #173027;
}

.preview-route div {
  display: grid;
  min-width: 0;
}

.preview-route strong { font-size: 0.8rem; }
.preview-route small { color: #769086; font-size: 0.66rem; }
.preview-route .current small { color: rgba(255, 255, 255, 0.62); }

.preview-route b {
  margin-left: auto;
  color: #efbd77;
  font-size: 0.64rem;
  text-transform: uppercase;
}

.preview-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.preview-bottom span {
  display: grid;
  padding: 0.7rem;
  border-radius: 0.75rem;
  background: #e7eeeb;
  color: #698078;
  font-size: 0.6rem;
  text-align: center;
}

.preview-bottom b {
  color: var(--landing-green);
  font-size: 0.95rem;
}

.landing-heading-centered {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.landing-heading-centered > p:last-child { margin-top: 1rem; }

.landing-subjects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 3rem;
}

.landing-subjects article {
  position: relative;
  min-height: 16rem;
  padding: 1.5rem;
  border: 1px solid var(--landing-line);
  border-radius: 1.2rem;
  background: var(--landing-paper);
  overflow: hidden;
}

.landing-subjects article > span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 0.9rem;
  background: #e1eee9;
  color: var(--landing-green);
  font-size: 1.35rem;
  font-weight: 800;
}

.landing-subjects article:nth-child(2) > span { background: #e2eef2; color: #285d69; }
.landing-subjects article:nth-child(3) > span { background: #eee8f5; color: #67498b; }
.landing-subjects article:nth-child(4) > span { background: #f7e6ec; color: #863a58; }

.landing-subjects h3 {
  margin: 2rem 0 0.65rem;
  color: var(--landing-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.landing-subjects p {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.landing-subjects small {
  position: absolute;
  bottom: 1.35rem;
  left: 1.5rem;
  color: var(--landing-green-bright);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.landing-support { padding: 0 0 clamp(5rem, 9vw, 8rem); }

.landing-support-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--landing-line);
  border-radius: 1.5rem;
  background: var(--landing-paper);
}

.landing-support-mark {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border-radius: 1.4rem;
  background: var(--landing-green);
  box-shadow: 0.65rem 0.65rem 0 #dba151;
  color: #fff;
  font-size: 2.3rem;
  font-weight: 850;
}

.landing-support h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.landing-support .landing-eyebrow { margin-bottom: 0.5rem; }
.landing-support-card > div > p:last-child { margin-top: 0.65rem; }

.landing-support .btn { min-width: 10rem; }

.landing-final-cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 10vw, 9rem);
  background: #102b24;
  color: #fff;
  overflow: hidden;
}

.landing-final-cta::before,
.landing-final-cta::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
}

.landing-final-cta::before { top: -12rem; right: -8rem; width: 34rem; height: 34rem; }
.landing-final-cta::after { right: 7rem; bottom: -15rem; width: 26rem; height: 26rem; }

.landing-final-copy {
  max-width: 50rem;
  margin-inline: auto;
  text-align: center;
}

.landing-final-cta h2 { color: #f6faf8; }

.landing-final-cta p:not(.landing-kicker) {
  margin: 1.2rem auto 2rem;
  color: rgba(239, 248, 244, 0.7);
}

.landing-footer {
  padding-block: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1e19;
  color: rgba(239, 248, 244, 0.68);
}

.landing-footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.landing-footer .brand { color: #fff; }
.landing-footer p { margin: 0; font-size: 0.75rem; text-align: center; }
.landing-footer nav { display: flex; gap: 1.2rem; }
.landing-footer nav a { color: #c6dad3; font-size: 0.75rem; font-weight: 700; text-decoration: none; }

.landing-footer-copyright {
  grid-column: 1 / -1;
  margin-top: 1.5rem !important;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(239, 248, 244, 0.5);
}

@media (hover: hover) and (pointer: fine) {
  .landing-step,
  .landing-subjects article {
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  }

  .landing-step:not(.landing-step-featured):hover,
  .landing-subjects article:hover {
    border-color: rgba(47, 122, 101, 0.4);
    box-shadow: 0 18px 44px rgba(16, 36, 31, 0.09);
    transform: translateY(-4px);
  }
}

[data-bs-theme="dark"] .landing-page {
  --landing-cream: #081612;
  --landing-paper: #10241f;
  --landing-ink: #edf6f1;
  --landing-muted: #a8c6bc;
  --landing-green: #173f34;
  --landing-green-bright: #78b7a3;
  --landing-line: rgba(157, 192, 179, 0.2);
}

[data-bs-theme="dark"] .landing-header { background: rgba(8, 22, 18, 0.92); }
[data-bs-theme="dark"] .landing-proof strong { color: #d9eee7; }
[data-bs-theme="dark"] .landing-product { background: #0c1d18; }
[data-bs-theme="dark"] .landing-step-featured { background: #1a473a; }
[data-bs-theme="dark"] .landing-step-icon,
[data-bs-theme="dark"] .landing-subjects article > span { background: #193b32; color: #b9ddd1; }
[data-bs-theme="dark"] .landing-subjects article:nth-child(2) > span { background: #173741; color: #b8dce6; }
[data-bs-theme="dark"] .landing-subjects article:nth-child(3) > span { background: #302740; color: #d1c4e6; }
[data-bs-theme="dark"] .landing-subjects article:nth-child(4) > span { background: #3b222d; color: #e5bdcb; }
[data-bs-theme="dark"] .landing-product-preview::before { background: #9a682d; }
[data-bs-theme="dark"] .preview-window { border-color: #33574c; background: #0d201a; }
[data-bs-theme="dark"] .preview-bar,
[data-bs-theme="dark"] .preview-route li { border-color: #294a40; background: #10241f; }
[data-bs-theme="dark"] .preview-welcome h3,
[data-bs-theme="dark"] .preview-route strong { color: #edf6f1; }
[data-bs-theme="dark"] .preview-progress,
[data-bs-theme="dark"] .preview-bottom span { background: #19352d; }
[data-bs-theme="dark"] .preview-bottom b { color: #cde3db; }
[data-bs-theme="dark"] .preview-route li.current { border-color: #649d8b; background: #1a473a; }
[data-bs-theme="dark"] .landing-support-card .btn-outline-board { background: #10241f; }

@media (max-width: 61.99em) {
  .landing-links { display: none; }
  .landing-nav { gap: 1rem; }
  .landing-nav-actions { margin-left: auto; }
  .landing-product-grid { grid-template-columns: 1fr; }
  .landing-product-copy { max-width: 42rem; }
  .landing-product-preview { width: min(100%, 44rem); margin-inline: auto; }
  .landing-subjects { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 47.99em) {
  .landing-nav { min-height: 4.15rem; }
  .landing-nav-cta { display: none; }
  .landing-login { font-size: 0.8rem; }
  .landing-hero { min-height: 40rem; }
  .landing-hero-photo { background-position: 64% center; }
  .landing-hero::before {
    background:
      linear-gradient(90deg, rgba(7, 27, 22, 0.98), rgba(7, 27, 22, 0.78)),
      linear-gradient(0deg, rgba(7, 27, 22, 0.68), transparent 50%);
  }
  .landing-hero-inner { display: flex; min-height: 40rem; align-items: flex-end; padding-block: 4.5rem 3rem; }
  .landing-hero h1 { font-size: clamp(2.75rem, 14vw, 4.3rem); }
  .landing-checks { gap: 0.45rem 0.8rem; }
  .landing-proof-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-proof-grid > div { min-height: 6.5rem; padding: 1rem; border-bottom: 1px solid var(--landing-line); }
  .landing-proof-grid > div:nth-child(odd) { border-left: 1px solid var(--landing-line); }
  .landing-heading-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .landing-steps { grid-template-columns: 1fr; }
  .landing-step { min-height: auto; }
  .landing-step-featured { transform: none; }
  .landing-step h3 { margin-top: 3rem; }
  .landing-product-grid { gap: 3.5rem; }
  .landing-product-preview::before { inset: 6% -4% -5% 8%; }
  .landing-subjects { grid-template-columns: 1fr; }
  .landing-subjects article { min-height: 14rem; }
  .landing-support-card { grid-template-columns: 1fr; }
  .landing-support-mark { width: 4rem; height: 4rem; font-size: 1.8rem; }
  .landing-support .btn { width: 100%; }
  .landing-footer-grid { grid-template-columns: 1fr; justify-items: center; gap: 1rem; }
}

@media (max-width: 23em) {
  .landing-shell { width: min(100% - 1.25rem, 74rem); }
  .landing-nav .brand-name,
  .landing-nav .brand-wordmark { display: none; }
  .landing-hero-actions { align-items: stretch; flex-direction: column; }
  .landing-secondary-cta { justify-content: center; }
  .preview-bottom { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-step,
  .landing-subjects article { transition: none; }
}
