.page-home {
    background: #eef1f5;
    overflow-x: hidden;
    width: 100%;
}

.page-home > .container,
.page-home section .container,
.page-home nav .container {
    max-width: var(--site-max-width, 1380px);
}

.page-home h2 {
    color: #000739;
    font-family: var(--font-sans, "Montserrat", sans-serif);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-home .home-hero h1 {
    font-family: var(--font-sans, "Montserrat", sans-serif);
}

/* ── Hero ── */
.home-hero {
    position: relative;
    color: #fff;
    padding: 70px 0 80px;
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #000739 0%, #001845 40%, #006b52 100%);
    z-index: 0;
}

.home-hero-bg:before,
.home-hero-bg:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
}

.home-hero-bg:before {
    width: 420px;
    height: 420px;
    background: #00c693;
    top: -120px;
    right: -80px;
}

.home-hero-bg:after {
    width: 300px;
    height: 300px;
    background: #4da6ff;
    bottom: -80px;
    left: -60px;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
}

.home-hero h1 {
    color: #fff;
    font-size: 42px;
    line-height: 1.15;
    margin-top: 20px;
    margin-bottom: 22px;
    font-weight: 800;
}

.home-hero h1 span {
    color: #5dffc8;
    display: inline-block;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #d4f5ea;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    backdrop-filter: blur(4px);
}

.home-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00c693;
    box-shadow: 0 0 0 4px rgba(0, 198, 147, 0.25);
    animation: home-pulse 2s infinite;
}

@keyframes home-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.home-lead {
    font-size: 19px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 30px;
    max-width: 540px;
}

.home-hero-actions {
    margin-bottom: 28px;
}

.home-btn-primary {
    background: #00c693;
    border: 2px solid #00c693;
    color: #fff !important;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 10px;
    margin-right: 12px;
    margin-bottom: 12px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 8px 24px rgba(0, 198, 147, 0.35);
}

.home-btn-primary:hover,
.home-btn-primary:focus {
    background: #00db9f;
    border-color: #00db9f;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 198, 147, 0.45);
}

.home-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.45);
    color: #fff !important;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: background 0.2s, border-color 0.2s;
}

.home-btn-secondary:hover,
.home-btn-secondary:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff !important;
}

.home-btn-dark {
    box-shadow: none;
}

.home-btn-light {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.home-hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.home-hero-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
}

.home-hero-points .glyphicon {
    color: #5dffc8;
    font-size: 12px;
    top: 0;
}

/* Hero card — mock task */
.home-hero-card {
    background: #fff;
    color: #222;
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: rotate(1deg);
    transition: transform 0.3s;
}

.home-hero-card:hover {
    transform: rotate(0deg) translateY(-4px);
}

.home-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #f4f7fa;
    border-bottom: 1px solid #e8ebf0;
}

.home-task-status {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #00c693;
    line-height: 1.2;
}

.home-task-price {
    background: #000739;
    color: #5dffc8;
    font-weight: 800;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 8px;
    line-height: 1.2;
    white-space: nowrap;
}

.home-hero-card h3 {
    color: #000739;
    margin: 20px 24px 8px;
    font-size: 21px;
    font-weight: 800;
}

.home-task-desc {
    color: #666;
    font-size: 15px;
    margin: 0 24px 16px;
    line-height: 1.5;
}

.home-card-steps {
    list-style: none;
    padding: 0 24px;
    margin: 0 0 16px;
}

.home-card-steps li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    font-size: 15px;
}

.home-card-steps li:last-child {
    border-bottom: none;
}

.home-card-steps strong {
    color: #00c693;
    margin-right: 6px;
}

.home-task-footer {
    display: flex;
    gap: 20px;
    padding: 0 24px 16px;
    color: #888;
    font-size: 14px;
}

.home-task-footer .glyphicon {
    color: #00c693;
    margin-right: 4px;
    font-size: 13px;
}

.home-hero-card .home-btn-primary {
    margin: 0 24px 24px;
    width: calc(100% - 48px);
    border-radius: 10px;
}

/* ── Stats bar ── */
.home-stats {
    background: #fff;
    padding: 0;
    margin-top: -36px;
    position: relative;
    z-index: 2;
}

.home-stats-row {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 7, 57, 0.1);
    padding: 28px 10px;
    margin: 0 15px;
}

.home-stat-item {
    text-align: center;
    padding: 10px;
}

.home-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 198, 147, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.home-stat-icon .glyphicon {
    color: #00c693;
    font-size: 20px;
    top: 0;
}

.home-stat-item strong {
    display: block;
    font-size: 26px;
    color: #000739;
    line-height: 1.1;
    font-family: var(--font-sans, "Montserrat", sans-serif);
    font-weight: 800;
}

.home-stat-item span {
    display: block;
    color: #777;
    font-size: 14px;
    margin-top: 4px;
}

/* ── Sections ── */
.home-section {
    padding: 70px 0;
}

.home-section-alt {
    background: #fff;
}

