/* prestame.app — sitio institucional de App Prestamos S. A. S.
   Sin JavaScript ni recursos de terceros: las dos tipografías se sirven desde este dominio. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0d1838;
  --ink-soft: #3a4566;
  --muted: #5f6a8a;
  --blue: #2146f5;
  --blue-deep: #1530ad;
  --blue-tint: #e9edff;
  --sun: #ffc83d;
  --sun-tint: #fff4d1;
  --paper: #f3f5fb;
  --surface: #ffffff;
  --line: #dde2ef;
  --night: #070f27;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --r: 1.25rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 10;
  padding: .6rem 1rem; border-radius: .5rem;
  background: #fff; color: var(--ink); font-weight: 600;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: .3rem; }
.hero :focus-visible, .contact :focus-visible, .foot :focus-visible { outline-color: var(--sun); }

/* ---------- Encabezado y portada ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
}

.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.25rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 700; font-size: 1.375rem;
  letter-spacing: -.02em; line-height: 1;
  color: #fff; text-decoration: none;
}
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand__tld { color: var(--sun); }

.nav { display: none; gap: clamp(1rem, 2.5vw, 2rem); font-size: .9375rem; font-weight: 500; }
.nav a {
  padding: .4rem 0; border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, .92); text-decoration: none;
}
.nav a:hover { border-color: var(--sun); color: #fff; }
@media (min-width: 40rem) { .nav { display: flex; } }

.hero__grid {
  display: grid; align-items: center;
  gap: clamp(2.75rem, 6vw, 4rem);
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem);
}
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

.eyebrow, .kicker {
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow { color: rgba(255, 255, 255, .82); }
.kicker { color: var(--blue); }

h1 {
  margin-top: 1rem;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.75rem, 8.2vw, 5.75rem);
  line-height: .94; letter-spacing: -.035em;
  text-wrap: balance;
}
.amount { color: var(--sun); }
.nw { white-space: nowrap; }

.lead {
  margin-top: 1.5rem; max-width: 34rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5;
  color: rgba(255, 255, 255, .92);
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.4rem;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #ffd869; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); transform: translateY(-1px); }

/* El esquema de cuotas: seis barras de la misma altura, con el sol detrás. */

.plan { position: relative; }
.plan::before {
  content: ""; position: absolute; z-index: -1;
  width: min(78%, 22rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--sun);
  right: clamp(-4.5rem, -6vw, -1.5rem);
  top: clamp(-4rem, -5vw, -1.75rem);
}

.plan__card {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.5rem;
  background: #fff; color: var(--ink);
  box-shadow: 0 1.75rem 3rem -1.75rem rgba(6, 14, 48, .6);
}
.plan__title {
  font-family: var(--display); font-weight: 700; font-size: 1.625rem;
  letter-spacing: -.025em; line-height: 1.1;
}
.plan__text { margin-top: .35rem; color: var(--ink-soft); font-size: 1rem; }

.bars {
  display: grid; grid-template-columns: repeat(6, 1fr); align-items: end;
  gap: clamp(.4rem, 1.5vw, .75rem);
  margin-top: 1.5rem;
}
.bars li {
  display: grid; justify-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bars li::before {
  content: ""; width: 100%; height: clamp(6rem, 15vw, 8.5rem);
  border-radius: .6rem .6rem .25rem .25rem;
  background: var(--blue);
}
.bars li:nth-child(n+5)::before,
.legend li:last-child::before {
  border: 2px dashed var(--blue);
  background: repeating-linear-gradient(135deg, var(--blue-tint) 0 6px, #fff 6px 12px);
}

.legend {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .875rem; color: var(--ink-soft);
}
.legend li { display: inline-flex; align-items: center; gap: .5rem; }
.legend li::before {
  content: ""; flex: none; width: .95rem; height: .95rem; border-radius: .25rem;
  background: var(--blue);
}

/* ---------- Secciones ---------- */

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); scroll-margin-top: 1rem; }

