/* rldemos.com — hoja de estilos original (gris oscuro, azul y verde) */

:root {
  --bg: #1a1b1e;
  --bg-2: #141517;
  --surface: #232529;
  --surface-2: #2c2f35;
  --line: #383b43;
  --line-2: #4a4e59;
  --ink: #d5d8df;
  --hi: #ffffff;
  --dim: #9a9fac;
  --blue: #3b7bff;
  --blue-2: #6fa0ff;
  --blue-3: #b5cdff;
  --green: #2fd47f;
  --green-2: #7df0b0;
  --wrap: 1180px;
  --font: "Instrument Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.72;
  background:
    radial-gradient(760px 520px at 100% 0%, rgba(59,123,255,.16), rgba(59,123,255,0) 70%),
    radial-gradient(700px 520px at -4% 46%, rgba(47,212,127,.07), rgba(47,212,127,0) 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--green); color: #052013; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ============ HEADER ============ */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--bg-2); border-bottom: 3px solid var(--blue); box-shadow: 0 10px 28px rgba(0,0,0,.5); }
.bar { position: relative; z-index: 62; display: flex; align-items: center; gap: 22px; min-height: 70px; }
.brand { flex: none; display: inline-flex; align-items: center; color: #fff; }
.mark { font-size: 1.9rem; font-weight: 700; font-style: italic; letter-spacing: -.05em; line-height: 1; }
.menu { flex: 1; }
.menu ul { display: flex; align-items: center; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-block; padding: 9px 14px; border-radius: 8px; color: #e4e7ee; font-weight: 500; font-size: .96rem; position: relative; transition: color .15s ease, background .15s ease; }
.menu a:hover { background: var(--surface-2); color: #fff; }
.menu a[aria-current="true"] { color: var(--blue-2); background: rgba(59,123,255,.14); }
.bar-cta { margin-left: auto; }

.hamburger { display: none; margin-left: auto; width: 46px; height: 46px; flex-direction: column; justify-content: center; gap: 5px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; padding: 0; }
.hamburger span { display: block; width: 18px; height: 2px; margin: 0 auto; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer { display: none; position: fixed; inset: 0; z-index: 61; background: var(--bg-2); overflow-y: auto; padding: 100px 20px 40px; }
.drawer.is-open { display: block; }
.drawer ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.drawer ul a { display: block; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: #fff; font-weight: 500; font-size: 1.08rem; }
.drawer ul a[aria-current="true"] { border-color: var(--blue); color: var(--blue-2); }
.drawer .d-cta { display: grid; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 13px 26px; border-radius: 10px; font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: transform .15s ease, filter .15s ease, background .15s ease; text-align: center;
}
.btn:focus-visible, a:focus-visible, summary:focus-visible, .hamburger:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.btn-blue { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 8px 22px rgba(59,123,255,.38); }
.btn-blue:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-green { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #052013; box-shadow: 0 8px 22px rgba(47,212,127,.32); }
.btn-green:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-sm { padding: 10px 20px; font-size: .94rem; }
.btn-lg { padding: 16px 32px; font-size: 1.04rem; }
.btn-block { width: 100%; }

/* ============ HERO ============ */
.hero { padding: 52px 0 28px; scroll-margin-top: 80px; }
.hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 54px; align-items: center; }
.hero-copy h1 { margin: 0 0 22px; color: #fff; font-size: clamp(2rem, 3.8vw, 3.05rem); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.hero-text p { color: var(--ink); font-size: 1.07rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.screen { margin: 0 14px 14px 0; border: 3px solid var(--blue); border-radius: 22px; overflow: hidden; background: #cbbca7; box-shadow: 14px 14px 0 var(--green), 0 30px 70px rgba(0,0,0,.55); }
.screen img { width: 100%; height: auto; aspect-ratio: 1380 / 752; }
.stats { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats li { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.stats strong { display: block; color: #fff; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.stats li:nth-child(odd) strong { color: var(--green-2); }
.stats li:nth-child(even) strong { color: var(--blue-2); }
.stats span { display: block; margin-top: 4px; color: var(--dim); font-size: .92rem; line-height: 1.45; }

/* ============ SECCIONES (línea de pasos) ============ */
.sec { scroll-margin-top: 90px; }
.rail { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 26px; }
.node { position: relative; align-self: stretch; }
.node::after { content: ""; position: absolute; left: 50%; top: 62px; bottom: 0; width: 3px; margin-left: -1.5px; background: linear-gradient(180deg, var(--blue), var(--green)); opacity: .55; }
.sec:last-of-type .node::after { display: none; }
.node span { position: sticky; top: 96px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--bg); border: 3px solid var(--blue); color: #fff; font-weight: 700; font-size: 1.1rem; box-shadow: 0 0 0 6px rgba(59,123,255,.14); }
.sec:nth-of-type(even) .node span { border-color: var(--green); box-shadow: 0 0 0 6px rgba(47,212,127,.12); }
.step { margin: 14px 0 44px; padding: 30px 34px 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 44px rgba(0,0,0,.28); min-width: 0; }
.step h2 { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.95rem); line-height: 1.18; font-weight: 700; letter-spacing: -.02em; }
.step-body > :last-child { margin-bottom: 0; }
.step-body p { font-size: 1.04rem; line-height: 1.78; }
.step-body h3 { margin: 32px 0 12px; display: flex; align-items: center; gap: 12px; color: var(--blue-3); font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
.step-body h3::before { content: ""; flex: none; width: 24px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.step-body h3:first-child { margin-top: 0; }
.step-body strong { color: #fff; font-weight: 700; }

.step-body ul { list-style: none; margin: 16px 0 22px; padding: 0; display: grid; gap: 10px; }
.step-body ul li { position: relative; padding: 13px 16px 13px 46px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 1rem; line-height: 1.6; }
.step-body ul li::before { content: ""; position: absolute; left: 16px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,212,127,.2); }
.step-body ul.cards { grid-template-columns: 1fr 1fr; }

.step-body ol { list-style: none; counter-reset: s; margin: 16px 0 22px; padding: 0; display: grid; gap: 10px; }
.step-body ol li { position: relative; counter-increment: s; padding: 14px 16px 14px 62px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 1rem; line-height: 1.6; min-height: 56px; }
.step-body ol li::before { content: counter(s); position: absolute; left: 14px; top: 11px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; font-weight: 700; font-size: .98rem; line-height: 1; }

.table-wrap { margin: 22px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--line-2); background: #1d1f23; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table-wrap.wide table { min-width: 540px; }
.table-wrap th { text-align: left; padding: 14px 18px; background: #27458f; color: #fff; font-weight: 700; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; }
.table-wrap td { padding: 12px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tbody tr:first-child td { border-top: 0; }
.table-wrap tbody tr:nth-child(even) td { background: rgba(255,255,255,.035); }
.table-wrap td:first-child { color: #fff; font-weight: 600; }

.cta { margin: 28px 0 6px; padding: 26px 20px; border-radius: 16px; display: flex; justify-content: center; background: linear-gradient(120deg, rgba(59,123,255,.22), rgba(47,212,127,.16)); border: 1px solid var(--line-2); }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.faq details[open] { border-color: var(--blue-2); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 18px 62px 18px 22px; color: #fff; font-weight: 600; font-size: 1.04rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 1.35rem; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "−"; background: var(--green); color: #052013; }
.faq .ans { padding: 0 22px 20px; }
.faq .ans p { margin: 0; }

/* ============ FOOTER ============ */
.site-footer { margin-top: 20px; padding: 46px 0 26px; background: var(--bg-2); border-top: 3px solid var(--green); color: #b9bece; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.f-brand p { margin: 14px 0 0; color: var(--dim); font-size: .96rem; max-width: 340px; }
.f-col h3 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-2); }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col a { display: inline-block; padding: 5px 0; font-size: .97rem; color: #e6e9f0; }
.f-col a:hover { color: #fff; text-decoration: underline; }
.f-bottom { padding-top: 20px; border-top: 1px solid var(--line); }
.f-bottom p { margin: 0; font-size: .88rem; color: var(--dim); }

/* ============ PÁGINA 404 ============ */
.nf { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.nf-card { max-width: 520px; width: 100%; padding: 44px 32px; text-align: center; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.nf-code { margin: 0 0 6px; color: var(--blue-2); font-size: 4rem; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.nf-card h1 { margin: 0 0 12px; color: #fff; font-size: 1.7rem; line-height: 1.2; }
.nf-card p { color: var(--ink); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .menu, .bar-cta { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .hero { padding-top: 30px; }
  .hero-actions .btn { width: 100%; }
  .screen { margin: 0 10px 10px 0; border-radius: 18px; box-shadow: 10px 10px 0 var(--green), 0 24px 50px rgba(0,0,0,.5); }
  .stats { gap: 10px; margin-top: 34px; }
  .stats li { padding: 14px 14px; }
  .stats strong { font-size: 1.05rem; }
  .rail { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .node::after { top: 44px; }
  .node span { top: 84px; width: 38px; height: 38px; font-size: .85rem; border-width: 2px; box-shadow: 0 0 0 4px rgba(59,123,255,.14); }
  .step { margin: 8px 0 30px; padding: 22px 16px 22px; border-radius: 18px; }
  .step-body ul.cards { grid-template-columns: 1fr; }
  .step-body h3 { font-size: 1.08rem; }
  .btn { white-space: normal; }
  .cta .btn { width: 100%; }
  .f-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
