/* =========================
   BASE GLOBAL SaaS
========================= */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #111;
    background: #fff;
    line-height: 1.5;
    overflow-x: hidden;
}

/* mejora navegación con anchors */
section {
    scroll-margin-top: 80px;
}

/* contenedor global */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================
   NAVBAR PRO
========================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    border-bottom: 1px solid #eee;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

header strong {
    font-size: 18px;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s ease;
}

nav a:hover {
    opacity: 0.7;
}

.btn-login {
    background: #111;
    color: white !important;
    padding: 9px 14px;
    border-radius: 8px;
}


/* =========================
   HERO SECTION
========================= */

.hero {
    padding: 120px 30px 100px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 19px;
    color: #555;
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons a {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #111;
    color: #fff;
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f2f2f2;
    color: #111;
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}


/* =========================
   FEATURES SECTION
========================= */

.features {
    padding: 90px 30px;
    background: #fafafa;
    text-align: center;
}

.features h2 {
    font-size: 34px;
    margin-bottom: 50px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: left;
    transition: 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}


/* =========================
   CTA SECTION
========================= */

.cta {
    padding: 90px 30px;
    background: #111;
    color: white;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.cta h2 {
    font-size: 34px;
    margin-bottom: 15px;
}

.cta p {
    color: #ccc;
    margin-bottom: 25px;
    font-size: 16px;
    max-width: 600px;
}

.cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #111;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    min-height: 54px;
}


/* =========================
   DASHBOARD MOCKUP
========================= */

.dashboard-preview {
    margin-top: 70px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.dashboard-card {
    width: 100%;
    max-width: 900px;
    background: white;
    border: 1px solid #eee;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    overflow-x: auto;
}

/* top bar */

.dashboard-topbar {
    background: #f8f8f8;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;

    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d1d1;
}

/* content */

.dashboard-content {
    padding: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
}

.stat-box h3 {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.stat-box p {
    margin-top: 10px;
    font-size: 28px;
    font-weight: bold;
}

/* table */

.mock-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.mock-table th,
.mock-table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}

.mock-table th {
    color: #666;
    font-weight: 600;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}


/* =========================
   TABLETS
========================= */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 14px;
        text-align: center;
        padding: 20px;
    }

    nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    nav a {
        font-size: 15px;
    }

    .hero {
        padding: 100px 24px 80px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 400px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        padding: 20px;
    }

    .features h2,
    .cta h2 {
        font-size: 32px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {

    /* NAVBAR */

    header {
        padding: 18px 20px;
    }

    header strong {
        font-size: 22px;
    }

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 16px;
        padding: 8px 10px;
    }

    /* HERO */

    .hero {
        padding: 80px 20px 70px;
    }

    .hero h1 {
        font-size: clamp(36px, 9vw, 52px);
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 19px;
        line-height: 1.6;
        margin-bottom: 30px;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 14px;
    }

    /* BUTTONS */

    .btn-primary,
    .btn-secondary,
    .btn-login {
        width: 100%;
        text-align: center;
        padding: 16px 20px;
        font-size: 17px;
    }

    /* FEATURES */

    .features {
        padding: 90px 22px;
    }

    .features h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    .feature-card {
        padding: 28px;
    }

    .feature-card h3 {
        font-size: 23px;
    }

    .feature-card p {
        font-size: 20px;
        line-height: 1.6;
    }

    /* MOCKUP */

    .dashboard-preview {
        padding: 0 15px;
    }

    .dashboard-content {
        padding: 20px;
    }

    .stat-box h3 {
        font-size: 16px;
    }

    .stat-box p {
        font-size: 32px;
    }

    .mock-table th,
    .mock-table td {
        font-size: 15px;
        padding: 12px 8px;
    }

    /* CTA */

    .cta {
        padding: 80px 20px;
    }

    .cta h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    .cta p {
        font-size: 18px;
        line-height: 1.6;
    }

    .cta a {
        width: 100%;
        padding: 16px;
        font-size: 17px;
    }

    /* FOOTER */

    footer {
        font-size: 15px;
    }
}