.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;
}

/* =========================================================
   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;
    align-items: stretch;
}

.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);
    display: flex;
    flex-direction: column;
}

.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;
}

/* ── Pricing tagline (under price, above features) ─────── */
.home-pricing-tagline {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.home-pricing-card--pro .home-pricing-tagline {
    color: #64748b;
}

/* ── Features section header ("Todo lo incluido en Free, más:") */
.home-pricing-features__header {
    color: #6366f1 !important;
    font-weight: 650;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-left: 0 !important;
    margin-bottom: 4px;
}

.home-pricing-features__header::before {
    display: none !important;
}

/* ── Footer note below CTA ("Menos tiempo...") ─────────── */
.home-pricing-footer-note {
    margin-top: 14px;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.45;
    text-align: center;
}

.home-pricing-card--pro .home-pricing-footer-note {
    color: #475569;
}

.home-pricing-feature-more {
    margin-top: 6px;
}

/* Overrides the dot bullet with "+" — needs higher specificity than .home-pricing-features li::before */
.home-pricing-features .home-pricing-feature-more::before {
    content: "+";
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    animation: home-more-shine 2.4s ease-in-out infinite;
}

.home-pricing-feature-more a {
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    animation: home-more-shine 2.4s ease-in-out infinite;
}

@keyframes home-more-shine {
    0%, 100% {
        color: #a5b4fc;
        text-shadow: none;
    }
    50% {
        color: #ffffff;
        text-shadow: 0 0 14px rgba(165, 180, 252, 0.9), 0 0 30px rgba(99, 102, 241, 0.6);
    }
}

/* Pro card: fix ✓ vertical alignment + shine (beats .home-pricing-card--pro .home-pricing-features li::before) */
.home-pricing-card--pro .home-pricing-features .home-pricing-feature-more::before {
    top: 50%;
    transform: translateY(-50%);
    animation: home-more-shine 2.4s ease-in-out infinite;
}

.home-pricing-card--pro .home-pricing-feature-more a {
    animation: home-more-shine 2.4s ease-in-out infinite;
}

.home-pricing-cta-wrap {
    margin-top: auto;
    padding-top: 28px;
}

.home-pricing-cta {
    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 1fr;
    }
}

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

    .home-pricing-section {
        padding-bottom: 64px;
    }

    .home-pricing-card {
        padding: 22px 20px;
    }

    .home-pricing-price {
        font-size: 32px;
    }
}

/* ===============================
   FOUNDING MEMBER BANNER
=================================*/

.home-founding-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 24px 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #3730a3 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow:
        0 4px 24px rgba(79, 70, 229, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.07) inset;
    position: relative;
    overflow: hidden;
}

/* Grain sutil sobre el banner */
.home-founding-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.home-founding-left {
    flex: 1;
    min-width: 0;
}

.home-founding-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.home-founding-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #c7d2fe;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.home-founding-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a5b4fc;
    animation: foundingPulse 2s ease-in-out infinite;
}

@keyframes foundingPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

.home-founding-headline {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.home-founding-headline strong {
    color: #a5b4fc;
}

.home-founding-sub {
    margin: 0;
    color: #a5b4fc;
    font-size: 0.84rem;
    line-height: 1.55;
    max-width: 480px;
    opacity: 0.85;
}

.home-founding-cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.home-founding-availability {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #a5b4fc;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.home-founding-availability i {
    font-size: 6px;
    color: #6ee7b7;
    animation: foundingPulse 2s ease-in-out infinite;
}

.home-founding-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 22px;
    height: 44px;
    border-radius: 10px;
    background: #ffffff;
    color: #3730a3;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.home-founding-cta:hover {
    background: #eef2ff;
    color: #3730a3;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.home-pricing-price-strike {
    font-size: 0.55em;
    font-weight: 600;
    text-decoration: line-through;
    opacity: 0.5;
    margin-right: 4px;
    letter-spacing: -0.02em;
    vertical-align: middle;
}

