/* ===== RastreoERP — HTML + CSS puro ===== */
:root {
    --background: hsl(222 47% 6%);
    --foreground: hsl(210 30% 96%);
    --card: hsl(222 40% 9%);
    --primary: #4ee79b;
    --primary-fg: hsl(222 47% 6%);
    --secondary: hsl(222 35% 14%);
    --muted-fg: hsl(215 18% 62%);
    --border: hsl(217 25% 20%);
    --radius: 0.9rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, sans-serif;
    background: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}

h1,
h2,
h3,
h4 {
    font-family: "Sora", sans-serif;
    line-height: 1.1;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

svg {
    width: 100%;
    height: 100%;
}

.container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.accent {
    color: var(--primary);
}

.section {
    padding: 5rem 1.25rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
    padding: .65rem 1.25rem;
}

.btn:active {
    transform: scale(.98);
}

.btn-pill {
    border-radius: 999px;
}

.btn-lg {
    padding: .9rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-fg);
}

.btn-primary:hover {
    filter: brightness(.95);
}

.btn-ghost {
    background: hsl(222 35% 14% / .5);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--secondary);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--secondary);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all .3s ease;
    background: transparent;
}

.header.scrolled {
    background: hsl(222 47% 6% / .8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 6rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-family: "Sora";
    font-weight: 700;
    font-size: 1.125rem;
}

.logo-badge {
    display: grid;
    place-items: center;
    height: 2.25rem;
    width: 2.25rem;
    border-radius: .75rem;
    background: var(--primary);
    color: var(--primary-fg);
}

.logo-badge svg {
    width: 1.25rem;
    height: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: .9rem;
    color: var(--muted-fg);
}

.nav-links a:hover {
    color: var(--foreground);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.link-muted {
    font-size: .9rem;
    color: var(--muted-fg);
}

.link-muted:hover {
    color: var(--foreground);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    width: 1.75rem;
    height: 1.75rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: hsl(222 47% 6% / .97);
    border-top: 1px solid var(--border);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a:not(.btn) {
    color: var(--muted-fg);
}

/* ===== Hero ===== */
.grid-bg {
    background-image: linear-gradient(hsl(217 25% 20% / .5) 1px, transparent 1px), linear-gradient(90deg, hsl(217 25% 20% / .5) 1px, transparent 1px);
    background-size: 44px 44px;
}

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, hsl(172 82% 46% / .12), transparent 55%);
}

.hero-inner {
    position: relative;
    padding-top: 7rem;
    padding-bottom: 4rem;
    max-width: 80rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid hsl(172 82% 46% / .3);
    background: hsl(172 82% 46% / .1);
    color: var(--primary);
    border-radius: 999px;
    padding: .375rem 1rem;
    font-size: .75rem;
    font-weight: 500;
}

.badge .dot {
    height: .375rem;
    width: .375rem;
    border-radius: 999px;
    background: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

.hero h1 {
    margin-top: 1.5rem;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.02em;
    max-width: 48rem;
}

.lead {
    color: var(--muted-fg);
    font-size: 1.125rem;
    line-height: 1.65;
}

.hero .lead {
    margin-top: 1.5rem;
    max-width: 34rem;
}

.hero-cta {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.hero-stats {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
}

.stat-num {
    display: block;
    font-family: "Sora";
    font-size: 1.875rem;
    font-weight: 700;
}

.stat-label {
    font-size: .875rem;
    color: var(--muted-fg);
}

/* ===== Marquee ===== */
.marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: hsl(222 35% 14% / .3);
    padding: 1rem 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    width: max-content;
    animation: marquee 28s linear infinite;
    color: var(--muted-fg);
    font-size: .875rem;
}

.marquee-track span {
    flex-shrink: 0;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ===== Section head ===== */
.section-head {
    max-width: 40rem;
}

.section-head.center {
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.section-head h2 {
    margin-top: .75rem;
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -.02em;
}

.section-head p {
    margin-top: 1rem;
    color: var(--muted-fg);
    font-size: 1.125rem;
}

/* ===== Feature cards ===== */
.cards-grid {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: border-color .2s;
}

.feature-card:hover {
    border-color: hsl(172 82% 46% / .5);
}

.feature-icon {
    display: grid;
    place-items: center;
    height: 3rem;
    width: 3rem;
    border-radius: .75rem;
    background: hsl(172 82% 46% / .1);
    color: var(--primary);
    transition: all .2s;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--primary-fg);
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-card h3 {
    margin-top: 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.feature-card p {
    margin-top: .625rem;
    color: var(--muted-fg);
    font-size: .95rem;
    line-height: 1.6;
}

/* ===== Benefits ===== */
.benefits-wrap {
    background: hsl(222 35% 14% / .3);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.benefits-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 55rem;
}

.benefit-card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 1rem;
    padding: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.benefit-card p {
    margin-top: .5rem;
    font-size: .9rem;
    color: var(--muted-fg);
    line-height: 1.6;
}

/* ===== Pricing ===== */
.pricing-grid {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.plan {
    position: relative;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.plan-highlight {
    border-color: var(--primary);
    box-shadow: 0 25px 50px -12px hsl(172 82% 46% / .15);
}

.plan-tag {
    position: absolute;
    top: -.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--primary-fg);
    border-radius: 999px;
    padding: .25rem 1rem;
    font-size: .75rem;
    font-weight: 600;
}

.plan h3 {
    font-family: "Sora";
    font-size: 1.25rem;
    font-weight: 700;
}

.plan-desc {
    margin-top: .5rem;
    font-size: .875rem;
    color: var(--muted-fg);
}

.plan-price {
    margin-top: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: .25rem;
}

.plan-price .cur {
    font-size: 1.125rem;
    color: var(--muted-fg);
}

.plan-price .amount {
    font-family: "Sora";
    font-size: 3rem;
    font-weight: 700;
}

.plan-price .amount.sm {
    font-size: 1.875rem;
}

.plan-price .per {
    color: var(--muted-fg);
}

.plan-features {
    list-style: none;
    margin-top: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.plan-features li {
    position: relative;
    padding-left: 1.75rem;
    font-size: .95rem;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
}

.plan .btn {
    margin-top: 2rem;
}

/* ===== Contact ===== */
.contact-wrap {
    background: hsl(222 35% 14% / .3);
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.contact-grid .lead {
    margin-top: 1rem;
}

.contact-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: .95rem;
}

.contact-info a,
.contact-info div {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.contact-info a:hover {
    color: var(--primary);
}

.ci-icon {
    display: grid;
    place-items: center;
    height: 2.5rem;
    width: 2.5rem;
    border-radius: .75rem;
    background: hsl(172 82% 46% / .1);
    color: var(--primary);
    flex-shrink: 0;
}

.ci-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-form {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.field label {
    font-size: .875rem;
    font-weight: 500;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: hsl(222 35% 14% / .4);
    border-radius: .75rem;
    padding: .75rem 1rem;
    font-size: .9rem;
    color: var(--foreground);
    font-family: inherit;
    outline: none;
    transition: all .2s;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted-fg);
}

.field input:focus,
.field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsl(172 82% 46% / .25);
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    background: var(--background);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-top: 3.5rem;
    padding-bottom: 1rem;
}

.footer-about {
    margin-top: 1rem;
    font-size: .875rem;
    color: var(--muted-fg);
    max-width: 20rem;
    line-height: 1.6;
}

.footer h4 {
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .625rem;
    font-size: .875rem;
    color: var(--muted-fg);
}

.footer ul a:hover {
    color: var(--foreground);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    border-top: 1px solid var(--border);
    font-size: .875rem;
    color: var(--muted-fg);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 30rem;
        margin-inline: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .btn-lg {
        padding: .4rem 1rem;
        font-size: 14px;
    }

    .hero-stats {
        justify-content: center
    }

    .nav-toggle {
        display: block;
    }

    .cards-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}