/* Link Capital — landing demo
   Sistema visual según skill landing-page-design (B1–B11).
   Paleta tomada del sitio real de la marca. Tipografía única: Manrope. */

:root {
  /* paleta de marca */
  --navy: #152448;
  --navy-2: #1e3263;
  --tinta: #1d2330;
  --gris: #5b6372;
  --linea: #e3e1dc;
  --fondo: #ffffff;
  --crema: #f6f3ee;
  --madera: #b07a45;
  --verde: #2f9e6b;
  --ambar: #d99a2b;
  --rojo: #c8463d;

  /* tipografía (B1) */
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* espaciado (B2) */
  --s-25: 2px;  --s-50: 4px;  --s-75: 8px;  --s-100: 12px;
  --s-200: 16px; --s-300: 24px; --s-400: 32px; --s-500: 40px;
  --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  /* radios (B3) */
  --r-sm: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 24px; --r-full: 9999px;

  /* movimiento (B7) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --d: 500ms;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }

/* ---------- estilos de texto nombrados (B1) ---------- */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--navy); text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- layout ---------- */
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding-block: var(--s-900); }
.section--crema { background: var(--crema); }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy p, .section--navy li { color: #c3cbe0; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--madera);
  margin-block-end: var(--s-200);
}
.eyebrow--claro { color: #d8b48c; }

.skip {
  position: fixed;
  top: -100%;
  left: var(--s-200);
  z-index: 100;
  padding: var(--s-100) var(--s-200);
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: top var(--d) var(--ease);
}
.skip:focus { top: var(--s-200); }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ---------- navegación flotante (B7) ---------- */
.nav-wrap {
  position: fixed;
  inset: var(--s-200) 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-300);
  max-width: min(1160px, 100% - 32px);
  padding: var(--s-75) var(--s-200) var(--s-75) var(--s-300);
  border: 1px solid rgba(21, 36, 72, 0.08);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px -24px rgba(21, 36, 72, 0.6);
}
.nav__brand img { width: 148px; height: auto; }
.nav__links { display: flex; align-items: center; gap: var(--s-300); }
.nav__links a {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--tinta);
  text-decoration: none;
  transition: color var(--d) var(--ease);
}
.nav__links a:hover { color: var(--navy); }
.nav__links a[aria-current="true"] { color: var(--navy); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--d) var(--ease), background var(--d) var(--ease);
}
.btn:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn--claro { background: #fff; color: var(--navy); }
.btn--claro:hover { background: var(--crema); }
.btn--sm { padding: var(--s-50) var(--s-100); font-size: 14px; line-height: 20px; }

.link-arrow {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: transform var(--d) var(--ease);
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { transform: translateX(4px); }

/* toggle del menú */
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(21, 36, 72, 0.12);
  border-radius: var(--r-full);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--navy);
  transition: transform var(--d) var(--ease), opacity var(--d) var(--ease);
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* panel móvil a altura completa */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-content: center;
  gap: var(--s-300);
  padding: var(--s-400);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d) var(--ease), visibility var(--d) var(--ease);
}
.menu[data-open="true"] { opacity: 1; visibility: visible; }
.menu a {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--d) var(--ease), transform var(--d) var(--ease);
}
.menu[data-open="true"] a { opacity: 1; transform: translateY(0); }

/* ---------- hero ---------- */
.hero { padding-block: 96px var(--s-600); }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-600);
  align-items: center;
}
.hero__title {
  font-size: 60px;
  line-height: 60px;
  font-weight: 600;
  max-width: 680px;
  background-image: linear-gradient(90deg, #152448 0%, #5b6372 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-block-start: var(--s-300);
  max-width: 680px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: var(--gris);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--s-300);
  flex-wrap: wrap;
  margin-block-start: var(--s-400);
}
.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%;
  height: auto;
  max-height: 460px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-2xl);
}

.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-300);
  align-items: center;
  margin-block-start: var(--s-600);
  padding: var(--s-300);
  border: 1px solid var(--linea);
  border-radius: var(--r-xl);
  background: var(--crema);
  list-style: none;
}
.proof li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-100);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--gris);
}
.proof li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--madera);
}

