/* ==========================================================================
   WIDGET: STEPS TIMELINE (Luxury Flow Onboarding Style)
   ========================================================================== */

.fc-widget-steps {
    position: relative;
    background: #ffffff; /* Fondo blanco puro para dar un espacio de aire limpio */
    padding: clamp(80px, 9vw, 130px) 0;
    overflow: hidden;
}

.fc-widget-steps .fc-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

/* --- CABECERA --- */
.fc-widget-steps .fc-steps-heading {
    text-align: center;
    margin-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fc-widget-steps .fc-steps-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--fc-primary);
    text-transform: uppercase;
    margin-bottom: 14px;
    background: rgba(15, 23, 42, 0.03);
    padding: 5px 14px;
    border-radius: 100px;
}

.fc-widget-steps .fc-steps-title {
    margin: 0 0 16px 0;
    color: var(--fc-secondary);
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.fc-widget-steps .fc-steps-title span {
    color: var(--fc-primary);
}

.fc-widget-steps .fc-steps-lead {
    margin: 0;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 520px;
}

/* --- LA REJILLA CONECTADA (Desktop Flow) --- */
.fc-widget-steps .fc-steps-timeline-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
}

/* Línea horizontal de fondo que une los pasos */
.fc-widget-steps .fc-steps-timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.04) 0%, var(--fc-primary) 50%, rgba(15, 23, 42, 0.04) 100%);
    z-index: 1;
}

.fc-widget-steps .fc-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columnas fluidas e iguales */
    gap: 24px;
    position: relative;
    z-index: 2;
}

/* Nodo Individual del Paso */
.fc-widget-steps .fc-step-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
}

/* El Número Gigante que actúa como eje */
.fc-widget-steps .fc-step-node__number {
    width: 90px;
    height: 90px;
    background: #ffffff;
    border: 2px solid rgba(15, 23, 42, 0.05);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--fc-secondary);
    margin-bottom: 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Contenido de texto */
.fc-widget-steps .fc-step-node__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fc-secondary);
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.fc-widget-steps .fc-step-node__desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* --- HOVER DINÁMICO --- */
.fc-widget-steps .fc-step-node:hover .fc-step-node__number {
    color: #ffffff;
    background: var(--fc-primary);
    border-color: var(--fc-primary);
    transform: scale(1.08);
    box-shadow: 0 15px 30px -5px rgba(var(--fc-primary-rgb), 0.25);
}

/* --- FOOTER CON BOTÓN EJECUTIVO --- */
.fc-widget-steps .fc-steps-footer {
    text-align: center;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fc-widget-steps .fc-steps-footer__text {
    font-size: 1.05rem;
    color: var(--fc-secondary);
    font-weight: 600;
    margin: 0 0 20px 0;
}

.fc-widget-steps .fc-steps-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--fc-secondary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 16px 36px;
    border-radius: 100px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
    transition: all 0.3s ease;
}

.fc-widget-steps .fc-steps-btn:hover {
    background: var(--fc-primary);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(var(--fc-primary-rgb), 0.25);
}

.fc-widget-steps .fc-steps-btn i {
    transition: transform 0.3s ease;
}

.fc-widget-steps .fc-steps-btn:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   RESPONSIVE LAYOUT (Transformación a Línea de Tiempo Vertical)
   ========================================================================== */

@media (max-width: 1024px) {
    /* En tablets cambiamos el flujo horizontal a vertical para que no se estruje el texto */
    .fc-widget-steps .fc-steps-timeline-wrapper::before {
        top: 0;
        bottom: 0;
        left: 45px;
        width: 2px;
        height: 100%;
        background: linear-gradient(to bottom, rgba(15, 23, 42, 0.02) 0%, var(--fc-primary) 50%, rgba(15, 23, 42, 0.02) 100%);
    }

    .fc-widget-steps .fc-steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 600px;
        margin: 0 auto;
    }

    .fc-widget-steps .fc-step-node {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 24px;
        padding: 0;
    }

    .fc-widget-steps .fc-step-node__number {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .fc-widget-steps .fc-step-node__content {
        padding-top: 12px;
    }
}

@media (max-width: 640px) {
    .fc-widget-steps {
        padding: 60px 0;
    }
    .fc-widget-steps .fc-container {
        padding: 0 24px;
    }
    .fc-widget-steps .fc-steps-timeline-wrapper::before {
        left: 30px;
    }
    .fc-widget-steps .fc-step-node__number {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    .fc-widget-steps .fc-step-node {
        gap: 16px;
    }
}