h2 {
  margin-top: .6rem;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.02; letter-spacing: -.03em;
  text-wrap: balance;
}

.section__lead { margin-top: 1rem; max-width: 41rem; color: var(--ink-soft); font-size: 1.125rem; }

.facts { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(3, 1fr); } }

.fact {
  padding: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
}
.fact__label {
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.fact__value {
  margin-top: .75rem;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.125rem, 3.6vw, 2.75rem);
  line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.fact__value small { font-size: .5em; font-weight: 600; letter-spacing: -.01em; color: var(--ink-soft); }
.fact__text { margin-top: .75rem; color: var(--ink-soft); font-size: 1rem; }

.note {
  margin-top: 1rem; padding: 1.25rem 1.5rem;
  border-radius: var(--r);
  background: var(--sun-tint);
  font-size: 1rem;
}

/* La ficha de la sociedad */

.empresa { background: var(--surface); border-block: 1px solid var(--line); }

.empresa__grid { display: grid; align-items: start; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 60rem) {
  .empresa__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}

.ficha { overflow: hidden; border: 1.5px solid var(--ink); border-radius: var(--r); background: #fff; }
.ficha__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--ink); color: #fff;
}
.ficha__title { font-family: var(--display); font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; }

.status {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .25rem .8rem; border-radius: 999px;
  background: var(--sun); color: var(--ink);
  font-size: .875rem; font-weight: 700; line-height: 1.4;
}
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ink); }

.ficha__row { display: grid; gap: .15rem; padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
.ficha__row:first-child { border-top: 0; }
@media (min-width: 36rem) {
  .ficha__row { grid-template-columns: 10.5rem 1fr; gap: 1.5rem; align-items: baseline; }
}
.ficha dt {
  font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.ficha dd { font-size: 1.0625rem; font-weight: 500; }
.ficha__row--cuit dd {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  line-height: 1.1; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  -webkit-user-select: all; user-select: all;
}

.check { padding: 1.5rem; border-radius: var(--r); background: var(--blue-tint); }
.check h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.625rem;
  line-height: 1.1; letter-spacing: -.025em;
}
.check p { margin-top: .75rem; color: var(--ink-soft); }
.check .btn { margin-top: 1.25rem; }
.check small { display: block; margin-top: 1rem; font-size: .875rem; line-height: 1.5; color: var(--ink-soft); }
.copy {
  font-weight: 600; color: var(--ink); white-space: nowrap;
  font-variant-numeric: tabular-nums;
  -webkit-user-select: all; user-select: all;
}

/* Contacto */

.contact { background: var(--ink); color: #fff; }
.contact .kicker { color: var(--sun); }
.contact__grid { display: grid; align-items: end; gap: 2.5rem; }
@media (min-width: 54rem) { .contact__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }

.mail {
  display: inline-block; margin-top: 1.25rem;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.5rem, 5.4vw, 3.5rem);
  line-height: 1.1; letter-spacing: -.03em;
  color: #fff;
  text-decoration: underline; text-decoration-color: var(--sun);
  text-decoration-thickness: .09em; text-underline-offset: .16em;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--sun); }
.contact__text { margin-top: 1.25rem; color: rgba(255, 255, 255, .8); }

address { font-style: normal; line-height: 1.6; color: rgba(255, 255, 255, .85); }
address strong { display: block; margin-bottom: .25rem; color: #fff; font-weight: 600; }

/* Pie */

.foot { padding-block: 2rem 2.5rem; background: var(--night); color: #b6bfdb; font-size: .9375rem; }
.foot__grid { display: grid; gap: .6rem; }
.foot a { color: #fff; text-underline-offset: .2em; }

/* Página de error */

.lost { min-height: 100vh; display: grid; align-content: space-between; }
.lost__body { padding-block: clamp(3rem, 12vw, 7rem); }
.lost__body .actions { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