.home-section-dark {
    background: linear-gradient(160deg, #000739 0%, #002855 100%);
    color: #fff;
}

.home-section-dark h2 {
    color: #fff;
}

.home-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #00c693;
    margin-bottom: 10px;
}

.home-eyebrow-center {
    display: block;
    text-align: center;
}

.home-eyebrow-light {
    color: #5dffc8;
}

.home-section-head {
    margin-bottom: 48px;
}

.home-section-title {
    color: #000739;
    margin-bottom: 12px;
    font-weight: 800;
}

.home-section-subtitle {
    color: #666;
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto;
}

.home-intro-block {
    padding: 0 20px;
}

.home-intro-block p {
    color: #555;
    line-height: 1.7;
    font-size: 17px;
}

/* ── Steps ── */
.home-steps {
    position: relative;
}

.home-step {
    background: #f8fafb;
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    padding: 28px 22px;
    height: 100%;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.home-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 7, 57, 0.08);
}

.home-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c693, #00a87c);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 198, 147, 0.35);
}

.home-step h3 {
    color: #000739;
    font-size: 19px;
    margin-top: 0;
    font-weight: 800;
}

.home-step p {
    color: #666;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.55;
}

@media (min-width: 992px) {
    .home-steps:before {
        content: "";
        position: absolute;
        top: 50px;
        left: 12.5%;
        right: 12.5%;
        height: 2px;
        background: linear-gradient(90deg, #e0e0e0 0%, #00c693 50%, #e0e0e0 100%);
        z-index: 0;
    }

    .home-step {
        position: relative;
        z-index: 1;
    }
}

/* ── Features ── */
.home-feature {
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    padding: 28px 24px;
    height: 100%;
    margin-bottom: 24px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.home-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 7, 57, 0.08);
    border-color: rgba(0, 198, 147, 0.3);
}

.home-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 198, 147, 0.15), rgba(0, 198, 147, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.home-feature-icon .glyphicon {
    color: #00c693;
    font-size: 22px;
    top: 0;
}

.home-feature h3 {
    color: #000739;
    font-size: 18px;
    margin-top: 0;
    font-weight: 800;
}

.home-feature p {
    color: #666;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.55;
}

/* ── Why / CTA box ── */
.home-why-lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
    line-height: 1.65;
}

.home-checklist {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.home-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.5;
}

.home-checklist .glyphicon {
    color: #5dffc8;
    font-size: 14px;
    top: 3px;
    flex-shrink: 0;
}

.home-cta-box {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 32px 28px;
    backdrop-filter: blur(8px);
}