@media (max-width: 820px) {
    .home-founding-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-founding-right {
        width: 100%;
    }

    .home-founding-cta-wrap {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .home-founding-banner {
        padding: 20px;
    }

    .home-founding-cta {
        justify-content: center;
        width: 100%;
        height: 46px;
    }

    .home-founding-cta-wrap {
        width: 100%;
    }
}

/* ===============================
   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(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 500px;
}

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

    padding: 20px;

    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.75);
    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;
}

/* Botón-card de mensaje (reemplaza el mailto) */
.home-contact-card--message {
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.75);
}

.home-contact-card--message:hover {
    transform: translateY(-2px);
    border-color: #d8e0ea;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

/* ── Modal de contacto ── */
.home-contact-modal-dialog {
    --bs-modal-width: 460px;
}

.home-contact-modal-content {
    border-radius: 20px;
    border: 1px solid #e8eaef;
    box-shadow: 0 8px 40px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.home-contact-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid #eef0f3;
}

.home-contact-modal-title {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.025em;
    color: #0a0d14;
}

.home-contact-modal-subtitle {
    margin: 3px 0 0;
    font-size: 13px;
    color: #64748b;
    letter-spacing: -0.005em;
}

.home-contact-modal-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid #e8eaef;
    background: transparent;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.home-contact-modal-close:hover {
    background: #f4f6f9;
    border-color: #d1d5db;
    color: #111827;
}

.home-contact-modal-close i { font-size: 13px; }

.home-contact-modal-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Campos del formulario */
.hcm-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hcm-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    letter-spacing: -0.005em;
}

.hcm-required {
    color: #4f46e5;
    margin-left: 2px;
}

.hcm-optional {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 4px;
}

.hcm-input,
.hcm-textarea,
.hcm-select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e8eaef;
    border-radius: 8px;
    background: #fafbfc;
    color: #111827;
    font-size: 13px;
    font-family: inherit;
    letter-spacing: -0.005em;
    outline: none;
    transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
    appearance: none;
}

.hcm-input::placeholder,
.hcm-textarea::placeholder { color: #94a3b8; }

.hcm-input:focus,
.hcm-textarea:focus,
.hcm-select:focus {
    border-color: #cbc7f8;
    background: #fff;
    box-shadow: 0 0 0 3px #e4e2fc;
}

.hcm-textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.5;
}

.hcm-select-wrap {
    position: relative;
}

.hcm-select {
    padding-right: 32px;
    cursor: pointer;
}

.hcm-select-chevron {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #94a3b8;
    pointer-events: none;
}

/* Error */
.hcm-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 12.5px;
    font-weight: 500;
}

.hcm-error i { font-size: 13px; flex-shrink: 0; }

/* Submit */
.hcm-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 18px;
    border: 1px solid #4f46e5;
    border-radius: 8px;
    background: #4f46e5;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: -0.005em;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(63,62,170,.18);
    transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.hcm-submit:hover:not(:disabled) {
    background: #3f3eaa;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 16px rgba(63,62,170,.22);
}

.hcm-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.hcm-submit i { font-size: 12px; }

/* Estado éxito */
.hcm-success {
    align-items: center;
    text-align: center;
    padding: 32px 24px 36px;
    gap: 10px;
}

.hcm-success-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 50%;
    color: #065f46;
    font-size: 22px;
    margin-bottom: 4px;
}

.hcm-success-title {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.025em;
    color: #0a0d14;
}

.hcm-success-sub {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    max-width: 280px;
}

/* Utilidad */
.hcm-hidden { display: none !important; }

@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;
    }
}


/* =============================================================
   PREMIUM v4
   Aurora a nivel de página completa, noise texture, fondo
   con gradiente radial estático + blobs animados distribuidos
   verticalmente, badges sin overflow, Pro card oscura.
============================================================= */

