/* NEXUS 8 — Landing pública */

:root {
    --navy-deep: #0e1838;
    --navy: #1a2554;
    --navy-soft: #232f6a;
    --navy-bright: #2440a5;
    --orange: #f5a623;
    --orange-dark: #d89216;
    --brown: #8a6a3d;
    --white: #ffffff;
    --off-white: #f8f9fb;
    --gray-50: #fafbfc;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --text: #1a2554;
    --text-muted: #6b7280;
    --green: #22c55e;
    --green-dark: #16a34a;
    --red: #ef4444;
    --shadow-sm: 0 1px 2px rgba(14, 24, 56, 0.04);
    --shadow-md: 0 4px 16px rgba(14, 24, 56, 0.08);
    --shadow-lg: 0 12px 40px rgba(14, 24, 56, 0.14);
    --radius: 12px;
    --radius-lg: 18px;
    --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--off-white); }
.section--dark { background: var(--navy); color: var(--white); }
.section--deep { background: var(--navy-deep); color: var(--white); }

.eyebrow {
    color: var(--orange);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.section--dark .eyebrow, .section--deep .eyebrow { color: var(--orange); }

h1, h2, h3, h4 { line-height: 1.15; color: inherit; }
h1 { font-size: clamp(40px, 6vw, 88px); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }

.lead {
    color: var(--text-muted);
    font-size: clamp(15px, 1.4vw, 18px);
    max-width: 760px;
    margin-top: 18px;
}
.section--dark .lead, .section--deep .lead { color: rgba(255,255,255,0.78); }

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav .logo {
    font-weight: 900; font-size: 22px; letter-spacing: 0.04em;
    color: var(--navy);
    display: flex; align-items: center; gap: 14px;
}
.nav .logo > span:first-of-type { color: var(--orange); margin-left: 4px; }
.nav .logo .by-urplan {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 400; font-size: 10px; letter-spacing: 0.08em;
    color: var(--text-muted); text-transform: lowercase;
    border-left: 1px solid var(--gray-200);
    padding-left: 12px;
    flex-shrink: 0;
}
.nav .logo .by-urplan img {
    height: 32px !important; width: auto !important;
    max-height: 32px; max-width: 140px;
    display: inline-block; vertical-align: middle;
}
@media (max-width: 720px) {
    .nav .logo .by-urplan { display: none; }
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
    font-size: 14px; font-weight: 500; color: var(--text-muted);
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.cta-small {
    background: var(--orange); color: var(--white);
    padding: 10px 18px; border-radius: 999px; font-weight: 600;
}
.nav-links a.cta-small:hover { background: var(--orange-dark); color: var(--white); }
.nav-toggle { display: none; background: none; border: none; color: var(--navy); }

@media (max-width: 880px) {
    .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; gap: 0; background: var(--white);
        border-bottom: 1px solid var(--gray-200); padding: 12px 0; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 24px; width: 100%; }
    .nav-links a.cta-small { margin: 8px 24px; width: auto; text-align: center; }
    .nav-toggle { display: block; }
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
    background: var(--navy-deep);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 168px 0 120px;
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero::before {
    width: 540px; height: 540px;
    top: -120px; right: -120px;
    background: radial-gradient(circle at 30% 30%, var(--navy-bright), var(--navy-soft));
    opacity: 0.85;
}
.hero::after {
    width: 360px; height: 360px;
    bottom: -90px; right: 200px;
    background: radial-gradient(circle at 30% 30%, #a67c4e, var(--brown));
    opacity: 0.7;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); margin-bottom: 24px; max-width: 12ch; }
.hero .hero-sub {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    max-width: 26ch;
    margin-bottom: 32px;
}
.hero .hero-tag {
    color: rgba(255,255,255,0.78);
    font-style: italic;
    max-width: 56ch;
    font-size: 17px;
    margin-bottom: 56px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 999px;
    font-weight: 600; font-size: 15px;
    transition: all 0.15s; border: none;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.7); }
.hero-author {
    display: flex; align-items: center; gap: 16px;
    color: rgba(255,255,255,0.6); font-size: 13px;
}
.hero-author::before { content: ""; width: 56px; height: 3px; background: var(--orange); }

/* ── Stats (Problema) ────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.stat {
    background: var(--gray-50);
    padding: 36px 30px;
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.stat .num {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 900; color: var(--navy-bright);
    line-height: 1; margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.stat p { color: var(--text); font-size: 15px; }

/* ── Canales (Solución) ──────────────────────────────────────────── */
.canales { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.canal {
    background: var(--navy);
    color: var(--white);
    padding: 38px 32px;
    border-radius: var(--radius-lg);
}
.canal .icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--orange); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.canal .icon svg { width: 26px; height: 26px; }
.canal h3 { color: var(--white); letter-spacing: 0.12em; margin-bottom: 14px; font-size: 18px; }
.canal p { color: rgba(255,255,255,0.78); font-size: 15px; }

/* ── Cómo funciona (steps) ───────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 56px 0 40px;
    position: relative;
}
.step { text-align: center; padding: 0 12px; }
.step .num-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--navy-bright);
    color: var(--white);
    font-size: 24px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    box-shadow: var(--shadow-md);
}
.step h4 { color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }
.step-arrow {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    color: var(--orange);
    font-size: 42px; font-weight: 800; line-height: 1;
}
.banner-dark {
    background: var(--navy);
    color: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    margin-top: 16px;
}
.banner-dark em { color: var(--orange); font-style: normal; font-weight: 700; }

@media (max-width: 880px) {
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .step-arrow { transform: rotate(90deg); height: 16px; }
}

/* ── Autonomía (8 cards) ─────────────────────────────────────────── */
.autonomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 48px;
}
.feature {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 28px 22px;
    transition: transform 0.18s, box-shadow 0.18s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--white); }
