:root {
    --primary: #5b5ce2;
    --primary-dark: #4344c8;
    --navy: #18213d;
    --text: #4f5872;
    --muted: #7d859d;
    --line: #e7e9f2;
    --soft: #f7f8fc;
    --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--navy);
    background: #fff;
}

.navbar {
    padding: 17px 0;
    background: rgba(255,255,255,.93);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(231,233,242,.75);
}
.navbar-brand {
    font-size: 1.45rem;
    color: var(--navy);
}
.brand-icon {
    width: 38px; height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #5b5ce2, #8485ff);
    color: white;
    box-shadow: 0 9px 22px rgba(91,92,226,.24);
}
.brand-icon.small { width: 30px; height: 30px; border-radius: 9px; }
.nav-link { color: #505875; font-weight: 600; font-size: .95rem; }
.nav-link:hover { color: var(--primary); }
.btn-login {
    color: white;
    background: var(--navy);
    border-radius: 11px;
    font-weight: 700;
}
.btn-login:hover { background: var(--primary); color: white; }

.hero {
    position: relative;
    overflow: hidden;
    padding: 165px 0 115px;
    background:
      radial-gradient(circle at 82% 22%, rgba(116,118,255,.12), transparent 28%),
      radial-gradient(circle at 15% 68%, rgba(76,196,231,.08), transparent 26%),
      #fff;
}
.hero::before {
    content: "";
    position: absolute;
    right: -170px; top: 120px;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: rgba(91,92,226,.04);
}
.eyebrow, .section-kicker {
    color: var(--primary);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.eyebrow {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    padding: 8px 12px;
    background: #f1f1ff;
    border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

.hero h1 {
    margin-top: 18px;
    max-width: 680px;
    font-size: clamp(3rem, 5.5vw, 5.25rem);
    line-height: .98;
    letter-spacing: -.055em;
    font-weight: 850;
}
.hero h1 span {
    color: var(--primary);
}
.hero-text {
    max-width: 650px;
    margin: 26px 0 30px;
    color: var(--text);
    font-size: 1.14rem;
    line-height: 1.75;
}
.btn-primary-main {
    padding: 14px 22px;
    border: 0;
    border-radius: 13px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(91,92,226,.22);
}
.btn-primary-main:hover { background: var(--primary-dark); color: white; }
.btn-outline-main {
    padding: 14px 22px;
    border: 1px solid #d8dbe8;
    border-radius: 13px;
    color: var(--navy);
    background: white;
    font-weight: 700;
}
.btn-outline-main:hover { border-color: var(--primary); color: var(--primary); }
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 30px;
    color: #646c82;
    font-size: .89rem;
}
.hero-tags i { color: #25a476; margin-right: 5px; }

.app-stage {
    position: relative;
    min-height: 530px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-window {
    width: 100%;
    max-width: 620px;
    overflow: hidden;
    border: 1px solid #e5e7ef;
    border-radius: 22px;
    background: white;
    box-shadow: 0 35px 75px rgba(35,40,72,.16);
    transform: perspective(1200px) rotateY(-3deg) rotateX(1.5deg);
}
.app-topbar {
    height: 59px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf0f5;
}
.app-brand { display: flex; align-items: center; gap: 9px; font-size: .88rem; }
.app-user { font-size: .69rem; color: #81889c; display: flex; align-items: center; gap: 7px; }
.app-user span { width: 7px; height: 7px; border-radius: 50%; background: #2bb673; }
.app-body { min-height: 385px; display: flex; }
.app-sidebar {
    width: 128px;
    padding: 17px 10px;
    border-right: 1px solid #edf0f5;
    background: #fbfbfd;
}
.app-sidebar div {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 4px; padding: 9px 10px;
    color: #7c8396;
    border-radius: 8px;
    font-size: .67rem;
}
.app-sidebar div.active { color: var(--primary); background: #efefff; font-weight: 800; }
.app-content { flex: 1; padding: 20px; background: #fcfcfe; }
.content-title { display:flex; justify-content:space-between; align-items:center; }
.content-title small { color:#9aa0af; font-size:.64rem; }
.content-title h3 { font-size:1.15rem; margin:2px 0 0; }
.fake-button { font-size:.62rem; color:white; background:var(--primary); padding:7px 10px; border-radius:7px; }
.stats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:17px; }
.stat-card { padding:13px; background:white; border:1px solid #edf0f5; border-radius:11px; }
.stat-icon {
    width:28px; height:28px; display:flex; align-items:center; justify-content:center;
    background:#f0f0ff; color:var(--primary); border-radius:8px; font-size:.78rem;
}
.stat-card small, .stat-card strong, .stat-card em { display:block; }
.stat-card small { color:#9096a7; margin-top:9px; font-size:.58rem; }
.stat-card strong { font-size:1.14rem; margin-top:2px; }
.stat-card em { color:#a0a5b2; font-style:normal; font-size:.54rem; }
.dashboard-row { display:grid; grid-template-columns:1.2fr 1fr; gap:10px; margin-top:10px; }
.mini-panel { min-height:145px; padding:13px; background:white; border:1px solid #edf0f5; border-radius:11px; }
.mini-title { display:flex; justify-content:space-between; align-items:center; font-size:.65rem; }
.mini-title span { color:#a2a6b3; font-size:.52rem; }
.chart-bars { height:60px; display:flex; align-items:flex-end; gap:7px; padding:8px 0; }
.chart-bars span { width:13px; border-radius:4px 4px 2px 2px; background:linear-gradient(#8586ff,#5b5ce2); }
.progress-line { height:5px; border-radius:999px; background:#eceefa; overflow:hidden; }
.progress-line i { display:block; height:100%; background:#2bb673; border-radius:999px; }
.mini-panel > small { display:block; margin-top:6px; color:#999eac; font-size:.5rem; }
.movement { display:flex; align-items:center; gap:7px; padding:9px 0; border-bottom:1px solid #f0f1f5; font-size:.55rem; }
.movement:last-child { border:0; }
.avatar {
    width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center;
    background:#efefff; color:var(--primary); font-size:.5rem; font-weight:800;
}
.movement div { flex:1; }
.movement b, .movement small { display:block; }
.movement small { color:#a3a7b4; margin-top:2px; }
.floating-card {
    position:absolute; z-index:3;
    display:flex; align-items:center; gap:10px;
    padding:12px 15px;
    border:1px solid #e7e8f0;
    border-radius:13px;
    background:rgba(255,255,255,.95);
    box-shadow:0 16px 35px rgba(28,32,58,.14);
}
.floating-card strong, .floating-card small { display:block; }
.floating-card strong { font-size:.72rem; }
.floating-card small { margin-top:2px; color:#9499a8; font-size:.57rem; }
.floating-top { right:-15px; top:32px; }
.floating-bottom { left:-15px; bottom:40px; }
.float-icon {
    width:32px; height:32px; border-radius:9px; display:flex; align-items:center; justify-content:center;
}
.float-icon.success { background:#e8f7f0; color:#21976c; }
.float-icon.info { background:#eeeeff; color:var(--primary); }

.trusted-strip { border-top:1px solid #f0f1f5; border-bottom:1px solid #f0f1f5; }
.trusted-content {
    min-height:90px; display:flex; gap:24px 38px; align-items:center; justify-content:center; flex-wrap:wrap;
    color:#868c9e; font-size:.86rem;
}
.trusted-content strong { color:#4e5670; font-weight:650; }
.trusted-content i { color:var(--primary); margin-right:6px; }

.section { padding:105px 0; }
.section-soft { background:var(--soft); }
.section-heading { max-width:760px; }
.section-heading h2, .section-title-left {
    margin-top:12px;
    font-size:clamp(2.3rem,4vw,3.6rem);
    line-height:1.07;
    letter-spacing:-.035em;
    font-weight:820;
}
.section-heading p, .section-copy {
    color:var(--text); font-size:1.05rem; line-height:1.75;
}
.feature-card {
    position:relative;
    height:100%;
    padding:30px;
    border:1px solid #e7e9f1;
    border-radius:20px;
    background:white;
    box-shadow:0 10px 28px rgba(32,38,70,.04);
    transition:.25s ease;
}
.feature-card:hover { transform:translateY(-5px); box-shadow:0 18px 40px rgba(32,38,70,.08); }
.feature-card.future { background:linear-gradient(145deg,#fff,#f5f5ff); }
.feature-icon {
    width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1.25rem;
}
.feature-icon.blue { background:#edf2ff; color:#5270d8; }
.feature-icon.violet { background:#f1edff; color:#7758d9; }
.feature-icon.rose { background:#fff0f3; color:#d85c78; }
.feature-icon.green { background:#eaf8f1; color:#299c71; }
.feature-icon.amber { background:#fff6df; color:#bd8520; }
.feature-icon.cyan { background:#e9f8fb; color:#2892a8; }
.feature-badge {
    position:absolute; top:31px; right:27px;
    padding:5px 9px; border-radius:999px; background:#f4f5f8; color:#83899b; font-size:.66rem; font-weight:800;
}
.feature-card h3 { margin:22px 0 11px; font-size:1.25rem; font-weight:800; }
.feature-card p { color:#677087; line-height:1.65; font-size:.92rem; }
.feature-card ul { padding:0; margin:18px 0 0; list-style:none; }
.feature-card li { padding:5px 0; color:#5d6579; font-size:.83rem; }
.feature-card li::before { content:"✓"; color:#28a174; font-weight:900; margin-right:8px; }

.level-list { margin-top:32px; }
.level-item { display:flex; gap:18px; padding:18px 0; border-bottom:1px solid #eceef4; }
.level-number {
    width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center;
    background:#f0f0ff; color:var(--primary); font-size:.76rem; font-weight:900;
}
.level-item h4 { font-size:1rem; margin:0 0 5px; }
.level-item p { margin:0; color:#777e91; font-size:.87rem; }

.timeline-card {
    padding:28px;
    border:1px solid #e7e9f1;
    border-radius:22px;
    box-shadow:0 25px 55px rgba(34,39,68,.09);
}
.timeline-head, .student-head, .timeline-row { display:flex; align-items:center; }
.timeline-head { justify-content:space-between; }
.timeline-head small { color:#9da2b1; font-size:.7rem; }
.timeline-head h3 { margin:3px 0 0; font-size:1.2rem; }
.status-pill { padding:6px 10px; border-radius:999px; background:#eaf8f1; color:#238b65; font-size:.66rem; font-weight:800; }
.student-head { gap:12px; margin:25px 0; padding:16px; border-radius:14px; background:#f8f9fc; }
.student-avatar {
    width:48px; height:48px; display:flex; align-items:center; justify-content:center;
    border-radius:50%; background:#e7e7ff; color:var(--primary); font-weight:900;
}
.student-head h4 { margin:0; font-size:1rem; }
.student-head p { margin:3px 0 0; color:#8b91a1; font-size:.75rem; }
.timeline-row { position:relative; gap:13px; padding:16px 0; border-bottom:1px solid #eef0f4; }
.timeline-row:last-child { border:0; }
.timeline-row > span {
    width:12px; height:12px; border-radius:50%; border:3px solid white; box-shadow:0 0 0 2px #b7bdca; background:#b7bdca;
}
.timeline-row.completed > span { background:#29a576; box-shadow:0 0 0 2px #29a576; }
.timeline-row.current > span { background:var(--primary); box-shadow:0 0 0 2px var(--primary); }
.timeline-row div { flex:1; }
.timeline-row b, .timeline-row small { display:block; }
.timeline-row b { font-size:.86rem; }
.timeline-row small { color:#969ba9; margin-top:3px; font-size:.69rem; }
.timeline-row strong { color:#6f7689; font-size:.67rem; }
.timeline-row.current strong { color:var(--primary); }

.section-dark { background:#17203b; color:white; }
.section-heading.light p { color:#bcc2d2; }
.benefit-card {
    height:100%;
    padding:30px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:20px;
    background:rgba(255,255,255,.045);
}
.benefit-card > span { color:#8586ff; font-size:.78rem; font-weight:900; }
.benefit-card h3 { margin:18px 0 10px; font-size:1.22rem; }
.benefit-card p { margin:0; color:#b7bdcc; font-size:.9rem; line-height:1.7; }

.cta-section { padding:75px 0; }
.cta-box {
    display:flex; align-items:center; justify-content:space-between; gap:35px;
    padding:48px 52px;
    border-radius:26px;
    background:linear-gradient(135deg,#5b5ce2,#7778f1);
    color:white;
    box-shadow:0 22px 50px rgba(91,92,226,.22);
}
.cta-box .section-kicker { color:#dcdcfe; }
.cta-box h2 { max-width:650px; margin:8px 0; font-size:clamp(2rem,3vw,3rem); letter-spacing:-.03em; font-weight:820; }
.cta-box p { margin:0; color:#e9e9ff; }

footer { padding:36px 0; border-top:1px solid #eceef3; }
.footer-row { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.footer-brand { color:var(--navy); text-decoration:none; font-size:1.25rem; }
footer p { margin:5px 0 0; color:#9298a8; font-size:.8rem; }
.footer-copy { color:#9aa0ae; font-size:.78rem; }

@media (max-width: 991.98px) {
    .navbar-collapse { padding:15px 0; }
    .hero { padding:135px 0 80px; }
    .app-stage { margin-top:20px; }
    .floating-top { right:0; }
    .floating-bottom { left:0; }
    .cta-box { flex-direction:column; align-items:flex-start; }
}
@media (max-width: 767.98px) {
    .hero h1 { font-size:3.2rem; }
    .app-window { transform:none; }
    .app-sidebar { display:none; }
    .stats-grid { grid-template-columns:1fr; }
    .dashboard-row { grid-template-columns:1fr; }
    .app-stage { min-height:auto; padding:30px 0 70px; }
    .floating-card { display:none; }
    .section { padding:75px 0; }
    .trusted-content { padding:22px 0; justify-content:flex-start; }
    .cta-box { padding:35px 28px; }
    .footer-row { flex-direction:column; align-items:flex-start; }
}

/* Logo institucional de la portada. */
.site-logo{display:block;width:64px;height:64px;object-fit:contain;flex-shrink:0;border-radius:10px;background:#fff}
@media(max-width:575px){.site-logo{width:48px;height:48px}}
.site-brand-copy{display:flex;flex-direction:column;justify-content:center;line-height:1.2}
.site-brand-copy small{display:block;margin-top:5px;font-size:9px;font-weight:400;letter-spacing:2px;color:var(--muted)}