/* ───────────────────────────────────────────────────────────
   Veloria — landing. Sobrio, cálido, profesional.
   ─────────────────────────────────────────────────────────── */

:root {
  --font-display: "Spectral", Georgia, serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --bg: #faf7f1;
  --bg-warm: #f4efe6;
  --surface: #ffffff;
  --ink: #1a1814;
  --ink-soft: #423c33;
  --ink-muted: #6f685b;
  --ink-faint: #9a9385;
  --line: #e6e0d3;
  --line-soft: #efeae0;

  --accent: #5a1f2e;
  --accent-hover: #6e2839;
  --accent-soft: #f3e7e7;
  --gold: #b08a4f;
  --ink-deep: #16140f;

  --ok-bg: #e6efe7;
  --ok-fg: #2d5a3a;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px rgba(90, 31, 46, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink-faint);
}
.btn-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-light:hover {
  background: rgba(255, 255, 255, 0.18);
}
.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-lg {
  height: 54px;
  padding: 0 28px;
  font-size: 16px;
}

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.82);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 38px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink-deep);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.brand-mark svg {
  width: 20px;
  height: 20px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-name span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Hero ─── */
.hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 13px 6px 10px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.eyebrow b {
  background: var(--accent);
  color: #fff;
  padding: 1px 7px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-lead {
  font-size: 18.5px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.hero-note-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-note-item svg {
  color: var(--ok-fg);
  flex-shrink: 0;
}

/* hero visual */
.hero-visual {
  position: relative;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 30px 60px -28px rgba(26, 24, 20, 0.28);
  overflow: hidden;
}
.hc-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-warm);
}
.hc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.hc-url {
  margin-left: 10px;
  font-size: 12px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}
.hc-body {
  padding: 18px;
}
.hc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  margin-bottom: 8px;
  background: var(--surface);
}
.hc-row:last-child {
  margin-bottom: 0;
}
.hc-folio {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  width: 54px;
}
.hc-name {
  font-size: 13.5px;
  font-weight: 500;
  flex: 1;
}
.hc-name span {
  display: block;
  font-size: 11.5px;
  color: var(--ink-faint);
  font-weight: 400;
}
.hc-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 100px;
}
.hc-badge.ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
}
.hc-badge.pend {
  background: #f5ebd6;
  color: #7a5a14;
}
.hero-float {
  position: absolute;
  bottom: -22px;
  left: -26px;
  background: var(--ink-deep);
  color: #fff;
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 13px;
}
.hero-float-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
}
.hero-float b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.hero-float span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ─── Trust bar ─── */
.trust {
  padding: 8px 0 56px;
}
.trust-label {
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 22px;
}
.trust-row {
  display: flex;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0.7;
}
.trust-logo {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

/* ─── Section scaffold ─── */
.section {
  padding: 88px 0;
}
.section-warm {
  background: var(--bg-warm);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-dark {
  background: var(--ink-deep);
  color: #fff;
}
.sec-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.sec-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-dark .sec-tag {
  color: var(--gold);
}
.sec-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.12;
  margin: 0 0 16px;
  text-wrap: balance;
}
.sec-sub {
  font-size: 17.5px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
}
.section-dark .sec-sub {
  color: rgba(255, 255, 255, 0.66);
}

/* ─── Problem ─── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  align-items: center;
}
.problem-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.problem-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.problem-item:last-child {
  border-bottom: 0;
}
.problem-x {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #f1dcd6;
  color: #a4392a;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.problem-item h4 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 600;
}
.problem-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}
.problem-aside {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: 0 24px 50px -30px rgba(26, 24, 20, 0.22);
}
.problem-aside .big {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}
.problem-aside .big-sub {
  font-size: 15px;
  color: var(--ink-muted);
  margin-top: 10px;
}
.problem-aside hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 26px 0;
}

/* ─── Features ─── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: all 0.2s ease;
}
.feature:hover {
  border-color: var(--ink-faint);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -28px rgba(26, 24, 20, 0.3);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  margin: 0 0 9px;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.feature-wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.feature-wide-text {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-wide-visual {
  background: var(--bg-warm);
  border-left: 1px solid var(--line);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Ley (dark/security) ─── */
.ley-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.ley-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(176, 138, 79, 0.14);
  color: var(--gold);
  border: 1px solid rgba(176, 138, 79, 0.3);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 24px;
}
.ley-grid h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.12;
  margin: 0 0 20px;
}
.ley-grid p {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin: 0 0 28px;
}
.ley-checks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ley-check {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.ley-check-ic {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(176, 138, 79, 0.18);
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ley-check b {
  font-weight: 600;
  font-size: 15.5px;
}
.ley-check p {
  margin: 2px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}
.ley-card {
  background: linear-gradient(160deg, #221f18, #16140f);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  padding: 38px;
}
.ley-card-lock {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(176, 138, 79, 0.16);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.ley-stat {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ley-stat:last-child {
  border-bottom: 0;
}
.ley-stat span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
.ley-stat b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}

/* ─── How it works ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.step {
  padding: 0 24px;
  position: relative;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -2px;
  width: 4px;
  height: 4px;
}
.step-n {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 20px;
  background: var(--surface);
}
.step h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 8px;
}
.step p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}
.steps-line {
  position: relative;
}
.steps-line::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 10%;
  right: 10%;
  height: 1.5px;
  background: var(--line);
  z-index: 0;
}
.steps-line .steps {
  position: relative;
  z-index: 1;
}

/* ─── Pricing ─── */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.plan-pop {
  border-color: var(--accent);
  box-shadow: 0 24px 50px -28px rgba(90, 31, 46, 0.4);
  position: relative;
}
.plan-pop-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
}
.plan-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0 0 22px;
  min-height: 40px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.plan-price b {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.plan-price span {
  color: var(--ink-muted);
  font-size: 14px;
}
.plan-price-sub {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 24px;
  line-height: 1.5;
}
.plan-price-sub b {
  color: var(--ink-muted);
  font-weight: 500;
}
.plan-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.plan-feats li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  align-items: flex-start;
}
.plan-feats li svg {
  color: var(--ok-fg);
  flex-shrink: 0;
  margin-top: 3px;
}
.plan .btn {
  width: 100%;
  justify-content: center;
}

/* ─── CTA ─── */
.cta {
  background: var(--ink-deep);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta h2 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.1;
  position: relative;
}
.cta p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 32px;
  position: relative;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  gap: 13px;
  justify-content: center;
  position: relative;
}
.cta-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* ─── Footer ─── */
.footer {
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 16px 0 0;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 11px;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--ink-faint);
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* ─── Form fields (prueba gratis / captación) ─── */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 2px;
  text-align: left;
}
.field-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.input {
  height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 0 15px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.input::placeholder {
  color: var(--ink-faint);
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.muted {
  color: var(--ink-muted);
}

/* ─── Responsive ─── */
@media (max-width: 940px) {
  /* Los cuatro enlaces del medio no caben junto a la marca y los dos CTA.
     Se esconden y el nav queda con lo que lleva a la acción; el recorrido
     completo sigue disponible en el footer. */
  .nav-links {
    display: none;
  }

  .hero-grid,
  .problem-grid,
  .ley-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .feature-wide {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
  .feature-wide-visual {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 36px 0;
  }
  .steps-line::before {
    display: none;
  }
  .pricing {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 46px;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 560px) {
  .features,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature-wide {
    grid-column: span 1;
  }
  .hero h1 {
    font-size: 38px;
  }
  .sec-title,
  .ley-grid h2,
  .cta h2 {
    font-size: 30px;
  }
  .cta {
    padding: 44px 24px;
  }
  .trust-row {
    gap: 28px;
  }

  /* En un teléfono angosto, "Iniciar sesión" + "Prueba gratis" seguían sin
     caber al lado de la marca y sacaban scroll horizontal a toda la página.
     El login también está en el footer. */
  .nav-inner {
    gap: 14px;
  }
  .nav-cta .btn-ghost {
    display: none;
  }

  /* Los dos CTA del hero medían juntos 437px de min-content: al no poder
     envolverse, estiraban la columna del grid más allá de la pantalla y
     sacaban scroll horizontal a toda la landing. */
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
