/* css/styles.css */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --dark: #07111f;
    --dark-2: #0f172a;
    --text: #172033;
    --muted: #64748b;
    --light: #f5f8fc;
    --white: #ffffff;
    --border: #e5eaf2;
    --green: #22c55e;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    color: var(--text);
    background: var(--light);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(245, 248, 252, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar {
    max-width: 1180px;
    margin: auto;
    height: 74px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 950;
    font-size: 22px;
    color: var(--dark);
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
    font-weight: 750;
    color: #334155;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.login-link {
    background: var(--dark);
    color: #fff !important;
    padding: 11px 18px;
    border-radius: 999px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--dark);
    margin: 5px auto;
    border-radius: 999px;
}

.hero {
    max-width: 1180px;
    margin: auto;
    padding: 70px 22px 50px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    background: #eaf2ff;
    color: var(--primary-dark);
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 0.95;
    letter-spacing: -2.5px;
    font-weight: 950;
    color: var(--dark);
}

.hero p {
    max-width: 610px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: #fff;
    color: var(--dark);
    border: 1px solid var(--border);
}

.hero-stats {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hero-stats div {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 15px;
}

.hero-stats strong {
    display: block;
    font-size: 17px;
    font-weight: 950;
}

.hero-stats span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.hero-preview {
    position: relative;
}

.hero-preview::before {
    content: "";
    position: absolute;
    inset: 35px -10px -20px 35px;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    border-radius: 36px;
    filter: blur(2px);
    opacity: 0.22;
}

.preview-card {
    position: relative;
    background: #fff;
    border-radius: 34px;
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.preview-card img {
    width: 100%;
    display: block;
    border-radius: 24px;
}

.section {
    max-width: 1180px;
    margin: auto;
    padding: 70px 22px;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 38px;
}

.section-header span {
    color: var(--primary);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 950;
    letter-spacing: 0.7px;
}

.section-header h2 {
    margin: 10px 0 12px;
    color: var(--dark);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -1.4px;
    font-weight: 950;
}

.section-header p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.features-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card,
.process-grid article,
.plan-card,
.custom-plan,
.faq-list details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.feature-card {
    padding: 26px;
}

.feature-card .icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    border-radius: 17px;
    font-size: 25px;
    margin-bottom: 18px;
}

.feature-card h3,
.process-grid h3,
.plan-card h3 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 20px;
    font-weight: 950;
}

.feature-card p,
.process-grid p,
.plan-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.plans-section {
    max-width: 1240px;
}

.plans-group-title {
    margin: 36px 0 18px;
}

.plans-group-title h3 {
    margin: 0;
    font-size: 24px;
    color: var(--dark);
    font-weight: 950;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.plan-card {
    position: relative;
    padding: 26px;
    overflow: hidden;
}

.plan-card.popular {
    border: 2px solid var(--primary);
    transform: translateY(-4px);
}

.plan-card .tag {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--primary);
    color: #fff;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
}

.price {
    margin: 24px 0 20px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    color: var(--dark);
}

.price small {
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 8px;
}

.price {
    font-size: 46px;
    font-weight: 950;
    letter-spacing: -1.5px;
}

.price span {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 9px;
    letter-spacing: 0;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 12px;
}

.plan-card li {
    position: relative;
    padding-left: 27px;
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
}

.plan-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    background: #dcfce7;
    color: #15803d;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 950;
}

.btn-plan {
    width: 100%;
    background: var(--dark);
    color: #fff;
}

.popular .btn-plan {
    background: var(--primary);
}

.custom-plan {
    margin-top: 28px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.25),
            transparent 35%
        ),
        linear-gradient(135deg, #07111f, #0f172a);
    color: #fff;
}

.custom-plan span {
    color: #93c5fd;
    font-weight: 950;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.7px;
}

.custom-plan h3 {
    margin: 10px 0;
    font-size: 28px;
    line-height: 1.15;
}

.custom-plan p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.55;
}

.process-grid article {
    padding: 24px;
}

.process-grid strong {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    border-radius: 15px;
    margin-bottom: 18px;
    font-size: 18px;
}

.faq-list {
    max-width: 850px;
    margin: auto;
    display: grid;
    gap: 14px;
}

.faq-list details {
    padding: 20px 22px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 950;
    color: var(--dark);
}

.faq-list p {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.cta-section {
    margin: 40px auto 80px;
    max-width: 1100px;
    padding: 58px 24px;
    border-radius: 34px;
    text-align: center;
    background:
        radial-gradient(
            circle at top left,
            rgba(34, 197, 94, 0.28),
            transparent 32%
        ),
        linear-gradient(135deg, #2563eb, #172554);
    color: #fff;
}

.cta-section h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
    font-weight: 950;
}

.cta-section p {
    margin: 14px 0 26px;
    color: #dbeafe;
    font-size: 17px;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--primary-dark);
}

.site-footer {
    background: var(--dark);
    color: #fff;
    padding: 30px 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.site-footer > div {
    max-width: 1180px;
}

.site-footer p {
    margin: 6px 0 0;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #fff;
}

/* Animaciones landing.js */

.feature-card,
.plan-card,
.process-grid article,
.faq-list details,
.custom-plan {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.6s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.custom-toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #111827;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(15px);
    transition: 0.3s;
    z-index: 9999;
}

.custom-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */

@media (max-width: 920px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: 18px;
        right: 18px;
        top: 84px;
        background: #fff;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
        border-radius: 22px;
        padding: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .login-link {
        text-align: center;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 44px;
    }

    .hero-preview {
        order: -1;
    }

    .features-grid,
    .plans-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .custom-plan,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .navbar {
        height: 68px;
        padding: 0 16px;
    }

    .brand span {
        font-size: 19px;
    }

    .hero {
        padding: 34px 16px 34px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1.6px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 52px 16px;
    }

    .plan-card.popular {
        transform: none;
    }

    .custom-plan {
        padding: 24px;
    }

    .site-footer {
        padding: 26px 16px;
    }
}