/* ── Wrapper de página ─────────────────────────────────── */
/* overflow:clip contiene los blobs sin crear scroll-container */
.home-page {
    position: relative;
    overflow: clip;
    background-color: #f8f9ff;
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.09) 1px, transparent 1px);
    background-size: 26px 26px;
}

/* Noise / grain — fixed sobre toda la página mientras esté
   el home visible; opacity 0.028 = invisible a distancia,
   perceptible como textura táctil al acercar.              */
.home-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 300px 300px;
}

/* Secciones: transparentes, encima del aurora, con padding
   horizontal propio (reemplaza el del .container Bootstrap) */
.home-hero-v2,
.home-flow-section,
.home-compliance-section,
.home-pricing-section,
.home-contact-section {
    position: relative;
    z-index: 1;
    background: transparent;
    padding-inline: clamp(1rem, calc((100% - 1200px) / 2 + 1rem), 50%);
}

/* Sin overflow hidden en el hero — evita recorte de badges  */
.home-hero-v2 {
    overflow: visible;
}

/* Grid flexible — elimina el mínimo duro de 420px que
   causaba desbordamiento del texto en la columna copy       */
.home-hero-grid {
    position: relative;
    z-index: 2;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

/* ── Aurora animada — nivel página ─────────────────────── */
.home-page-aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.home-aurora-blob {
    position: absolute;
    border-radius: 30%;
    will-change: transform;
}

/* Blob 1 — top-right (hero) — índigo */
.home-aurora-blob--1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.28), transparent 65%);
    top: -6%;
    right: -14%;
    filter: blur(40px);
    animation: hbBlob1 10s ease-in-out infinite alternate;
}

/* Blob 2 — mid-left (flow + pricing) — violeta */
.home-aurora-blob--2 {
    width: 860px;
    height: 860px;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.22), transparent 65%);
    top: 28%;
    left: -13%;
    filter: blur(72px);
    animation: hbBlob2 28s ease-in-out infinite alternate;
}

/* Blob 3 — lower-right (contact) — índigo claro */
.home-aurora-blob--3 {
    width: 760px;
    height: 760px;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.17), transparent 65%);
    top: 66%;
    right: -8%;
    filter: blur(68px);
    animation: hbBlob3 35s ease-in-out infinite alternate;
}

@keyframes hbBlob1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-55px, 40px) scale(1.07);
    }

    66% {
        transform: translate(35px, -50px) scale(0.95);
    }

    100% {
        transform: translate(-18px, 22px) scale(1.03);
    }
}

@keyframes hbBlob2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -35px) scale(1.10);
    }

    66% {
        transform: translate(-28px, 45px) scale(0.91);
    }

    100% {
        transform: translate(18px, -18px) scale(1.05);
    }
}

@keyframes hbBlob3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-32px, 42px) scale(1.10);
    }

    100% {
        transform: translate(24px, -28px) scale(0.94);
    }
}

/* ── Gradiente en la segunda línea del título ─────────── */
.home-title-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Brand pill — gradiente suave + shimmer ───────────── */
.home-brand-pill {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border-color: #c7d2fe;
    position: relative;
    overflow: hidden;
}

.home-brand-pill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -110%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: pillShimmer 5s ease-in-out infinite;
}

@keyframes pillShimmer {
    0% {
        left: -110%;
    }

    40%,
    100% {
        left: 160%;
    }
}

/* ── Botón primario — gradiente ────────────────────────── */
.home-btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
    box-shadow:
        0 10px 26px rgba(79, 70, 229, 0.24),
        0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.home-btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);
    box-shadow:
        0 14px 32px rgba(79, 70, 229, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

/* ── Preview frame — sombra más rica ─────────────────── */
.home-preview-frame {
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.06),
        0 24px 70px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    border-color: rgba(226, 232, 240, 0.7);
}

/* ── Floating badges — posicionados en bordes del frame
   para evitar overflow horizontal del contenedor          */
