.home-hero-v2 {
    padding: 52px 0 54px;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 42px;
    align-items: center;
}

.home-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 11px;
    border: 1px solid #e6ebf1;
    border-radius: 999px;
    background: #e8e8ff;
    color: #475569;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 22px;
}

.home-brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #4f46e5;
}

.home-hero-title-v2 {
    max-width: 10.5ch;
    margin: 0 0 18px;
    font-size: clamp(3.1rem, 6vw, 5.7rem);
    line-height: 0.94;
    letter-spacing: -0.07em;
    font-weight: 750;
    color: #070817;
}

.home-hero-subtitle-v2 {
    max-width: 560px;
    margin: 0 0 26px;
    color: #52606d;
    font-size: 1.08rem;
    line-height: 1.65;
    letter-spacing: -0.018em;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.home-btn-primary,
.home-btn-secondary {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.home-btn-primary {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.18);
}

.home-btn-primary:hover {
    background: #4338ca;
    color: #ffffff;
    transform: translateY(-1px);
}

.home-btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e6ebf1;
}

.home-btn-secondary:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #d8e0ea;
}

.home-proof-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 560px;
}

.home-proof-row div {
    padding: 12px 14px;
    border: 1px solid #e6ebf1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
}

.home-proof-row strong,
.home-proof-row span {
    display: block;
}

.home-proof-row strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.home-proof-row span {
    margin-top: 2px;
    color: #7b8794;
    font-size: 12px;
}

/* Preview */

.home-product-preview {
    position: relative;
}

.home-product-preview::before {
    content: "";
    position: absolute;
    inset: -40px -20px auto auto;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.18), transparent 66%);
    pointer-events: none;
}

.home-preview-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
    overflow: hidden;
}

.home-preview-topbar {
    height: 40px;
    padding: 0 16px;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fbfdff;
}

.home-preview-topbar span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d8e0ea;
}

.home-preview-header {
    padding: 20px 22px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-preview-header small {
    display: block;
    color: #7b8794;
    font-size: 12px;
    font-weight: 600;
}

.home-preview-header strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.home-preview-status {
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.home-preview-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 22px 18px;
}

.home-preview-kpis div {
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 12px;
    background: #ffffff;
}

.home-preview-kpis span {
    display: block;
    color: #4f46e5;
    font-size: 28px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: -0.055em;
}

.home-preview-kpis small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
}

.home-preview-table {
    border-top: 1px solid #eef2f6;
}

.home-preview-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) minmax(120px, 0.7fr);
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    border-bottom: 1px solid #eef2f6;
}

.home-preview-row:last-child {
    border-bottom: 0;
}

.home-preview-row span {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.home-preview-row strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.012em;
}

.home-preview-row em {
    color: #64748b;
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.home-preview-row.is-highlight {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.08), transparent 70%);
}

.home-preview-row.is-highlight strong,
.home-preview-row.is-highlight span {
    color: #4338ca;
}

/* Features */

.home-feature-section {
    padding: 34px 0 52px;
}

.home-section-heading {
    max-width: 720px;
    margin-bottom: 32px;
}

