* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.95);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
}

.brand {
    font-size: 22px;
    font-weight: bold;
    flex-shrink: 0;
    width: 20%;
}

.brand img {
    display: block;
    height: auto;
    width: auto;
    max-height: 52px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: transparent;
    padding: 10px;
    cursor: pointer;
    margin: 10px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    margin: 5px 0;
}

.nav-links a,
.text-link-muted {
    color: #cbd5e1;
    font-size: 15px;
}

.nav-links a:hover,
.text-link-muted:hover {
    color: #fff;
}

.hero {
    padding: 90px 0 70px;
    background: linear-gradient(135deg, #0f172a 0%, #111827 60%, #052e2b 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 20px;
}

h1 {
    font-size: 52px;
    line-height: 1.1;
    margin: 0 0 20px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.1;
    margin: 0 0 20px;
}

.hero p {
    font-size: 20px;
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 700px;
}

.buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: bold;
}

.btn-primary {
    background: #10b981;
    color: #052e2b;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.section {
    padding: 70px 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.03);
}

.section h2 {
    font-size: 34px;
    margin-bottom: 16px;
}

.page-home .section h2,
.page-facturacion-autonomos .section h2,
.page-comparativa .section h2 {
    font-size: 36px;
}

.lead,
.section p.lead {
    color: #cbd5e1;
    font-size: 18px;
    max-width: 800px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
}

.card h3 {
    margin-top: 0;
}

.card-simple {
    border-radius: 20px;
    margin-top: 20px;
}

.feature-title {
    font-size: 20px;
    margin: 0 0 10px;
}

.muted {
    color: #cbd5e1;
}

ul {
    padding-left: 18px;
    margin: 0;
}

li {
    margin-bottom: 8px;
    color: #cbd5e1;
}

.price {
    font-size: 42px;
    font-weight: bold;
    margin: 18px 0;
}

.highlight {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.cta {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 40px;
}

.target-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.target-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 22px;
    color: #cbd5e1;
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font: inherit;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-note,
.note {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 10px;
}

.contact-note.is-success {
    color: #6ee7b7;
}

.contact-note.is-error {
    color: #fca5a5;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.compare-wrap {
    overflow-x: auto;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.compare-table th,
.compare-table td {
    padding: 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
}

.compare-table th {
    background: rgba(255, 255, 255, 0.05);
    font-size: 15px;
}

.highlight-col {
    background: rgba(16, 185, 129, 0.1);
}

.text-link-accent {
    color: #6ee7b7;
}

.mt-10 {
    margin-top: 10px;
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 30px 0;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    text-align: left;
}

.footer-group h4 {
    margin: 0 0 10px;
    color: #e2e8f0;
    font-size: 16px;
}

.footer-link {
    display: block;
    color: #6ee7b7;
    margin: 6px 0;
}

.footer-link:hover {
    color: #a7f3d0;
}

.footer-copy {
    margin: 20px 0 0;
    font-size: 14px;
}

.page-verifactu .container {
    max-width: 1100px;
}

.page-verifactu header {
    position: static;
}

.page-verifactu .hero {
    padding: 80px 0;
}

.page-verifactu .hero h1 {
    font-size: 48px;
}

.page-verifactu .hero p {
    max-width: 750px;
}

.page-verifactu .cta {
    border-radius: 24px;
    margin-top: 40px;
}

.page-verifactu .btn {
    margin-top: 20px;
}

.page-comparativa .container {
    max-width: 1180px;
}

.page-comparativa .hero h1 {
    font-size: 50px;
    max-width: 900px;
}

.page-comparativa .hero p,
.page-comparativa .lead {
    max-width: 900px;
}

.page-comparativa .compare-table {
    min-width: 900px;
}

.page-facturacion-autonomos .hero h1 {
    max-width: 800px;
}

.page-facturacion-autonomos .hero p {
    max-width: 760px;
}

.page-programa-gratis .hero h1 {
    max-width: 850px;
}

.page-programa-gratis .hero p,
.page-programa-gratis .lead {
    max-width: 760px;
}

.page-programa-gratis .lead {
    max-width: 850px;
}

@media (max-width: 900px) {
    .nav {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .brand {
        width: 51%;
    }

    .brand img {
        max-height: 44px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-menu {
        width: 100%;
        margin-left: 0;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .js .nav-menu {
        display: none;
    }

    .js .nav-menu.is-open {
        display: flex;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px;
    }

    .nav-links a {
        display: block;
        width: 100%;
        font-size: 15px;
        padding: 6px 0;
    }

    header .buttons {
        width: 100%;
        justify-content: stretch;
        flex-direction: column;
    }

    header .btn {
        width: 100%;
        text-align: center;
        padding: 11px 16px;
        border-radius: 12px;
    }

    .hero-grid,
    .grid-3,
    .grid-2,
    .target-list,
    .contact-box {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 38px;
    }

    .hero h1 {
        font-size: 36px;
    }

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

    .page-verifactu .hero h1 {
        font-size: 34px;
    }

    .page-verifactu .hero p {
        font-size: 18px;
    }

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