.home-badge-float {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.09),
        0 1px 0 rgba(255, 255, 255, 0.85) inset;
    z-index: 10;
}

/* Badge inferior-izquierdo — cuelga bajo el frame */
.home-badge-float--1 {
    bottom: -20px;
    left: 20px;
    animation: badgeFloat 7s ease-in-out infinite;
}

/* Badge superior-derecho — asoma sobre el frame */
.home-badge-float--2 {
    top: -20px;
    right: 20px;
    animation: badgeFloat 7s ease-in-out infinite;
    animation-delay: 2.2s;
}

.home-badge-float strong {
    display: block;
    color: #4338ca;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
}

.home-badge-float span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-7px);
    }
}

@media (max-width: 991.98px) {
    .home-badge-float {
        display: none;
    }
}

/* ── Flow: rail más refinado ───────────────────────────── */
.home-flow-rail-light {
    background: linear-gradient(90deg,
            transparent,
            rgba(99, 102, 241, 0.6) 20%,
            rgba(149, 92, 246, 1.0) 50%,
            rgba(99, 102, 241, 0.6) 80%,
            transparent);
    box-shadow:
        0 0 10px rgba(79, 70, 229, 0.45),
        0 0 28px rgba(139, 92, 246, 0.28);
    animation: homeFlowRail 6.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* ── Flow: dot con anillo de pulso al activarse ────────── */
.home-flow-dot {
    border-color: #c7d2fe;
}

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

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

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

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

@keyframes flowDotPulse {

    0%,
    4%,
    20%,
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0), 0 0 0 2px #f8f9ff;
        border-color: #c7d2fe;
    }

    8%,
    14% {
        box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.11), 0 0 0 2px #f8f9ff;
        border-color: #a5b4fc;
    }
}

/* ── Card Free — glass sutil ───────────────────────────── */
.home-pricing-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ── Pricing: card Pro oscura ──────────────────────────── */
.home-pricing-card--pro {
    background: #0f172a;
    border-color: #1e293b;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.35),
        0 18px 48px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(99, 102, 241, 0.14) inset;
}

.home-pricing-card--pro .home-pricing-badge {
    background: rgba(79, 70, 229, 0.22);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.28);
}

.home-pricing-card--pro .home-pricing-tier {
    color: #c7d2fe;
}

.home-pricing-card--pro .home-pricing-price {
    color: #f1f5f9;
}

.home-pricing-card--pro .home-pricing-price small {
    color: #475569;
}

.home-pricing-card--pro .home-pricing-features li {
    color: #94a3b8;
}

/* Dots → checkmarks */
.home-pricing-card--pro .home-pricing-features li::before {
    content: "✓";
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: #818cf8;
    font-size: 13px;
    font-weight: 900;
    top: 1px;
}

/* CTA: ancho completo + gradiente */
.home-pricing-cta {
    width: 100%;
    border-radius: 11px;
    background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
    box-shadow:
        0 8px 22px rgba(79, 70, 229, 0.30),
        0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.home-pricing-cta:hover {
    background: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);
    box-shadow:
        0 12px 30px rgba(79, 70, 229, 0.36),
        0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

/* ── Hover en cards de precios ─────────────────────────── */
.home-pricing-card {
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.home-pricing-card:not(.home-pricing-card--pro):hover {
    transform: translateY(-5px);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.05),
        0 22px 48px rgba(15, 23, 42, 0.10);
    border-color: #c7d2fe;
}

.home-pricing-card--pro:hover {
    transform: translateY(-5px);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.40),
        0 26px 60px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(99, 102, 241, 0.30) inset;
}

/* ═══════════════════════════════════════════════════════
   FULL-BLEED — escapa del container de Bootstrap
   para que el aurora cubra todo el viewport
═══════════════════════════════════════════════════════ */

/* Fondo del body: leve tinte índigo para que los blobs sean visibles */
body:has(.home-page) {
    background: #f8f9ff;
}