.feature .icon-wrap {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(36, 64, 165, 0.1);
    color: var(--navy-bright);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.feature .icon-wrap svg { width: 22px; height: 22px; }
.feature h4 { color: var(--navy); margin-bottom: 8px; font-size: 16px; }
.feature p { color: var(--text-muted); font-size: 14px; }
.muted-note { text-align: center; color: var(--text-muted); font-size: 14px; font-style: italic; margin-top: 36px; }

/* ── Escalado humano (2 columnas) ────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.panel {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 36px 32px;
}
.panel--red, .panel--green { border-left: 4px solid var(--navy-bright); }
.panel--green { border-left-color: var(--orange); }
.panel h4 {
    font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: 22px; font-weight: 700;
    color: var(--navy-bright);
}
.panel--green h4 { color: var(--orange-dark); }
.panel ul { list-style: none; }
.panel li {
    position: relative; padding-left: 22px; margin-bottom: 12px;
    color: var(--gray-700); font-size: 15px;
}
.panel li::before {
    content: "•"; position: absolute; left: 0; top: 0;
    color: var(--gray-500); font-weight: 700;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ── Impacto (2x2 grid) ──────────────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}
.kpi {
    background: var(--gray-50);
    padding: 40px 32px;
    border-radius: var(--radius);
    border-left: 4px solid var(--navy-bright);
    display: flex; align-items: center; gap: 28px;
}
.kpi .big {
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--navy-bright);
    min-width: 110px;
}
.kpi--green .big { color: var(--green-dark); }
.kpi--green { border-left-color: var(--green); }
.kpi--orange .big { color: var(--orange); }
.kpi--orange { border-left-color: var(--orange); }
.kpi p { color: var(--text); font-size: 16px; max-width: 26ch; }
@media (max-width: 720px) { .kpi-grid { grid-template-columns: 1fr; } }

/* ── Integración (3 boxes) ───────────────────────────────────────── */
.flow {
    display: flex; align-items: stretch; justify-content: center;
    gap: 18px; margin-top: 48px; flex-wrap: wrap;
}
.flow-box {
    flex: 1; min-width: 240px; max-width: 320px;
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    color: var(--white);
    text-align: center;
}
.flow-box .icon-big {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
}
.flow-box .icon-big svg { width: 36px; height: 36px; }
.flow-box h4 { color: var(--white); letter-spacing: 0.1em; margin-bottom: 8px; font-size: 18px; }
.flow-box p { color: rgba(255,255,255,0.85); font-size: 14px; }
.flow-box--navy { background: var(--navy-deep); }
.flow-box--blue { background: var(--navy-bright); }
.flow-box--orange { background: var(--orange); }
.flow-arrow {
    display: flex; align-items: center;
    color: var(--gray-300); font-size: 28px; font-weight: 700;
}
@media (max-width: 800px) {
    .flow { flex-direction: column; align-items: stretch; }
    .flow-box { max-width: none; }
    .flow-arrow { transform: rotate(90deg); justify-content: center; height: 12px; }
}

/* ── Onboarding (timeline) ───────────────────────────────────────── */
.timeline { margin-top: 48px; position: relative; padding-left: 56px; }
.timeline::before {
    content: ""; position: absolute;
    left: 22px; top: 12px; bottom: 12px;
    width: 2px; background: var(--gray-200);
}
.tl-item { position: relative; margin-bottom: 36px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before {
    content: ""; position: absolute;
    left: -56px; top: 4px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--navy-bright);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.tl-item:nth-child(1)::before { content: "1"; }
.tl-item:nth-child(2)::before { content: "2"; }
.tl-item:nth-child(3)::before { content: "3"; }
.tl-item:nth-child(4)::before { content: "4"; }
.tl-time { color: var(--orange); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.tl-item h4 { color: var(--navy); margin: 4px 0 8px; }
.tl-item p { color: var(--text-muted); }

/* ── Pricing ─────────────────────────────────────────────────────── */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.price {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.price--featured {
    background: var(--navy-deep);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-20px) scale(1.05);
    padding: 52px 36px;
    cursor: pointer;
}
.price--featured:hover {
    transform: translateY(-26px) scale(1.07);
    box-shadow: 0 24px 60px rgba(14, 24, 56, 0.32);
    background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-bright) 100%);
}
.price h3 {
    font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase;
    margin-bottom: 24px; color: var(--navy);
}
.price--featured h3 { color: var(--white); }
.price .amount {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 900; line-height: 1;
    color: var(--navy-bright); letter-spacing: -0.03em;
}
.price--featured .amount { color: var(--orange); }
.price .amount-unit { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-left: 10px; }
.price--featured .amount-unit { color: rgba(255,255,255,0.7); }
.price hr { margin: 24px 0; border: none; border-top: 1px solid var(--gray-200); }
.price--featured hr { border-color: rgba(255,255,255,0.18); }
.price ul { list-style: none; }
.price li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; font-size: 15px;
}
.price li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--green-dark); margin-top: 2px; }
.price li.off { color: var(--text-muted); }
.price li.off svg { color: var(--gray-300); }
.price--featured li svg { color: var(--green); }
.badge {
    position: absolute; top: 26px; right: 26px;
    background: var(--orange); color: var(--white);
    padding: 6px 14px; border-radius: 999px;
    font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
    font-weight: 700;
}
.price-note { color: var(--text-muted); font-size: 13px; margin-top: 32px; text-align: center; }
.price-note strong { color: var(--text); font-weight: 600; }
@media (max-width: 880px) {
    .pricing { grid-template-columns: 1fr; }
    .price--featured { transform: none; }
}

