/* AutoPostula — landing page */

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; flex: 1; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; }
@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
           color: var(--accent); font-weight: 600; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 55% at 78% 8%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.02; font-weight: 800; margin: 16px 0 0; }
.hero-copy h1 em { color: var(--accent); font-style: normal; }
.lede { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 54ch; margin: 20px 0 0; text-wrap: pretty; }
.lede strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.hero-note { font-size: 12.5px; color: var(--faint); margin: 16px 0 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
}

/* Hero visual */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.match-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
              box-shadow: var(--shadow-lg); padding: 22px; width: 100%; max-width: 380px; }
.match-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mc-title { font-weight: 700; font-size: 16px; }
.mc-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mc-just { font-size: 13.5px; color: var(--muted); margin: 16px 0; line-height: 1.5; }
.mc-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.score-ring { position: relative; width: 60px; height: 60px; flex: none; }
.score-ring svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.score-ring .ring-bg { fill: none; stroke: var(--line); stroke-width: 6; }
.score-ring .ring-fg { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 195; stroke-dashoffset: calc(195 - 195 * var(--val) / 100);
  animation: ring 1.1s ease forwards; }
@keyframes ring { from { stroke-dashoffset: 195; } }
@media (prefers-reduced-motion: reduce) { .score-ring .ring-fg { animation: none; } }
.score-num { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 18px; }

.mini-pipe { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; justify-content: center; }
.mini-pipe i { color: var(--accent); font-style: normal; }
.mini-pipe .hl { color: var(--accent); font-weight: 700; }

/* Strip */
.strip { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
.strip p { margin: 0; text-align: center; color: var(--muted); font-size: 15px; max-width: 80ch; margin-inline: auto; }
.strip strong { color: var(--ink); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-intro { max-width: 62ch; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.sec-intro h2 { font-size: clamp(26px, 4vw, 38px); margin: 12px 0 0; font-weight: 800; }
.sec-sub { color: var(--muted); margin: 14px 0 0; font-size: 16px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.step-n { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft);
          padding: 4px 10px; border-radius: 8px; }
.step h3 { font-size: 17px; margin: 16px 0 6px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.f-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px;
         background: var(--accent-soft); color: var(--accent); font-size: 22px; }
.feature h3 { font-size: 17px; margin: 16px 0 6px; }
.feature p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }

/* Portales */
.portales { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 860px; margin: 0 auto; }
.portal-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
               display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: var(--shadow-sm); }
.portal-item .pn { font-weight: 600; font-size: 15px; }
.portal-item.more { justify-content: center; color: var(--faint); border-style: dashed; }
.portales-note { text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 20px; }
@media (max-width: 720px) { .portales { grid-template-columns: 1fr; } }

/* Comparativa vs. competencia */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: 0 auto; }
.compare-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.compare-col.us { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.cc-head { font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.compare-col.them .cc-head { color: var(--muted); }
.compare-col.us .cc-head { color: var(--accent); }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.compare-col li { font-size: 14.5px; padding-left: 27px; position: relative; color: var(--muted); }
.compare-col li::before { position: absolute; left: 0; font-weight: 800; }
.compare-col.them li::before { content: "\2715"; color: var(--danger); }
.compare-col.us li { color: var(--ink); }
.compare-col.us li::before { content: "\2713"; color: var(--accent); }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
        box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative; }
.plan.popular { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -11px; left: 22px; background: var(--accent); color: #fff;
             font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 999px; letter-spacing: .04em; }
.plan-name { font-weight: 700; font-size: 15px; color: var(--muted); }
.plan-price { font-size: 42px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; }
.plan-unit { font-size: 12.5px; color: var(--muted); }
.plan-feats { list-style: none; padding: 0; margin: 18px 0; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.plan-feats li { font-size: 13.5px; color: var(--muted); padding-left: 22px; position: relative; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 940px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pricing { grid-template-columns: 1fr; } }

/* Ethics */
.ethics { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow); }
.ethics h2 { font-size: clamp(24px, 3.5vw, 32px); margin: 0 0 24px; text-align: center; }
.ethics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ethics-grid div { font-size: 14.5px; color: var(--muted); padding: 18px; background: var(--surface-2);
                   border: 1px solid var(--line); border-radius: 12px; }
.ethics-grid strong { color: var(--ink); }
@media (max-width: 640px) { .ethics-grid { grid-template-columns: 1fr; } }

/* CTA final */
.cta-final { padding: clamp(56px, 8vw, 90px) 0; background:
  linear-gradient(180deg, var(--surface-2), var(--bg)); border-top: 1px solid var(--line); }
.cta-inner { text-align: center; max-width: 60ch; }
.cta-inner h2 { font-size: clamp(26px, 4.2vw, 40px); font-weight: 800; }
.cta-inner p { color: var(--muted); font-size: 17px; margin: 14px 0 28px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0; background: var(--surface-2); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-links { display: flex; gap: 22px; flex: 1; }
.foot-links a { color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--ink); }
.foot-legal { width: 100%; color: var(--faint); font-size: 12px; margin: 8px 0 0; }
