/* ==========================================================================
   Comercios Page Styles - External CSS
   ========================================================================== */

.origin-clean-hero {
    background-color: #ffffff !important;
    min-height: 400px !important;
    padding-top: 160px !important;
    padding-bottom: 0px !important;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.origin-clean-hero .eyebrow {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 20px;
    display: block;
}

.origin-clean-hero h1 {
    font-size: clamp(2.5rem, 4vw, 4rem) !important;
    line-height: 1.1;
    font-weight: 800;
    color: #0A192F;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.origin-clean-hero .subtitle {
    font-size: 1.1rem;
    color: #4A5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.origin-clean-hero .description {
    font-size: 1rem;
    color: #000000 !important;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.origin-clean-hero .btn-primary-clean {
    background-color: #1a56ff !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(26, 86, 255, 0.3);
    transition: all 0.3s ease;
}

.origin-clean-hero .btn-primary-clean:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 86, 255, 0.4);
}

/* ==========================================================================
   HERO-7 DIAGRAM (DE TU CANAL A LA RED)
   ========================================================================== */
/* ==========================================================================
   HERO DIAGRAM (DE TU CANAL A LA RED) - Exact Match to Spec & Image
   ========================================================================== */
.comercios-hero-diagram {
    background: #ffffff;
    border: none !important;
    box-shadow: none !important;
    border-radius: 20px;
    padding: 28px 24px;
    position: relative;
    max-width: 780px;
    margin: 0 auto;
}

.comercios-hero-tag {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #1D4ED8;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: left;
}

.comercios-flow-wrapper {
    position: relative;
    width: 100%;
}

/* SVG Line Layer */
.comercios-flow-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.comercios-svg-line {
    stroke: #CBD5E1;
    stroke-width: 1.8;
    fill: none;
    stroke-dasharray: 4 4;
}

.comercios-svg-line-green {
    stroke: #22C55E;
    stroke-width: 2.5;
    fill: none;
}

.comercios-svg-pulse {
    stroke: #2563EB;
    stroke-width: 2.5;
    fill: none;
    stroke-dasharray: 12 60;
    animation: comerciosFlowPulse 2.5s infinite linear;
}

.comercios-svg-pulse-green {
    stroke: #15803D;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 10 30;
    animation: comerciosFlowPulseGreen 2s infinite linear;
}

@keyframes comerciosFlowPulse {
    0% { stroke-dashoffset: 72; }
    100% { stroke-dashoffset: 0; }
}

@keyframes comerciosFlowPulseGreen {
    0% { stroke-dashoffset: 40; }
    100% { stroke-dashoffset: 0; }
}

/* Flow Row Layout */
.comercios-flow-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 2;
}

@media (max-width: 991px) {
    .comercios-flow-row {
        flex-direction: column;
        gap: 20px;
    }
    .comercios-flow-svg {
        display: none;
    }
}

.comercios-flow-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.comercios-col-store { flex: 1.1; }
.comercios-col-fv { flex: 1; justify-content: center; }
.comercios-col-network { flex: 1.2; }
.comercios-col-payout { flex: 1.2; }

.comercios-col-header {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 12px;
    text-align: left;
}

/* Pills (Column 1 - Tu tienda: Indigo/Purple) */
.comercios-pill {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 1px solid #FED7AA;
    color: #C2410C;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.08);
}

.comercios-pill svg {
    color: #EA580C;
    flex-shrink: 0;
}

.comercios-pill:hover {
    transform: translateX(3px);
    background: #FFEDD5;
}