/* ── Quién (about) ───────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; margin-top: 32px; }
.about-card {
    background: var(--navy-deep);
    color: var(--white);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
}
.about-card .label {
    font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--orange); margin-bottom: 14px; font-weight: 600;
}
.about-card h3 { color: var(--white); margin-bottom: 18px; }
.about-card p { color: rgba(255,255,255,0.85); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* ── CTA final ────────────────────────────────────────────────────── */
.cta-final {
    background: var(--navy-deep);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 120px 0 0;
}
.cta-final::before, .cta-final::after {
    content: ""; position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.cta-final::before {
    width: 420px; height: 420px;
    top: -120px; right: -120px;
    background: radial-gradient(circle, #a67c4e, var(--brown));
    opacity: 0.55;
}
.cta-final::after {
    width: 280px; height: 280px;
    bottom: -100px; left: -100px;
    background: radial-gradient(circle, var(--navy-bright), var(--navy));
    opacity: 0.6;
}
.cta-final .container { position: relative; z-index: 2; }
.cta-final h2 { color: var(--white); max-width: 16ch; margin-bottom: 28px; }
.cta-final p { color: rgba(255,255,255,0.78); max-width: 56ch; font-size: 17px; margin-bottom: 56px; }
.cta-footer {
    background: var(--navy-bright);
    color: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 36px 40px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    border-left: 5px solid var(--orange);
    margin-top: 40px;
}
.cta-footer .who { font-weight: 600; }
.cta-footer .who small { display: block; font-weight: 400; color: rgba(255,255,255,0.78); font-size: 13px; margin-top: 4px; }
.cta-footer .brand { font-size: 30px; font-weight: 900; color: var(--orange); letter-spacing: 0.04em; }

/* ── Form / contacto ─────────────────────────────────────────────── */
.form-wrap { max-width: 640px; margin: 40px auto 0; background: var(--white); padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.single { grid-template-columns: 1fr; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--gray-700); margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid var(--gray-200); border-radius: 10px;
    font: inherit; color: var(--text);
    background: var(--white); transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy-bright); }
.field textarea { min-height: 120px; resize: vertical; }
.form-status { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-status.ok { color: var(--green-dark); }
.form-status.err { color: var(--red); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ── Footer ──────────────────────────────────────────────────────── */
footer.foot {
    background: var(--gray-100); color: var(--text-muted);
    padding: 40px 0; font-size: 13px;
    border-top: 4px solid var(--orange);
}
footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
footer .legal a { color: var(--text-muted); margin-left: 18px; }
footer .legal a:hover { color: var(--orange); }
footer .brand { color: var(--navy); font-weight: 800; font-size: 18px; letter-spacing: 0.04em; }
footer .foot-brand { display: flex; align-items: center; gap: 14px; }
footer .foot-by { color: var(--gray-500); font-size: 11px; letter-spacing: 0.06em; }
footer .foot-urplan { height: 40px !important; width: auto !important; max-height: 40px; }
footer .foot-mid { font-size: 12px; color: var(--gray-500); }