.home-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(0, 198, 147, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.home-cta-icon .glyphicon {
    color: #5dffc8;
    font-size: 24px;
    top: 0;
}

.home-cta-box h3 {
    color: #fff;
    margin-top: 0;
    font-weight: 800;
}

.home-cta-box p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.home-cta-note {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.home-cta-note a {
    color: #5dffc8;
    font-weight: 700;
}

/* ── FAQ ── */
.home-faq {
    background: #fff;
}

.home-faq h2 {
    margin-bottom: 12px;
}

.home-faq > .container > .row > .col-md-5 p {
    color: #666;
    font-size: 16px;
}

.home-faq-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.home-faq-item:last-child {
    border-bottom: none;
}

.home-faq-item h3 {
    color: #000739;
    font-size: 17px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 8px;
}

.home-faq-item p {
    color: #666;
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* ── CTA banner ── */
.home-cta-banner {
    background: linear-gradient(135deg, #00c693 0%, #00a87c 100%);
    padding: 60px 0;
    color: #fff;
}

.home-cta-banner h2 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 12px;
    font-size: 30px;
}

.home-cta-banner p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 28px;
}

.home-cta-banner .home-btn-primary {
    background: #fff;
    border-color: #fff;
    color: #006b52 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.home-cta-banner .home-btn-primary:hover {
    background: #f0fff9;
    color: #004d3a !important;
}

/* ── SEO text ── */
.home-seo {
    padding: 50px 0 70px;
}

.home-seo h2 {
    font-size: 26px;
    margin-bottom: 16px;
}

.home-seo p {
    color: #555;
    line-height: 1.75;
    font-size: 16px;
    margin-bottom: 14px;
    max-width: 820px;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .home-hero-card-wrap {
        margin-top: 40px;
    }

    .home-hero-card {
        transform: none;
    }

    .home-stats {
        margin-top: 0;
        padding: 30px 0;
    }

    .home-stats-row {
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
}

@media (max-width: 767px) {
    .home-hero {
        padding: 45px 0 50px;
    }

    .home-hero h1 {
        font-size: 30px;
    }

    .home-lead {
        font-size: 17px;
    }

    .home-hero-points {
        flex-direction: column;
        gap: 6px;
    }

    .home-section {
        padding: 50px 0;
    }

    .home-intro-block {
        padding: 0;
        margin-bottom: 30px;
    }

    .home-cta-banner h2 {
        font-size: 24px;
    }
}

/* ── Layout fixes & overrides ── */
.page-home h1,
.page-home h2,
.page-home h3 {
    font-family: var(--font-sans, "Montserrat", sans-serif);
}

.page-home .home-service-body h3,
.page-home .home-step h3,
.page-home .home-feature h3,
.page-home .home-faq-item h3,
.page-home .home-hero-card h3 {
    color: #000739 !important;
}

.page-home .home-section-dark h2,
.page-home .home-section-dark h3,
.page-home .home-cta-box h3,
.page-home .home-cta-banner h2 {
    color: #fff !important;
}

.page-home .home-section-title {
    color: #000739 !important;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.home-hero-actions .btn {
    margin: 0 !important;
}

.home-hero-client-link {
    margin: 0 24px 22px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.home-hero-client-link a {
    color: #00a87c !important;
    font-weight: 700;
}

.home-hero-card .home-btn-primary {
    display: block;
    box-sizing: border-box;
    margin-left: 24px;
    margin-right: 24px;
}

.home-stats-row {
    margin: 0;
    border-radius: 16px;
}

@media (min-width: 992px) {
    .home-stats {
        padding-bottom: 0;
    }

    .home-stats .container {
        padding-top: 0;
    }

    .home-stats-row {
        transform: translateY(-36px);
    }
}

@media (max-width: 991px) {
    .home-stats-row {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 7, 57, 0.08);
        margin: 0;
    }
}

/* Equal-height grid rows */
.page-home .home-services-grid > [class*="col-"],
.page-home .home-steps > [class*="col-"],
.page-home .home-features > [class*="col-"],
.page-home .home-testimonials .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.page-home .home-services-grid > [class*="col-"] > .home-service-card,
.page-home .home-steps > [class*="col-"] > .home-step,
.page-home .home-features > [class*="col-"] > .home-feature,
.page-home .home-testimonials .row > [class*="col-"] > .home-testimonial {
    flex: 1;
}

.home-services-grid {
    display: flex;
    flex-wrap: wrap;
}

.home-services-grid > [class*="col-"] {
    margin-bottom: 0;
}

.home-service-card {
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ── Cómo funciona (/como-funciona.html) ── */
.cf-hero {
    padding: 56px 0 64px;
}

.cf-hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.cf-hero-lead {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cf-hero-actions {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cf-audience {
    padding-top: 48px;
    padding-bottom: 48px;
}

.cf-audience-card {
    display: block;
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 18px;
    padding: 32px 28px;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 4px 20px rgba(0, 7, 57, 0.04);
}

.cf-audience-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 7, 57, 0.1);
    border-color: rgba(0, 198, 147, 0.35);
}

.cf-audience-worker:hover .cf-audience-icon {
    background: rgba(0, 198, 147, 0.15);
}

.cf-audience-client:hover .cf-audience-icon {
    background: rgba(0, 40, 85, 0.12);
}

.cf-audience-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eef1f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #00a87c;
    margin-bottom: 18px;
    transition: background 0.2s;
}

.cf-audience-client .cf-audience-icon {
    color: #000739;
}

.cf-audience-card h2 {
    color: #000739;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
}

.cf-audience-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.cf-audience-link {
    font-weight: 700;
    color: #00a87c;
    font-size: 14px;
}

.cf-audience-link .glyphicon {
    font-size: 11px;
}

.cf-steps-list {
    max-width: 820px;
    margin: 0 auto 32px;
}

.cf-step-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.cf-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #000739;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    margin-top: 8px;
}

.cf-step-body {
    flex: 1;
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 2px 12px rgba(0, 7, 57, 0.04);
}

.cf-step-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8fff8, #d1fae5);
    color: #00a87c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cf-step-body h3 {
    color: #000739;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 8px;
}

.cf-step-body p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 10px;
}

.cf-step-link {
    font-weight: 700;
    color: #00a87c !important;
    font-size: 14px;
}

.cf-section-cta {
    margin-top: 12px;
}

.cf-client-steps .home-step {
    height: 100%;
}

.cf-tipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.cf-tipo-grupo {
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 16px;
    padding: 24px 20px;
}

.cf-tipo-grupo h3 {
    color: #000739;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00c693;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cf-plat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cf-tipo-grupo ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cf-tipo-grupo li {
    font-size: 13px;
    color: #555;
    padding: 6px 0;
    line-height: 1.45;
}

.cf-tipo-grupo li .glyphicon {
    color: #00c693;
    margin-right: 6px;
    font-size: 11px;
}

.cf-cta-dual .home-btn-secondary {
    margin-left: 8px;
}

.cf-cta-client {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
}

@media (max-width: 991px) {
    .cf-tipo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .cf-hero {
        padding: 40px 0 48px;
    }

    .cf-hero h1 {
        font-size: 28px;
    }

    .cf-step-row {
        flex-direction: column;
        gap: 10px;
    }

    .cf-step-num {
        margin-top: 0;
    }

    .cf-step-body {
        flex-direction: column;
    }

    .cf-tipo-grid {
        grid-template-columns: 1fr;
    }

    .cf-cta-dual .home-btn-secondary {
        margin-left: 0;
        margin-top: 12px;
        display: inline-block;
    }
}
