/* Plantilla compartida por las 7 landings. Los colores de marca se definen
   como custom properties (--primary / --secondary) inline en cada página. */

:root {
  --ink: #12151b;
  --muted: #5b6472;
  --muted-2: #88919c;
  --border: #e7e9ee;
  --surface: #ffffff;
  --surface-alt: #f7f8fa;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 20, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 20, 30, 0.08);
  --shadow-lg: 0 24px 60px -12px rgba(16, 20, 30, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); text-align: center; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }

section[id] { scroll-margin-top: 84px; }

/* Tarjeta blanca para logos sobre fondos de color (garantiza legibilidad
   con cualquier logo, sin depender de una versión "blanco" de cada marca). */
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; padding: 10px 16px; border-radius: 10px;
}
.logo-chip__img { height: 24px; width: auto; max-width: 140px; object-fit: contain; display: block; }

.section-kicker {
  display: block; text-align: center; color: var(--secondary); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: .85em 1.5em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: .98rem;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .2s ease, opacity .15s ease, background-color .15s ease;
}
.btn--primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 1px 2px rgba(16,20,30,.08), 0 10px 24px -10px color-mix(in srgb, var(--primary) 60%, transparent);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(16,20,30,.1), 0 16px 28px -8px color-mix(in srgb, var(--primary) 55%, transparent); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { border-color: var(--border); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--sm { padding: .55em 1.1em; font-size: .88rem; }
.btn--lg { padding: 1em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn__icon { width: 17px; height: 17px; transition: transform .15s ease; }
.btn:hover .btn__icon { transform: translateX(3px); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand__logo { height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a:not(.btn) {
  position: relative; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding-bottom: 4px;
}
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--primary); transition: right .2s ease;
}
.site-nav > a:not(.btn):hover { color: var(--ink); }
.site-nav > a:not(.btn):hover::after { right: 0; }

/* Hero */
.hero {
  padding: 76px 0 56px;
  background:
    radial-gradient(1100px 480px at 85% -10%, color-mix(in srgb, var(--secondary) 14%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 6%, #fff), #fff 65%);
}
.hero__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--secondary); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem;
  background: color-mix(in srgb, var(--secondary) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--secondary) 25%, #fff);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow__icon { width: 15px; height: 15px; }
.hero__lead { font-size: 1.12rem; color: #333; max-width: 54ch; }
.hero__lead--secondary { color: var(--muted); font-size: 1.02rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 26px; }

.trust-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-row li {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem;
}
.trust-row__icon { width: 18px; height: 18px; color: var(--primary); }

.hero__art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(42px); opacity: .5;
}
.hero__blob--a { width: 230px; height: 230px; background: var(--primary); top: 6%; left: 4%; }
.hero__blob--b { width: 190px; height: 190px; background: var(--secondary); bottom: 8%; right: 6%; }

.hero__card {
  position: relative; z-index: 1;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 30px 28px; width: min(300px, 86%);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  transform: rotate(-2.2deg);
}
.hero__card-dots { display: flex; gap: 6px; align-self: flex-start; }
.hero__card-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.hero__card-dots span:first-child { background: color-mix(in srgb, var(--secondary) 65%, var(--border)); }
.hero__card-logo { max-width: 190px; max-height: 64px; object-fit: contain; }
.hero__card-lines { width: 100%; display: flex; flex-direction: column; gap: 9px; }
.hero__card-lines span { display: block; height: 8px; border-radius: 6px; background: var(--surface-alt); }
.hero__card-lines span:nth-child(1) { width: 92%; }
.hero__card-lines span:nth-child(2) { width: 72%; }
.hero__card-lines span:nth-child(3) { width: 48%; background: color-mix(in srgb, var(--primary) 20%, var(--surface-alt)); }

/* Reveal-on-scroll (progressive enhancement, safe with no JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .features .feature:nth-child(1) { transition-delay: .02s; }
.js .features .feature:nth-child(2) { transition-delay: .08s; }
.js .features .feature:nth-child(3) { transition-delay: .14s; }
.js .features .feature:nth-child(4) { transition-delay: .02s; }
.js .features .feature:nth-child(5) { transition-delay: .08s; }
.js .features .feature:nth-child(6) { transition-delay: .14s; }
.js .steps__list .step:nth-child(1) { transition-delay: .02s; }
.js .steps__list .step:nth-child(2) { transition-delay: .12s; }
.js .steps__list .step:nth-child(3) { transition-delay: .22s; }

/* About / features */
.about { padding: 56px 0 96px; }
.about h2 { margin-bottom: 26px; }
.about__copy { max-width: 780px; margin: 0 auto 56px; text-align: center; color: #3a3f47; font-size: 1.05rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px 26px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.feature__icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--primary) 12%, #fff);
  color: var(--primary);
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 { color: var(--ink); }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Steps */
.steps { padding: 8px 0 96px; }
.steps__intro { text-align: center; color: var(--muted); max-width: 50ch; margin: 0 auto 48px; }
.steps__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  counter-reset: step;
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step::before {
  content: ""; position: absolute; top: 26px; left: calc(50% + 46px); right: calc(-50% + 46px); height: 1.5px;
  background: linear-gradient(90deg, var(--border), var(--border));
}
.step:last-child::before { display: none; }
.step__number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; font-weight: 700; font-size: .85rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative; z-index: 1; margin-bottom: 14px;
}
.step__icon {
  width: 56px; height: 56px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface-alt); border: 1px solid var(--border); color: var(--primary);
}
.step__icon .icon { width: 26px; height: 26px; }
.step p { color: var(--muted); font-size: .95rem; max-width: 34ch; margin: 0 auto; }

/* Access / login — split premium card */
.access { padding: 8px 0 100px; }
.access__card {
  display: grid; grid-template-columns: .95fr 1.15fr;
  max-width: 920px; margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.access__side {
  position: relative;
  background: linear-gradient(165deg, color-mix(in srgb, var(--primary) 9%, #fff), color-mix(in srgb, var(--secondary) 7%, #fff) 85%);
  padding: 44px 38px; display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--border);
}
.access__side::before, .access__side::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(46px); z-index: 0;
}
.access__side::before { width: 190px; height: 190px; background: color-mix(in srgb, var(--primary) 45%, transparent); top: -60px; right: -50px; }
.access__side::after { width: 160px; height: 160px; background: color-mix(in srgb, var(--secondary) 45%, transparent); bottom: -50px; left: -40px; }
.access__logo {
  position: relative; z-index: 1; align-self: center; height: 44px; width: auto; max-width: 200px; object-fit: contain;
  margin-bottom: 26px;
}
.access__side h2 { position: relative; z-index: 1; color: var(--ink); text-align: left; margin-bottom: 12px; }
.access__side p { position: relative; z-index: 1; color: var(--muted); font-size: .98rem; }
.access__secure {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; margin-bottom: 0;
  font-weight: 600; font-size: .88rem; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, #fff); padding: 8px 14px; border-radius: 999px; width: fit-content;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, #fff);
}
.access__secure-icon { width: 16px; height: 16px; }

.access__form-wrap { padding: 44px 40px; }
.login-form { display: flex; flex-direction: column; }
.field { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon {
  position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted-2); pointer-events: none;
}
.input-wrap input {
  width: 100%; padding: .8em .9em .8em 42px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .98rem; font-family: inherit; color: var(--ink); background: var(--surface-alt);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.input-wrap input::placeholder { color: var(--muted-2); }
.input-wrap input:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}
.input-toggle {
  position: absolute; right: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--muted-2); cursor: pointer; border-radius: 8px;
}
.input-toggle:hover { color: var(--ink); background: var(--border); }
.input-toggle .icon-eye-off { display: none; }
.input-toggle.is-visible .icon-eye { display: none; }
.input-toggle.is-visible .icon-eye-off { display: block; }

.login-form__error {
  color: #a4210f; background: #fdecea; border: 1px solid #f6c6bf; border-radius: var(--radius-sm);
  padding: .7em .9em; font-size: .88rem; margin: 16px 0 0;
}
.login-form .btn--block { margin-top: 22px; }

.login-form__footer { margin-top: 18px; text-align: center; }
.login-form__forgot { display: inline-block; font-size: .89rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.login-form__forgot:hover { text-decoration: underline; }
.login-form__help {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  margin: 14px 0 0; font-size: .84rem; color: var(--muted);
}
.login-form__help a { color: var(--muted); text-decoration: underline; }
.login-form__help a:hover { color: var(--primary); }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: 56px 0 0; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer__brand .logo-chip { margin-bottom: 16px; }
.site-footer__brand p { color: rgba(255,255,255,.65); font-size: .92rem; max-width: 34ch; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; margin-top: 6px;
  transition: background-color .15s ease;
}
.social-icon:hover { background: color-mix(in srgb, var(--secondary) 60%, rgba(255,255,255,.08)); }
.social-icon .icon { width: 17px; height: 17px; }

.site-footer__col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a, .site-footer__col span {
  display: inline-flex; align-items: center; gap: 9px;
  color: rgba(255,255,255,.72); text-decoration: none; font-size: .92rem;
}
.site-footer__col a:hover { color: #fff; }
.site-footer__col .icon-sm { color: rgba(255,255,255,.5); }

.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 22px 0;
}
.site-footer__bottom p { color: rgba(255,255,255,.55); font-size: .85rem; margin: 0; }
.site-footer__legal { display: flex; gap: 20px; }
.site-footer__legal a { color: rgba(255,255,255,.55); font-size: .85rem; text-decoration: none; }
.site-footer__legal a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; min-height: 180px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: 1fr; gap: 36px; }
  .step::before { display: none; }
  .access__card { grid-template-columns: 1fr; }
  .access__side { padding: 36px 32px; border-right: none; border-bottom: 1px solid var(--border); }
  .access__form-wrap { padding: 36px 32px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand__logo { height: 38px; }
  .site-nav { gap: 12px; }
  .site-nav > a:not(.btn) { display: none; }
  .access__side, .access__form-wrap { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature { transition: none; }
}