.home-section-heading span {
    display: block;
    margin-bottom: 8px;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.home-section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
    font-weight: 750;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-feature-card {
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.home-feature-card i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #f1f0fe;
    color: #4f46e5;
    font-size: 19px;
    margin-bottom: 16px;
}

.home-feature-card h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.home-feature-card p {
    margin: 0;
    color: #64748b;
    font-size: 13.5px;
    line-height: 1.55;
}

/* Mobile */

@media (max-width: 991.98px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-hero-title-v2 {
        max-width: 11ch;
    }

    .home-proof-row,
    .home-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-hero-v2 {
        padding-top: 18px;
    }

    .home-hero-title-v2 {
        font-size: 3.1rem;
    }

    .home-preview-header,
    .home-preview-row {
        grid-template-columns: 1fr;
    }

    .home-preview-header {
        align-items: flex-start;
    }

    .home-preview-row em {
        text-align: left;
    }

    .home-preview-kpis {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   REAL PRODUCT HERO PREVIEW
========================================================= */

.home-preview-frame {
    position: relative;
    aspect-ratio: 16 / 11;
    border-radius: 26px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6ebf1;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.home-preview-slider {
    display: flex;
    width: 300%;
    height: 100%;
    animation: homeHeroSlider 15s infinite;
}

.home-preview-slider img {
    width: 33.3333%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    flex: 0 0 33.3333%;
}

.home-preview-caption {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e6ebf1;
    color: #475569;
    font-size: 12px;
    font-weight: 650;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

@keyframes homeHeroSlider {

    0%,
    26% {
        transform: translateX(0);
    }

    33%,
    59% {
        transform: translateX(-33.3333%);
    }

    66%,
    92% {
        transform: translateX(-66.6666%);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 640px) {
    .home-preview-frame {
        aspect-ratio: 4 / 3;
        border-radius: 20px;
    }

    .home-preview-caption {
        border-radius: 14px;
        align-items: flex-start;
    }
}

.home-anchor-section {
    padding: 34px 0 52px;
    scroll-margin-top: 96px;
}

#producto,
#como-ayuda,
#planes,
#contacto {
    scroll-margin-top: 96px;
}

/* ===============================
   PRICING
=================================*/

.home-pricing-section {
    padding: 34px 0 96px;
}

.home-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 920px;
}

.home-pricing-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 24px;
    padding: 28px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 32px rgba(15, 23, 42, 0.04);
}

.home-pricing-card--pro {
    border-color: rgba(79, 70, 229, 0.22);
    background:
        linear-gradient(180deg,
            rgba(79, 70, 229, 0.03),
            rgba(255, 255, 255, 1));
}

.home-pricing-badge {
    position: absolute;
    top: 18px;
    right: 18px;

    padding: 6px 10px;
    border-radius: 999px;

    background: #eef2ff;
    color: #4338ca;

    font-size: 11px;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.home-pricing-tier {
    color: #0f172a;
    font-size: 15px;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.home-pricing-price {
    margin-top: 10px;

    color: #0f172a;
    font-size: 38px;
    line-height: 1;
    font-weight: 780;
    letter-spacing: -0.06em;
}

.home-pricing-price small {
    display: block;
    margin-top: 8px;

    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.home-pricing-features {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;

    display: flex;
    flex-direction: column;
    gap: 11px;
}

.home-pricing-features li {
    position: relative;
    padding-left: 18px;

    color: #475569;
    font-size: 14px;
    line-height: 1.45;
}

.home-pricing-features li::before {
    content: "";

    position: absolute;
    left: 0;
    top: 8px;

    width: 6px;
    height: 6px;

    border-radius: 999px;
    background: #4f46e5;
}

.home-pricing-cta {
    margin-top: 24px;

    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border-radius: 12px;

    background: #4f46e5;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.16);

    transition:
        background 140ms ease,
        transform 140ms ease;
}

.home-pricing-cta:hover {
    background: #4338ca;
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .home-pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   CONTACT
=================================*/

.home-contact-section {
    padding: 24px 0 96px;
}

.home-contact-text {
    max-width: 720px;
    margin: 0 0 22px;

    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: -0.015em;
}

.home-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 700px;
}

.home-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 20px;

    background: #ffffff00;
    border: 1px solid #e6ebf100;
    border-radius: 18px;

    text-decoration: none;

    transition:
        transform 140ms ease,
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.home-contact-card:hover {
    transform: translateY(-2px);
    border-color: #d8e0ea;

    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.08);
}

.home-contact-card i {
    width: 50px;
    height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #f5f3ff;
    color: #4f46e5;

    font-size: 18px;
}

.home-contact-card strong {
    display: block;

    color: #0f172a;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.home-contact-card span {
    display: block;
    margin-top: 2px;

    color: #64748b;
    font-size: 13px;
}

.home-contact-card--whatsapp i {
    background: #ecfdf5;
    color: #16a34a;
}

@media (max-width: 991.98px) {
    .home-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   OPERATIONAL FLOW
=================================*/

.home-flow-section {
    padding: 34px 0 64px;
}

.home-flow-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.home-flow-rail {
    position: absolute;
    top: 9px;
    left: 7px;
    right: 7px;
    height: 2px;
    background: #e6ebf1;
    border-radius: 999px;
    overflow: hidden;
    z-index: 0;
}

.home-flow-rail-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 34%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg,
            rgba(79, 70, 229, 0),
            rgba(79, 70, 229, 0.85),
            rgba(139, 92, 246, 0.95),
            rgba(79, 70, 229, 0));
    box-shadow: 0 0 18px rgba(79, 70, 229, 0.42);
    animation: homeFlowRail 6.8s ease-in-out infinite;
}

.home-flow-node {
    position: relative;
    z-index: 1;
    padding-top: 34px;
}

.home-flow-dot {
    position: absolute;
    top: 0;
    left: 0;

    width: 20px;
    height: 20px;
    border-radius: 999px;

    background: #ffffff;
    border: 1px solid #d8e0ea;
    box-shadow: 0 0 0 2px #ffffff;
}

.home-flow-dot::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 999px;
    background: #b3bdcb;
    transition: background 160ms ease, box-shadow 160ms ease;
}

.home-flow-node:nth-of-type(1) .home-flow-dot::after {
    animation: homeFlowDot 6.8s ease-in-out infinite;
}

.home-flow-node:nth-of-type(2) .home-flow-dot::after {
    animation: homeFlowDot 6.8s ease-in-out infinite;
    animation-delay: 1.55s;
}

.home-flow-node:nth-of-type(3) .home-flow-dot::after {
    animation: homeFlowDot 6.8s ease-in-out infinite;
    animation-delay: 3.1s;
}

.home-flow-node:nth-of-type(4) .home-flow-dot::after {
    animation: homeFlowDot 6.8s ease-in-out infinite;
    animation-delay: 4.65s;
}

.home-flow-copy small {
    display: block;
    margin-bottom: 8px;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-flow-copy h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 760;
}

.home-flow-copy p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    letter-spacing: -0.015em;
}

@keyframes homeFlowRail {
    0% {
        transform: translateX(-110%);
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(310%);
        opacity: 0;
    }
}

@keyframes homeFlowDot {

    0%,
    18%,
    100% {
        background: #b3bdcb;
        box-shadow: none;
    }

    8%,
    12% {
        background: #4f46e5;
        box-shadow:
            0 0 0 5px rgba(79, 70, 229, 0.10),
            0 0 18px rgba(79, 70, 229, 0.55);
    }
}

@media (max-width: 991.98px) {
    .home-flow-track {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .home-flow-rail {
        top: 0;
        left: 9px;
        right: auto;
        bottom: 0;
        width: 2px;
        height: auto;
    }

    .home-flow-rail-light {
        width: 100%;
        height: 34%;
        background: linear-gradient(180deg,
                rgba(79, 70, 229, 0),
                rgba(79, 70, 229, 0.85),
                rgba(139, 92, 246, 0.95),
                rgba(79, 70, 229, 0));
        animation: homeFlowRailMobile 9s ease-in-out infinite;
    }

    .home-flow-node {
        padding-top: 0;
        padding-left: 42px;
    }
}

@keyframes homeFlowRailMobile {
    0% {
        transform: translateY(-110%);
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    82% {
        opacity: 1;
    }

    100% {
        transform: translateY(310%);
        opacity: 0;
    }
}