/* ---------- pilares ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-300);
  margin-block-start: var(--s-500);
}
.card {
  padding: var(--s-400);
  border: 1px solid var(--linea);
  border-radius: var(--r-xl);
  background: #fff;
}
.card__num {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--madera);
  margin-block-end: var(--s-200);
}
.card__intro { margin-block-start: var(--s-100); color: var(--gris); }
.card__list { margin: var(--s-300) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-200); }
.card__list li {
  position: relative;
  padding-inline-start: var(--s-300);
  font-size: 14px;
  line-height: 20px;
  color: var(--gris);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--madera);
}
.card__list strong { display: block; color: var(--tinta); font-weight: 600; }

/* ---------- tagline reveal (B11) ---------- */
.tagline { padding-block: var(--s-800); background: var(--navy); }
.tagline__text {
  max-width: 900px;
  margin-inline: auto;
  font-size: 48px;
  line-height: 48px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-wrap: balance;
}
.tagline__text .w {
  opacity: 0.3;
  transition: opacity 600ms var(--ease);
}
.tagline__text .w[data-on="true"] { opacity: 1; }

/* ---------- inteligencia financiera ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-600);
  align-items: start;
}
.checks { margin: var(--s-300) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-100); }
.checks li {
  position: relative;
  padding-inline-start: var(--s-400);
  font-size: 16px;
  line-height: 24px;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d8b48c;
  font-weight: 600;
}
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-200);
  margin-block: var(--s-400);
}
.package {
  padding: var(--s-300);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-lg);
}
.package h4 { margin-block-end: var(--s-50); }
.package p { margin: 0; font-size: 14px; line-height: 20px; }
.package .price {
  display: block;
  margin-block-start: var(--s-100);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #d8b48c;
}

.board {
  margin: 0;
  padding: var(--s-300);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.8);
}
.board__caption {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris);
  margin-block-end: var(--s-200);
}
.board__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.7fr 16px;
  gap: var(--s-100);
  align-items: center;
  padding-block: var(--s-100);
  font-size: 14px;
  line-height: 20px;
  border: 1px solid var(--linea);
  border-radius: var(--r-sm);
  padding-inline: var(--s-100);
  margin-block-end: var(--s-75);
  font-variant-numeric: tabular-nums;
}
.board__row:first-of-type { color: var(--gris); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.board__row span:nth-child(2), .board__row span:nth-child(3) { text-align: right; }
.dot { width: 8px; height: 8px; border-radius: var(--r-full); justify-self: end; }
.dot--verde { background: var(--verde); }
.dot--ambar { background: var(--ambar); }
.dot--rojo { background: var(--rojo); }
.board__note {
  margin-block-start: var(--s-200);
  font-size: 14px;
  line-height: 20px;
  color: var(--gris);
  padding-inline-start: var(--s-200);
  border-inline-start: 3px solid var(--madera);
}

/* ---------- método ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-400);
  margin-block-start: var(--s-500);
  padding: 0;
  list-style: none;
}
.steps__n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-block-end: var(--s-200);
  border-radius: var(--r-full);
  background: var(--crema);
  color: var(--navy);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.steps p { margin-block-start: var(--s-100); color: var(--gris); font-size: 14px; line-height: 20px; }

/* ---------- nosotros ---------- */
.about { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: var(--s-600); align-items: center; }
.about p { margin-block-start: var(--s-200); color: var(--gris); }
.gallery { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--s-200); height: 464px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.gallery img:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.gallery img:nth-child(2) { grid-area: 1 / 2 / 3 / 3; }
.gallery img:nth-child(3) { grid-area: 2 / 1 / 3 / 2; }

