/* ==========================================================
   B-humano · Landing «Entrenamiento personalizado»
   Hoja de estilos principal
   ========================================================== */
:root {
  --blue: #3e569e;
  --deep: #233b82;
  --pale: #f1f5ff;
  --ink: #17233d;
  --muted: #64718a;
  --line: #e5eaf3;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}
body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter,
    Montserrat,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  line-height: 1.65;
  background: white;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: 1120px;
  margin: auto;
  padding: 0 24px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffffed;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-image {
  display: block;
  width: 185px;
  max-width: 100%;
  height: auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 25px;
  font-weight: 850;
  color: var(--blue);
  letter-spacing: -1px;
}
.navlinks {
  display: flex;
  gap: 25px;
  font-size: 13px;
  font-weight: 650;
  color: #475470;
}
.navlinks a:hover {
  color: var(--blue);
}
.hero {
  padding: 95px 0 110px;
  background: linear-gradient(140deg, #fff 55%, #f0f4ff);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 65px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 800;
}
h1 {
  font-size: clamp(38px, 4.5vw, 64px);
  letter-spacing: -0.055em;
  line-height: 1.1;
  margin: 20px 0 24px;
}
h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 12px 0 18px;
}
h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 8px 0 12px;
}
p {
  margin: 0 0 17px;
  color: var(--muted);
}
.lead {
  font-size: 18px;
  max-width: 610px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 23px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  box-shadow: 0 10px 25px #3e569e25;
  transition:
    transform 0.2s,
    background 0.2s;
}
.btn:hover {
  background: var(--deep);
  transform: translateY(-2px);
}
.btn:focus-visible,
.navlinks a:focus-visible {
  outline: 3px solid #92b4ff;
  outline-offset: 4px;
}
.hero-note {
  font-size: 13px;
  margin-top: 16px;
}
.mock {
  position: relative;
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 25px 70px #223c7c25;
  border: 1px solid #e4eaf8;
}
.mock:before {
  content: "";
  position: absolute;
  inset: -24px -22px 25px 30px;
  background: #dce6ff;
  border-radius: 26px;
  z-index: -1;
  transform: rotate(5deg);
}
.browser {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e7ebf4;
  background: #f9fbff;
}
.browserbar {
  height: 32px;
  background: #eef2f9;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.dot {
  width: 7px;
  height: 7px;
  background: #bec9db;
  border-radius: 50%;
}
.apphead {
  background: var(--blue);
  color: white;
  padding: 15px 18px;
  font-weight: 750;
  font-size: 14px;
}
.appbody {
  padding: 20px;
}
.appbody strong {
  font-size: 17px;
}
.appbody small {
  display: block;
  color: #8290a8;
}
.progress {
  height: 7px;
  border-radius: 6px;
  background: #e2e9f6;
  margin: 15px 0 20px;
}
.progress:after {
  content: "";
  display: block;
  width: 64%;
  height: 100%;
  background: #6d8bde;
  border-radius: 6px;
}
.modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.module {
  border: 1px solid #e5ebf5;
  border-radius: 9px;
  padding: 14px 10px;
  background: white;
  font-size: 12px;
  color: #4e5b72;
}
.module b {
  display: block;
  color: var(--blue);
  font-size: 16px;
  margin-bottom: 3px;
}
.mock-caption {
  text-align: center;
  font-size: 12px;
  color: #8a95aa;
  margin: 12px 0 0;
}
section.block {
  padding: 94px 0;
}
.center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}
.center p {
  font-size: 16px;
}
.light {
  background: #f7f9fe;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cards.four {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 25px #243e7909;
}
.card .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #eaf0ff;
  color: var(--blue);
  border-radius: 12px;
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 18px;
}
.card p {
  font-size: 14px;
  margin: 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  padding: 20px 10px;
}
.step b {
  font-size: 30px;
  color: #9cb0e2;
}
.step p {
  font-size: 14px;
}
.method {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 30px 0;
}
.method div {
  padding: 17px 10px;
  text-align: center;
  background: #f0f4ff;
  border: 1px solid #e1e9fa;
  border-radius: 12px;
  color: var(--deep);
  font-weight: 750;
  font-size: 14px;
}
.method span {
  display: block;
  font-size: 11px;
  color: #8495c2;
  margin-bottom: 4px;
}
.methodnote {
  text-align: center;
  max-width: 700px;
  margin: auto;
}
.cta {
  background: linear-gradient(125deg, #314a94, #4e69b6);
  color: white;
  text-align: center;
  padding: 90px 24px;
}
.cta h2 {
  max-width: 760px;
  margin: 0 auto 18px;
}
.cta p {
  color: #e5ebff;
  max-width: 670px;
  margin: 0 auto 28px;
}
.cta .btn {
  background: white;
  color: var(--deep);
}
.cta .btn:hover {
  background: #edf2ff;
}
footer {
  padding: 27px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #718099;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.placeholder {
  font-size: 12px;
  color: #718099;
  background: #eaf0ff;
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-block;
  margin-top: 14px;
}
@media (max-width: 850px) {
  .navlinks {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 12px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .hero {
    padding: 65px 0;
  }
  .mock {
    max-width: 600px;
    width: 100%;
    margin: auto;
  }
  .cards.four {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
.nav .logo {
  max-width: 195px;
}
@media (max-width: 560px) {
  .brand-image {
    width: 160px;
  }
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 13px;
    padding-bottom: 13px;
    gap: 6px;
  }
  .navlinks {
    justify-content: flex-start;
    gap: 12px;
  }
  .hero {
    padding: 55px 0 70px;
  }
  section.block {
    padding: 65px 0;
  }
  .cards,
  .cards.four,
  .steps {
    grid-template-columns: 1fr;
  }
  .method {
    grid-template-columns: repeat(2, 1fr);
  }
  .foot {
    flex-direction: column;
    gap: 6px;
  }
  h1 {
    font-size: 39px;
  }
  .card {
    padding: 23px;
  }
}
.hero-visual {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 40px;
}
.portrait-card {
  width: 69%;
  height: 450px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 25px 65px #1a34742c;
  border: 7px solid white;
  background: #e8eefb;
}
.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.platform-card {
  position: absolute;
  left: -8%;
  bottom: 55px;
  width: 78%;
  overflow: hidden;
  background: white;
  border: 7px solid white;
  border-radius: 15px;
  box-shadow: 0 24px 50px #152b6570;
}
.platform-card img {
  display: block;
  width: 100%;
  height: auto;
}
.platform-bar {
  height: 27px;
  background: #f1f5fd;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0 9px;
  color: #4d5c78;
  font-size: 9px;
  font-weight: 700;
}
.platform-bar span:last-child {
  margin-left: 8px;
}
.visual-label {
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 65%;
  text-align: right;
  color: #68768d;
  font-size: 11px;
  line-height: 1.35;
}
@media (max-width: 850px) {
  .hero-visual {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
    min-height: 500px;
  }
  .platform-card {
    left: 0;
  }
}
@media (max-width: 560px) {
  .hero-visual {
    min-height: 395px;
  }
  .portrait-card {
    height: 320px;
    width: 76%;
  }
  .platform-card {
    width: 84%;
    bottom: 48px;
    left: 0;
    border-width: 4px;
  }
  .visual-label {
    max-width: 90%;
    font-size: 10px;
  }
}
.platform-only {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}
.platform-preview {
  width: 100%;
  background: white;
  border: 8px solid white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 65px #1a34742b;
}
.platform-preview-bar {
  height: 32px;
  background: #edf2fa;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0 12px;
}
.platform-preview-bar span {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: #bbc7dd;
}
.platform-preview-bar small {
  margin-left: 12px;
  color: #64718a;
  font-size: 11px;
  font-weight: 700;
}
.platform-preview img {
  display: block;
  width: 100%;
  height: auto;
}
.platform-caption {
  text-align: center;
  margin: 14px 0 0;
  font-size: 12px;
  color: #68768d;
}
@media (max-width: 850px) {
  .platform-only {
    min-height: 0;
  }
}

/* ---------- Añadidos versión producción ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}
.cta .btn:focus-visible {
  outline-color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
