/* Portada pública (Pages/Shared/_Landing.cshtml). Mismos tokens que site.css; sin JavaScript. */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/inter-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --ink: #14283D;
  --text: #2B3D52;
  --muted: #4F6275;
  --action: #1268CF;
  --action-hover: #0A3567;
  --action-soft: #E8F1FC;
  --navy: #0A3567;
  --on-navy: #C9D8EA;
  --accent-soft: #9FD4DC;
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --line: #DFE7EF;
  --line-action: #B9CDE6;
  --ok-bg: #E3F1E7;
  --ok-text: #1D5E32;
  --mark-bg: #FFF3D6;
  --mark-text: #6B4A00;
  --shadow: 0 10px 30px rgba(20, 40, 61, .08);
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-control: 12px;
  --radius-card: 18px;
  --fs-h1: clamp(2.1rem, 1.5rem + 2.4vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--text); font: 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h2 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--action); }
a:hover { color: var(--action-hover); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 4px; }
section[id] { scroll-margin-top: 88px; }

.skip { position: absolute; left: 16px; top: -48px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }

.l-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
.l-narrow { max-width: 820px; }
.l-stack { display: flex; flex-direction: column; gap: 32px; }
.l-intro { display: flex; flex-direction: column; gap: 10px; max-width: 42em; }
.l-intro p { font-size: 1.125rem; }
.l-section { padding-block: 80px; background: var(--surface); }
.l-band { padding-block: 80px; background: var(--bg); border-block: 1px solid var(--line); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-control); font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: background-color .15s ease, color .15s ease; }
.btn-lg { min-height: 50px; padding: 13px 24px; font-size: 1.0625rem; font-weight: 700; }
.btn-primary { background: var(--action); color: #FFFFFF; }
.btn-primary:hover { background: var(--action-hover); color: #FFFFFF; }
.btn-ghost { color: var(--action); }
.btn-ghost:hover, .btn-outline:hover { background: var(--action-soft); color: var(--action-hover); }
.btn-outline { color: var(--action); border-color: var(--line-action); background: var(--surface); }
.btn-light { background: #FFFFFF; color: var(--navy); }
.btn-light:hover { background: var(--action-soft); color: var(--navy); }

/* Cabecera */
.l-top { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.l-top-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.l-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; min-height: 44px; }
.l-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.l-brand-name { font-size: 1.375rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.l-brand-by { font-size: .8125rem; color: var(--muted); }
.l-nav { display: flex; gap: 24px; font-size: .9375rem; font-weight: 500; }
.l-nav a { color: var(--text); text-decoration: none; padding-block: 10px; }
.l-nav a:hover { color: var(--action); }
.l-top-actions { display: flex; gap: 8px; }

/* Inicio */
.l-hero { padding-block: 64px 88px; }
.l-hero-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.l-hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.l-hero h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; }
.l-pill { align-self: flex-start; background: var(--action-soft); color: var(--navy); font-size: .875rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.l-lead { font-size: 1.25rem; line-height: 1.55; max-width: 36em; }
.l-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.l-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: .9375rem; color: var(--muted); }
.l-checks li { display: flex; align-items: center; gap: 6px; }
.l-checks li::before { content: ""; width: 14px; height: 8px; border-left: 2.5px solid var(--ok-text); border-bottom: 2.5px solid var(--ok-text); transform: rotate(-45deg) translateY(-2px); }

.l-demo { flex: 1 1 400px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.l-demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.l-demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--ink); }
.l-badge { font-size: .8125rem; font-weight: 600; background: var(--ok-bg); color: var(--ok-text); padding: 3px 10px; border-radius: 999px; }
.l-link { font-family: var(--mono); font-size: .875rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 12px 14px; overflow-wrap: anywhere; color: var(--ink); }
.l-link mark { background: var(--mark-bg); color: var(--mark-text); border-radius: 4px; padding: 0 2px; }
.l-demo-note { font-size: .875rem; color: var(--muted); }
.l-demo-note code { font-family: var(--mono); color: var(--ink); }
.l-demo-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.l-receipt { background: var(--navy); color: #FFFFFF; border-radius: var(--radius-card); padding: 20px 24px; display: flex; gap: 16px; align-items: flex-start; margin-left: 32px; }
.l-receipt svg { flex: none; margin-top: 2px; fill: none; stroke: var(--accent-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.l-receipt div { display: flex; flex-direction: column; gap: 4px; }
.l-receipt span { font-size: .875rem; color: var(--on-navy); }
.l-demo figcaption { font-size: .8125rem; color: var(--muted); text-align: right; }

/* Tabla de comparación */
.l-table-box { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.l-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 1rem; }
.l-table th, .l-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.l-table tr:last-child th, .l-table tr:last-child td { border-bottom: 0; }
.l-table thead th { font-size: .875rem; color: var(--muted); font-weight: 600; }
.l-table tbody th { color: var(--ink); font-weight: 600; }
.l-table .is-lacre { background: #F4F8FE; }
.l-table thead .is-lacre { background: var(--action-soft); color: var(--navy); font-weight: 700; }

/* Pasos, funciones y usos */
.l-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.l-steps li, .l-card { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.l-step-n { width: 40px; height: 40px; border-radius: var(--radius-control); background: var(--action-soft); color: var(--navy); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.l-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.l-card p { font-size: 1rem; }
.l-card svg { fill: none; stroke: var(--action); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.l-uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); }
.l-uses > div { padding-block: 24px; display: flex; flex-direction: column; gap: 6px; }
.l-uses p { font-size: 1rem; }

/* Ley */
.l-law { background: var(--navy); color: #FFFFFF; padding-block: 64px; }
.l-law-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.l-law-inner > div { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.l-law h2 { color: #FFFFFF; }
.l-law p { font-size: 1.125rem; color: var(--on-navy); }
.l-law .btn { flex: 1 1 220px; }

/* Precios */
.l-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.l-plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.l-plan.is-featured { border: 2px solid var(--action); }
.l-plan p { font-size: 1rem; }
.l-plan .btn { margin-top: auto; }
.l-price { font-size: 2.25rem !important; font-weight: 800; color: var(--ink); line-height: 1; }
.l-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.l-note { font-size: .9375rem; color: var(--muted); }

/* Preguntas */
.l-faq { border-top: 1px solid var(--line); }
.l-faq details { border-bottom: 1px solid var(--line); padding-block: 8px; }
.l-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.125rem; color: var(--ink); }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.l-faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.l-faq details p { padding-bottom: 12px; }

/* Cierre y pie */
.l-final { background: var(--action-soft); padding-block: 80px; }
.l-final-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.l-final p { font-size: 1.125rem; }
.l-final a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; }
.l-foot { background: var(--ink); color: var(--on-navy); font-size: .9375rem; padding-block: 32px; }
.l-foot-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.l-foot strong { color: #FFFFFF; }
.l-foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.l-foot a { color: var(--on-navy); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.l-foot a:hover { color: #FFFFFF; text-decoration: underline; }

@media (max-width: 900px) {
  .l-nav { display: none; }
}
@media (max-width: 560px) {
  .l-top-inner { gap: 8px; }
  .l-brand-by { display: none; }
  .l-top-actions .btn { padding-inline: 12px; }
  .l-hero { padding-block: 40px 56px; }
  .l-section, .l-band, .l-final { padding-block: 56px; }
  .l-receipt { margin-left: 0; }
  .l-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .l-faq summary::after { transition: none; }
}