/* ---------- equipo ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-300); margin-block-start: var(--s-500); }
.person { padding: var(--s-400); border: 1px solid var(--linea); border-radius: var(--r-xl); background: #fff; }
.person__avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-block-end: var(--s-300);
  border-radius: var(--r-full);
  background: var(--crema);
  color: var(--navy);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  overflow: hidden;
}
.person__avatar img { width: 100%; height: 100%; object-fit: cover; }
.person__role { margin-block: var(--s-50) var(--s-200); color: var(--madera); font-size: 14px; line-height: 20px; font-weight: 600; }
.person p { color: var(--gris); }
.person__pending { margin-block-start: var(--s-200); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--madera); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-200); margin-block-start: var(--s-500); }
.faq details {
  padding: var(--s-300) var(--s-400);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  background: #fff;
}
.faq summary {
  cursor: pointer;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--madera);
  transition: transform var(--d) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-block-start: var(--s-200); color: var(--gris); }

/* ---------- contacto ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-600); align-items: start; }
.contact__intro { margin-block-start: var(--s-200); font-size: 18px; line-height: 28px; color: var(--gris); }
.form { display: grid; gap: var(--s-200); margin-block-start: var(--s-400); max-width: 520px; }
.field { display: grid; gap: var(--s-75); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--tinta); }
.field input, .field textarea {
  font: inherit;
  padding: var(--s-100) var(--s-200);
  border: 1px solid var(--linea);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--tinta);
  transition: border-color var(--d) var(--ease);
}
.field textarea { resize: vertical; }
.field__error {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--rojo);
  min-height: 16px;
}
.form__ok {
  padding: var(--s-200);
  border: 1px solid var(--linea);
  border-radius: var(--r-sm);
  background: var(--crema);
  font-size: 14px;
  line-height: 20px;
  color: var(--tinta);
}
.form__note { font-size: 12px; line-height: 16px; color: var(--gris); }

.info { display: grid; gap: var(--s-300); margin: 0; font-style: normal; }
.info dl { display: grid; gap: var(--s-300); margin: 0; }
.info dt { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--navy); margin-block-end: var(--s-50); }
.info dd { margin: 0; color: var(--gris); font-size: 16px; line-height: 24px; }
.info a { color: var(--navy); }
.map { border: 1px solid var(--linea); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- pie ---------- */
.footer { background: var(--navy); padding-block: var(--s-600); }
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-300);
}
.footer img { width: 132px; height: auto; }
.footer p, .footer a { color: #c3cbe0; font-size: 14px; line-height: 20px; }
.footer__legal { display: flex; gap: var(--s-300); flex-wrap: wrap; }
.footer a { text-decoration: none; transition: color var(--d) var(--ease); }
.footer a:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed;
  right: var(--s-300);
  bottom: var(--s-300);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  background: #25d366;
  color: #fff;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.5);
  transition: transform var(--d) var(--ease);
}
.wa:hover { transform: scale(1.06); }
.wa:active { transform: scale(0.98); }
.wa svg { width: 28px; height: 28px; }

/* ---------- revelado al hacer scroll (B7) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
[data-reveal][data-visible="true"] { opacity: 1; transform: translateY(0); }

/* ---------- 404 ---------- */
.page-404 { min-height: 100vh; display: grid; place-items: center; padding-block: var(--s-900); text-align: center; }
.page-404 .container { display: grid; gap: var(--s-300); justify-items: center; }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav { padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200); gap: var(--s-200); }
  .hero { padding-block: 96px var(--s-600); }
  .hero__title { font-size: 36px; line-height: 40px; }
  .hero__grid, .split, .about, .contact { grid-template-columns: 1fr; gap: var(--s-400); }
  .pillars, .packages, .steps { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; }
  .heading-2 { font-size: 36px; line-height: 40px; }
  .tagline__text { font-size: 36px; line-height: 40px; }
  .section { padding-block: var(--s-700); }
  .gallery { height: 400px; }
}

@media (max-width: 560px) {
  .container { width: min(1160px, 100% - 32px); }
  .nav .btn { display: none; }
  .hero__title { font-size: 30px; line-height: 36px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .tagline__text { font-size: 30px; line-height: 36px; }
  .nav__brand img { width: 120px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .gallery img { aspect-ratio: 4 / 3; }
  .gallery img:nth-child(1), .gallery img:nth-child(2), .gallery img:nth-child(3) { grid-area: auto; }
  .steps { gap: var(--s-300); }
  .board__row { grid-template-columns: 1.4fr 0.8fr 0.6fr 12px; font-size: 12px; line-height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .tagline__text .w { opacity: 1; }
}