/* Navbar: glass con tinte índigo */
body:has(.home-page) .app-public-navbar {
    background: rgba(248, 249, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.55);
}

/* Elimina padding de <main> que dejaba franjas planas */
body:has(.home-page)>main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Rompe el container Bootstrap — ancho 100% sin padding */
body:has(.home-page)>main>.container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ===============================
   COMPLIANCE · LEY 21719
=================================*/

.home-compliance-section {
    padding-top: 34px;
    padding-bottom: 64px;
}

.home-compliance-shield {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 12px;
    border-radius: 13px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 22px;
    vertical-align: middle;
    flex-shrink: 0;
    position: relative;
    top: -3px;
}

.home-compliance-intro {
    max-width: 620px;
    margin: -6px 0 30px;
    color: #52606d;
    font-size: 1.02rem;
    line-height: 1.65;
    letter-spacing: -0.018em;
}

.home-compliance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.home-compliance-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(199, 210, 254, 0.55);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.home-compliance-item:hover {
    border-color: rgba(165, 180, 252, 0.75);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.07);
}

.home-compliance-item i {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 16px;
    margin-top: 1px;
}

.home-compliance-item strong {
    display: block;
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.home-compliance-item span {
    display: block;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.55;
}

.home-compliance-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: gap 160ms ease, color 160ms ease;
}

.home-compliance-link:hover {
    color: #4338ca;
    gap: 10px;
}

@media (max-width: 991.98px) {
    .home-compliance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-compliance-section {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .home-compliance-intro {
        font-size: 0.96rem;
        margin-bottom: 20px;
    }

    .home-compliance-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    .home-compliance-item {
        padding: 14px 16px;
    }
}

/* ── Separadores visuales entre secciones ────────────────── */
.home-flow-section,
.home-pricing-section,
.home-compliance-section,
.home-contact-section {
    border-top: 1px solid rgba(99, 102, 241, 0.08);
}

/* ── Hero: hint de scroll ────────────────────────────────── */
.home-hero-scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 160ms ease, gap 160ms ease;
}

.home-hero-scroll-hint:hover {
    color: #4f46e5;
    gap: 8px;
}

.home-hero-scroll-hint i {
    font-size: 15px;
    transition: transform 160ms ease;
}

.home-hero-scroll-hint:hover i {
    transform: translateY(3px);
}

/* ── Flow: pausar animaciones hasta que el usuario llegue ── */
.home-flow-track.flow-paused .home-flow-rail-light {
    animation-play-state: paused;
    opacity: 0;
}

.home-flow-track.flow-paused .home-flow-dot,
.home-flow-track.flow-paused .home-flow-dot::after {
    animation-play-state: paused;
}

/* =========================================================
   HOME · MOBILE POLISH
   Spacing, typography y detalles visuales para pantallas
   pequeñas. Todos son override sobre las reglas anteriores.
========================================================= */

/* ── Tablet (≤ 991px): ajustes de hero ─────────────────── */
@media (max-width: 991.98px) {

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

    /* Reduce un poco el espacio vertical del hero en tablet */
    .home-hero-v2 {
        padding-top: 40px;
        padding-bottom: 44px;
    }

    /* CRÍTICO: colapsa el grid a 1 columna en tablet/mobile.
       Esta regla debe estar DESPUÉS del bloque v4 en el archivo
       porque ese bloque define grid-template-columns sin media
       query y de otro modo ganaría en la cascada. */
    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Preview: ocupa todo el ancho disponible */
    .home-product-preview {
        width: 100%;
    }

    /* Blob decorativo del preview: más pequeño en tablet
       para no salir del borde derecho en pantallas estrechas */
    .home-product-preview::before {
        width: 180px;
        height: 180px;
        inset: -30px -8px auto auto;
    }
}

