/* Home — hero dos caminos, planes compactos, cómo funciona, servicios, CTA */

/* ===== Hero ===== */
.home-hero {
    position: relative;
    isolation: isolate;
    padding: 2.75rem 0 3.25rem;
    overflow: hidden;
    background: var(--bg);
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-hero-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    opacity: 0.32;
}

.home-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 23, 27, 0.55) 0%,
        rgba(20, 23, 27, 0.86) 38%,
        var(--bg) 70%
    );
}

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

.home-hero-eyebrow {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: var(--accent-soft);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-hero-title {
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 auto 1.15rem;
    max-width: 52rem;
}

.home-hero-title span {
    color: var(--accent-soft);
}

.home-hero-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 52rem;
    margin: 0 auto 2rem;
}

/* ===== Path cards ===== */
.home-paths {
    position: relative;
    display: grid;
    gap: 1.25rem;
    max-width: 1080px;
    margin: 0 auto;
    text-align: left;
}

@media (min-width: 992px) {
    .home-hero {
        padding: 3rem 0 3.5rem;
    }

    .home-paths {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: stretch;
    }
}

.home-path-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 30px;
    border-radius: 16px;
    background: rgba(34, 40, 48, 0.94);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.home-path-card--auto {
    border: 1px solid rgba(63, 182, 187, 0.55);
}

.home-path-card--admin {
    border: 1px solid rgba(136, 185, 215, 0.45);
}

.home-path-badge {
    position: absolute;
    top: 0;
    right: 1.1rem;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm, 0.5rem);
    background: rgba(34, 40, 48, 0.98);
    border: 1px solid var(--promo);
    color: var(--promo);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: calc(100% - 2.2rem);
}

.home-path-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.9rem;
    border-radius: 0.65rem;
    font-size: 1.2rem;
}

.home-path-icon--auto {
    background: rgba(7, 150, 155, 0.2);
    color: var(--accent-soft);
}

.home-path-icon--admin {
    background: rgba(52, 103, 138, 0.35);
    color: var(--primary-light);
}

.home-path-name {
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 1.65rem;
    line-height: 1.2;
    margin: 0 0 0.25rem;
    color: var(--text);
}

.home-path-subtitle {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.home-path-body {
    margin: 0 0 1rem;
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 0.98rem;
}

.home-path-list {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
    flex: 1;
}

.home-path-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.45;
}

.home-path-list i {
    color: var(--accent-soft);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.home-path-list--admin i {
    color: var(--primary-light);
}

.home-path-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.home-path-price {
    min-width: 0;
}

.home-path-amount {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.15;
    color: var(--text);
}

.home-path-strike {
    margin-left: 0.4rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 600;
}

.home-path-strike s {
    text-decoration: line-through;
}

.home-path-price small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.35;
}

.home-path-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
}

.home-path-cta .btn {
    min-height: 44px;
}

.home-path-btn-wa {
    border-color: var(--primary-light) !important;
    color: #fff !important;
    background: transparent !important;
}

.home-path-btn-wa:hover,
.home-path-btn-wa:focus-visible {
    background: rgba(136, 185, 215, 0.14) !important;
    color: #fff !important;
}

.home-path-cta-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.home-path-card a:focus-visible,
.home-hero-links a:focus-visible,
.home-hero-credit a:focus-visible,
.home-plan-referrals a:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* Círculo decorativo entre tarjetas (solo desktop) */
.home-paths-bridge {
    display: none;
}

@media (min-width: 992px) {
    .home-paths-bridge {
        display: flex;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 3;
        pointer-events: none;
    }

    .home-paths-bridge-circle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 58px;
        height: 58px;
        border-radius: 999px;
        background: var(--bg);
        border: 1px solid var(--border);
        color: var(--accent-soft);
        font-size: 1.15rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    }
}

