:root {
    --primary: #2d4f95;
    --accent: #d01341;
    --text-dark: #1a365d;
    --bg-light: #ffffff;
}

.flow-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
    font-family: 'Inter', sans-serif;
}

.flow-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.flow-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--text-dark);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #4c78d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Contenedor del Flujo */
.flow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 1250px;
    margin: 0 auto;
}

.flow-step {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

/* Tarjeta del Paso */
.step-card {
    background: #e9ecf2;
    padding: 40px 25px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    transition: all 0.4s ease;
    z-index: 2;
}

.step-card.highlight {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 20px;
    background: var(--accent);
    color: white;
    font-weight: 800;
    padding: 5px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    z-index: 3;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.step-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* Flechas conectoras */
.flow-arrow {
    flex: 0 0 50px;
    display: flex;
    justify-content: center;
    color: #cbd5e1;
    font-size: 1.5rem;
    z-index: 1;
}

/* Efectos Hover */
.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(45, 79, 149, 0.1);
}

/* Responsivo */
@media (max-width: 1024px) {
    .flow-container {
        flex-direction: column;
        gap: 40px;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: -20px 0;
    }

    .step-card.highlight {
        transform: none;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(208, 19, 65, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(208, 19, 65, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(208, 19, 65, 0);
    }
}