/* ── Mobile (≤ 640px): ajustes completos ───────────────── */
@media (max-width: 640px) {

    /* Hero */
    .home-hero-v2 {
        padding-top: 28px;
        padding-bottom: 32px;
    }

    /* Reordenamiento hero mobile */
    .home-hero-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .home-hero-copy {
        display: contents;
    }

    .home-brand-pill {
        order: 1;

        font-size: 12px;
        padding: 5px 10px;
        gap: 7px;
        margin-bottom: 12px;
    }

    .home-hero-title-v2 {
        order: 2;

        font-size: 2.65rem;
        max-width: 100%;
        margin-bottom: 0;
    }

    .home-product-preview {
        order: 3;
        width: 100%;
        margin: 4px 0 16px;
    }

    .home-hero-subtitle-v2 {
        order: 4;

        font-size: 0.97rem;
        margin-bottom: 0;
    }

    .home-hero-actions {
        order: 5;

        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 20px;
    }

    .home-btn-primary,
    .home-btn-secondary {
        width: 100%;
        min-height: 46px;
        justify-content: center;
        font-size: 15px;
    }

    /* Section headings */
    .home-section-heading {
        margin-bottom: 22px;
    }

    .home-section-heading h2 {
        font-size: 1.75rem;
        letter-spacing: -0.04em;
    }

    /* Flow section */
    .home-flow-section {
        padding-top: 28px;
        padding-bottom: 48px;
    }

    /* Pricing section */
    .home-pricing-section {
        padding-top: 28px;
        padding-bottom: 60px;
    }

    /* Contact section */
    .home-contact-section {
        padding-top: 20px;
        padding-bottom: 56px;
    }

    /* Contact cards */
    .home-contact-card {
        background: rgba(255, 255, 255, 0.68);
        border-color: rgba(226, 232, 240, 0.65);
        border-radius: 14px;
    }

    /* Pricing cards */
    .home-pricing-card {
        padding: 22px;
    }

    .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;
    }

}

/* ── Extra small (≤ 400px): título más conservador ──────── */
@media (max-width: 400px) {

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

    .home-brand-pill {
        font-size: 11px;
    }

    .home-section-heading h2 {
        font-size: 1.6rem;
    }
}

/* =========================================================
   HOME PRICING — UPDATED COMPACT VARIANT
========================================================= */

/* Feature list compacta (solo 3 ítems, Free card) */
.home-pricing-features--compact {
    gap: 8px;
    margin-top: 16px;
}

/* "Y mucho más →" — dentro del card Pro, sobre el CTA */
.home-pricing-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(99, 102, 241, 0.18);
    font-size: 13px;
    font-weight: 750;
    color: #4f46e5;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: color 140ms, gap 140ms;
    width: 100%;
}

.home-pricing-more-link:hover {
    color: #4338ca;
    gap: 9px;
}

/* Override para el card oscuro */
.home-pricing-card--pro .home-pricing-more-link {
    color: #a5b4fc;
    border-top-color: rgba(165, 180, 252, 0.15);
}

.home-pricing-card--pro .home-pricing-more-link:hover {
    color: #c7d2fe;
}

.home-pricing-more-arrow {
    font-size: 14px;
    animation: pricing-arrow-nudge 1.6s ease-in-out infinite;
}

@keyframes pricing-arrow-nudge {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(5px); }
}

/* CTA variante Free (outline) */
.home-pricing-cta--free {
    background: transparent;
    color: #4f46e5;
    border: 1.5px solid #c7d2fe;
    box-shadow: none;
}

.home-pricing-cta--free:hover {
    background: #eef2ff;
    color: #4338ca;
    border-color: #a5b4fc;
    transform: none;
}

/* "Ver comparación completa" link debajo de los cards */
.home-pricing-see-all {
    margin-top: 20px;
    text-align: center;
}

.home-pricing-see-all a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: gap 120ms;
}

.home-pricing-see-all a:hover {
    gap: 9px;
    color: #4338ca;
}