.home-hero-links {
    margin: 1.75rem auto 0;
    max-width: 52rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.home-hero-links a {
    color: var(--accent-soft);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-hero-links a:hover {
    color: var(--primary-light);
}

.home-hero-links-sep {
    display: inline;
    margin: 0 0.55rem;
    color: var(--border);
}

.home-hero-credit {
    margin: 1.5rem 0 0;
    text-align: right;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-dim);
    padding-right: 0.25rem;
    /* holgura para el FAB de WhatsApp */
    padding-bottom: 0.25rem;
}

.home-hero-credit a {
    color: var(--accent-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-hero-credit a:hover {
    color: var(--primary-light);
}

/* ===== Planes (comparación compacta) ===== */
.home-plans {
    padding: 4.5rem 0;
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.home-kicker {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--accent-soft);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-section-title {
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    margin-bottom: 0.85rem;
    color: var(--text);
}

.home-section-intro {
    color: var(--text-muted);
    max-width: 42rem;
    margin-bottom: 2rem;
    line-height: 1.65;
}

.home-plans-compare {
    max-width: 52rem;
    margin: 0 auto 2.25rem;
}

.home-plans .planes-compare-table {
    --bs-table-bg: transparent;
    color: var(--text);
    border-color: var(--border);
    width: 100%;
    table-layout: fixed;
}

.home-plans .planes-compare-table th,
.home-plans .planes-compare-table td {
    vertical-align: top;
    padding: 0.75rem 0.85rem;
    border-color: var(--border);
    overflow-wrap: anywhere;
}

.home-plans .planes-compare-table thead th {
    font-weight: 700;
    background: var(--surface-2);
}

.home-plans-included {
    max-width: 56rem;
    margin: 0 auto 1.75rem;
}

.home-plans-included-title {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--text);
    text-align: center;
}

.home-plans-included-grid {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 992px) {
    .home-plans-included-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem 1.25rem;
    }
}

.home-plans .planes-included-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.home-plans .planes-included-item i {
    color: var(--accent-soft);
    opacity: 0.85;
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
}

.home-plan-referrals {
    margin-top: 0.5rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm, 0.5rem);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    line-height: 1.55;
}

.home-plan-referrals a {
    color: var(--accent-soft);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-plan-referrals a:hover {
    color: var(--primary-light);
}

/* ===== Cómo funciona ===== */
.home-how {
    padding: 4.5rem 0;
}

.home-how-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .home-how-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.home-how-step {
    padding: 1.35rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    height: 100%;
}

.home-how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.85rem;
    border-radius: 999px;
    background: rgba(5, 122, 126, 0.2);
    border: 1px solid var(--btn-primary-bg, var(--accent));
    color: var(--accent-soft);
    font-family: var(--font-brand);
    font-weight: 800;
}

.home-how-step h3 {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.55rem;
    color: var(--text);
}

.home-how-step p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===== Servicios ===== */
.home-services {
    padding: 4.5rem 0;
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.home-services-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .home-services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.35rem;
    }
}

.home-service-card {
    padding: 1.35rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    height: 100%;
}

.home-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0.9rem;
    border-radius: var(--radius-sm, 0.5rem);
    background: rgba(5, 122, 126, 0.18);
    color: var(--accent-soft);
    font-size: 1.15rem;
}

.home-service-card h3 {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
    color: var(--text);
}

.home-service-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.home-blog {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.home-blog .home-section-intro {
    margin-left: auto;
    margin-right: auto;
}

/* ===== CTA final ===== */
.home-cta {
    padding: 3.5rem 0 4.5rem;
}

.home-cta-panel {
    max-width: 44rem;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.home-cta-copy {
    color: var(--text-muted);
    margin: 0 auto 1.5rem;
    max-width: 36rem;
    line-height: 1.65;
}

.home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.home-cta-actions .btn {
    min-height: 44px;
}

/* ===== Tablet / mobile ===== */
@media (max-width: 991.98px) {
    .home-path-badge {
        position: static;
        transform: none;
        display: inline-block;
        margin-bottom: 0.85rem;
        max-width: 100%;
    }

    .home-path-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .home-path-cta .btn {
        width: 100%;
    }

    .home-hero-links-sep {
        display: none;
    }

    .home-hero-links-demo,
    .home-hero-links-ref {
        display: block;
    }

    .home-hero-links-ref {
        margin-top: 0.55rem;
    }

    .home-hero-credit {
        text-align: center;
        padding: 0 0.5rem 4.5rem;
    }

    .home-plans .planes-compare-table {
        font-size: 0.9rem;
        table-layout: auto;
        border: 0;
    }

    .home-plans .planes-compare-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .home-plans .planes-compare-table tbody,
    .home-plans .planes-compare-table tr,
    .home-plans .planes-compare-table th,
    .home-plans .planes-compare-table td {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .home-plans .planes-compare-table tr {
        margin-bottom: 0.75rem;
        padding: 0.75rem 0.85rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm, 0.5rem);
        background: var(--surface);
    }

    .home-plans .planes-compare-table tr:last-child {
        margin-bottom: 0;
    }

    .home-plans .planes-compare-table th[scope="row"] {
        border: 0;
        padding: 0 0 0.55rem;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text);
    }

    .home-plans .planes-compare-table td {
        border: 0;
        padding: 0.35rem 0;
        color: var(--text-muted);
        line-height: 1.45;
    }

    .home-plans .planes-compare-table td::before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: var(--text);
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        padding-top: 1.75rem;
        padding-bottom: 1.5rem;
    }

    .home-hero-lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .home-path-card {
        padding: 1.35rem 1.15rem;
    }

    .home-path-name {
        font-size: 1.4rem;
    }

    .home-path-amount {
        font-size: 1.7rem;
    }

    .home-plans,
    .home-how,
    .home-services {
        padding: 2.75rem 0;
    }

    .home-cta {
        padding: 2.5rem 0 calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }

    .home-cta-panel {
        padding: 1.75rem 1.15rem;
    }

    .home-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-cta-actions .btn {
        width: 100%;
    }

    .home-section-title {
        overflow-wrap: break-word;
    }

    .home-how-step,
    .home-service-card {
        padding: 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-path-card,
    .home-hero-photo {
        transition: none;
    }
}