/* Finvero Card (Column 2 - Finvero: Electric Blue) */
.comercios-card-fv {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 18px 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.comercios-card-fv__icon {
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comercios-card-fv:hover {
    transform: scale(1.03);
}

.comercios-card-fv__logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.comercios-card-fv__sub {
    font-size: 0.76rem;
    color: #BFDBFE;
    font-weight: 600;
}

/* Circular variant for Score alternativo */
.comercios-card-fv--circle {
    border-radius: 50% !important;
    width: 150px;
    height: 150px;
    min-width: 150px;
    min-height: 150px;
    padding: 16px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.comercios-card-fv--circle .comercios-card-fv__logo {
    font-size: 1.02rem;
    line-height: 1.2;
    margin: 4px 0 3px 0;
    text-align: center;
}

.comercios-card-fv--circle .comercios-card-fv__sub {
    font-size: 0.68rem;
    line-height: 1.2;
    text-align: center;
    max-width: 120px;
}

.comercios-subtext {
    font-size: 0.72rem;
    color: #64748B;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
}

/* Network Items (Column 3 - Status based) */
.comercios-lender-item {
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #FECACA;
    margin-bottom: 8px;
    color: #991B1B;
    background: #FEF2F2;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.comercios-lender-item--approved {
    background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
    border: 1.5px solid #22C55E;
    color: #15803D;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.18);
    position: relative;
}

.comercios-lender-item--approved::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #22C55E;
    border-radius: 50%;
    box-shadow: 0 0 8px #22C55E;
}

.comercios-lender-item--pending {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
}

/* Payout Card (Column 4 - Cobras completo: Emerald Green) */
.comercios-card-payout {
    background: linear-gradient(135deg, #065F46 0%, #047857 100%);
    border: none;
    border-radius: 16px;
    padding: 18px 14px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(6, 95, 70, 0.25);
    color: #FFFFFF;
}

.comercios-payout-icon {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.comercios-card-payout__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #FFFFFF;
}

.comercios-card-payout__sub {
    font-size: 0.76rem;
    color: #A7F3D0;
    line-height: 1.3;
    font-weight: 500;
}
    margin-bottom: 4px;
}

.comercios-card-payout__sub {
    font-size: 0.78rem;
    color: #166534;
    line-height: 1.35;
}

/* Footer of Diagram */
.comercios-diagram-footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #F1F5F9;
    text-align: left;
}

.comercios-footer-bullets {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.comercios-footer-sub {
    font-size: 0.78rem;
    color: #94A3B8;
}

/* ==========================================================================
   EL RETO - FUNNEL DIAGRAM (Dónde se te cae la venta antes de cobrarla)
   ========================================================================== */
.comercios-funnel-wrap {
    display: flex;
    align-items: center;
    gap: 36px;
    max-width: 900px;
    margin: 30px auto 0;
    padding: 10px 0;
}

@media (max-width: 991px) {
    .comercios-funnel-wrap {
        flex-direction: column;
        gap: 28px;
    }
}

.comercios-funnel-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 400px;
}

.comercios-funnel-layer {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    clip-path: polygon(var(--top-inset, 0%) 0%, calc(100% - var(--top-inset, 0%)) 0%, calc(100% - var(--bot-inset, 10%)) 100%, var(--bot-inset, 10%) 100%);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.comercios-funnel-layer:hover {
    transform: scale(1.02);
    filter: brightness(1.08);
}

.comercios-funnel-layer--1 {
    background: #1138A6;
    --top-inset: 0%;
    --bot-inset: 7%;
}

.comercios-funnel-layer--2 {
    background: #1A56FF;
    --top-inset: 7%;
    --bot-inset: 14%;
}

.comercios-funnel-layer--3 {
    background: #3B82F6;
    --top-inset: 14%;
    --bot-inset: 21%;
}

.comercios-funnel-layer--4 {
    background: #60A5FA;
    --top-inset: 21%;
    --bot-inset: 28%;
}

.comercios-funnel-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.comercios-funnel-item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 52px;
}

.comercios-funnel-line {
    display: flex;
    align-items: center;
    width: 50px;
    flex-shrink: 0;
}

.comercios-funnel-line__bar {
    height: 2px;
    background: #EA580C;
    flex: 1;
}

.comercios-funnel-line__dot {
    width: 10px;
    height: 10px;
    background: #EA580C;
    border-radius: 50%;
    flex-shrink: 0;
}

.comercios-funnel-info {
    text-align: left;
}

.comercios-funnel-info__title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #EA580C;
    margin-bottom: 2px;
}

.comercios-funnel-info__title--dark {
    color: #0F172A;
}

.comercios-funnel-info__sub {
    font-size: 0.82rem;
    color: #64748B;
    margin: 0;
    line-height: 1.3;
}




/* ==========================================================================
   CÓMO FUNCIONA DIAGRAM - Componente unificado con fondo gris (Stepper + Definición)
   ========================================================================== */
.fv-fine-kpi-bar,
.fv-fine-kpi-card,
.fv-pipeline-step,
.fv-pipeline-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.fv-fine-kpi-card {
    padding: 12px 0 !important;
}

/* El contenedor principal engloba el stepper y la definición dentro del fondo gris */
.fv-pipeline-showcase {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 20px !important;
    padding: 28px 24px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.fv-pipeline-nav {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.fv-pipeline-content-window {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}


/* ==========================================================================
   CIRCLES & ICON BADGES - Diseño gráfico refinado para círculos
   ========================================================================== */
.fv-pipeline-circle,
.fv-fine-kpi-icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%) !important;
    color: #FFFFFF !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    border: 2px solid #FFFFFF !important;
    outline: 1px solid rgba(37, 99, 235, 0.2) !important;
    transition: all 0.3s ease !important;
}

.fv-pipeline-step.active .fv-pipeline-circle {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
    outline-color: rgba(16, 185, 129, 0.3) !important;
    transform: scale(1.08) !important;
}

.fv-pipeline-step:hover .fv-pipeline-circle,
.fv-fine-kpi-card:hover .fv-fine-kpi-icon {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4) !important;
}


