:root {
    --primary: #0b3cde;
    --primary-dark: #082a8e;
    --secondary: #1cb5f6;
    --purple: #6d38f6;
    --ink: #14213d;
    --muted: #60708a;
    --surface: #f4f8ff;
    --line: #dce7f7;
    --white: #fff;
    --shadow: 0 24px 70px rgba(11, 60, 222, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; }

.site-header {
    width: min(1180px, calc(100% - 36px));
    min-height: 76px;
    margin: 18px auto 0;
    padding: 10px 12px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 14px;
    z-index: 20;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 20px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 16px 50px rgba(20, 33, 61, .10);
    backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-symbol { width: 60px; height: 58px; flex: 0 0 auto; border-radius: 14px; background-image: url('../img/logo/logo_plataformafull.png'); background-repeat: no-repeat; background-size: 222px 148px; background-position: -83px -19px; box-shadow: 0 8px 18px rgba(11,60,222,.2); }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { color: var(--primary-dark); font-size: 1.08rem; letter-spacing: -.025em; white-space: nowrap; }
.brand-copy em { color: #425cff; font-style: normal; }
.brand-copy small { margin-top: 7px; color: #7a879b; font-size: .48rem; font-weight: 800; letter-spacing: .18em; white-space: nowrap; }
.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav > a { font-size: .94rem; font-weight: 700; text-decoration: none; }
.site-header nav > a:not(.button) { color: #43536d; }
.site-header nav > a:not(.button):hover { color: var(--primary); }

.button {
    min-height: 52px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(100deg, var(--primary), var(--secondary));
    box-shadow: 0 13px 30px rgba(11, 60, 222, .25);
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 17px 38px rgba(11, 60, 222, .33); }
.button-small { min-height: 44px; padding: 0 20px; }
.button-outline { color: var(--primary); background: #fff; border: 1px solid #bed1f2; box-shadow: 0 9px 22px rgba(11,60,222,.08); }
.button-light { color: var(--primary); background: #fff; white-space: nowrap; box-shadow: 0 14px 30px rgba(6,39,125,.2); }

.hero {
    min-height: 760px;
    margin-top: -112px;
    padding: 190px max(6vw, 28px) 105px;
    display: grid;
    grid-template-columns: 1.03fr .97fr;
    align-items: center;
    gap: 7vw;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 82% 26%, rgba(28,181,246,.25), transparent 28%),
        radial-gradient(circle at 18% 18%, rgba(109,56,246,.13), transparent 26%),
        linear-gradient(145deg, #f8fbff 10%, #e9f5ff 54%, #f3edff 100%);
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(2px);
}
.hero::before { width: 330px; height: 330px; top: 150px; right: -150px; background: rgba(28,181,246,.16); }
.hero::after { width: 210px; height: 210px; bottom: 35px; left: -100px; background: rgba(109,56,246,.12); }
.hero-copy { max-width: 720px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(11,60,222,.08);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 5px rgba(28,181,246,.13); }
.hero h1 {
    max-width: 760px;
    margin: 22px 0 25px;
    color: var(--primary-dark);
    font-size: clamp(3rem, 5.7vw, 5.8rem);
    line-height: .99;
    letter-spacing: -.06em;
}
.hero h1::after { content: "."; color: var(--secondary); }
.hero-copy > p { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.23rem); }
.actions { margin: 34px 0 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 24px; color: #52627b; font-size: .88rem; font-weight: 750; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: #16a34a; }

.hero-panel {
    max-width: 590px;
    padding: 18px;
    position: relative;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(145deg, rgba(11,60,222,.96), rgba(28,181,246,.91) 62%, rgba(109,56,246,.92));
    box-shadow: 0 35px 85px rgba(11,60,222,.31);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}
.hero-panel::after {
    content: "Vista demostrativa · datos ficticios";
    position: absolute;
    right: 24px;
    bottom: -38px;
    padding: 11px 18px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 13px;
    color: var(--primary);
    background: rgba(255,255,255,.92);
    box-shadow: 0 14px 30px rgba(11,60,222,.18);
    font-size: .82rem;
    font-weight: 900;
}
.panel-top { display: flex; gap: 7px; padding: 4px 2px 14px; }
.panel-top span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.58); }
.demo-screen { overflow: hidden; border-radius: 17px; color: var(--ink); background: #eef4fc; box-shadow: 0 16px 35px rgba(6,39,125,.22); }
.demo-nav { min-height: 48px; padding: 0 15px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid #dce5f2; color: #53627a; background: #fff; font-size: .58rem; font-weight: 750; }
.demo-nav strong { margin-right: auto; color: var(--primary-dark); font-size: .66rem; }
.demo-content { padding: 15px; }
.demo-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .66rem; }
.demo-title div { display: grid; }
.demo-title b { color: var(--primary-dark); font-size: .86rem; }
.demo-title small { color: var(--muted); }
.demo-title > span { padding: 5px 8px; border: 1px solid #d5dfed; border-radius: 7px; background: #fff; }
.demo-welcome { margin-top: 12px; min-height: 112px; padding: 20px; display: flex; flex-direction: column; justify-content: center; border-radius: 14px; color: #fff; background: linear-gradient(110deg, var(--primary), var(--secondary)); }
.demo-welcome small { width: fit-content; padding: 3px 6px; border-radius: 5px; color: var(--primary); background: #fff; font-size: .46rem; font-weight: 900; }
.demo-welcome strong { margin-top: 9px; font-size: 1.05rem; line-height: 1.2; }
.demo-welcome span { margin-top: 4px; color: rgba(255,255,255,.82); font-size: .62rem; }
.demo-stats { margin-top: 10px; padding: 12px 8px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid #dfe7f3; border-radius: 12px; background: #fff; }
.demo-stats div { display: grid; text-align: center; }
.demo-stats b { color: var(--primary-dark); font-size: .83rem; }
.demo-stats small { color: var(--muted); font-size: .48rem; }
.demo-areas { margin-top: 10px; display: grid; gap: 7px; }
.demo-areas > div { padding: 9px 11px; display: flex; align-items: center; gap: 9px; border: 1px solid #dfe7f3; border-radius: 10px; background: #fff; }
.demo-areas i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--primary); background: #e5efff; font-size: .55rem; font-style: normal; }
.demo-areas span { display: grid; }
.demo-areas b { color: var(--primary-dark); font-size: .61rem; }
.demo-areas small { color: var(--muted); font-size: .48rem; }
.demo-areas em { margin-left: auto; color: var(--primary); font-size: 1rem; font-style: normal; }

.section { padding: 105px max(6vw, 28px); }
.section h2 { margin: 17px 0 22px; color: var(--primary-dark); font-size: clamp(2.25rem, 4.3vw, 4.25rem); line-height: 1.08; letter-spacing: -.045em; }
.intro { max-width: 1040px; position: relative; }
.intro p { max-width: 840px; color: var(--muted); font-size: 1.18rem; }

.modules {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding-top: 10px;
    padding-bottom: 125px;
    background: linear-gradient(180deg, var(--surface), #eef5ff);
}
.modules article {
    min-height: 300px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(204,220,244,.9);
    border-radius: 22px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 15px 45px rgba(20,33,61,.07);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.modules article::after { content: ""; width: 120px; height: 120px; position: absolute; right: -65px; bottom: -65px; border-radius: 50%; background: linear-gradient(135deg, rgba(28,181,246,.25), rgba(109,56,246,.16)); }
.modules article:hover { transform: translateY(-7px); border-color: #9fc4ff; box-shadow: 0 24px 55px rgba(11,60,222,.14); }
.modules article > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); font-size: .76rem; font-weight: 900; }
.modules h3 { margin: 45px 0 12px; color: var(--primary-dark); font-size: 1.35rem; line-height: 1.25; }
.modules p { margin: 0; color: var(--muted); }

.community {
    margin: 0 max(3vw, 18px);
    padding: 90px max(4vw, 30px);
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 7vw;
    align-items: center;
    border-radius: 34px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary) 48%, var(--purple));
    box-shadow: var(--shadow);
}
.community .eyebrow { color: #fff; background: rgba(255,255,255,.12); }
.community h2 { color: #fff; }
.community-copy p { color: rgba(255,255,255,.76); font-size: 1.08rem; }
.roles { display: grid; gap: 12px; }
.roles div { padding: 21px 23px; border: 1px solid rgba(255,255,255,.17); border-radius: 16px; background: rgba(255,255,255,.10); backdrop-filter: blur(12px); }
.roles div:hover { background: rgba(255,255,255,.15); }
.roles strong, .roles span { display: block; }
.roles strong { color: #fff; font-size: 1.04rem; }
.roles span { margin-top: 3px; color: rgba(255,255,255,.72); }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefits div { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 14px 38px rgba(20,33,61,.06); }
.benefits strong { color: var(--primary); font-size: 1.55rem; }
.benefits p { margin-bottom: 0; color: var(--muted); }

.cta {
    margin: 0 max(4vw,18px) 75px;
    padding: 72px max(4vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(110deg, var(--secondary), var(--primary) 55%, var(--purple));
    box-shadow: 0 28px 70px rgba(11,60,222,.25);
}
.cta::after { content: ""; width: 300px; height: 300px; position: absolute; right: -110px; top: -130px; border: 55px solid rgba(255,255,255,.10); border-radius: 50%; }
.cta > * { position: relative; z-index: 1; }
.cta-copy { max-width: 690px; }
.cta-copy p { max-width: 620px; color: rgba(255,255,255,.78); font-size: 1.05rem; }
.cta-copy > a { color: #fff; font-weight: 800; }
.cta .eyebrow { color: #fff; background: rgba(255,255,255,.14); }
.cta h2 { max-width: 850px; margin-bottom: 0; color: #fff; }
.contact-form { width: min(100%, 560px); padding: 28px; border: 1px solid rgba(255,255,255,.6); border-radius: 22px; color: var(--ink); background: rgba(255,255,255,.95); box-shadow: 0 24px 55px rgba(6,39,125,.24); }
.contact-form label { display: grid; gap: 6px; color: #35445e; font-size: .83rem; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #ccd9ed; border-radius: 10px; outline: 0; color: var(--ink); background: #fff; font: inherit; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(28,181,246,.14); }
.form-grid { margin-bottom: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.contact-form .button { width: 100%; margin-top: 17px; color: #fff; background: linear-gradient(100deg, var(--primary), var(--secondary)); }
.contact-form > small { margin-top: 10px; display: block; color: var(--muted); text-align: center; }
.contact-trap { width: 1px; height: 1px; position: absolute; left: -10000px; overflow: hidden; }
.contact-alert { margin-bottom: 15px; padding: 11px 13px; border-radius: 10px; font-size: .88rem; font-weight: 700; }
.contact-alert.success { color: #166534; background: #dcfce7; }
.contact-alert.error { color: #991b1b; background: #fee2e2; }

footer { min-height: 115px; padding: 30px max(6vw,28px); display: flex; align-items: center; gap: 26px; border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: .9rem; }
footer img { width: 155px; height: 48px; object-fit: contain; }
.footer-contact { color: var(--primary); font-weight: 750; text-decoration: none; }
.footer-contact:hover { text-decoration: underline; }
footer p:last-child { margin-left: auto; }

@media (max-width: 1020px) {
    .site-header nav > a:not(.button) { display: none; }
    .hero { grid-template-columns: 1fr; padding-top: 175px; }
    .hero-panel { width: min(100%, 650px); transform: none; }
    .modules { grid-template-columns: 1fr 1fr; }
    .community { grid-template-columns: 1fr; }
    .cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
    .site-header { width: calc(100% - 22px); min-height: 68px; margin-top: 10px; top: 8px; padding: 6px 7px 6px 12px; }
    .brand-symbol { width: 48px; height: 47px; border-radius: 11px; background-size: 179px 119px; background-position: -67px -15px; }
    .brand-copy strong { font-size: .82rem; }
    .brand-copy small { font-size: .35rem; letter-spacing: .12em; }
    .button-small { min-height: 42px; padding: 0 15px; }
    .hero { min-height: auto; margin-top: -90px; padding: 145px 21px 82px; }
    .hero h1 { font-size: 3rem; }
    .actions .button { width: 100%; }
    .modules, .benefits { grid-template-columns: 1fr; }
    .hero-panel { padding: 13px; border-radius: 22px; }
    .hero-panel::after { display: none; }
    .demo-nav span { display: none; }
    .section { padding: 78px 21px; }
    .modules { padding-top: 0; }
    .modules article { min-height: 255px; }
    .community { margin: 0 12px; padding: 58px 22px; border-radius: 25px; }
    .cta { margin: 0 12px 52px; padding: 52px 23px; border-radius: 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 20px; }
    footer { align-items: flex-start; flex-direction: column; gap: 5px; }
    footer p { margin: 0; }
    footer p:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
