/* Extracted from page.php — shell aligned to strict no-scroll deck */
    body:has(#fnc-landing-wrapper) {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
    }

    body:has(#fnc-landing-wrapper) #base-wrapper {
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    body:has(#fnc-landing-wrapper) #base-content {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body:has(#fnc-landing-wrapper) #base-footer {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 25 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 2.5rem !important;
        padding: 0.35rem 0.75rem calc(0.35rem + env(safe-area-inset-bottom, 0px)) !important;
        margin: 0 !important;
        border: 0 !important;
        border-top: 1px solid #e1e8ed !important;
        background: #f8f9fa !important;
        overflow: visible !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }
    body:has(#fnc-landing-wrapper) #base-footer .footer-menu-toggle {
        position: relative !important;
        left: auto !important;
        bottom: auto !important;
        box-shadow: none !important;
    }

    #fnc-navegation {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    /* Zero-scroll: encaje en viewport con header/footer Fennecore */
    #fnc-landing-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        position: relative;
        font-family: 'Montserrat', sans-serif;
        box-sizing: border-box;
        padding: clamp(0.2rem, 1vh, 1rem) clamp(1%, 2vw, 3%);
        overflow: hidden;
        flex: 1 1 auto;
    }

    #fnc-landing-wrapper > main {
        flex: 1;
        min-height: 0;
        max-height: 100%;
        width: 100%;
        max-width: min(100%, 28rem);
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }
    #fnc-landing-wrapper:has(#services-stack:not(.hidden)) > main,
    #fnc-landing-wrapper:has(#service-details:not(.hidden)) > main {
        max-width: min(100%, 56rem);
    }
    @media (min-width: 900px) {
        #fnc-landing-wrapper > main {
            max-width: min(100%, 44rem);
        }
        #fnc-landing-wrapper:has(#services-stack:not(.hidden)) > main {
            max-width: min(100%, 68rem);
        }
        #fnc-landing-wrapper:has(#service-details:not(.hidden)) > main {
            max-width: min(100%, 52rem);
        }
    }
    #anchor-text, #services-stack:not(.hidden) {
        flex: 1;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
    }

    /* Mobile: same no-scroll contract (panes, not document scroll) */
    @media (max-width: 1024px), (max-height: 900px) {
        html:has(body:has(#fnc-landing-wrapper)),
        body:has(#fnc-landing-wrapper) {
            height: 100% !important;
            height: 100dvh !important;
            max-height: 100dvh !important;
            overflow: hidden !important;
        }
        body:has(#fnc-landing-wrapper) #base-wrapper,
        body:has(#fnc-landing-wrapper) #base-content,
        body:has(#fnc-landing-wrapper) #fnc-navegation,
        #fnc-landing-wrapper,
        #fnc-landing-wrapper > main,
        #anchor-text,
        #services-stack:not(.hidden) {
            overflow: hidden !important;
            max-height: 100% !important;
        }
    }

    /* Vista detalle de servicio: diseño elegante + zero-scroll */
    #fnc-landing-wrapper:has(#service-details:not(.hidden)) > main {
        justify-content: center;
    }

    #service-details:not(.hidden) {
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        overflow: hidden;
        display: grid;
        grid-template-columns: 1fr;
        gap: clamp(14px, 2.5vh, 22px);
        align-content: start;
        align-items: center;
        animation: fadeIn 0.4s ease;
        text-align: left;
    }

    .fnc-detail-intro {
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-height: 0;
        flex-shrink: 1;
    }

    .fnc-detail-service-head {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex-shrink: 0;
    }

    .fnc-detail-form-wrap {
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-self: center;
        width: 100%;
    }

    .fnc-mobile-only {
        display: none !important;
    }

    @media (min-width: 768px) {
        #service-details:not(.hidden) {
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            column-gap: clamp(24px, 4vw, 48px);
            row-gap: 0;
            align-items: center;
            align-content: center;
        }
    }

    @media (max-width: 767px) {
        .fnc-mobile-only {
            display: flex !important;
        }
        .btn-back.fnc-mobile-only,
        button.fnc-mobile-only {
            display: inline-flex !important;
        }

        #fnc-landing-wrapper:has(#service-details:not(.hidden)) {
            justify-content: flex-start;
            padding-top: 0.15rem;
            padding-bottom: 0.15rem;
        }

        #fnc-landing-wrapper:has(#service-details:not(.hidden)) > main {
            justify-content: flex-start;
            align-content: flex-start;
            padding-bottom: 0;
            min-height: 0;
            overflow: hidden;
        }

        #service-details:not(.hidden) {
            display: flex;
            flex-direction: column;
            flex: 1 1 auto;
            height: 100% !important;
            max-height: 100% !important;
            min-height: 0;
            overflow: hidden !important;
            gap: 0;
            align-content: stretch;
            align-items: stretch;
            padding-bottom: 0;
            box-sizing: border-box;
            justify-content: flex-start;
        }

        /* PASO 1 EN MÓVIL: flujo de arriba → abajo (Volver primero) */
        #service-details:not(.hidden):not(.mobile-step-form) .fnc-detail-intro {
            display: flex !important;
            flex-direction: column;
            flex: 1 1 auto;
            min-height: 0;
            height: 100% !important;
            max-height: 100% !important;
            overflow: hidden !important;
            justify-content: flex-start;
            gap: clamp(3px, 0.7vh, 6px);
            padding: 0 2px;
            box-sizing: border-box;
        }
        #service-details:not(.hidden):not(.mobile-step-form) .fnc-detail-form-wrap {
            display: none !important;
        }

        #service-details:not(.hidden):not(.mobile-step-form) .btn-back {
            margin: 0 0 2px 0 !important;
            flex: 0 0 auto;
        }

        #service-details:not(.hidden):not(.mobile-step-form) .fnc-detail-service-head {
            flex: 0 0 auto;
            gap: 4px;
        }

        /* PASO 2 EN MÓVIL: Formulario / Embudo */
        #service-details:not(.hidden).mobile-step-form .fnc-detail-intro {
            display: none !important;
        }
        #service-details:not(.hidden).mobile-step-form .fnc-detail-form-wrap {
            display: flex !important;
            flex-direction: column;
            flex: 1 1 auto;
            min-height: 0;
            height: 100% !important;
            max-height: 100% !important;
            overflow: hidden !important;
            justify-content: flex-start;
            gap: clamp(4px, 0.8vh, 8px);
            padding: 4px 2px;
        }

        #service-details:not(.hidden):not(.mobile-step-form) #detail-title {
            font-size: clamp(1.05rem, 4.6vw, 1.35rem);
            line-height: 1.15;
        }

        /* Texto completo (Problema / Solución / Beneficio): usa el hueco libre, sin “…” */
        #service-details:not(.hidden):not(.mobile-step-form) #detail-desc {
            flex: 1 1 auto;
            min-height: 0;
            margin: 0 !important;
            overflow: hidden;
            display: block;
            -webkit-line-clamp: unset;
            line-height: 1.28;
            font-size: clamp(0.68rem, 2.15vh, 0.84rem);
        }

        #service-details:not(.hidden):not(.mobile-step-form) .fnc-mobile-step-action {
            flex: 0 0 auto;
            margin-top: clamp(4px, 0.8vh, 8px);
        }

        /* Caso de éxito: sigue al CTA; el espacio sobrante lo absorbe #detail-desc */
        #service-details:not(.hidden):not(.mobile-step-form) #fnc-experience-proof:not(.hidden) {
            display: flex !important;
            flex-direction: column;
            flex: 0 0 auto;
            gap: 2px;
            background: #f1f5f9;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            padding: clamp(6px, 1vh, 10px);
            font-size: clamp(0.68rem, 2.8vw, 0.8rem);
            margin-top: clamp(4px, 0.8vh, 8px);
            margin-bottom: 0;
            overflow: hidden;
        }

        #service-details:not(.hidden):not(.mobile-step-form) #fnc-experience-proof .fnc-exp-case {
            -webkit-line-clamp: 3;
            margin: 0 !important;
        }

        .fnc-mobile-step-action {
            display: flex;
            width: 100%;
            margin-top: clamp(6px, 1vh, 12px);
            padding-top: 0;
            flex-shrink: 0;
        }
        .fnc-btn-start-diagnostic {
            display: none !important;
        }
        .fnc-btn-mobile-proceed {
            width: 100% !important;
            max-width: none !important;
            padding: clamp(10px, 1.8vh, 14px) 16px !important;
            font-size: clamp(0.9rem, 1.8vh, 1.05rem) !important;
            background: linear-gradient(135deg, #008C99, #005f66) !important;
            color: #ffffff !important;
            border: none !important;
            box-shadow: 0 4px 15px rgba(0, 140, 153, 0.35) !important;
            border-radius: 8px !important;
        }
        .fnc-btn-mobile-proceed:hover {
            background: #008C99 !important;
            color: #ffffff !important;
        }

        .fnc-mobile-form-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            flex-shrink: 0;
            padding-bottom: 2px;
        }
        .fnc-mobile-form-service-badge {
            font-size: clamp(0.72rem, 1.3vh, 0.84rem);
            font-weight: 700;
            color: #008C99;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 60%;
            text-align: right;
        }

        /* Formulario standard en móvil */
        #fnc-standard-lead-wrap {
            padding: clamp(8px, 1.4vh, 14px) clamp(10px, 2vw, 14px) !important;
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            flex: 1;
            min-height: 0;
            overflow: hidden;
        }
        .fnc-standard-lead-intro {
            font-size: clamp(0.68rem, 1.15vh, 0.78rem) !important;
            margin: 0 0 clamp(4px, 0.8vh, 8px) 0 !important;
            line-height: 1.25 !important;
        }
        .fnc-lead-grid {
            grid-template-columns: 1fr 1fr !important;
            gap: clamp(4px, 0.8vh, 8px) clamp(6px, 1.5vw, 10px) !important;
            margin-bottom: clamp(4px, 0.8vh, 8px) !important;
        }
        .fnc-lead-field .fnc-field-hint {
            display: none !important;
        }
        .fnc-lead-field label.fnc-field-label {
            font-size: clamp(0.65rem, 1.1vh, 0.75rem) !important;
            margin: 0 0 2px !important;
        }
        #fnc-standard-lead-wrap .nms-input {
            padding: clamp(4px, 0.8vh, 7px) 8px !important;
            min-height: clamp(28px, 3.4vh, 34px) !important;
            font-size: clamp(0.75rem, 1.25vh, 0.85rem) !important;
            border-radius: 5px !important;
        }
        #fnc-standard-lead-wrap .fnc-funnel-legal-block {
            margin: clamp(2px, 0.4vh, 4px) 0 !important;
            padding: clamp(3px, 0.6vh, 6px) 6px !important;
            gap: 3px !important;
        }
        #fnc-standard-lead-wrap .fnc-funnel-legal-title {
            font-size: clamp(0.65rem, 1.1vh, 0.75rem) !important;
            margin-bottom: 2px !important;
        }
        #fnc-landing-wrapper #fnc-standard-lead-wrap label.fnc-funnel-check {
            font-size: clamp(0.6rem, 1vh, 0.72rem) !important;
            line-height: 1.2 !important;
            grid-template-columns: 14px minmax(0, 1fr) !important;
            gap: 2px 6px !important;
        }
        #fnc-standard-lead-wrap #btn-submit {
            margin-top: clamp(4px, 0.8vh, 8px) !important;
            padding: clamp(7px, 1.4vh, 11px) 16px !important;
            font-size: clamp(0.82rem, 1.4vh, 0.95rem) !important;
        }

        .fnc-detail-form-wrap {
            overflow: hidden;
            -webkit-overflow-scrolling: touch;
            min-height: 0;
        }
        #fnc-service-funnel {
            max-height: 100% !important;
            height: 100% !important;
            padding: clamp(6px, 1vh, 10px) !important;
            flex: 1;
            min-height: 0;
            overflow: hidden;
        }
        .fnc-ctn-hub {
            max-height: 100% !important;
            height: 100% !important;
            padding: clamp(6px, 1vh, 10px) !important;
            flex: 1;
            min-height: 0;
            overflow: hidden;
        }
        .fnc-funnel-card {
            padding-bottom: 8px;
        }
    }
    .lang-floater { position: absolute; top: 0px; right: 5%; background: #f8f9fa; padding: 6px 15px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; gap: 12px; align-items: center; z-index: 100; }
    .lang-btn { border:none; background:none; font-size: 0.85rem; font-weight:bold; cursor:pointer; transition: color 0.2s; }
    .lang-btn.active { color: #008C99; }
    .lang-btn:not(.active) { color: #888; }
    h1.hero-title {
        color: #008C99;
        font-size: clamp(1.15rem, 4.2vw, 1.85rem);
        white-space: normal;
        margin: 0;
        font-weight: 800;
        line-height: 1.2;
        text-align: center;
        max-width: 22em;
    }
    p.hero-intro {
        color: #1A1A1A;
        font-size: clamp(0.85rem, 2.6vw, 1.05rem);
        line-height: 1.45;
        margin: 0;
        text-align: center;
        font-weight: 500;
        max-width: 36em;
    }
    p.hero-philosophy {
        color: #444;
        font-size: clamp(0.78rem, 2.3vw, 0.95rem);
        line-height: 1.4;
        margin: 0;
        text-align: center;
        max-width: 36em;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 8;
        overflow: hidden;
    }
    .btn-primary { background: linear-gradient(135deg, #2e8b57, #008C99); color: #FFF !important; border: none; padding: 14px 30px; border-radius: 8px; font-size: 1.05rem; font-weight: bold; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 140, 153, 0.3); transition: all 0.3s ease; margin-top: 1vh; }
    .btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(0, 140, 153, 0.4); }
    .hidden { display: none !important; }
    
    #services-stack { width: 100%; max-width: 1400px; margin: 0 auto; animation: fadeIn 0.4s ease; }
    #services-stack:not(.hidden) {
        display: flex;
        flex-direction: column;
        gap: clamp(10px, 1.5vmin, 16px);
        height: 100%;
        max-height: 100%;
        min-height: 0;
    }
    .fnc-services-legend {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 18px;
        padding: 8px 12px;
        background: #f4f7f9;
        border: 1px solid #e2e8ed;
        border-radius: 8px;
        font-size: clamp(0.62rem, 1.4vmin, 0.78rem);
        flex-shrink: 0;
    }
    .fnc-services-legend__title {
        font-weight: 700;
        color: #444;
        margin-right: 4px;
    }
    .fnc-services-legend__item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-weight: 600;
        color: #333;
    }
    .fnc-services-legend__swatch {
        width: 12px;
        height: 12px;
        border-radius: 3px;
        flex-shrink: 0;
    }
    /* 4 services per category: always 2×2 grid (mobile + desktop) */
    .fnc-services-grid,
    .fnc-services-grid--by-cat {
        display: grid;
        gap: clamp(8px, 1.2vmin, 14px);
        flex: 1;
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        grid-auto-rows: unset;
    }
    @media (min-width: 900px) {
        .fnc-services-grid,
        .fnc-services-grid--by-cat {
            gap: clamp(12px, 1.4vmin, 18px);
            max-width: 920px;
            width: 100%;
            margin: 0 auto;
        }
    }

    .fnc-icon-turquoise { color: #008C99; }

    .service-card-btn { 
        background: #FFFFFF; 
        border: 1px solid #e1e8ed; 
        border-radius: 12px; 
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        text-align: center; 
        cursor: pointer; 
        transition: all 0.2s ease; 
        box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
        padding: 1vmin; 
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }
    .service-card-btn:hover { 
        transform: translateY(-2px) scale(1.02); 
        box-shadow: 0 8px 20px rgba(0, 140, 153, 0.15); 
        border-color: #008C99; 
    }
    .service-card-btn { overflow: hidden; }
    .service-card-btn .icon {
        font-size: clamp(1.25rem, 4vmin, 2rem);
        margin-bottom: 0.6vmin;
        display: block;
        flex-shrink: 0;
    }
    .service-card-btn .service-icon {
        font-size: 0;
        line-height: 0;
        margin-bottom: clamp(0.45rem, 1.2vmin, 0.7rem);
    }
    .service-card-btn .service-icon img {
        width: clamp(3.5rem, 9vmin, 4.5rem);
        height: clamp(3.5rem, 9vmin, 4.5rem);
        display: block;
        margin: 0 auto;
        border-radius: 22%;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .service-card-btn:hover .service-icon img {
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
    }
    .service-card-btn .service-title {
        font-size: clamp(0.62rem, 1.75vmin, 0.92rem);
        font-weight: 700;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .service-card-btn .service-subtitle {
        margin-top: 0.45em;
        font-size: clamp(0.55rem, 1.45vmin, 0.78rem);
        font-weight: 700;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

/* category colors: injected from page.php */


    .btn-back {
        background: none; border: none; color: #888; cursor: pointer;
        font-size: 0.95rem; margin-top: 4px; margin-bottom: 6px; display: flex; align-items: center;
        gap: 5px; font-weight: bold; padding: 0;
    }
    #detail-title {
        color: #008C99;
        font-size: clamp(1.25rem, 3.2vmin, 1.5rem);
        margin: 0;
        font-weight: bold;
        line-height: 1.2;
        flex-shrink: 0;
        display: block;
    }
    #detail-desc {
        color: #555;
        font-size: clamp(0.75rem, 1.6vmin, 0.85rem);
        line-height: 1.4;
        margin: 0 0 4px 0;
        padding-right: 8px;
    }

    #service-details .fnc-cta-container {
        margin: 4px 0 6px 0 !important;
        padding: 0;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    #service-details .fnc-cta-container .fnc-btn-executive {
        width: auto;
        max-width: 100%;
        flex: 1 1 auto;
    }
    /* Escritorio: el formulario ya está a la derecha; este CTA solo aplica en móvil (paso 2) */
    .fnc-btn-start-diagnostic {
        display: none !important;
        background: linear-gradient(135deg, #008C99, #005f66) !important;
        color: #ffffff !important;
        border: none !important;
    }
    .fnc-btn-start-diagnostic:hover {
        background: #008C99 !important;
        color: #ffffff !important;
    }

    /* Formulario elegante (tamaños originales) */
    #fnc-service-lead-form.nms-form-group,
    #fnc-service-lead-form {
        display: block;
        background: #f8f9fa;
        padding: clamp(12px, 2.5vh, 25px);
        border-radius: 10px;
        border: 1px solid #eaeaea;
        margin: 0;
        box-sizing: border-box;
    }

    #fnc-landing-wrapper #fnc-service-lead-form label {
        display: block !important;
        position: static !important;
        top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
        transform: none !important;
        font-weight: bold !important;
        color: #1A1A1A !important;
        margin: 0 0 clamp(2px, 1vh, 8px) 0 !important;
        font-size: clamp(0.7rem, 1.2vh, 0.95rem) !important;
        text-align: left !important;
    }

    #fnc-service-lead-form .nms-input {
        width: 100%;
        padding: clamp(6px, 1.5vh, 12px) 14px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: clamp(0.85rem, 1.5vh, 1rem);
        font-family: inherit;
        margin: 0 0 clamp(8px, 1.5vh, 18px) 0;
        box-sizing: border-box;
        display: block;
        line-height: 1.4;
        min-height: clamp(32px, 4vh, 44px);
    }

    #fnc-service-lead-form .nms-input:last-of-type {
        margin-bottom: clamp(10px, 2vh, 22px);
    }

    /* Embudo Strategic Marketing Plans (panel derecho, sin recarga) */
    .fnc-strategic-funnel {
        background: #f8f9fa;
        padding: 8px 10px;
        border-radius: 8px;
        border: 1px solid #eaeaea;
        box-sizing: border-box;
        min-height: 0;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .fnc-funnel-progress {
        height: 3px;
        background: #e2e8f0;
        border-radius: 2px;
        margin-bottom: 6px;
        overflow: hidden;
    }
    .fnc-funnel-progress-fill {
        height: 100%;
        width: 0;
        background: #008C99;
        transition: width 0.35s ease;
    }
    .fnc-funnel-card {
        transition: opacity 0.28s ease, transform 0.28s ease;
        overflow-x: hidden;
        overflow-y: auto;
        flex: 1;
        padding: 4px;
        min-height: 0;
    }
    .fnc-funnel-card::-webkit-scrollbar { width: 6px; }
    .fnc-funnel-card::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 3px; }
    .fnc-funnel-card.fade-out {
        opacity: 0;
        transform: translateX(-16px);
    }
    #fnc-funnel-title {
        color: #008C99;
        font-size: clamp(0.85rem, 2vmin, 1.05rem);
        margin: 0 0 clamp(2px, 1vh, 6px) 0;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
    }
    .fnc-funnel-options {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }
    @media (min-width: 520px) {
        .fnc-funnel-options { grid-template-columns: 1fr 1fr; }
    }
    .fnc-funnel-option {
        padding: clamp(4px, 1vh, 7px) 8px;
        border: 1px solid #cbd5e1;
        background: #fff;
        color: #1A1A1A;
        border-radius: 5px;
        cursor: pointer;
        font-size: clamp(0.65rem, 1.2vh, 0.78rem);
        font-weight: 600;
        text-align: center;
        line-height: 1.2;
        transition: border-color 0.2s, background 0.2s;
    }
    .fnc-funnel-option:hover {
        border-color: #008C99;
        background: #008C99;
        color: #fff;
    }
    .fnc-funnel-option.is-selected {
        border-color: #008C99;
        background: rgba(0, 140, 153, 0.12);
        color: #006d77;
    }
    .fnc-funnel-submit {
        grid-column: 1 / -1;
        background: #008C99;
        border-color: #008C99;
        color: #fff;
        width: 100%;
    }
    .fnc-funnel-submit:hover {
        background: #006d77;
        border-color: #006d77;
        color: #fff;
    }
    .fnc-funnel-submit.is-loading {
        opacity: 0.75;
        pointer-events: none;
    }
    .fnc-funnel-lead-desc {
        text-align: center;
        color: #555;
        font-size: clamp(0.65rem, 1.2vh, 0.75rem);
        margin: 0 0 clamp(2px, 1vh, 6px) 0;
        line-height: 1.2;
    }
    .fnc-funnel-step-hint,
    .fnc-standard-lead-intro {
        text-align: center;
        color: #475569;
        font-size: clamp(0.72rem, 1.3vh, 0.82rem);
        line-height: 1.35;
        margin: 0 0 8px;
        padding: 0 4px;
    }
    .fnc-field-hint {
        display: block;
        font-size: 0.72rem;
        color: #64748b;
        margin: -2px 0 8px;
        line-height: 1.3;
        font-weight: 500;
    }
    /* Embudo: anular labels flotantes globales de Fennecore (input + label) */
    #fnc-service-funnel .fnc-funnel-lead-form input::placeholder {
        color: #64748b !important;
        opacity: 1;
    }
    #fnc-service-funnel .fnc-funnel-lead-form input:not([type="checkbox"]):not([type="radio"]) + label {
        position: static !important;
        display: none !important;
        pointer-events: none;
    }
    #fnc-service-funnel .fnc-funnel-field {
        position: relative;
        margin-bottom: 5px;
    }
    #fnc-service-funnel .fnc-funnel-field-label {
        display: block;
        font-size: clamp(0.65rem, 1.2vh, 0.72rem);
        font-weight: 700;
        margin: 0 0 clamp(1px, 0.5vh, 2px);
        color: #334155;
        line-height: 1.2;
    }
    .fnc-funnel-lead-form .nms-input,
    .fnc-funnel-text-form .nms-input {
        width: 100%;
        margin-bottom: 0;
        box-sizing: border-box;
        padding: clamp(4px, 1vh, 6px) 8px;
        min-height: clamp(24px, 3vh, 30px);
        font-size: clamp(0.7rem, 1.2vh, 0.82rem);
    }
    #fnc-service-funnel .fnc-funnel-field .nms-input {
        margin-bottom: 0;
    }
    .fnc-funnel-body--lead .fnc-funnel-submit {
        margin-top: 4px;
    }
    #service-details:has(#fnc-service-funnel:not(.hidden)) {
        gap: clamp(8px, 1.5vh, 14px);
        align-content: center;
        align-items: center;
    }
    #service-details:has(#fnc-service-funnel:not(.hidden)) .fnc-detail-intro {
        gap: 4px;
        align-self: center;
    }
    #service-details:has(#fnc-service-funnel:not(.hidden)) .fnc-detail-service-head {
        gap: 6px;
    }
    #service-details:has(#fnc-service-funnel:not(.hidden)) #detail-desc {
        font-size: 0.82rem;
        line-height: 1.35;
        margin: 0;
    }
    #service-details:has(.fnc-funnel-mode-lead) .fnc-cta-container,
    #service-details:has(.fnc-funnel-mode-lead) #detail-desc {
        display: none;
    }
    #service-details:has(.fnc-funnel-mode-lead) #detail-title {
        font-size: clamp(1rem, 2.2vmin, 1.2rem);
        margin-bottom: 2px;
    }
    .fnc-funnel-price {
        text-align: center;
        border: 1px solid rgba(0, 140, 153, 0.35);
        border-radius: 8px;
        padding: 16px;
        background: #fff;
    }
    .fnc-funnel-price-offer {
        font-size: 2rem;
        font-weight: 800;
        color: #008C99;
        margin: 8px 0;
    }
    .fnc-funnel-urgency {
        color: #b45309;
        font-weight: 700;
        margin-bottom: 12px;
    }
    .fnc-funnel-spinner {
        width: 36px;
        height: 36px;
        margin: 20px auto;
        border: 3px solid #e2e8f0;
        border-top-color: #008C99;
        border-radius: 50%;
        animation: fncFunnelSpin 0.8s linear infinite;
    }
    @keyframes fncFunnelSpin {
        to { transform: rotate(360deg); }
    }
    .fnc-funnel-legal-block {
        margin: clamp(2px, 0.5vh, 4px) 0 clamp(2px, 0.5vh, 4px);
        padding: clamp(4px, 0.8vh, 6px) 8px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        gap: clamp(4px, 0.8vh, 8px);
        align-items: stretch;
    }
    .fnc-funnel-legal-title {
        grid-column: 1 / -1;
    }
    #fnc-landing-wrapper #fnc-service-funnel label.fnc-funnel-check,
    #fnc-landing-wrapper #fnc-standard-lead-wrap label.fnc-funnel-check {
        display: grid !important;
        grid-template-columns: 18px minmax(0, 1fr) !important;
        gap: clamp(2px, 0.5vh, 6px) 10px !important;
        align-items: start !important;
        font-size: clamp(0.65rem, 1.2vh, 0.85rem) !important;
        font-weight: normal !important;
        margin-bottom: 0 !important;
        line-height: 1.3 !important;
        text-align: left !important;
        width: 100% !important;
    }
    .fnc-funnel-check {
        display: grid !important;
        grid-template-columns: 18px minmax(0, 1fr) !important;
        gap: clamp(2px, 0.5vh, 6px) 10px !important;
        align-items: start !important;
        font-size: clamp(0.65rem, 1.2vh, 0.85rem) !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        text-align: left !important;
        color: #334155 !important;
        cursor: pointer !important;
        width: 100% !important;
    }
    .fnc-funnel-check:last-child { margin-bottom: 0 !important; }
    .fnc-funnel-check input {
        margin: 1px 0 0 !important;
        width: 13px !important;
        height: 13px !important;
        accent-color: #008C99 !important;
        grid-column: 1 !important;
    }
    .fnc-funnel-check span { display: block !important; grid-column: 2 !important; }
    .fnc-funnel-check a { color: #008C99; font-weight: 600; }
    .fnc-funnel-legal-title {
        font-weight: 700;
        color: #1A1A1A;
        margin: 0 0 clamp(4px, 1vh, 10px) 0;
        font-size: clamp(0.75rem, 1.5vh, 0.92rem);
    }
    .fnc-funnel-check--accept-all {
        grid-column: 1 / -1;
        margin-top: clamp(2px, 0.5vh, 6px);
        padding-top: clamp(2px, 0.5vh, 6px);
        border-top: 1px solid #dde3e8;
        font-weight: 700;
    }
    .fnc-ctn-hub {
        background: #f8f9fa;
        border-radius: 10px;
        border: 1px solid #eaeaea;
        padding: clamp(6px, 1.2vh, 10px) clamp(8px, 1.2vw, 12px);
        box-sizing: border-box;
        min-height: 0;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
    }
    .fnc-ctn-intro {
        color: #444;
        font-size: clamp(0.72rem, 1.2vh, 0.84rem);
        line-height: 1.25;
        margin: 0 0 clamp(4px, 0.7vh, 6px) 0;
        text-align: center;
        flex-shrink: 0;
        font-weight: 600;
    }
    .fnc-ctn-options {
        display: flex;
        flex-direction: column;
        gap: clamp(2px, 0.4vh, 4px);
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 1px;
    }
    .fnc-ctn-options::-webkit-scrollbar { width: 4px; }
    .fnc-ctn-options::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 2px; }
    .fnc-ctn-option {
        display: block;
        width: 100%;
        text-align: left;
        background: #fff;
        border: 1px solid #dde3e8;
        border-radius: 5px;
        padding: clamp(3px, 0.55vh, 6px) clamp(8px, 1vw, 10px);
        cursor: pointer;
        transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
        flex-shrink: 1;
    }
    .fnc-ctn-option:hover {
        border-color: #008C99;
        background: #008C99;
        box-shadow: 0 4px 12px rgba(0, 140, 153, 0.12);
        transform: translateY(-1px);
        color: #fff;
    }
    .fnc-ctn-option:hover .fnc-ctn-option-title,
    .fnc-ctn-option:hover .fnc-ctn-option-desc {
        color: #fff;
    }
    .fnc-ctn-option-title {
        display: block;
        color: #008C99;
        font-weight: 700;
        font-size: clamp(0.68rem, 1.15vh, 0.78rem);
        margin-bottom: 1px;
        line-height: 1.2;
    }
    .fnc-ctn-option-desc {
        display: block;
        color: #555;
        font-size: clamp(0.58rem, 0.95vh, 0.68rem);
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .fnc-ctn-hub .fnc-funnel-nav {
        margin-top: clamp(4px, 0.7vh, 6px);
        padding-top: 4px;
        flex-shrink: 0;
    }
    .fnc-ctn-hub .fnc-funnel-nav-btn {
        padding: clamp(5px, 0.9vh, 8px) 14px;
        font-size: clamp(0.78rem, 1.2vh, 0.88rem);
    }
    .fnc-funnel-multi-form {
        display: flex;
        flex-direction: column;
        gap: clamp(3px, 0.7vh, 6px);
        width: 100%;
        overflow: hidden;
    }
    .fnc-funnel-multi-item {
        display: flex;
        flex-direction: column;
        gap: 3px;
        width: 100%;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        padding: clamp(3px, 0.6vh, 6px) clamp(6px, 1vw, 10px);
        box-sizing: border-box;
        transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    }
    .fnc-funnel-multi-item.is-checked {
        border-color: #008C99;
        background: #f0fdfa;
        box-shadow: 0 1px 4px rgba(0, 140, 153, 0.08);
    }
    .fnc-funnel-multi-item .fnc-funnel-check--multi {
        font-size: clamp(0.68rem, 1.25vh, 0.82rem) !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        margin-bottom: 0 !important;
        cursor: pointer;
    }
    .fnc-funnel-opt-input-wrap {
        margin-top: 2px;
        padding-left: 24px;
        width: 100%;
        box-sizing: border-box;
    }
    .fnc-funnel-opt-input-wrap.hidden {
        display: none !important;
    }
    .fnc-funnel-opt-input {
        width: 100% !important;
        font-size: clamp(0.68rem, 1.15vh, 0.78rem) !important;
        padding: clamp(3px, 0.5vh, 5px) clamp(6px, 0.8vw, 8px) !important;
        height: auto !important;
        min-height: 0 !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 4px !important;
        background: #ffffff !important;
        color: #0f172a !important;
        box-sizing: border-box !important;
    }
    .fnc-funnel-opt-input:focus {
        border-color: #008C99 !important;
        outline: none !important;
        box-shadow: 0 0 0 2px rgba(0, 140, 153, 0.15) !important;
    }
    .fnc-funnel-sub-panel {
        margin-top: clamp(4px, 1vh, 8px);
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: clamp(4px, 0.8vh, 8px);
        box-sizing: border-box;
        width: 100%;
        overflow: hidden;
        animation: fncSubSlide 0.25s ease-out;
    }
    .fnc-funnel-sub-panel.hidden {
        display: none !important;
    }
    @keyframes fncSubSlide {
        from { opacity: 0; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .fnc-funnel-sub-label {
        display: block;
        font-size: clamp(0.68rem, 1.15vh, 0.78rem);
        font-weight: 700;
        color: #008C99;
        margin-bottom: clamp(3px, 0.6vh, 6px);
        text-align: center;
        line-height: 1.2;
    }
    .fnc-funnel-sub-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: clamp(2px, 0.5vh, 4px);
    }
    .fnc-funnel-sub-btn {
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 4px;
        padding: clamp(3px, 0.6vh, 5px) 4px;
        font-size: clamp(0.62rem, 1.1vh, 0.72rem);
        font-weight: 600;
        color: #334155;
        cursor: pointer;
        text-align: center;
        transition: all 0.2s ease;
        line-height: 1.15;
    }
    .fnc-funnel-sub-btn:hover {
        border-color: #008C99;
        background: #e6f6f7;
        color: #006d77;
    }
    .fnc-funnel-sub-btn.is-selected {
        border-color: #008C99;
        background: #008C99;
        color: #ffffff;
        box-shadow: 0 2px 5px rgba(0, 140, 153, 0.2);
    }
    /* ─── 2x2 DAFO / SWOT Matrix ─── */
    .fnc-dafo-container {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .fnc-dafo-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(4px, 0.9vh, 8px);
        width: 100%;
    }
    @media (max-width: 580px) {
        .fnc-dafo-grid {
            grid-template-columns: 1fr;
            gap: 6px;
        }
    }
    .fnc-dafo-quad {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-top-width: 3px;
        border-radius: 6px;
        padding: clamp(4px, 0.8vh, 8px);
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        display: flex;
        flex-direction: column;
        text-align: left;
    }
    .fnc-dafo-header {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-bottom: clamp(3px, 0.6vh, 6px);
    }
    .fnc-dafo-icon {
        font-size: clamp(0.75rem, 1.2vh, 0.9rem);
    }
    .fnc-dafo-title {
        margin: 0;
        font-size: clamp(0.68rem, 1.15vh, 0.78rem);
        font-weight: 700;
        line-height: 1.2;
    }
    .fnc-dafo-options {
        display: flex;
        flex-direction: column;
        gap: clamp(2px, 0.4vh, 4px);
    }
    .fnc-dafo-chip {
        display: flex;
        align-items: flex-start;
        gap: 5px;
        background: #f8fafc;
        border: 1px solid #cbd5e1;
        border-radius: 4px;
        padding: clamp(2px, 0.5vh, 4px) clamp(4px, 0.8vh, 6px);
        font-size: clamp(0.6rem, 1.05vh, 0.7rem);
        color: #334155;
        cursor: pointer;
        transition: all 0.15s ease;
        line-height: 1.2;
        user-select: none;
    }
    .fnc-dafo-chip:hover {
        background: #f1f5f9;
        border-color: #94a3b8;
    }
    .fnc-dafo-chip.is-selected {
        background: #f0fdf4;
        border-color: #10b981;
        color: #065f46;
        font-weight: 600;
    }
    .fnc-dafo-quad--d .fnc-dafo-chip.is-selected {
        background: #fffbeb;
        border-color: #f59e0b;
        color: #92400e;
    }
    .fnc-dafo-quad--o .fnc-dafo-chip.is-selected {
        background: #ecfeff;
        border-color: #008C99;
        color: #006d77;
    }
    .fnc-dafo-quad--a .fnc-dafo-chip.is-selected {
        background: #fef2f2;
        border-color: #ef4444;
        color: #991b1b;
    }
    .fnc-dafo-check-mark {
        font-weight: 800;
        font-size: 0.75rem;
        flex-shrink: 0;
        color: #64748b;
    }
    .fnc-dafo-chip.is-selected .fnc-dafo-check-mark {
        color: inherit;
    }
    .fnc-dafo-other-wrap {
        margin-top: 3px;
    }
    .fnc-dafo-other-input {
        width: 100%;
        padding: clamp(3px, 0.5vh, 5px) 6px;
        font-size: clamp(0.6rem, 1.05vh, 0.7rem);
        border: 1px solid #cbd5e1;
        border-radius: 4px;
        box-sizing: border-box;
    }
    .fnc-funnel-lead-form select.nms-input { cursor: pointer; color: #1e293b; }
    .fnc-funnel-lead-form select.nms-input option { color: #1e293b; }
    .fnc-funnel-lead-error {
        color: #b45309;
        font-weight: 600;
        margin: 6px 0 4px;
    }
    .fnc-funnel-back-qual {
        margin-top: 4px;
        background: #fff;
        color: #008C99;
        border: 2px solid #008C99;
    }
    .fnc-funnel-nav {
        display: flex;
        gap: 8px;
        margin-top: 0;
        flex-wrap: nowrap;
        flex-shrink: 0;
        width: 100%;
        box-sizing: border-box;
        padding: 8px 4px 4px;
        background: #f8f9fa;
        border-top: 1px solid #e2e8f0;
    }
    #fnc-funnel-nav-bar.hidden {
        display: none !important;
    }
    .fnc-funnel-body--form,
    .fnc-funnel-body--multi,
    .fnc-funnel-body--options {
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-height: 0;
    }
    .fnc-funnel-nav-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 120px;
        padding: 10px 14px;
        border-radius: 6px;
        font-size: 0.88rem;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
        box-sizing: border-box;
    }
    .fnc-funnel-nav-back {
        background: #fff;
        color: #008C99;
        border: 2px solid #008C99;
    }
    .fnc-funnel-nav-back:hover {
        background: rgba(0, 140, 153, 0.06);
    }
    .fnc-funnel-nav-forward.fnc-funnel-submit {
        margin-top: 0;
        background: #008C99;
        border-color: #008C99;
        color: #fff;
    }
    .fnc-funnel-nav-forward.fnc-funnel-submit:hover {
        background: #006d77;
        border-color: #006d77;
        color: #fff;
    }
    .fnc-funnel-nav-btn:disabled,
    .fnc-funnel-nav-btn.is-disabled {
        opacity: 0.45;
        cursor: not-allowed;
        pointer-events: none;
    }
    .fnc-funnel-niche-custom.hidden { display: none !important; }
    .fnc-funnel-q5-other.hidden { display: none !important; }
    .fnc-funnel-q5-other { margin-top: 2px; margin-bottom: 4px; }
    #fnc-standard-lead-wrap {
        background: #f8f9fa;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: clamp(8px, 1.6vh, 16px) clamp(10px, 1.8vw, 18px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
        box-sizing: border-box;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .fnc-standard-lead-intro {
        font-size: clamp(0.72rem, 1.25vh, 0.82rem);
        line-height: 1.25;
        margin: 0 0 clamp(4px, 0.8vh, 8px) 0;
        color: #475569;
    }
    .fnc-lead-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: clamp(4px, 0.9vh, 8px) clamp(8px, 1.2vw, 14px);
        margin-bottom: clamp(4px, 0.9vh, 8px);
    }
    @media (min-width: 520px) {
        .fnc-lead-grid {
            grid-template-columns: 1fr 1fr;
        }
    }
    .fnc-lead-field {
        display: flex;
        flex-direction: column;
    }
    #fnc-standard-lead-wrap .fnc-funnel-legal-block {
        margin-top: clamp(2px, 0.6vh, 6px);
        padding: clamp(3px, 0.6vh, 5px) 6px;
        gap: clamp(2px, 0.4vh, 4px);
    }
    #fnc-standard-lead-wrap .fnc-funnel-legal-title {
        font-size: clamp(0.68rem, 1.15vh, 0.78rem);
        font-weight: 700;
        color: #334155;
        margin: 0 0 2px;
    }
    #fnc-standard-lead-wrap .nms-input {
        margin-bottom: 0px;
        padding: clamp(4px, 0.8vh, 7px) 10px;
        min-height: clamp(28px, 3.4vh, 34px);
        font-size: clamp(0.78rem, 1.25vh, 0.86rem);
    }
    #fnc-standard-lead-wrap label.fnc-field-label {
        display: block;
        font-size: clamp(0.68rem, 1.15vh, 0.76rem);
        font-weight: 700;
        margin: 0 0 1px;
        color: #334155;
        line-height: 1.2;
    }
    #fnc-standard-lead-wrap .fnc-field-hint {
        display: block;
        font-size: clamp(0.6rem, 1vh, 0.68rem);
        color: #64748b;
        margin: 0 0 clamp(2px, 0.4vh, 4px);
        line-height: 1.2;
    }
    #fnc-standard-lead-wrap label.fnc-funnel-check {
        font-size: clamp(0.62rem, 1.1vh, 0.72rem) !important;
        line-height: 1.2 !important;
        gap: 2px 8px !important;
        grid-template-columns: 15px minmax(0, 1fr) !important;
    }
    #fnc-standard-lead-wrap label.fnc-funnel-check input[type="checkbox"] {
        width: 14px;
        height: 14px;
        margin: 1px 0 0 0;
    }
    #niche-custom-input.hidden { display: none !important; }
    .fnc-funnel-review {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        padding: clamp(6px, 1.5vh, 12px);
        margin-bottom: clamp(6px, 1.5vh, 12px);
        font-size: clamp(0.75rem, 1.2vh, 0.9rem);
    }
    .fnc-funnel-review p { margin: 0 0 clamp(2px, 1vh, 6px) 0; }

    #fnc-standard-lead-wrap #btn-submit,
    #fnc-service-lead-form #btn-submit {
        width: 100%;
        margin: clamp(4px, 0.9vh, 8px) 0 0 0;
        padding: clamp(6px, 1.2vh, 10px) 24px;
        font-size: clamp(0.82rem, 1.4vh, 0.96rem);
        box-sizing: border-box;
    }

    @media (max-height: 850px) {
        #fnc-standard-lead-wrap {
            padding: clamp(6px, 1.2vh, 12px) clamp(8px, 1.4vw, 14px);
        }
        .fnc-standard-lead-intro {
            font-size: clamp(0.68rem, 1.1vh, 0.76rem);
            margin-bottom: 4px;
        }
        .fnc-lead-grid {
            gap: clamp(3px, 0.6vh, 6px) clamp(6px, 1vw, 10px);
            margin-bottom: 4px;
        }
        #fnc-standard-lead-wrap .fnc-field-hint {
            display: none;
        }
        #fnc-standard-lead-wrap .nms-input {
            min-height: 28px;
            padding: 3px 8px;
            font-size: 0.78rem;
        }
        #fnc-standard-lead-wrap .fnc-funnel-legal-block {
            padding: 3px 6px;
            gap: 2px;
        }
        #fnc-standard-lead-wrap label.fnc-funnel-check {
            font-size: 0.62rem !important;
        }
        .fnc-ctn-hub {
            padding: 4px 8px;
        }
        .fnc-ctn-intro {
            font-size: 0.72rem;
            margin-bottom: 3px;
        }
        .fnc-ctn-options {
            gap: 2px;
        }
        .fnc-ctn-option {
            padding: 2px 8px;
        }
        .fnc-ctn-option-title {
            font-size: 0.68rem;
        }
        .fnc-ctn-option-desc {
            display: none;
        }
        .fnc-ctn-hub .fnc-funnel-nav {
            margin-top: 3px;
            padding-top: 2px;
        }
        .fnc-ctn-hub .fnc-funnel-nav-btn {
            padding: 4px 10px;
            font-size: 0.75rem;
        }
    }

    @media (max-height: 780px) {
        #detail-desc { font-size: 0.8rem; }
        #fnc-service-lead-form { padding: 14px; }
        #fnc-service-lead-form .nms-input { margin-bottom: 8px; min-height: 34px; }
    }

    @media (max-height: 720px) {
        #service-details:not(.hidden):not(.mobile-step-form) #detail-desc {
            font-size: clamp(0.64rem, 1.95vh, 0.78rem);
            line-height: 1.25;
        }
        #service-details:not(.hidden):not(.mobile-step-form) #fnc-experience-proof:not(.hidden) {
            display: flex !important;
        }
        #service-details:not(.hidden):not(.mobile-step-form) #fnc-experience-proof .fnc-exp-case {
            -webkit-line-clamp: 2;
        }
    }

    @media (max-height: 680px) {
        h1.hero-title { font-size: clamp(1rem, 3.8vw, 1.45rem); }
        p.hero-intro { font-size: clamp(0.78rem, 2.2vw, 0.92rem); }
        #anchor-text .fnc-cta-container { gap: 10px; margin-top: 0.35rem !important; margin-bottom: 0.25rem !important; }
        .btn-primary, #anchor-text .fnc-btn-executive { padding: 10px 18px; font-size: 0.9rem; }
        #detail-desc { font-size: 0.75rem; }
        #fnc-service-lead-form { padding: 16px; }
        #fnc-service-lead-form .nms-input { margin-bottom: 12px; padding: 10px 12px; min-height: 40px; }
        .service-card-btn .icon { font-size: clamp(1rem, 4vmin, 1.8rem); }
    }

    @media (max-height: 600px) {
        #detail-desc { font-size: 0.7rem; line-height: 1.25; }
        #service-details .fnc-cta-container { margin-top: 4px !important; }
    }

    .nms-form-group { background: #f8f9fa; padding: clamp(15px, 3vh, 25px); border-radius: 10px; border: 1px solid #eaeaea; }
    .nms-input { width: 100%; padding: clamp(8px, 1.5vh, 12px); border: 1px solid #ccc; border-radius: 6px; font-size: clamp(0.85rem, 2vh, 1rem); font-family: inherit; margin-bottom: clamp(10px, 2vh, 20px); box-sizing: border-box; display: block; }
    #fnc-landing-wrapper .nms-form-group label {
        display: block !important; position: static !important; transform: none !important;
        margin: 0 0 clamp(4px, 1vh, 8px) 0 !important;
    }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

    .fnc-play-icon {
        display: inline-block;
        margin-right: 5px;
    }

    /* The Elegant Button */
    .fnc-btn-executive {
        background-color: transparent;
        color: #008C99;
        border: 2px solid #008C99; /* Slightly thicker for better visibility as outline */
        padding: 13px 30px; /* Matched padding to btn-primary */
        font-size: 1.05rem; /* Matched font size to btn-primary */
        font-family: 'Montserrat', sans-serif;
        font-weight: bold;
        cursor: pointer;
        border-radius: 8px; /* Matched border radius */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .fnc-btn-executive:hover {
        background-color: #008C99;
        border-color: #008C99;
        color: #fff;
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 4px 15px rgba(0, 140, 153, 0.2);
    }
    
    
/* loader gif: injected from page.php */

    
    /* CTA Button Container */
    .fnc-cta-container {
        display: flex;
        flex-direction: column;
        gap: clamp(10px, 2vh, 16px);
        align-items: center;
        justify-content: center;
        margin-top: clamp(0.35rem, 1.5vh, 0.85rem);
        margin-bottom: 0.25rem;
        width: 100%;
        animation: fadeIn 0.4s ease;
    }
    .fnc-cta-container .btn-primary, 
    .fnc-cta-container .fnc-btn-executive {
        width: 100%;
        max-width: 320px;
        margin-top: 0; /* Override any global margins */
    }
    @media (min-width: 768px) {
        .fnc-cta-container .btn-primary, 
        .fnc-cta-container .fnc-btn-executive {
            width: auto;
            min-width: 280px; /* Consistent elegant width for desktop */
        }
    }

    /* The Modal Overlay */
    .fnc-modal-overlay {
        position: fixed !important;
        top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important;
        background: rgba(15, 23, 42, 0.95) !important; /* Deep slate backdrop */
        backdrop-filter: blur(8px) !important;
        z-index: 9999999 !important; /* Higher than theme header */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        box-sizing: border-box !important;
    }
    .fnc-modal-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* The Video Container */
    .fnc-modal-content {
        position: relative !important;
        width: 90% !important;
        max-width: min(90vw, calc((85vh - 8px) * var(--vid-aspect, 1.7777) + 8px), 960px) !important;
        aspect-ratio: var(--vid-w, 16) / var(--vid-h, 9) !important;
        max-height: 85vh !important;
        background: #000 !important;
        border: 4px solid #008C99 !important; /* Agency Turquoise */
        border-radius: 8px !important; /* Nice rounded corners */
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5) !important;
        overflow: hidden !important; /* Ensures the mask doesn't leak out */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }
    
    /* Dynamic support for vertical video */
    .fnc-modal-overlay.fnc-modal-vertical .fnc-modal-content {
        max-width: min(90vw, calc((85vh - 8px) * var(--vid-aspect, 0.5625) + 8px), 480px) !important;
        max-height: 85vh !important;
    }
    
    /* Enhancing the Video Element itself */
    .fnc-corporate-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: fill !important; /* Fits container 1:1 without black letterboxing */
        display: block !important;
        border: none !important; /* Remove any default video border */
        outline: none !important;
    }
    
    /* Close Button */
    .fnc-modal-close {
        position: absolute !important;
        top: 15px !important;
        left: 15px !important;
        right: auto !important;
        background: rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 28px !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
        font-weight: 300 !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 0 !important;
        padding: 0 !important;
        padding-bottom: 5px !important; /* Perfect visual vertical alignment for &times; */
        cursor: pointer !important;
        z-index: 99999999 !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        transition: all 0.2s ease !important;
    }
    .fnc-modal-close:hover {
        background: #008C99 !important; /* Premium agency turquoise */
        border-color: rgba(255, 255, 255, 0.6) !important;
        color: #fff !important;
        transform: scale(1.08) !important;
    }

    /* Experience Proof Styles */
    #fnc-experience-proof {
        margin-top: clamp(6px, 1.5vh, 10px);
        padding: clamp(8px, 1.5vh, 12px);
        background: rgba(0, 140, 153, 0.04);
        border: 1px solid rgba(0, 140, 153, 0.15);
        border-radius: 8px;
        animation: fadeIn 0.4s ease;
    }
    
    .fnc-exp-header {
        font-size: clamp(0.65rem, 1.3vmin, 0.75rem);
        color: #555;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .fnc-exp-metric {
        font-size: clamp(1rem, 2.2vmin, 1.25rem);
        color: #008C99;
        font-weight: 800;
        margin-bottom: 4px;
        line-height: 1.1;
    }

    .fnc-exp-case {
        font-size: clamp(0.7rem, 1.4vmin, 0.8rem);
        color: #333;
        line-height: 1.35;
        margin: 0;
        font-style: italic;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