/* ==========================================================================
   PASTEL CIRCLES FOR EXECUTIVE KPI CARDS
   ========================================================================== */
.fv-fine-kpi-icon--pastel-blue {
    background: #EEF2FF !important;
    color: #3730A3 !important;
    border: 1.5px solid #C7D2FE !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12) !important;
    outline: none !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.fv-fine-kpi-icon--pastel-green {
    background: #ECFDF5 !important;
    color: #065F46 !important;
    border: 1.5px solid #A7F3D0 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12) !important;
    outline: none !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.fv-fine-kpi-icon--pastel-purple {
    background: #F3E8FF !important;
    color: #6B21A8 !important;
    border: 1.5px solid #DDD6FE !important;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.12) !important;
    outline: none !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}


/* ==========================================================================
   CÓMO FUNCIONA DIAGRAM - Componente unificado con fondo gris (Stepper + Definición)
   ========================================================================== */
.fv-fine-kpi-bar {
    gap: 8px !important;
    margin-bottom: 16px !important;
}

.fv-fine-kpi-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 6px 8px !important;
    gap: 10px !important;
}

.fv-fine-kpi-val {
    margin-bottom: 1px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
}

.fv-fine-kpi-lbl {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
}

.fv-pipeline-step,
.fv-pipeline-card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* El contenedor principal engloba el stepper y la definición dentro del fondo gris */
.fv-pipeline-showcase {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 20px !important;
    padding: 24px 20px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.fv-pipeline-nav {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.fv-pipeline-content-window {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* ==========================================================================
   CIRCLES & ICON BADGES - Diseño gráfico refinado para círculos
   ========================================================================== */
.fv-pipeline-circle,
.fv-fine-kpi-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%) !important;
    color: #FFFFFF !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    border: 2px solid #FFFFFF !important;
    outline: 1px solid rgba(37, 99, 235, 0.2) !important;
    transition: all 0.3s ease !important;
}

.fv-pipeline-step.active .fv-pipeline-circle {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
    outline-color: rgba(16, 185, 129, 0.3) !important;
    transform: scale(1.08) !important;
}

.fv-pipeline-step:hover .fv-pipeline-circle,
.fv-fine-kpi-card:hover .fv-fine-kpi-icon {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4) !important;
}

/* ==========================================================================
   PASTEL CIRCLES FOR EXECUTIVE KPI CARDS
   ========================================================================== */
.fv-fine-kpi-icon--pastel-blue {
    background: #EEF2FF !important;
    color: #3730A3 !important;
    border: 1.5px solid #C7D2FE !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12) !important;
    outline: none !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.fv-fine-kpi-icon--pastel-green {
    background: #ECFDF5 !important;
    color: #065F46 !important;
    border: 1.5px solid #A7F3D0 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12) !important;
    outline: none !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.fv-fine-kpi-icon--pastel-purple {
    background: #F3E8FF !important;
    color: #6B21A8 !important;
    border: 1.5px solid #DDD6FE !important;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.12) !important;
    outline: none !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

.fv-fine-kpi-icon--pastel-amber {
    background: #FFFBEB !important;
    color: #92400E !important;
    border: 1.5px solid #FDE68A !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12) !important;
    outline: none !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}


/* ==========================================================================
   TIGHT HORIZONTAL SPACING FOR EXECUTIVE KPI BAR CARDS
   ========================================================================== */
.fv-fine-kpi-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 12px !important;
    margin-bottom: 24px !important;
}

.fv-fine-kpi-card {
    flex: 0 0 auto !important;
    padding: 6px 14px !important;
    gap: 10px !important;
}

/* ==========================================================================
   UTILITY CLASSES FOR CLEAN EXTERNAL CSS (NO INLINE STYLES)
   ========================================================================== */
.fv-hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.fv-hero-anchor {
    position: absolute;
    bottom: 0;
}

.score-hero-flow-footnote {
    margin-top: 20px;
}

.score-hero-flow-footnote--italic {
    margin-top: 20px;
    font-style: italic;
}

.pymes-cards-grid {
    margin-bottom: 36px;
}

.comercios-funnel-line--hidden {
    visibility: hidden;
}

.fv-section-header-clean {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.fv-section-header-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 6px;
    text-align: center;
}

.fv-section-header-sub {
    font-size: 0.9rem;
    margin: 0 auto;
    max-width: 780px;
    line-height: 1.5;
    color: #475569;
    text-align: center;
}

.fv-pipeline-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    font-size: 0.9rem;
    color: #334155;
}

.fv-pipeline-item {
    margin-bottom: 8px;
}

.fv-pipeline-check {
    color: #10B981;
    font-weight: bold;
}

.fv-questions-section {
    margin-bottom: 100px !important;
    margin-top: 60px !important;
}

.kpis-layout__title--mb {
    margin-bottom: 2rem !important;
}


